/* ==========================================================================
   Real Estate — Design system
   Colors marked "CMS" are overridden at runtime from content/site.json
   ========================================================================== */
:root {
  --accent: #b8955a;            /* CMS: theme.accent */
  --ink: #0f1a24;               /* CMS: theme.dark   */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --ink-2: color-mix(in srgb, var(--ink) 88%, #fff);
  --text: #2a333d;
  --muted: #6c7480;
  --line: #e8e2d8;
  --bg: #faf8f4;
  --sand: #f3eee5;
  --surface: #ffffff;
  --success: #2f7d5b;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 36, .06), 0 2px 8px rgba(15, 26, 36, .05);
  --shadow: 0 10px 30px -10px rgba(15, 26, 36, .18), 0 4px 10px -6px rgba(15, 26, 36, .1);
  --shadow-lg: 0 30px 60px -20px rgba(15, 26, 36, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-sand { background: var(--sand); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease), border-color .3s;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { transform: translateY(-2px); background: #1fbe5b; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250, 248, 244, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 26, 36, .06);
  transition: background .4s, border-color .4s, box-shadow .4s, transform .45s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.brand img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: .01em; white-space: nowrap; line-height: 1; transition: color .4s; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; font-size: .93rem; font-weight: 500; color: var(--ink);
  border-radius: 999px; transition: color .3s, background .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { flex: none; }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(15,26,36,.12); background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; font-size: 1.3rem;
}

/* Transparent header over hero */
body.has-hero .site-header:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.has-hero .site-header:not(.scrolled) .nav a,
body.has-hero .site-header:not(.scrolled) .brand-name,
body.has-hero .site-header:not(.scrolled) .menu-btn { color: #fff; }
body.has-hero .site-header:not(.scrolled) .menu-btn { border-color: rgba(255,255,255,.35); }
body.has-hero .site-header:not(.scrolled) .brand.has-light .logo-dark { display: none; }
body.has-hero .site-header:not(.scrolled) .brand.has-light .logo-light { display: block; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(15,26,36,.35); }
.site-header.hide { transform: translateY(-100%); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 22, .55); opacity: 0; transition: opacity .4s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--ink); color: #fff; padding: 22px var(--gutter) 32px;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease);
  overflow-y: auto;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.drawer-top .brand-name { color: #fff; }
.drawer-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.3rem; }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 2.1rem; padding: 10px 0; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateX(24px); transition: opacity .5s, transform .5s var(--ease), color .3s;
}
.drawer-nav a .ic { font-size: 1.2rem; color: var(--accent); }
.drawer-nav a:hover { color: var(--accent); }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer-contact { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; color: rgba(255,255,255,.75); font-size: .95rem; }
.drawer-contact a, .drawer-contact span { display: flex; gap: 12px; align-items: center; }
.drawer-contact .ic { color: var(--accent); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink); isolation: isolate;
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; z-index: -2; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 9s linear; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,16,22,.55) 0%, rgba(10,16,22,.15) 35%, rgba(10,16,22,.35) 65%, rgba(10,16,22,.85) 100%),
    linear-gradient(90deg, rgba(10,16,22,.55) 0%, rgba(10,16,22,0) 70%);
}
.hero-content { max-width: 820px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 400; line-height: .98; margin-bottom: 24px; }
.hero h1 em { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 40px; }
.hero-dots { position: absolute; right: var(--gutter); bottom: 48px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .4s var(--ease); }
.hero-dots button.active { background: #fff; width: 54px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 2s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Search panel */
.search-panel {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 24px; padding: 10px; max-width: 940px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.search-tabs { display: flex; gap: 4px; padding: 4px 4px 10px; }
.search-tabs button {
  border: 0; background: transparent; color: rgba(255,255,255,.8); padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .3s, color .3s;
}
.search-tabs button.active { background: #fff; color: var(--ink); }
.search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 6px; background: #fff; border-radius: 18px; padding: 6px; }
.search-field { display: flex; flex-direction: column; padding: 8px 16px; border-radius: 14px; color: var(--ink); min-width: 0; transition: background .3s; }
.search-field:hover { background: var(--sand); }
.search-field + .search-field { position: relative; }
.search-field label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.search-field select, .search-field input { border: 0; background: transparent; padding: 2px 0; font-weight: 600; font-size: .98rem; outline: none; width: 100%; cursor: pointer; appearance: none; -webkit-appearance: none; }
.search-fields .btn { border-radius: 14px; padding: 0 30px; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat { text-align: center; padding: 8px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.1); }
.stat-value { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: #fff; }
.stat-value span { color: var(--accent); }
.stat-label { margin-top: 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Property cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(10,16,22,.5)); }
.card-badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; z-index: 2; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge .ic { width: .95em; height: .95em; }
.card-type { position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.card-price small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.card-title { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; margin: 8px 0 4px; letter-spacing: 0; line-height: 1.35; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin: 0; }
.card-loc .ic { color: var(--accent); }
.card-specs { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); margin-top: 18px; font-size: .9rem; color: var(--text); }
.card-specs li { display: flex; align-items: center; gap: 7px; }
.card-specs .ic { color: var(--muted); }
.card.is-closed .card-media img { filter: grayscale(.55); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 18px; }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,22,0) 30%, rgba(10,16,22,.78)); transition: background .5s; }
.cat:hover img { transform: scale(1.08); }
.cat-info { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat-info h3 { color: #fff; font-size: 2rem; margin: 0; }
.cat-info small { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: 4px; }
.cat-arrow { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; transition: background .4s, transform .4s var(--ease); flex: none; }
.cat:hover .cat-arrow { background: var(--accent); transform: rotate(-45deg); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-media { position: relative; padding: 0 0 60px 0; }
.about-media .img-main { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 82%; box-shadow: var(--shadow); }
.about-media .img-sub { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 8px solid var(--bg); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; left: -10px; top: 40px; background: var(--accent); color: #fff; padding: 22px 26px; border-radius: 18px; box-shadow: var(--shadow-lg); text-align: center; }
.about-badge strong { display: block; font-family: var(--serif); font-size: 2.8rem; line-height: 1; font-weight: 500; }
.about-badge span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.about-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.about-copy .rich { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--surface); border-radius: var(--radius); padding: 34px 28px; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, background .5s; position: relative; overflow: hidden;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 1.6rem; margin-bottom: 26px; transition: background .5s, color .5s; }
.service:hover .service-icon { background: var(--accent); color: #fff; }
.service h3 { font-size: 1.65rem; margin-bottom: 10px; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-num { position: absolute; right: 22px; top: 18px; font-family: var(--serif); font-size: 3rem; color: var(--line); line-height: 1; }

/* ---------- Testimonials ---------- */
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px; }
.testi-track::-webkit-scrollbar { display: none; }
.testi { margin: 0; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.testi-quote { position: absolute; right: 26px; top: 6px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--accent-soft); }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 18px; }
.testi blockquote { margin: 0 0 28px; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--ink); }
.testi-person { margin-top: auto; display: flex; gap: 14px; align-items: center; }
.testi-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-person strong { display: block; color: var(--ink); }
.testi-person span { font-size: .88rem; color: var(--muted); }
.slider-nav { display: flex; gap: 10px; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.15rem; transition: background .3s, color .3s, border-color .3s; }
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; color: #fff; padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 80px); isolation: isolate; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,16,22,.88) 0%, rgba(10,16,22,.55) 60%, rgba(10,16,22,.25)); }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 700px; }
.cta h2 em { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.cta p { color: rgba(255,255,255,.8); max-width: 520px; font-size: 1.08rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 32px 0; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
a.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 1.2rem; }
.contact-item small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-item span { color: var(--ink); font-weight: 600; word-break: break-word; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.map-frame { margin-top: clamp(40px, 6vw, 70px); border-radius: var(--radius); overflow: hidden; height: 380px; box-shadow: var(--shadow-sm); background: var(--sand); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-size: 1rem; outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--success) 12%, #fff); color: var(--success); }
.form-status.err { display: block; background: #fdecec; color: #b42318; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.68); padding: clamp(64px, 8vw, 100px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-about { margin: 22px 0 26px; max-width: 360px; font-size: .95rem; }
.site-footer .socials a { border-color: rgba(255,255,255,.15); color: #fff; }
.footer-contact { display: grid; gap: 14px; font-size: .95rem; }
.footer-contact a, .footer-contact span { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ic { color: var(--accent); margin-top: 4px; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .4s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* "← Admin" button — only shown when the site is opened inside the installed admin app */
.app-admin-btn {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 46;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 28px -10px rgba(15, 26, 36, .6); border: 1px solid rgba(255,255,255,.15);
}
body.has-mobile-bar .app-admin-btn { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(50px, 8vw, 100px)) 0 clamp(50px, 7vw, 90px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,22,.6), rgba(10,16,22,.85)); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 400; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }

/* ---------- Listings page ---------- */
.filters {
  position: relative; z-index: 5; margin-top: -44px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.filters-row { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 10px; }
.filters .field label { font-size: .68rem; margin-bottom: 6px; }
.filters .field input, .filters .field select { padding: 12px 14px; font-size: .95rem; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); transition: background .3s, color .3s; }
.seg button.active { background: var(--ink); color: #fff; }
.filters-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.filters-foot .right { display: flex; align-items: center; gap: 12px; }
.filters-foot select { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px; }
.filter-toggle { display: none; }
.results-meta { margin: 36px 0 22px; color: var(--muted); }
.results-meta strong { color: var(--ink); }
.empty { text-align: center; padding: 80px 20px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty h3 { font-size: 2rem; }

/* ---------- Property detail ---------- */
.prop-top { padding-top: calc(var(--header-h) + 28px); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 10px; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery .g-item { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--sand); position: relative; }
.gallery .g-item:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; }
.gallery.count-2 .g-item:nth-child(2) { grid-row: span 2; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.count-4 .g-item:nth-child(4) { grid-column: span 2; }
.gallery-all { position: absolute; right: 18px; bottom: 18px; z-index: 2; }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); padding: 40px 0 clamp(64px, 9vw, 110px); align-items: start; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prop-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 10px; }
.prop-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.prop-badges .badge { background: var(--sand); }
.prop-badges .badge-accent { background: var(--accent); }
.prop-badges .badge-dark { background: var(--ink); }
.prop-price { text-align: right; }
.prop-price .amount { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); font-weight: 600; line-height: 1; }
.prop-price small { color: var(--muted); font-size: .95rem; }
.prop-price .per { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 28px 0 8px; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.spec .ic { color: var(--accent); font-size: 1.4rem; }
.spec strong { font-size: 1.15rem; color: var(--ink); }
.spec small { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.prop-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.prop-section:last-child { border-bottom: 0; }
.prop-section h2 { font-size: 2.1rem; }
.rich p { color: var(--text); font-size: 1.04rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.prop-map { height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.prop-map iframe { width: 100%; height: 100%; border: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.agent-card { background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 4px); padding: 28px; box-shadow: var(--shadow-lg); }
.agent-card h3 { color: #fff; font-size: 1.8rem; margin-bottom: 6px; }
.agent-card p { color: rgba(255,255,255,.7); font-size: .95rem; }
.agent-card .field label { color: rgba(255,255,255,.6); }
.agent-card .field input, .agent-card .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.agent-card .field input:focus, .agent-card .field textarea:focus { background: rgba(255,255,255,.1); }
.agent-card .field textarea { min-height: 90px; }
.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.agent-card .form-grid { grid-template-columns: 1fr; gap: 12px; }
.agent-card .form-note { color: rgba(255,255,255,.5); }
.emi { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 26px; }
.emi h3 { font-size: 1.6rem; }
.emi-row { margin-bottom: 16px; }
.emi-row label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.emi-row label output { color: var(--ink); }
.emi input[type="range"] { width: 100%; accent-color: var(--accent); }
.emi-result { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--accent-soft); text-align: center; }
.emi-result strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--ink); line-height: 1.1; }
.emi-result span { font-size: .82rem; color: var(--muted); }
.share-row { display: flex; gap: 10px; }
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 16, .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.3rem; transition: background .3s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 20px; top: 20px; }
.lb-count { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .9rem; letter-spacing: .1em; }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--sand) 25%, #ece6db 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters-row { grid-template-columns: repeat(3, 1fr); }
  .filters-row .field-q { grid-column: 1 / -1; }
  .prop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .brand-name { font-size: 1.4rem; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .search-field:first-child { grid-column: 1 / -1; }
  .search-fields .btn { grid-column: 1 / -1; padding: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 160px; }
  .gallery .g-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .gallery.count-1 { grid-template-rows: 340px; }
  .gallery.count-2 { grid-template-columns: 1fr; grid-template-rows: 300px 200px; }
  .gallery.count-2 .g-item:nth-child(2) { grid-row: auto; }
  .gallery.count-4 .g-item:nth-child(4) { grid-column: auto; }
  .prop-price { text-align: left; }
}

@media (max-width: 640px) {
  .section-head-row { align-items: flex-start; }
  .hero { padding-bottom: 90px; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 36px; }
  .scroll-cue { display: none; }
  .search-panel { border-radius: 20px; padding: 8px; }
  .search-fields { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .testi-track { grid-auto-columns: 88%; gap: 14px; }
  .testi blockquote { font-size: 1.25rem; }
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
  .about-badge { left: 0; top: 20px; padding: 16px 18px; }
  .about-badge strong { font-size: 2.2rem; }
  .filter-toggle { display: inline-flex; }
  .filters { margin-top: -32px; padding: 14px; }
  .filters-row { grid-template-columns: 1fr 1fr; }
  .filters:not(.expanded) .filters-row .field:not(.field-q) { display: none; }
  .filters-foot { flex-direction: column; align-items: stretch; }
  .filters-foot .right { justify-content: space-between; }
  .seg { display: flex; }
  .seg button { flex: 1; }
  .sidebar { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .spec { padding: 14px 12px; }
  .spec strong { font-size: 1rem; }
  .gallery { grid-template-rows: 260px 120px; gap: 6px; border-radius: var(--radius-sm); }
  .gallery-all { right: 10px; bottom: 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 30px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 12px 8px; font-size: .86rem; }
  body.has-mobile-bar { padding-bottom: 76px; }
  body.has-mobile-bar .fab-whatsapp { display: none; }
  .fab-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
