/* RealEstate.al — Direction A "Refined Classic" redesign.
   Ported from the design handoff (design_handoff_realestate_redesign/app/dirA.jsx
   + detail.jsx). Self-contained: does not touch the legacy style.min.css.
   Scope everything under .ra so it can't leak into the old templates. */

:root {
  --ra-red: #D5202E;
  --ra-red-dark: #B11422;
  --ra-blue: #15558A;
  --ra-ink: #102A43;
  --ra-body: #46586B;
  --ra-muted: #7A8898;
  --ra-line: #E4E8EE;
  --ra-soft: #F5F7FA;
  --ra-surface: #FFFFFF;
}

html, body { margin: 0; padding: 0; }
body { background: var(--ra-surface); }

.ra, .ra * { box-sizing: border-box; }
.ra {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  color: var(--ra-ink);
  background: var(--ra-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15.5px;
  line-height: 1.6;
}
.ra img { max-width: 100%; display: block; }
.ra a { color: inherit; text-decoration: none; }
.ra p { text-wrap: pretty; }
.ra-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---- layout width ---- */
.ra-pad { padding-left: 48px; padding-right: 48px; }

/* ---- contact bar ---- */
.ra-contact {
  background: var(--ra-red); color: #fff; height: 40px;
  display: flex; align-items: center; font-size: 13.5px; font-weight: 600;
}
.ra-contact .sp { flex: 1; }
.ra-contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.ra-contact .item + .item { margin-left: 22px; }
.ra-lang { display: inline-flex; align-items: center; gap: 10px; }
.ra-lang .cur { font-weight: 800; }
.ra-lang .dim { opacity: .55; font-weight: 600; }
.ra-lang .dot { opacity: .5; }
.ra-flag { display: inline-flex; width: 25px; height: 18px; border-radius: 2px;
  background: #D72631; align-items: center; justify-content: center; overflow: hidden; }

/* ---- header ---- */
.ra-header {
  height: 76px; display: flex; align-items: center;
  border-bottom: 1px solid var(--ra-line); background: #fff;
}
.ra-brand { display: flex; align-items: center; gap: 12px; }
.ra-logo { height: 46px; width: auto; display: block; }
@media (max-width: 680px) { .ra-logo { height: 38px; } }

/* mobile hamburger + drawer (shown < 680px) */
.ra-burger { display: none; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 11px; border: 1px solid var(--ra-line); border-radius: 10px;
  background: #fff; cursor: pointer; }
.ra-burger span { display: block; height: 2px; width: 100%; background: var(--ra-ink); border-radius: 2px;
  transition: transform .2s, opacity .2s; }
.ra-burger.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ra-burger.on span:nth-child(2) { opacity: 0; }
.ra-burger.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ra-mobnav { display: none; background: #fff; border-bottom: 1px solid var(--ra-line); padding: 6px 24px 18px; }
.ra-mobnav a { display: block; padding: 13px 2px; font-size: 16px; font-weight: 600; color: var(--ra-ink);
  border-bottom: 1px solid var(--ra-line); text-decoration: none; }
.ra-mobnav a.on { color: var(--ra-red); }
.ra-mobnav a.ra-btn { color: #fff; text-align: center; margin-top: 14px; border-bottom: none; }
.ra-mobnav-lang { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 700; }
.ra-mobnav-lang a { display: inline; padding: 0; border: none; color: var(--ra-muted); }
.ra-mobnav-lang a.on { color: var(--ra-ink); }
.ra-brand-mark {
  width: 44px; height: 44px; border-radius: 10px; border: 2.5px solid var(--ra-blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ra-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.ra-brand-name .dot { color: var(--ra-red); }
.ra-brand-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ra-muted); }
.ra-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.ra-nav a { position: relative; font-weight: 600; font-size: 15px; padding: 6px 2px; color: var(--ra-ink); }
.ra-nav a:hover { color: var(--ra-blue); }
.ra-nav a.on { color: var(--ra-red); }
.ra-nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2.5px; background: var(--ra-red); border-radius: 2px; }

/* ---- buttons ---- */
.ra-btn {
  background: var(--ra-red); color: #fff; border: none; border-radius: 7px;
  font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; transition: background .15s;
}
.ra-btn:hover { background: var(--ra-red-dark); color: #fff; }
.ra-btn-lg { padding: 13px 22px; font-size: 15px; }
.ra-btn-block { width: 100%; }
.ra-btn-outline {
  background: #fff; color: var(--ra-ink); border: 1px solid var(--ra-line);
  border-radius: 7px; font-weight: 700; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; font-size: 14px; text-decoration: none; transition: border-color .15s;
}
.ra-btn-outline:hover { border-color: var(--ra-blue); }
.ra-link { color: var(--ra-blue); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }

/* ---- hero ---- */
.ra-hero { position: relative; height: 460px; overflow: hidden; }
.ra-hero-bg { position: absolute; inset: 0; }
.ra-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.ra-hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,42,67,.62) 0%, rgba(16,42,67,.30) 46%, rgba(16,42,67,0) 70%); }
.ra-hero-inner { position: absolute; inset: 0; display: flex; align-items: center; }
.ra-hero-copy { width: 430px; max-width: 100%; }
.ra-hero-copy h1 { color: #fff; font-size: 38px; line-height: 1.12; font-weight: 800;
  margin: 0 0 12px; letter-spacing: -.02em; }
.ra-hero-copy .sub { color: rgba(255,255,255,.9); font-size: 16px; margin: 0 0 24px; line-height: 1.5; }

/* ---- search card ---- */
.ra-searchcard { background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 18px 50px rgba(16,42,67,.28); }
.ra-searchcard .cap { font-size: 13px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ra-muted); margin-bottom: 12px; }
.ra-search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ra-search-row { display: flex; align-items: center; gap: 14px; }
.ra-sel { background: #fff; border: 1px solid var(--ra-line); border-radius: 9px;
  padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; text-decoration: none; }
.ra-sel .lab { font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ra-muted); }
.ra-sel .val { font-size: 15px; font-weight: 600; color: var(--ra-ink); }
/* functional select field (matches .ra-sel look, native <select>) */
.ra-field { position: relative; background: #fff; border: 1px solid var(--ra-line); border-radius: 9px;
  padding: 7px 12px; display: flex; flex-direction: column; gap: 1px; }
.ra-field label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ra-muted); }
.ra-field select { border: none; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ra-ink); padding: 0 18px 0 0; margin: 0; width: 100%; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; outline: none; }
.ra-field::after { content: ''; position: absolute; right: 13px; top: 55%; width: 8px; height: 8px;
  border-right: 2px solid var(--ra-muted); border-bottom: 2px solid var(--ra-muted);
  transform: translateY(-50%) rotate(45deg); pointer-events: none; }

/* ---- section headings ---- */
.ra-sec { padding: 40px 48px 8px; }
.ra-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.ra-sec-head h2 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.ra-count { color: var(--ra-muted); font-size: 14px; font-weight: 600; }

/* ---- category strip ---- */
.ra-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ra-cat { border: 1px solid var(--ra-line); border-radius: 14px; background: #fff;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s, box-shadow .15s; }
.ra-cat:hover { border-color: var(--ra-blue); box-shadow: 0 6px 18px rgba(21,85,138,.1); }
.ra-chip { width: 52px; height: 52px; border-radius: 13px; background: var(--ra-soft);
  display: flex; align-items: center; justify-content: center; }
.ra-cat .name { font-size: 16.5px; font-weight: 700; }
.ra-cat .n { font-size: 13.5px; color: var(--ra-muted); font-weight: 600; }

/* ---- listings: rail + grid ---- */
.ra-listings { padding: 34px 48px 0; display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.ra-rail-title { font-size: 13px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ra-muted); margin-bottom: 12px; padding-left: 12px; }
.ra-rail { display: flex; flex-direction: column; gap: 2px; }
.ra-rail a { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 8px; color: var(--ra-body); font-size: 14px; font-weight: 500; }
.ra-rail a:hover { background: var(--ra-soft); color: var(--ra-blue); }
.ra-rail a.on { background: var(--ra-blue); color: #fff; font-weight: 700; }
.ra-rail a.on .ct { background: rgba(255,255,255,.22); color: #fff; }
.ra-ct { font-size: 12px; font-weight: 700; color: var(--ra-muted);
  background: var(--ra-soft); border-radius: 20px; padding: 2px 9px; }

.ra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* search results: refine bar + pager + empty state */
.ra-search-refine { max-width: 780px; }
.ra-search-refine .ra-searchcard { box-shadow: 0 4px 16px rgba(16,42,67,.08); }

/* listing hero — the refine search box on a warm interior band instead of white */
.ra-hero-listing { height: auto; }
.ra-hero-listing .ra-hero-inner { position: relative; display: block; padding-top: 44px; padding-bottom: 44px; }
.ra-hero-listing-inner { max-width: 960px; }
.ra-hero-listing-inner > h1 { color: #fff; font-size: 32px; line-height: 1.15; font-weight: 800; margin: 0 0 6px; }
.ra-hero-count { color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; margin: 0 0 20px; }
.ra-search-refine-hero { max-width: 960px; }
.ra-search-refine-hero .ra-search-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ra-search-refine-hero .ra-searchcard { box-shadow: 0 12px 34px rgba(16,42,67,.22); }
.ra-listing-lead { max-width: 820px; margin: 0 0 22px; color: var(--ra-muted); line-height: 1.6; }
@media (max-width: 640px) { .ra-hero-listing-inner > h1 { font-size: 25px; } }
.ra-pager { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 34px; }
.ra-pager-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--ra-line);
  border-radius: 8px; background: #fff; color: var(--ra-ink); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .15s; }
.ra-pager-btn:hover { border-color: var(--ra-blue); color: var(--ra-blue); }
.ra-pager-btn.on { background: var(--ra-blue); border-color: var(--ra-blue); color: #fff; }
.ra-pager-gap { color: var(--ra-muted); padding: 0 4px; }
.ra-empty { text-align: center; padding: 60px 20px; color: var(--ra-muted); }
.ra-empty p { margin-top: 12px; font-size: 15.5px; font-weight: 600; }

/* listing (category / city) header, filter chips, SEO text */
.ra-listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ra-listing-head h1 { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.ra-listing-head .lead { margin: 8px 0 0; font-size: 15px; color: var(--ra-body); max-width: 720px; }
.ra-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.ra-chip-link { display: inline-flex; align-items: center; padding: 8px 15px; border: 1px solid var(--ra-line);
  border-radius: 20px; background: #fff; color: var(--ra-body); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: all .15s; }
.ra-chip-link:hover { border-color: var(--ra-blue); color: var(--ra-blue); background: var(--ra-soft); }
.ra-seo { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ra-line); color: var(--ra-muted);
  font-size: 14px; line-height: 1.7; }
.ra-seo h1, .ra-seo h2, .ra-seo h3 { color: var(--ra-ink); font-size: 17px; margin: 0 0 10px; }
.ra-seo p { margin: 0 0 12px; }

/* ---- property card ---- */
.ra-card { background: #fff; border: 1px solid var(--ra-line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(16,42,67,.04);
  transition: box-shadow .2s, transform .2s; display: block; color: inherit; }
.ra-card:hover { box-shadow: 0 12px 30px rgba(16,42,67,.12); transform: translateY(-3px); }
.ra-card-media { position: relative; }
.ra-card-media .ph { aspect-ratio: 100 / 64; width: 100%; }
.ra-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ra-card-media .vig { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28)); }
.ra-badge { display: inline-block; color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.ra-badge.rent { background: var(--ra-blue); }
.ra-badge.sale { background: var(--ra-red); }
.ra-card-badge { position: absolute; top: 12px; left: 12px; }
.ra-heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 8px;
  border: none; background: rgba(255,255,255,.92); display: flex; align-items: center;
  justify-content: center; cursor: pointer; }
.ra-card-price { position: absolute; bottom: 12px; left: 14px; color: #fff; font-weight: 800;
  font-size: 21px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.ra-card-price .per { font-size: 13px; font-weight: 600; opacity: .9; }
.ra-card-body { padding: 15px 16px 16px; }
.ra-card-body h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--ra-blue);
  line-height: 1.3; min-height: 43px; }
.ra-card-loc { display: flex; align-items: center; gap: 6px; color: var(--ra-muted);
  font-size: 13.5px; margin-bottom: 13px; }
.ra-card-foot { border-top: 1px solid var(--ra-line); padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ra-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.ra-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
  font-weight: 600; color: var(--ra-body); }
.ra-card-ref { font-size: 11.5px; color: var(--ra-muted); font-weight: 600; white-space: nowrap; }

/* ---- placeholder image (gradient + glyph), used until real photos wired ---- */
.ra-ph { position: relative; width: 100%; background: linear-gradient(135deg, #e6dccb, #c9b69c);
  overflow: hidden; }
.ra-ph.villa { background: linear-gradient(135deg, #cfe0e8, #9fb6ad); }
.ra-ph.office { background: linear-gradient(135deg, #dde3ec, #b3bccb); }
.ra-ph.land { background: linear-gradient(135deg, #dde7cf, #a9bd8c); }
.ra-ph.warehouse { background: linear-gradient(135deg, #e4e2dd, #bdb8af); }
.ra-ph.commercial { background: linear-gradient(135deg, #e2dee6, #bbb2c4); }
.ra-ph .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* ---- footer ---- */
.ra-footer { margin-top: 48px; background: var(--ra-ink); color: rgba(255,255,255,.78);
  padding: 52px 48px 22px; }
.ra-footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.4fr; gap: 40px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.13); }
.ra-footer-brandcol { max-width: 340px; }
.ra-footer-brand { display: inline-block; margin-bottom: 16px; }
.ra-footer-logo { height: 40px; width: auto; display: block; }
.ra-footer p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.65; }
.ra-footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.ra-footer-contact a, .ra-footer-contact span { display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(255,255,255,.8); text-decoration: none; }
.ra-footer-contact a:hover { color: #fff; }
.ra-socials { display: flex; gap: 10px; }
.ra-socials a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ra-socials a:hover { background: rgba(255,255,255,.22); }
.ra-footer-col { display: flex; flex-direction: column; }
.ra-footer-h { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; margin-bottom: 15px; }
.ra-footer-link { font-size: 13.5px; margin-bottom: 11px; font-weight: 500;
  color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s; }
.ra-footer-link:hover { color: #fff; }
.ra-footer-more { color: var(--ra-red); font-weight: 700; margin-top: 2px; }
.ra-footer-more:hover { color: #fff; }
.ra-footer-news p { font-size: 13.5px; }
.ra-news { display: flex; gap: 8px; }
.ra-news input { flex: 1; min-width: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px; padding: 11px 14px; font: inherit; font-size: 14px; color: #fff; }
.ra-news input::placeholder { color: rgba(255,255,255,.6); }
.ra-news input:focus { outline: none; border-color: rgba(255,255,255,.5); }
.ra-news .ra-btn { white-space: nowrap; }
.ra-news-ok { color: #7ee2a8; font-weight: 700; font-size: 14px; margin: 4px 0 0; }
.ra-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.ra-footer-langswitch a { color: rgba(255,255,255,.6); text-decoration: none; font-weight: 600; }
.ra-footer-langswitch a.on { color: #fff; }
.ra-footer-langswitch .dot { margin: 0 6px; opacity: .5; }

/* =====================================================================
   DETAIL PAGE
   ===================================================================== */
.ra-breadcrumb { padding: 16px 48px 0; display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ra-muted); font-weight: 600; }
.ra-breadcrumb .crumb-cur { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.ra-breadcrumb .cur { color: var(--ra-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-breadcrumb .sp { flex: 1; }

.ra-titlerow { padding: 14px 48px 18px; display: flex; align-items: flex-end; gap: 24px; }
.ra-titlerow .lhs { flex: 1; }
.ra-titlerow h1 { font-size: 30px; font-weight: 800; margin: 10px 0 7px; letter-spacing: -.02em; line-height: 1.12; }
.ra-titlerow .sub { display: flex; align-items: center; gap: 16px; color: var(--ra-muted);
  font-size: 14.5px; font-weight: 600; }
.ra-titlerow .sub span { display: inline-flex; align-items: center; gap: 6px; }
.ra-price { text-align: right; }
.ra-price .amt { font-size: 34px; font-weight: 800; color: var(--ra-ink); letter-spacing: -.02em; }
.ra-price .amt small { font-size: 14px; font-weight: 600; color: var(--ra-muted); }
.ra-price .acts { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }

.ra-gallery { padding: 0 48px; }
.ra-gallery-grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: 12px; height: 460px; }
.ra-gallery-grid > * { min-width: 0; min-height: 0; }
.ra-gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; min-height: 0; }
.ra-gallery-thumbs > * { min-width: 0; min-height: 0; }
.ra-thumb { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; display: block; height: 100%; }
.ra-gallery-grid > .ra-thumb:first-child { border-radius: 12px; }
/* images are absolutely contained so they can never blow out the grid height */
.ra-thumb > .ph, .ra-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ra-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(16,42,67,0); transition: background .15s; pointer-events: none; }
.ra-thumb:hover::after { background: rgba(16,42,67,.12); }
.ra-thumb-more { position: absolute; inset: 0; background: rgba(16,42,67,.55); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  cursor: pointer; z-index: 1; }
.ra-thumb-more span { font-size: 15px; font-weight: 800; margin-top: 6px; }

/* lightbox gallery */
.ra-lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  background: rgba(16,42,67,.94); }
.ra-lb.open { display: flex; }
.ra-lb-stage { max-width: 92vw; max-height: 86vh; }
.ra-lb-stage img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); display: block; }
.ra-lb-btn { position: absolute; background: rgba(255,255,255,.14); border: none; color: #fff; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .15s; }
.ra-lb-btn:hover { background: rgba(255,255,255,.28); }
.ra-lb-close { top: 20px; right: 24px; }
.ra-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ra-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.ra-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff;
  font-size: 14px; font-weight: 600; background: rgba(0,0,0,.4); padding: 6px 14px; border-radius: 20px; }
@media (max-width: 680px) {
  .ra-lb-prev { left: 10px; } .ra-lb-next { right: 10px; }
  .ra-lb-btn { width: 42px; height: 42px; }
}

.ra-body { padding: 28px 48px 0; display: grid; grid-template-columns: 1fr 372px; gap: 32px; align-items: start; }
.ra-sectitle { font-size: 21px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
.ra-block { margin-bottom: 32px; }
.ra-block p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.68; color: var(--ra-body); }
.ra-desc { font-size: 15.5px; line-height: 1.68; color: var(--ra-body); }
.ra-desc p { margin: 0 0 14px; }
.ra-desc img { border-radius: 10px; margin: 8px 0; height: auto; }
iframe.ra-map { display: block; }
.ra-flash { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.ra-flash.ok { background: #e7f6ec; color: #1a7f43; }
.ra-flash.err { background: #fdecec; color: #b11422; }

.ra-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.ra-stat { border: 1px solid var(--ra-line); border-radius: 12px; padding: 16px; background: #fff; }
.ra-stat .v { font-size: 21px; font-weight: 800; margin-top: 10px; color: var(--ra-ink); }
.ra-stat .l { font-size: 12.5px; font-weight: 600; color: var(--ra-muted); text-transform: capitalize; }

.ra-specs { border: 1px solid var(--ra-line); border-radius: 14px; overflow: hidden; }
.ra-specs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.ra-spec { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.ra-spec:not(:nth-child(3n)) { border-right: 1px solid var(--ra-line); }
.ra-spec:nth-child(n+4) { border-top: 1px solid var(--ra-line); }
.ra-spec .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--ra-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ra-spec .l { font-size: 12px; font-weight: 700; color: var(--ra-muted); text-transform: uppercase; letter-spacing: .04em; }
.ra-spec .v { font-size: 15px; font-weight: 700; color: var(--ra-ink); margin-top: 2px; }

.ra-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; }
.ra-feat { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ra-body); }
.ra-feat .ck { width: 26px; height: 26px; border-radius: 7px; background: var(--ra-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* stylized map stand-in (replace with real tiles) */
.ra-map { position: relative; height: 300px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--ra-line); background: linear-gradient(135deg, #e9eef3, #dde6ee); }
.ra-map .grid { position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(40deg, transparent 0 70px, rgba(120,140,170,.16) 70px 72px),
    repeating-linear-gradient(130deg, transparent 0 90px, rgba(120,140,170,.13) 90px 92px); }
.ra-map .park { position: absolute; left: 12%; top: 20%; width: 150px; height: 110px;
  background: rgba(120,180,120,.26); border-radius: 45% 55% 50% 50%; }
.ra-map .river { position: absolute; top: -10%; left: 46%; width: 50px; height: 120%;
  background: rgba(110,160,210,.28); transform: rotate(18deg); border-radius: 30px; }
.ra-pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -100%); }
.ra-pin .drop { background: var(--ra-red); width: 38px; height: 38px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(213,32,46,.4); }
.ra-pin .drop svg { transform: rotate(45deg); }
.ra-map-label { position: absolute; left: 50%; top: 52%; transform: translateX(-50%); background: #fff;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ra-ink);
  box-shadow: 0 3px 10px rgba(16,42,67,.18); }
.ra-map-zoom { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column;
  border-radius: 9px; overflow: hidden; box-shadow: 0 2px 8px rgba(16,42,67,.18); }
.ra-map-zoom button { width: 36px; height: 36px; border: none; background: #fff; cursor: pointer;
  font-size: 18px; color: var(--ra-ink); }
.ra-map-zoom button:first-child { border-bottom: 1px solid var(--ra-line); }

/* sidebar */
.ra-aside { position: sticky; top: 16px; }
.ra-agentcard { border: 1px solid var(--ra-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(16,42,67,.08); }
.ra-agent { padding: 18px 20px; display: flex; align-items: center; gap: 13; gap: 13px;
  border-bottom: 1px solid var(--ra-line); }
.ra-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #15558A, #0E3E66);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.ra-agent .nm { font-size: 15.5px; font-weight: 800; }
.ra-agent .ro { font-size: 12.5px; color: var(--ra-muted); font-weight: 600; }
.ra-stars { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.ra-form { padding: 18px 20px; }
.ra-form .h { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.ra-fields { display: flex; flex-direction: column; gap: 10px; }
.ra-input { width: 100%; background: #fff; border: 1px solid var(--ra-line); border-radius: 9px;
  padding: 11px 13px; font-family: inherit; font-size: 14px; color: var(--ra-ink); }
.ra-input::placeholder { color: var(--ra-muted); }
textarea.ra-input { resize: none; line-height: 1.5; }
.ra-note { font-size: 12px; color: var(--ra-muted); font-weight: 600; text-align: center; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.ra-quick { border: 1px solid var(--ra-line); border-radius: 14px; padding: 14px 18px; margin-top: 14px;
  display: flex; flex-direction: column; gap: 11px; }
.ra-quick div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ra-body); }
.ra-quick .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--ra-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .ra-pad, .ra-sec, .ra-contact, .ra-header, .ra-footer, .ra-hero-inner,
  .ra-breadcrumb, .ra-titlerow, .ra-gallery, .ra-body, .ra-listings { padding-left: 24px; padding-right: 24px; }
  .ra-cats { grid-template-columns: repeat(3, 1fr); }
  .ra-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-listings { grid-template-columns: 1fr; gap: 22px; }
  .ra-body { grid-template-columns: 1fr; }
  .ra-aside { position: static; }
  .ra-features { grid-template-columns: repeat(2, 1fr); }
  .ra-footer-top { grid-template-columns: repeat(3, 1fr); gap: 30px 32px; }
  .ra-footer-brandcol { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 680px) {
  .ra-nav { display: none; }
  .ra-burger { display: flex; }
  .ra-mobnav:not([hidden]) { display: block; }
  .ra-cats { grid-template-columns: repeat(2, 1fr); }
  .ra-grid { grid-template-columns: 1fr; }
  /* home hero: show the photo as a focused top band, dark text + compact search below */
  .ra-hero:not(.ra-hero-listing) { height: auto; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-bg { position: relative; height: 240px; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-bg img { object-position: center 45%; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-scrim { display: none; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-inner { position: static; display: block; padding-top: 22px; padding-bottom: 8px; }
  .ra-hero-copy { width: 100%; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-copy h1 { color: var(--ra-ink); font-size: 26px; margin-bottom: 8px; }
  .ra-hero:not(.ra-hero-listing) .ra-hero-copy .sub { color: var(--ra-body); margin-bottom: 16px; font-size: 15px; }
  .ra-hero:not(.ra-hero-listing) .ra-searchcard { border: 1px solid var(--ra-line); box-shadow: 0 8px 26px rgba(16,42,67,.12); }
  /* compact the search card on mobile (2-up fields, tighter) */
  .ra-search-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .ra-searchcard { padding: 14px; }
  .ra-searchcard .cap { margin-bottom: 8px; }
  .ra-field { padding: 6px 11px; }
  .ra-field select { font-size: 14px; }
  .ra-btn-lg { padding: 11px 18px; font-size: 14px; }
  .ra-sec-head { flex-wrap: wrap; gap: 6px; }
  .ra-listing-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* breadcrumb: drop the long current title (it repeats the h1 below), let it wrap */
  .ra-breadcrumb { flex-wrap: wrap; row-gap: 6px; font-size: 12.5px; padding-top: 14px; }
  .ra-breadcrumb .crumb-cur { display: none; }
  .ra-titlerow { flex-direction: column; align-items: stretch; }
  .ra-price { text-align: left; }
  .ra-price .acts { justify-content: flex-start; }
  /* gallery: cells lose their fixed height on mobile, so give each thumb an
     aspect-ratio (otherwise absolutely-positioned images collapse to 0 height) */
  .ra-gallery-grid { grid-template-columns: 1fr; height: auto; gap: 10px; }
  .ra-gallery-thumbs { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 10px; }
  .ra-thumb { height: auto; aspect-ratio: 16 / 11; }
  .ra-gallery-thumbs .ra-thumb { aspect-ratio: 4 / 3; }
  .ra-stats { grid-template-columns: repeat(2, 1fr); }
  .ra-specs-grid { grid-template-columns: 1fr; }
  .ra-spec:not(:nth-child(3n)) { border-right: none; }
  .ra-spec:nth-child(n+2) { border-top: 1px solid var(--ra-line); }
  .ra-features { grid-template-columns: 1fr; }
  .ra-footer { padding: 40px 24px 20px; }
  .ra-footer-top { grid-template-columns: 1fr 1fr; gap: 26px 24px; }
  .ra-footer-brandcol { grid-column: 1 / -1; }
  .ra-footer-news { grid-column: 1 / -1; }
  .ra-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ra-contact { font-size: 12px; }
  .ra-contact .item.mail { display: none; }
}

/* ---- Direction A: static/content pages (about, commisions, contact, map) ---- */
.ra-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ra-muted); margin-bottom: 16px; }
.ra-crumb a { color: var(--ra-blue); text-decoration: none; }
.ra-crumb a:hover { text-decoration: underline; }
.ra-crumb .cur { color: var(--ra-body); }

.ra-article, .ra-contactpage { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }
.ra-article-title { font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; line-height: 1.15; }
.ra-lead { font-size: 16px; color: var(--ra-body); line-height: 1.6; margin: 0 0 22px; }

.ra-prose { font-size: 15.5px; line-height: 1.75; color: var(--ra-body); }
.ra-prose h3 { font-size: 19px; font-weight: 800; color: var(--ra-ink); margin: 26px 0 10px; }
.ra-prose p { margin: 0 0 15px; }
.ra-prose-img { float: right; width: 300px; max-width: 42%; border-radius: 12px; margin: 4px 0 18px 22px; }

.ra-agent-card { border: 1px solid var(--ra-line); border-radius: 14px; padding: 20px; background: #fff;
  box-shadow: 0 4px 16px rgba(16,42,67,.06); }
.ra-agent-name { font-size: 16px; font-weight: 800; color: var(--ra-ink); }
.ra-agent-role { font-size: 13px; color: var(--ra-muted); margin: 2px 0 14px; }
.ra-agent-line { display: flex; align-items: center; gap: 9px; padding: 8px 0; color: var(--ra-body);
  font-weight: 600; font-size: 14.5px; text-decoration: none; border-top: 1px solid var(--ra-line); }
.ra-info-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; font-size: 14px;
  border-top: 1px solid var(--ra-line); }
.ra-info-row:first-of-type { border-top: none; }
.ra-info-row .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ra-muted); }
.ra-info-row a { color: var(--ra-blue); text-decoration: none; }

.ra-cform .ra-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ra-cform label { font-size: 13px; font-weight: 700; color: var(--ra-ink); }
.ra-cform input, .ra-cform textarea { width: 100%; border: 1px solid var(--ra-line); border-radius: 9px;
  padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--ra-ink); background: #fff; }
.ra-cform input:focus, .ra-cform textarea:focus { outline: none; border-color: var(--ra-blue);
  box-shadow: 0 0 0 3px rgba(21,85,138,.12); }
.ra-cform textarea { resize: vertical; }
.ra-captcha { display: flex; align-items: center; gap: 10px; }
.ra-captcha span { font-weight: 800; font-size: 16px; color: var(--ra-ink); }
.ra-captcha input { max-width: 110px; }

.ra-mapembed { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ra-line); }
.ra-mapembed iframe { display: block; width: 100%; height: 300px; border: 0; }

.ra-legend { margin: 22px 0 14px; }
.ra-legend-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ra-muted); margin-bottom: 10px; }
.ra-map-canvas { width: 100%; height: 640px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ra-line); z-index: 0; }
.tooltip-property-image { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.tooltip-property-title a { color: var(--ra-blue); font-weight: 700; text-decoration: none; }
.tooltip-on-map { width: 210px; }

@media (max-width: 860px) {
  .ra-article, .ra-contactpage { grid-template-columns: 1fr; gap: 24px; }
  .ra-prose-img { float: none; width: 100%; max-width: 100%; margin: 0 0 16px; }
}

/* ---- register-property form ---- */
.ra-regform { max-width: 860px; }
.ra-fieldset { border: 1px solid var(--ra-line); border-radius: 14px; padding: 20px 22px; margin: 0 0 22px; }
.ra-fieldset legend { font-size: 15px; font-weight: 800; color: var(--ra-ink); padding: 0 8px; }
.ra-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ra-cform select { width: 100%; border: 1px solid var(--ra-line); border-radius: 9px; padding: 11px 13px;
  font: inherit; font-size: 14.5px; color: var(--ra-ink); background: #fff; }
.ra-cform select:focus { outline: none; border-color: var(--ra-blue); box-shadow: 0 0 0 3px rgba(21,85,138,.12); }
.ra-cform input[type="file"] { width: 100%; font-size: 13.5px; color: var(--ra-body);
  border: 1px dashed var(--ra-line); border-radius: 9px; padding: 9px 12px; background: var(--ra-surface); }
.ra-notice { background: var(--ra-soft); border-radius: 12px; padding: 16px 18px; margin: 4px 0 20px; }
.ra-notice .lbl { margin: 0 0 4px; font-size: 13px; color: var(--ra-muted); }
.ra-notice .big { margin: 0; font-size: 17px; font-weight: 800; color: var(--ra-red); }
.ra-terms { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 0 22px; }
.ra-terms label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ra-body); }
.ra-alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px; }
.ra-alert.err { background: #fdecec; border: 1px solid #f5c2c2; color: #a11; }
.ra-alert.err ul { margin: 0; padding-left: 18px; }
.ra-alert.ok { background: #eafaf0; border: 1px solid #b6e6c8; color: #1a7a42; font-weight: 600; }
@media (max-width: 640px) { .ra-form-grid { grid-template-columns: 1fr; } }

/* ---- detail: related searches (keyword links) ---- */
.ra-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-related-links a { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--ra-line);
  border-radius: 20px; background: #fff; color: var(--ra-body); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: all .15s; }
.ra-related-links a:hover { border-color: var(--ra-blue); color: var(--ra-blue); background: var(--ra-soft); }

/* ---- error pages (404/500) ---- */
.ra-errpage { text-align: center; padding: 80px 20px 100px; }
.ra-err-code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--ra-blue); letter-spacing: -.03em; }
.ra-errpage h1 { font-size: 26px; font-weight: 800; margin: 14px 0 8px; }
.ra-errpage p { color: var(--ra-muted); font-size: 15.5px; margin: 0 auto 24px; max-width: 460px; }
.ra-err-actions { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
