/* ==========================================================================
   Global Constructions & Realtors (GCR) — Shared Design System  (v2)
   Lead-first Bangalore real-estate portal. Static mockup stylesheet.
   Vanilla CSS only. All brand values are defined as :root tokens; after the
   token block, only variables are used (never raw hex).

   SECTIONS
     1.  Design tokens
     2.  Reset / base
     3.  Layout — container, section, section-head, type utilities
     4.  Grids
     5.  Fade-up (IntersectionObserver hook)
     6.  Buttons
     7.  Badges
     8.  Topbar + site-header + main nav (dropdowns + MEGA-MENU)
     9.  Nav drawer (mobile, accordions)
     10. Hero + service-hero
     11. Searchbar
     12. Form controls (form-row / group / input / select / textarea / radio)
     13. Chips
     14. Media placeholder (.media-ph) + agent portrait + agent card
     15. Property card
     16. Filters (sidebar + drawer) + sortbar
     17. Compare tray + compare table
     18. Facts bar / spec table / amenities / gallery / lead card
     19. Service-page components (feature-grid / process / service-aside)
     20. Requirement-form components (intent-select / radio-card / aside / success)
     21. Breadcrumb / trust strip / stat / testimonial / cta-band / area-hero
     22. Tabs / accordion / modal / map placeholder
     23. Generic card + icon box + utilities
     24. Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --color-brand: #00b74a;
  --color-brand-dark: #009639;
  --color-brand-muted: #e8f8f0;
  --color-accent: #ff9800;
  --color-accent-dark: #f57c00;

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-raised: #f8fafb;
  --color-surface-dark: #1a1a1a;

  /* Text + lines */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-border: #e8e8e8;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00b74a 0%, #009639 100%);
  --gradient-accent: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  --gradient-line: linear-gradient(90deg, #00b74a 0%, #ff9800 100%);

  /* WhatsApp brand */
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c5e;

  /* Pure white (token so no raw hex appears outside :root) */
  --color-white: #ffffff;

  /* Media-placeholder gradient seeds (neutral / brand / accent tints) */
  --ph-neutral-1: #eef2f4;
  --ph-neutral-2: #e3eee8;
  --ph-g1-a: #e8f8f0; --ph-g1-b: #d6f0e2;
  --ph-g2-a: #eef2f4; --ph-g2-b: #dde7ec;
  --ph-g3-a: #fff3e0; --ph-g3-b: #ffe6c7;
  --ph-g4-a: #e9f6ef; --ph-g4-b: #e7eef8;
  --ph-map-a: #e9f3ee; --ph-map-b: #e4eef4;

  /* Translucent helpers (token-derived overlays / glass) */
  --color-overlay: rgba(26, 26, 26, 0.55);
  --color-overlay-strong: rgba(26, 26, 26, 0.78);
  --color-white-90: rgba(255, 255, 255, 0.90);
  --color-white-70: rgba(255, 255, 255, 0.70);
  --color-white-55: rgba(255, 255, 255, 0.55);
  --color-white-12: rgba(255, 255, 255, 0.12);
  --color-white-08: rgba(255, 255, 255, 0.08);
  --color-brand-ring: rgba(0, 183, 74, 0.18);

  /* Typography */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Type scale (clamped where useful) */
  --fs-hero: clamp(2.1rem, 1.3rem + 3.6vw, 3rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 2.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.95rem;
  --fs-label: 0.95rem;
  --fs-caption: 0.85rem;

  /* Radii */
  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-icon: 16px;
  --radius-input: 12px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-brand: 0 4px 20px rgba(0, 183, 74, 0.25);
  --shadow-accent: 0 4px 20px rgba(255, 152, 0, 0.30);
  --shadow-whatsapp: 0 4px 20px rgba(37, 211, 102, 0.30);
  --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Layout */
  --container: 1200px;
  --pad-x: 1rem;
  --gap: 1.5rem;

  /* Header heights */
  --topbar-h: 38px;
  --header-h: 70px;

  /* Motion */
  --t-fast: 0.18s ease;
  --t-base: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* z-index scale */
  --z-header: 100;
  --z-drawer: 200;
  --z-tray: 150;
  --z-modal: 300;
  --z-mobilebar: 140;
}

@media (min-width: 768px) { :root { --pad-x: 1.5rem; } }
@media (min-width: 1024px) { :root { --pad-x: 2rem; } }

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; color: var(--color-text-primary); }
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { color: var(--color-text-secondary); }

a { color: var(--color-brand-dark); text-decoration: none; }
a:hover { color: var(--color-brand); }

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea, button { font-family: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Visible brand focus ring (keyboard) */
:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Some pointer focus rings suppressed where we provide our own affordance */
.btn:focus:not(:focus-visible), .nav-link:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--color-brand-muted); color: var(--color-text-primary); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 400;
  background: var(--color-brand); color: var(--color-white);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0.5rem; color: var(--color-white); }

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   3. LAYOUT — container, section, section-head, type utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }

.section { padding-block: 2.5rem; background: var(--color-surface); }
.section--alt { background: var(--color-surface-raised); }
.section--dark { background: var(--color-surface-dark); color: var(--color-white-90); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
@media (min-width: 768px) { .section { padding-block: 4rem; } }
@media (min-width: 1024px) { .section { padding-block: 5rem; } }

/* Section head: eyebrow + H2 with ONE green-highlighted keyword + gradient underline */
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-brand-dark);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--gradient-line);
}
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { font-size: 1.05rem; }

/* The one highlighted keyword — wrap exactly one word in <span class="hl"> */
.hl {
  position: relative; color: var(--color-brand-dark); white-space: nowrap;
}
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.28em;
  background: var(--gradient-line); border-radius: var(--radius-pill);
  opacity: 0.55; z-index: -1;
}

/* Type utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-brand { color: var(--color-brand-dark); }
.text-accent { color: var(--color-accent-dark); }
.caption { font-size: var(--fs-caption); font-weight: 500; color: var(--color-text-muted); }
.small { font-size: var(--fs-small); }
.lead { font-size: 1.1rem; color: var(--color-text-secondary); }
.eyebrow-plain { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: var(--fs-small); color: var(--color-brand-dark);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(3px); }

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   4. GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Generic two-column split that stacks on mobile */
.split {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.split--aside { grid-template-columns: 1fr; }
@media (min-width: 960px) { .split--aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }

/* --------------------------------------------------------------------------
   5. FADE-UP (IntersectionObserver hook — see app.js)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-up.is-in { opacity: 1; transform: none; }
.fade-up[data-delay="1"] { transition-delay: 0.08s; }
.fade-up[data-delay="2"] { transition-delay: 0.16s; }
.fade-up[data-delay="3"] { transition-delay: 0.24s; }
.fade-up[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  line-height: 1; white-space: nowrap; text-align: center;
  padding: 0.78rem 1.4rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--brand { background: var(--gradient-brand); color: var(--color-white); }
.btn--brand:hover { color: var(--color-white); box-shadow: var(--shadow-brand); }

.btn--accent { background: var(--gradient-accent); color: var(--color-white); }
.btn--accent:hover { color: var(--color-white); box-shadow: var(--shadow-accent); }

.btn--whatsapp { background: var(--color-whatsapp); color: var(--color-white); }
.btn--whatsapp:hover { color: var(--color-white); background: var(--color-whatsapp-dark); box-shadow: var(--shadow-whatsapp); }

.btn--dark { background: var(--color-surface-dark); color: var(--color-white); }
.btn--dark:hover { color: var(--color-white); box-shadow: var(--shadow-card-hover); }

.btn--ghost {
  background: var(--color-surface); color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn--ghost:hover { color: var(--color-brand-dark); border-color: var(--color-brand); box-shadow: var(--shadow-card); }

.btn--outline-brand {
  background: var(--color-surface); color: var(--color-brand-dark); border-color: var(--color-brand);
}
.btn--outline-brand:hover { background: var(--color-brand-muted); color: var(--color-brand-dark); }

/* On dark surfaces */
.btn--on-dark { background: var(--color-white-12); color: var(--color-white); border-color: var(--color-white-12); }
.btn--on-dark:hover { color: var(--color-white); background: var(--color-white-08); }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 0.5rem 0.95rem; font-size: var(--fs-caption); }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--lg svg { width: 20px; height: 20px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   7. BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-caption); font-weight: 600; line-height: 1;
  padding: 0.34rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--color-surface-raised); color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.badge svg { width: 13px; height: 13px; }
.badge--sale { background: var(--color-brand); color: var(--color-white); border-color: transparent; }
.badge--rent { background: var(--color-accent); color: var(--color-white); border-color: transparent; }
.badge--lease { background: var(--color-surface-dark); color: var(--color-white); border-color: transparent; }
.badge--pg { background: var(--color-accent-dark); color: var(--color-white); border-color: transparent; }
.badge--bda { background: var(--color-brand-muted); color: var(--color-brand-dark); border-color: var(--color-brand); }
.badge--featured { background: var(--gradient-accent); color: var(--color-white); border-color: transparent; }
.badge--verified { background: var(--color-brand-muted); color: var(--color-brand-dark); border-color: transparent; }
.badge--verified svg { color: var(--color-brand); }
.badge--muted { background: var(--color-surface-raised); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   8. TOPBAR + SITE HEADER + NAV (dropdowns + MEGA-MENU)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--color-surface-dark); color: var(--color-white-70);
  font-size: var(--fs-caption);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--topbar-h); gap: 1rem; flex-wrap: wrap;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 0.9rem; }
.topbar a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--color-white-70); font-weight: 500;
}
.topbar a:hover { color: var(--color-white); }
.topbar svg { width: 14px; height: 14px; }
.topbar a.topbar__wa:hover { color: var(--color-whatsapp); }
.topbar__sep { width: 1px; height: 14px; background: var(--color-white-12); }
.topbar__msg { color: var(--color-white-55); }
@media (max-width: 600px) { .topbar__msg { display: none; } }

/* Sticky header shell */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}

/* Logo / wordmark */
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--color-text-primary); }
.logo:hover { color: var(--color-text-primary); }
.logo__glyph {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; color: var(--color-white);
  background: var(--gradient-brand); box-shadow: var(--shadow-brand);
}
.logo__glyph svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__mark { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; }
.logo__mark span { color: var(--color-brand); }
.logo__sub { font-size: 0.68rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.01em; }
@media (max-width: 420px) { .logo__sub { display: none; } }

/* Primary nav (desktop) */
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > ul > li { position: relative; }

.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: var(--fs-label); color: var(--color-text-primary);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover, .has-dropdown:hover > .nav-link,
.has-dropdown.is-open > .nav-link, .has-mega.is-open > .nav-link {
  color: var(--color-brand-dark); background: var(--color-brand-muted);
}
.nav-link .chev { width: 15px; height: 15px; transition: transform var(--t-fast); }
.has-dropdown.is-open > .nav-link .chev, .has-mega.is-open > .nav-link .chev { transform: rotate(180deg); }

.header-cta { margin-left: 0.5rem; display: inline-flex; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

/* ---- Simple dropdown (Services / Localities) ---- */
.nav-dropdown, .mega-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 16px;
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: calc(var(--z-header) + 5);
}
.has-dropdown:hover > .nav-dropdown, .has-dropdown.is-open > .nav-dropdown,
.has-mega:hover > .mega-menu, .has-mega.is-open > .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-dropdown { min-width: 248px; padding: 0.5rem; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.7rem; border-radius: 10px;
  font-size: var(--fs-small); font-weight: 500; color: var(--color-text-primary);
}
.nav-dropdown a:hover { background: var(--color-brand-muted); color: var(--color-brand-dark); }
.nav-dropdown a svg { width: 18px; height: 18px; color: var(--color-brand); flex: none; }
.nav-dropdown a small { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 0.78rem; }

/* ---- MEGA-MENU (Find Property) — multi-column panel ---- */
.has-mega { position: static; }            /* anchor mega to header width */
.mega-menu {
  left: 50%; transform: translate(-50%, 8px);
  width: min(960px, calc(100vw - 2 * var(--pad-x)));
  padding: 1.5rem;
}
.has-mega:hover > .mega-menu, .has-mega.is-open > .mega-menu { transform: translate(-50%, 0); }
.mega-menu__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.mega-col__title {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  color: var(--color-text-primary); margin-bottom: 0.65rem;
  padding-bottom: 0.55rem; border-bottom: 1px solid var(--color-border);
}
.mega-col__title svg { width: 16px; height: 16px; color: var(--color-brand); }
.mega-col__title .badge { margin-left: auto; }
.mega-col ul { display: flex; flex-direction: column; gap: 0.1rem; }
.mega-col a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.46rem 0.55rem; border-radius: 9px;
  font-size: var(--fs-small); color: var(--color-text-secondary); font-weight: 500;
}
.mega-col a:hover { background: var(--color-brand-muted); color: var(--color-brand-dark); }
.mega-col a svg { width: 16px; height: 16px; color: var(--color-brand); flex: none; }
.mega-menu__foot {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-border);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.mega-menu__foot .caption { margin-right: 0.25rem; }

/* Hide hover behaviour below desktop; JS toggles .is-open via click instead */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .has-dropdown:hover > .nav-dropdown, .has-mega:hover > .mega-menu {
    opacity: 0; visibility: hidden;
  }
}

/* Hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-left: auto;
  border: 1px solid var(--color-border); color: var(--color-text-primary);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:hover { background: var(--color-brand-muted); color: var(--color-brand-dark); }
@media (min-width: 1024px) { .nav-toggle { display: none; } .main-nav { display: block; } }

/* --------------------------------------------------------------------------
   9. NAV DRAWER (mobile, accordions)
   -------------------------------------------------------------------------- */
.nav-backdrop {
  position: fixed; inset: 0; background: var(--color-overlay);
  opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility var(--t-base);
  z-index: var(--z-drawer);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(360px, 88vw); background: var(--color-surface);
  transform: translateX(100%); transition: transform var(--t-base);
  z-index: calc(var(--z-drawer) + 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-pop);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad-x); border-bottom: 1px solid var(--color-border);
}
.nav-drawer__close {
  display: inline-flex; width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; border: 1px solid var(--color-border);
}
.nav-drawer__close svg { width: 22px; height: 22px; }
.nav-drawer__body { flex: 1; overflow-y: auto; padding: 0.5rem var(--pad-x) 1.25rem; }
.nav-drawer__foot {
  padding: 1rem var(--pad-x); border-top: 1px solid var(--color-border);
  display: grid; gap: 0.6rem;
}

.drawer-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 0.4rem; font-weight: 600; font-size: 1.05rem;
  color: var(--color-text-primary); border-bottom: 1px solid var(--color-border);
}
.drawer-link svg { width: 18px; height: 18px; color: var(--color-brand); }

/* Accordion inside drawer */
.drawer-acc { border-bottom: 1px solid var(--color-border); }
.drawer-acc__btn {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.85rem 0.4rem; font-weight: 600; font-size: 1.05rem; text-align: left;
  color: var(--color-text-primary);
}
.drawer-acc__btn > svg:first-child { width: 18px; height: 18px; color: var(--color-brand); }
.drawer-acc__btn .chev { width: 20px; height: 20px; margin-left: auto; color: var(--color-text-muted); transition: transform var(--t-fast); }
.drawer-acc.is-open .drawer-acc__btn .chev { transform: rotate(180deg); }
.drawer-acc__panel { display: none; padding: 0.25rem 0 0.85rem 0.6rem; }
.drawer-acc.is-open .drawer-acc__panel { display: block; }
.drawer-acc__panel a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.5rem; border-radius: 9px;
  font-size: var(--fs-small); font-weight: 500; color: var(--color-text-secondary);
}
.drawer-acc__panel a:hover { background: var(--color-brand-muted); color: var(--color-brand-dark); }
.drawer-acc__panel a svg { width: 15px; height: 15px; color: var(--color-brand); flex: none; }
.drawer-acc__subhead {
  font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted);
  padding: 0.6rem 0.5rem 0.25rem;
}

/* --------------------------------------------------------------------------
   10. HERO + SERVICE-HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--color-surface); padding-block: 2.5rem; }
.hero--alt { background: var(--color-surface-raised); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 10%, var(--color-brand-muted) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 90%, var(--ph-g3-a) 0%, transparent 60%);
  opacity: 0.7;
}
.hero .container { position: relative; z-index: 1; }
@media (min-width: 768px) { .hero { padding-block: 3.5rem; } }
@media (min-width: 1024px) { .hero { padding-block: 4.5rem; } }

.hero__grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.hero h1 { margin-bottom: 1rem; }
.hero__lede { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 48ch; }

/* Service hero — split copy + agent portrait */
.service-hero { background: var(--color-surface-raised); padding-block: 2.5rem; }
@media (min-width: 768px) { .service-hero { padding-block: 4rem; } }
.service-hero__grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .service-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.service-hero h1 { margin-bottom: 1rem; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   11. SEARCHBAR (Buy/Rent tabs + Type/Location/Budget + Search)
   -------------------------------------------------------------------------- */
.searchbar {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden;
}
.searchbar__tabs { display: flex; gap: 0.25rem; padding: 0.5rem 0.5rem 0; }
.search-tab {
  flex: 0 0 auto; padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-small); color: var(--color-text-secondary);
}
.search-tab:hover { color: var(--color-brand-dark); }
.search-tab.is-active { background: var(--gradient-brand); color: var(--color-white); box-shadow: var(--shadow-brand); }
.searchbar__row {
  display: grid; gap: 0.75rem; padding: 0.85rem; grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 720px) { .searchbar__row { grid-template-columns: repeat(3, 1fr) auto; } }
.searchbar__field { display: flex; flex-direction: column; gap: 0.3rem; }
.searchbar__field > label { font-size: var(--fs-caption); font-weight: 600; color: var(--color-text-muted); padding-left: 0.5rem; }
.searchbar .btn--brand { height: 48px; }

/* --------------------------------------------------------------------------
   12. FORM CONTROLS
   -------------------------------------------------------------------------- */
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: repeat(2, 1fr); }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-primary); }
.form-label .req { color: var(--color-accent-dark); }
.form-hint { font-size: var(--fs-caption); color: var(--color-text-muted); }

.input, .select, .textarea {
  width: 100%; padding: 0.7rem 0.9rem;
  font-size: var(--fs-small); color: var(--color-text-primary);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-input); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-ring);
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center;
}
.input--with-icon { padding-left: 2.5rem; }
.field-icon { position: relative; }
.field-icon > svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-muted); pointer-events: none; }

/* Radio + checkbox groups */
.radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border); font-size: var(--fs-small); font-weight: 500;
  cursor: pointer; transition: var(--t-fast);
}
.radio-pill input { accent-color: var(--color-brand); }
.radio-pill:hover { border-color: var(--color-brand); }
.radio-pill:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-muted); color: var(--color-brand-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. CHIPS
   -------------------------------------------------------------------------- */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  font-size: var(--fs-small); font-weight: 500; cursor: pointer;
  background: var(--color-surface); color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border); transition: var(--t-fast);
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }
.chip.is-selected {
  background: var(--color-brand-muted); border-color: var(--color-brand);
  color: var(--color-brand-dark); font-weight: 600;
}
.chip.is-selected .chip__check { display: inline-flex; }
.chip__check { display: none; }
/* Link chips (popular searches) */
.chip--link { background: var(--color-surface-raised); }
.chip--link:hover { background: var(--color-brand-muted); }

/* --------------------------------------------------------------------------
   14. MEDIA PLACEHOLDER + AGENT PORTRAIT + AGENT CARD
   -------------------------------------------------------------------------- */
.media-ph {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--ph-g1-a) 0%, var(--ph-g1-b) 100%);
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--color-brand-dark);
  isolation: isolate;
}
.media-ph::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.media-ph__motif { position: relative; z-index: 1; width: 64px; height: 64px; opacity: 0.55; }
.media-ph__motif svg { width: 100%; height: 100%; stroke-width: 1.5; }
.media-ph__label {
  position: relative; z-index: 1; margin-top: 0.35rem; font-size: var(--fs-caption);
  font-weight: 600; color: var(--color-text-muted); text-align: center;
}
.media-ph__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.media-ph--wide { aspect-ratio: 16 / 9; }
.media-ph--tall { aspect-ratio: 3 / 4; }
.media-ph--thumb { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.media-ph--square { aspect-ratio: 1 / 1; }
/* gradient seeds */
.media-ph--g1 { background: linear-gradient(135deg, var(--ph-g1-a), var(--ph-g1-b)); }
.media-ph--g2 { background: linear-gradient(135deg, var(--ph-g2-a), var(--ph-g2-b)); }
.media-ph--g3 { background: linear-gradient(135deg, var(--ph-g3-a), var(--ph-g3-b)); }
.media-ph--g4 { background: linear-gradient(135deg, var(--ph-g4-a), var(--ph-g4-b)); }

/* Corner overlays for property media */
.media-ph__badges { position: absolute; z-index: 2; top: 0.7rem; left: 0.7rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.media-ph__chip {
  position: absolute; z-index: 2; bottom: 0.7rem; right: 0.7rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.55rem; border-radius: var(--radius-pill);
  background: var(--color-overlay-strong); color: var(--color-white);
  font-size: var(--fs-caption); font-weight: 600;
}
.media-ph__chip svg { width: 13px; height: 13px; }
.media-ph__compare {
  position: absolute; z-index: 2; top: 0.7rem; right: 0.7rem;
}

/* Compare checkbox affordance over media */
.compare-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.6rem; border-radius: var(--radius-pill);
  background: var(--color-white-90); color: var(--color-text-primary);
  font-size: var(--fs-caption); font-weight: 600; cursor: pointer;
  border: 1px solid var(--color-border); user-select: none;
}
.compare-toggle input { accent-color: var(--color-brand); }
.compare-toggle:hover { color: var(--color-brand-dark); }

/* ---- Agent portrait (Vaseem Khan placeholder) ---- */
.agent-portrait {
  position: relative; display: inline-block; max-width: 360px; width: 100%;
}
.agent-portrait__frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--ph-g1-a) 0%, var(--ph-g4-b) 100%);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-card-hover), 0 0 0 4px var(--color-brand-ring);
  display: grid; place-items: center;
}
.agent-portrait__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.4;
  background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.agent-portrait__silhouette { position: relative; z-index: 1; width: 46%; color: var(--color-brand); opacity: 0.5; }
.agent-portrait__silhouette svg { width: 100%; height: auto; stroke-width: 1.5; }
.agent-portrait__ring {
  position: absolute; inset: -10px; border-radius: 30px; z-index: -1;
  background: var(--gradient-brand); opacity: 0.12; filter: blur(2px);
}
.agent-portrait__badge {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  background: var(--color-surface); box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border); white-space: nowrap;
}
.agent-portrait__badge svg { width: 16px; height: 16px; color: var(--color-brand); }
.agent-portrait__caption {
  margin-top: 1.6rem; text-align: center; font-size: var(--fs-small);
}
.agent-portrait__caption strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--color-text-primary); }
.agent-portrait__caption span { color: var(--color-text-muted); font-size: var(--fs-caption); }
.agent-portrait__exp {
  position: absolute; top: 1rem; right: -0.5rem; z-index: 2;
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--color-white);
  box-shadow: var(--shadow-accent); text-align: center; line-height: 1.05;
}
.agent-portrait__exp b { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.agent-portrait__exp small { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Agent card variant (portrait + name/role + Call/WhatsApp) ---- */
.agent-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.25rem; box-shadow: var(--shadow-card);
}
.agent-card__photo {
  flex: none; width: 88px; height: 110px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--ph-g1-a), var(--ph-g4-b));
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--color-brand-ring);
}
.agent-card__photo svg { width: 44px; height: 44px; color: var(--color-brand); opacity: 0.55; }
.agent-card__body { flex: 1; min-width: 0; }
.agent-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.agent-card__role { font-size: var(--fs-caption); color: var(--color-text-muted); margin-bottom: 0.6rem; }
.agent-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   15. PROPERTY CARD
   -------------------------------------------------------------------------- */
.property-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-brand-muted); }
.property-card__media { aspect-ratio: 4 / 3; border-radius: 0; }
.property-card__media.media-ph { border-radius: 0; }
.property-card__body { padding: 1.1rem 1.25rem 0.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.property-card__price {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--color-text-primary);
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.property-card__price .per {
  font-family: var(--font-body); font-size: var(--fs-caption); font-weight: 500; color: var(--color-text-muted);
}
.property-card__rent .unit { font-size: 0.95rem; font-weight: 600; color: var(--color-text-secondary); }
.property-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.property-card__title a { color: var(--color-text-primary); }
.property-card__title a:hover { color: var(--color-brand-dark); }
.property-card__locality {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-small); color: var(--color-text-secondary);
}
.property-card__locality svg { width: 15px; height: 15px; color: var(--color-brand); flex: none; }

.property-card__specs {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding-top: 0.5rem; margin-top: auto;
  border-top: 1px dashed var(--color-border);
}
.spec {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: var(--fs-caption); font-weight: 500; color: var(--color-text-secondary);
}
.spec svg { width: 15px; height: 15px; color: var(--color-text-muted); }

.property-card__footer {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem 1.1rem;
}
.property-card__poster { font-size: var(--fs-caption); color: var(--color-text-muted); margin-right: auto; }
.property-card__poster strong { color: var(--color-text-secondary); font-weight: 600; }
.property-card__footer .btn { flex: none; }
.property-card__footer .btn--whatsapp.btn--sm { padding: 0.5rem; width: 38px; height: 38px; }

/* List layout variant (search view toggle) */
.results.is-list .property-card { flex-direction: row; }
.results.is-list .property-card__media { aspect-ratio: auto; width: 38%; min-width: 200px; }
.results.is-list .property-card__body { padding-top: 1.25rem; }
@media (max-width: 640px) {
  .results.is-list .property-card { flex-direction: column; }
  .results.is-list .property-card__media { width: 100%; aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   16. FILTERS (sidebar + drawer) + SORTBAR
   -------------------------------------------------------------------------- */
.filters {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow-card);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filters__head h3 { font-size: 1.15rem; }
.filter-group { padding-block: 1rem; border-top: 1px solid var(--color-border); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group__title { font-size: var(--fs-small); font-weight: 700; margin-bottom: 0.7rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.45rem; }
.filter-check { display: flex; align-items: center; gap: 0.55rem; font-size: var(--fs-small); cursor: pointer; }
.filter-check input { accent-color: var(--color-brand); width: 16px; height: 16px; }
.filter-check .count { margin-left: auto; color: var(--color-text-muted); font-size: var(--fs-caption); }

.range-row { display: flex; gap: 0.6rem; align-items: center; }
.range-row .select, .range-row .input { padding-block: 0.55rem; }

/* Filters as a drawer on mobile */
.filters-drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  visibility: hidden; opacity: 0; transition: opacity var(--t-base), visibility var(--t-base);
}
.filters-drawer.is-open { visibility: visible; opacity: 1; }
.filters-drawer__backdrop { position: absolute; inset: 0; background: var(--color-overlay); }
.filters-drawer__panel {
  position: absolute; left: 0; bottom: 0; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--color-surface); border-radius: 22px 22px 0 0; padding: 1.25rem var(--pad-x) 1.5rem;
  transform: translateY(100%); transition: transform var(--t-base);
}
.filters-drawer.is-open .filters-drawer__panel { transform: translateY(0); }
.filters-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }

/* Sortbar */
.sortbar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.85rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; box-shadow: var(--shadow-card);
}
.sortbar__count { font-weight: 600; }
.sortbar__count strong { color: var(--color-brand-dark); }
.sortbar__spacer { margin-left: auto; }
.sortbar .select { width: auto; min-width: 170px; }
.view-toggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.view-toggle button {
  display: grid; place-items: center; width: 40px; height: 38px; color: var(--color-text-muted);
}
.view-toggle button svg { width: 18px; height: 18px; }
.view-toggle button.is-active { background: var(--color-brand-muted); color: var(--color-brand-dark); }
.view-toggle button:hover { color: var(--color-brand-dark); }
.filters-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }

/* --------------------------------------------------------------------------
   17. COMPARE TRAY + COMPARE TABLE
   -------------------------------------------------------------------------- */
.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tray);
  background: var(--color-surface-dark); color: var(--color-white);
  transform: translateY(110%); transition: transform var(--t-base);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
.compare-tray.is-open { transform: translateY(0); }
.compare-tray__inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; flex-wrap: wrap; }
.compare-tray__label { font-weight: 700; font-family: var(--font-head); }
.compare-tray__label span { color: var(--color-brand); }
.compare-tray__items { display: flex; gap: 0.5rem; flex: 1; flex-wrap: wrap; min-width: 0; }
.compare-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem; border-radius: var(--radius-pill);
  background: var(--color-white-12); font-size: var(--fs-caption); font-weight: 500;
  max-width: 220px;
}
.compare-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-pill button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--color-white-70); }
.compare-pill button:hover { color: var(--color-white); background: var(--color-white-12); }
.compare-tray__actions { display: flex; gap: 0.5rem; align-items: center; }

/* Compare table (sticky first column, up to 4 + add slot) */
.compare-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--color-border); }
.compare-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; background: var(--color-surface); }
.compare-table th, .compare-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.compare-table thead th { background: var(--color-surface-raised); }
.compare-table .row-label {
  position: sticky; left: 0; z-index: 2; background: var(--color-surface-raised);
  font-weight: 600; color: var(--color-text-primary); min-width: 150px;
  box-shadow: 2px 0 0 var(--color-border);
}
.compare-table tbody tr:nth-child(even) .row-label { background: var(--color-surface); }
.compare-table td.is-best { background: var(--color-brand-muted); }
.compare-table td.is-best .pill-best { color: var(--color-brand-dark); }
.pill-best {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-caption);
  font-weight: 700; color: var(--color-brand-dark);
}
.compare-add-slot { display: grid; place-items: center; gap: 0.5rem; min-width: 180px; color: var(--color-text-muted); }
.compare-add-slot svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   18. FACTS BAR / SPEC TABLE / AMENITIES / GALLERY / LEAD CARD (detail page)
   -------------------------------------------------------------------------- */
.facts-bar {
  display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 16px; padding: 1.25rem; box-shadow: var(--shadow-card);
}
@media (min-width: 720px) { .facts-bar { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; align-items: center; gap: 0.7rem; }
.fact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-brand-muted); color: var(--color-brand-dark); flex: none; }
.fact__icon svg { width: 20px; height: 20px; }
.fact__val { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.fact__label { font-size: var(--fs-caption); color: var(--color-text-muted); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 0.7rem 0.5rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: var(--fs-small); }
.spec-table th { color: var(--color-text-muted); font-weight: 600; width: 45%; }
.spec-table td { font-weight: 500; }

.amenity-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }
.amenity { display: flex; align-items: center; gap: 0.65rem; font-size: var(--fs-small); font-weight: 500; }
.amenity .icon-box { width: 40px; height: 40px; margin: 0; flex: none; }
.amenity .icon-box svg { width: 20px; height: 20px; }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; }
.gallery__main { aspect-ratio: 16 / 10; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery__thumb { cursor: pointer; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; }
.gallery__thumb.is-active { border-color: var(--color-brand); }
.gallery__thumb .media-ph { border-radius: 0; }

/* Lead card (sticky enquiry) */
.lead-card {
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.4rem; box-shadow: var(--shadow-card);
}
@media (min-width: 960px) { .lead-card { position: sticky; top: calc(var(--header-h) + 1rem); } }
.lead-card__agent { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
.lead-card__agent .agent-card__photo { width: 56px; height: 70px; }
.lead-card__price { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.lead-card__actions { display: grid; gap: 0.6rem; margin: 1rem 0; }
@media (min-width: 480px) { .lead-card__actions { grid-template-columns: 1fr 1fr; } }
.lead-card__divider { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text-muted); font-size: var(--fs-caption); margin: 1rem 0; }
.lead-card__divider::before, .lead-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.lead-card__post { text-align: center; margin-top: 0.85rem; font-size: var(--fs-small); }

/* Mobile sticky lead/contact bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem var(--pad-x); background: var(--color-surface);
  border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* --------------------------------------------------------------------------
   19. SERVICE-PAGE COMPONENTS (feature-grid / process / service-aside)
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-tile {
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-brand-muted); }
.feature-tile h3 { font-size: 1.2rem; margin: 0.9rem 0 0.4rem; }
.feature-tile p { font-size: var(--fs-small); }

/* Process — numbered steps */
.process { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative; background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem 1.25rem 1.25rem; box-shadow: var(--shadow-card);
}
.process-step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--gradient-brand); color: var(--color-white); box-shadow: var(--shadow-brand);
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.process-step p { font-size: var(--fs-small); }
/* connector line on desktop */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 38px; right: -0.75rem; width: 1.5rem; height: 2px;
    background: var(--gradient-line); opacity: 0.5;
  }
}

.service-aside {
  background: var(--color-brand-muted); border: 1px solid var(--color-brand);
  border-radius: var(--radius-card); padding: 1.5rem;
}
.service-aside h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-aside ul.checklist { display: grid; gap: 0.55rem; margin: 1rem 0; }
.checklist li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-small); color: var(--color-text-secondary); }
.checklist li svg { width: 18px; height: 18px; color: var(--color-brand); flex: none; margin-top: 0.1rem; }

/* --------------------------------------------------------------------------
   20. REQUIREMENT-FORM COMPONENTS (intent engine)
   -------------------------------------------------------------------------- */
.intent-select { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .intent-select { grid-template-columns: repeat(5, 1fr); } }
.radio-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  padding: 1rem; border: 2px solid var(--color-border); border-radius: 16px;
  background: var(--color-surface); cursor: pointer; transition: var(--t-fast);
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-brand-muted); color: var(--color-brand-dark); }
.radio-card__icon svg { width: 20px; height: 20px; }
.radio-card__label { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.radio-card__sub { font-size: var(--fs-caption); color: var(--color-text-muted); }
.radio-card:hover { border-color: var(--color-brand); }
.radio-card:has(input:checked), .radio-card.is-selected {
  border-color: var(--color-brand); background: var(--color-brand-muted);
  box-shadow: var(--shadow-brand);
}
.radio-card:has(input:checked) .radio-card__icon { background: var(--color-brand); color: var(--color-white); }
.radio-card__tick { position: absolute; top: 0.7rem; right: 0.7rem; opacity: 0; color: var(--color-brand); }
.radio-card:has(input:checked) .radio-card__tick { opacity: 1; }

/* Intent summary line */
.intent-summary {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding: 0.75rem 1rem; border-radius: 12px; background: var(--color-surface-raised);
  border: 1px dashed var(--color-border); font-size: var(--fs-small); color: var(--color-text-secondary);
}
.intent-summary svg { width: 17px; height: 17px; color: var(--color-brand); }
.intent-summary strong { color: var(--color-text-primary); }

.requirement-aside {
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card);
}
.requirement-aside h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.reassure { display: grid; gap: 0.85rem; }
.reassure li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--fs-small); }
.reassure .icon-box { width: 38px; height: 38px; margin: 0; flex: none; }
.reassure .icon-box svg { width: 19px; height: 19px; }
.reassure strong { display: block; color: var(--color-text-primary); }
.reassure span { color: var(--color-text-muted); font-size: var(--fs-caption); }

/* Success confirmation (hidden until submit) */
.form-success {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--color-brand-muted); border: 2px solid var(--color-brand);
  border-radius: var(--radius-card);
}
.form-success__icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--gradient-brand); color: var(--color-white); box-shadow: var(--shadow-brand);
}
.form-success__icon svg { width: 36px; height: 36px; }
.form-success h2 { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   21. BREADCRUMB / TRUST STRIP / STAT / TESTIMONIAL / CTA-BAND / AREA-HERO
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: var(--fs-caption); color: var(--color-text-muted); padding-block: 0.85rem; }
.breadcrumb a { color: var(--color-text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--color-brand-dark); }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb [aria-current] { color: var(--color-text-primary); font-weight: 600; }

.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.trust-strip__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-small); font-weight: 600; color: var(--color-text-secondary); }
.trust-strip__item svg { width: 18px; height: 18px; color: var(--color-brand); }

.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.8rem); color: var(--color-brand-dark); line-height: 1; }
.stat__num .unit { color: var(--color-accent-dark); }
.stat__label { font-size: var(--fs-small); color: var(--color-text-secondary); margin-top: 0.3rem; }
.section--dark .stat__num { color: var(--color-brand); }
.section--dark .stat__label { color: var(--color-white-70); }

.testimonial {
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.75rem; box-shadow: var(--shadow-card); height: 100%;
}
.testimonial__stars { display: inline-flex; gap: 0.15rem; color: var(--color-accent); margin-bottom: 0.75rem; }
.testimonial__stars svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.testimonial__quote { font-size: 1.05rem; color: var(--color-text-primary); margin-bottom: 1rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.7rem; }
.testimonial__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand-muted); color: var(--color-brand-dark); font-family: var(--font-head); font-weight: 700; flex: none; }
.testimonial__name { font-weight: 600; font-size: var(--fs-small); }
.testimonial__meta { font-size: var(--fs-caption); color: var(--color-text-muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px;
  background: var(--gradient-brand); color: var(--color-white);
  padding: 2.5rem var(--pad-x); text-align: center;
}
.cta-band--accent { background: var(--gradient-accent); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px); background-size: 22px 22px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--color-white); margin-bottom: 0.6rem; }
.cta-band p { color: var(--color-white-90); margin-bottom: 1.5rem; max-width: 56ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta-band .btn--brand, .cta-band .btn--accent { background: var(--color-white); color: var(--color-brand-dark); }
.cta-band .btn--brand:hover, .cta-band .btn--accent:hover { color: var(--color-brand-dark); background: var(--color-white); }
.cta-band--accent .btn--brand { color: var(--color-accent-dark); }

/* Area hero (locality pages) */
.area-hero {
  position: relative; overflow: hidden; color: var(--color-white);
  background: linear-gradient(135deg, rgba(26,26,26,0.65), rgba(0,150,57,0.55)), linear-gradient(135deg, var(--ph-g2-a), var(--ph-g4-b));
  padding-block: 3rem;
}
.area-hero h1 { color: var(--color-white); }
.area-hero p { color: var(--color-white-90); }
.area-hero .breadcrumb, .area-hero .breadcrumb a { color: var(--color-white-70); }
.area-hero .breadcrumb [aria-current] { color: var(--color-white); }

/* --------------------------------------------------------------------------
   22. TABS / ACCORDION / MODAL / MAP
   -------------------------------------------------------------------------- */
.tabs { border-bottom: 1px solid var(--color-border); display: flex; gap: 0.25rem; overflow-x: auto; }
.tab {
  padding: 0.75rem 1rem; font-weight: 600; font-size: var(--fs-small); color: var(--color-text-secondary);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--color-brand-dark); }
.tab.is-active { color: var(--color-brand-dark); border-bottom-color: var(--color-brand); }
.tab-panel { padding-top: 1.5rem; }
.tab-panel.is-hidden { display: none; }

.accordion { border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; background: var(--color-surface); }
.accordion__item + .accordion__item { border-top: 1px solid var(--color-border); }
.accordion__btn {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  padding: 1.1rem 1.25rem; font-weight: 600; font-size: 1.02rem; color: var(--color-text-primary);
}
.accordion__btn .chev { margin-left: auto; width: 20px; height: 20px; color: var(--color-text-muted); transition: transform var(--t-fast); flex: none; }
.accordion__item.is-open .accordion__btn { color: var(--color-brand-dark); }
.accordion__item.is-open .accordion__btn .chev { transform: rotate(180deg); }
.accordion__panel { display: none; padding: 0 1.25rem 1.25rem; color: var(--color-text-secondary); font-size: var(--fs-small); }
.accordion__item.is-open .accordion__panel { display: block; }

.modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center;
  padding: 1rem; visibility: hidden; opacity: 0; transition: opacity var(--t-base), visibility var(--t-base);
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: var(--color-overlay-strong); }
.modal__dialog {
  position: relative; z-index: 1; width: min(540px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--color-surface); border-radius: 22px; padding: 1.75rem; box-shadow: var(--shadow-pop);
  transform: translateY(12px) scale(0.98); transition: transform var(--t-base);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--color-text-muted); }
.modal__close:hover { background: var(--color-surface-raised); color: var(--color-text-primary); }

.map-ph {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 280px;
  background: linear-gradient(135deg, var(--ph-map-a), var(--ph-map-b));
  display: grid; place-items: center; color: var(--color-text-muted);
}
.map-ph::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-ph__pin { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.35rem; color: var(--color-brand-dark); }
.map-ph__pin svg { width: 38px; height: 38px; }

/* --------------------------------------------------------------------------
   23. GENERIC CARD + ICON BOX + UTILITIES
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface); border: 2px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-brand-muted); }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 2rem; }

.icon-box {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem;
  border-radius: var(--radius-icon); background: var(--color-brand-muted); color: var(--color-brand-dark);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--accent { background: var(--ph-g3-a); color: var(--color-accent-dark); }
.icon-box--dark { background: var(--color-surface-dark); color: var(--color-white); }
.icon-box--sm { width: 40px; height: 40px; margin-bottom: 0.6rem; }
.icon-box--sm svg { width: 20px; height: 20px; }

/* small utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap { gap: 1rem; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--color-border); border: none; margin-block: 1.5rem; }
.pill-note {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill); background: var(--color-brand-muted); color: var(--color-brand-dark);
  font-size: var(--fs-caption); font-weight: 600;
}
.pill-note svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   24. FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--color-surface-dark); color: var(--color-white-70); padding-top: 3rem; }
.footer a { color: var(--color-white-70); }
.footer a:hover { color: var(--color-white); }
.footer__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 1.5rem; margin-bottom: 2.5rem; border-radius: 20px;
  background: var(--color-white-08); border: 1px solid var(--color-white-12);
}
.footer__cta h3 { color: var(--color-white); margin-bottom: 0.25rem; }
.footer__cta p { color: var(--color-white-55); font-size: var(--fs-small); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer__brand .logo { color: var(--color-white); }
.footer__brand .logo:hover { color: var(--color-white); }
.footer__brand .logo__sub { color: var(--color-white-55); }
.footer__brand p { color: var(--color-white-55); font-size: var(--fs-small); margin-top: 1rem; max-width: 34ch; }
.footer__social { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-white-08); }
.footer__social a:hover { background: var(--color-brand); color: var(--color-white); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a { font-size: var(--fs-small); }
.footer__contact li { display: flex; gap: 0.6rem; font-size: var(--fs-small); margin-bottom: 0.75rem; color: var(--color-white-70); }
.footer__contact svg { width: 17px; height: 17px; color: var(--color-brand); flex: none; margin-top: 0.15rem; }
.footer__bar {
  margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--color-white-12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-caption); color: var(--color-white-55);
}
.footer__bar a { color: var(--color-white-55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
