/* ================================================================
   SAXANE REAL ESTATE — Design System v3
   Premium real-estate platform · Restrained, photography-first
   Typography: Raleway (display/headings) + Inter (UI/body)
   ================================================================ */

/* Both families are self-hosted — no CDN, works fully offline. */
@import url('../vendor/inter/inter.css');
@import url('../vendor/raleway/raleway.css');

/* ─── Tokens ────────────────────────────────────────────── */
:root {
  /* This is a light-only product, and saying so matters. The parts of a
     form the browser paints itself — <select> dropdown lists, scrollbars,
     autofill, date pickers — follow the OS scheme unless the page declares
     one. On a dark-mode Windows that meant Chrome drew the option list in
     pale system text over the white background --surface sets below, so
     agent and owner names came out white on white and looked empty. */
  color-scheme: light;

  /* ── Typefaces ─────────────────────────────────────────
     --font        UI + body copy (Inter: superb at small sizes)
     --font-display Headings (Raleway: elegant, property-brand feel)
     --font-mono   Codes, IDs, receipts                          */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Raleway', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* ── Type scale ────────────────────────────────────────
     Fluid where it matters, fixed where consistency matters. */
  /* Fluid headings are tuned from the phone end first: a 36px hero title
     eats a third of a 393px screen before the search box is reached, so the
     lower bound is set to what reads well at 360-430px and the upper bound
     is left where it was for desktop. */
  --fs-display: clamp(1.9rem, 1.29rem + 2.66vw, 3.35rem); /* hero h1  31px @390 */
  --fs-h1:      clamp(1.65rem, 1.25rem + 1.75vw, 2.6rem); /* page title  */
  --fs-h2:      clamp(1.4rem, 1.12rem + 1.25vw, 2.1rem);  /* section     */
  --fs-h3:      1.3rem;                                   /* card lead   */
  --fs-h4:      1.05rem;                                  /* card title  */
  --fs-body:    0.95rem;
  --fs-sm:      0.86rem;
  --fs-xs:      0.78rem;
  --fs-2xs:     0.72rem;                                  /* labels/meta */

  --lh-tight: 1.2;
  --lh-snug:  1.4;
  --lh-body:  1.65;
  --lh-loose: 1.75;

  /* ── Brand ─────────────────────────────────────────────
     A confident architectural blue. Reads as trust + finance
     without the coldness of pure navy. AA on white (4.9:1). */
  --primary: #0075c0;
  --primary-hover: #005f9e;
  --primary-dark: #004f84;
  --primary-light: #e6f2fa;   /* tinted fill for badges/icons */
  --primary-tint: #f2f8fc;    /* faintest wash                */
  --primary-ring: rgba(0,117,192,.18);
  --primary-border: rgba(0,117,192,.28);
  /* Text-on-tint variant. --primary is 4.28:1 on --primary-light, which
     fails AA for anything under 18.66px bold. This is 5.9:1 on the same
     tint and 6.7:1 on white, so it is safe for labels, tags and chips. */
  --primary-ink: #005f9e;

  /* ── Neutral surfaces ──────────────────────────────────
     Cool-tinted so white photography sits cleanly on top. */
  --bg: #f6fafc;
  --surface: #ffffff;
  --surface-2: #fafcfd;
  --surface-3: #eef3f6;

  /* Deep "ink" surfaces — footers, CTA bands, dark sections. */
  --ink: #10222c;
  --ink-2: #1a3341;
  --ink-3: #244353;

  /* ── Borders ───────────────────────────────────────────
     Hairlines. The reference gets its calm from thin borders
     doing the work that heavy shadows usually do. */
  --border: #e4eaee;
  --border-strong: #cdd8df;

  /* ── Text ──────────────────────────────────────────────
     Headings are near-black slate; body is warmer and softer
     so long descriptions don't fatigue. All AA on white.  */
  --text: #1d3340;        /* headings              14.0:1 */
  --text-body: #4c566a;   /* paragraphs             7.6:1 */
  --text-muted: #5f6b7e;  /* secondary/meta         6.0:1 */
  --text-subtle: #6b7688; /* tertiary, still AA     5.1:1 */

  /* Sidebar (admin shell) */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e4eaee;
  --sidebar-text: #4c566a;
  --sidebar-text-strong: #1d3340;
  --sidebar-active-bg: #eef3f6;
  --sidebar-active-text: #1d3340;
  --sidebar-width: 268px;

  /* ── Status ────────────────────────────────────────────
     Kept semantic: green still means available/paid, never brand. */
  --success: #15803d;
  --success-bg: #ecfdf3;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #c81e1e;
  --danger-bg: #fef2f2;
  --info: #005f9e;
  --info-bg: #e6f2fa;
  --purple: #6d28d9;
  --purple-bg: #f5f3ff;
  --orange: #c2410c;
  --orange-bg: #fff7ed;
  --gold: #d97706;        /* rating stars */

  /* ── Geometry ──────────────────────────────────────────
     Tight radii read as architectural/editorial. Large radii
     read as consumer-app; the reference stays at 6-8px.    */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* ── Spacing scale (4px base) ──────────────────────────  */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-8: 32px;  --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* Vertical rhythm for marketing sections */
  --section-y: 80px;
  --section-y-sm: 56px;
  --section-head-gap: 48px;
  --container: 1240px;
  --gutter: 24px;

  /* ── Elevation ─────────────────────────────────────────
     Deliberately faint. Depth comes from borders + imagery. */
  --shadow-xs: 0 1px 2px rgba(29,51,64,.04);
  --shadow-sm: 0 1px 3px rgba(29,51,64,.06);
  --shadow-md: 0 4px 12px rgba(29,51,64,.07);
  --shadow-lg: 0 12px 32px rgba(29,51,64,.10);
  --shadow-xl: 0 20px 48px rgba(29,51,64,.14);
  --ring: 0 0 0 3px var(--primary-ring);

  /* ── Motion ────────────────────────────────────────────  */
  --transition: 180ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 320ms cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --header-height: 64px;
  --navbar-height: 72px;
}

/* ─── Reset / Base ──────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{
  font-family:var(--font);
  font-size:var(--fs-body);
  color:var(--text-body);
  background:var(--bg);
  line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-feature-settings:"cv02","cv03","cv04","cv11";
}
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  color:var(--text);
  line-height:var(--lh-tight);
  font-weight:700;
  letter-spacing:-.01em;
}
a{color:var(--primary);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--primary-hover)}
img{max-width:100%;display:block}
button{cursor:pointer;font-family:inherit}
input,select,textarea{font-family:inherit;font-size:var(--fs-sm);color:var(--text)}
::selection{background:var(--primary-light);color:var(--text)}

/* Safety net for engines that render the dropdown list before honouring
   color-scheme. Only under a dark OS, where the bug lives — the light path
   is left alone so the list keeps its native highlight and hover feel. */
@media (prefers-color-scheme: dark){
  select option,select optgroup{background-color:var(--surface);color:var(--text)}
  select option:checked{background-color:var(--primary-light);color:var(--primary-ink)}
  select option:disabled{color:var(--text-subtle)}
  select optgroup{font-weight:600;color:var(--text-muted)}
}

/* Global keyboard focus. Never removed — only restyled, and always
   visible against both light surfaces and dark/ink sections. */
:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
  border-radius:var(--radius-xs);
}
.on-ink :focus-visible,.section--dark :focus-visible{outline-color:#fff}

/* ─── Layout shell ──────────────────────────────────────── */
.app{display:flex;min-height:100vh;background:var(--bg)}
.app__sidebar{
  position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-width);
  background:var(--sidebar-bg);
  border-right:1px solid var(--sidebar-border);
  z-index:100;display:flex;flex-direction:column;
  transition:transform .25s ease;
}
.app__main{margin-left:var(--sidebar-width);flex:1;min-width:0;display:flex;flex-direction:column}
.app__header{
  position:sticky;top:0;z-index:90;background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(8px);-webkit-backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
  height:var(--header-height);display:flex;align-items:center;padding:0 28px;
}
.app__content{padding:24px 28px 40px;flex:1}
.app__footer{
  padding:16px 28px;text-align:center;font-size:.78rem;color:var(--text-subtle);
  border-top:1px solid var(--border);background:var(--surface);
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar__brand{
  padding:18px 20px 14px;display:flex;align-items:center;gap:10px;
}
.sidebar__logo{
  width:34px;height:34px;background:linear-gradient(135deg,var(--primary) 0%,#2b9fe0 100%);
  border-radius:9px;display:flex;align-items:center;justify-content:center;
  font-weight:700;color:#fff;font-size:1rem;
  box-shadow:0 2px 6px rgba(0,117,192,.28);
  overflow:hidden;flex-shrink:0;
}
/* An uploaded logo replaces the gradient tile — the brand gradient behind a
   logo of unknown colour reads as a mistake. */
.sidebar__logo--image{background:var(--surface);border:1px solid var(--border);box-shadow:none;padding:3px}
.sidebar__logo img{width:100%;height:100%;object-fit:contain}
.sidebar__title{font-size:.98rem;font-weight:700;color:var(--sidebar-text-strong);letter-spacing:-.2px;line-height:1.1}
.sidebar__subtitle{font-size:.66rem;color:var(--text-subtle);text-transform:uppercase;letter-spacing:.6px;margin-top:2px;font-weight:600}

.sidebar__profile{
  margin:0 12px 10px;padding:10px 12px;display:flex;align-items:center;gap:10px;
  border-radius:var(--radius-sm);transition:background var(--transition);cursor:pointer;
  border:1px solid var(--border);
}
.sidebar__profile:hover{background:var(--surface-3)}
.sidebar__profile-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--surface-3)}
.sidebar__profile-info{flex:1;min-width:0}
.sidebar__profile-name{font-size:.84rem;font-weight:600;color:var(--sidebar-text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar__profile-email{font-size:.72rem;color:var(--text-subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar__profile-chevron{color:var(--text-subtle);font-size:.7rem}

.sidebar__search{position:relative;margin:0 12px 14px}
.sidebar__search-input{
  width:100%;padding:9px 56px 9px 34px;
  font-size:.84rem;color:var(--text);
  background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius-sm);
  transition:all var(--transition);
}
.sidebar__search-input::placeholder{color:var(--text-subtle)}
.sidebar__search-input:focus{outline:none;border-color:var(--primary);box-shadow:var(--ring)}
.sidebar__search i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--text-subtle);font-size:.9rem}
.sidebar__search-kbd{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  font-size:.66rem;color:var(--text-subtle);background:var(--surface-3);
  border:1px solid var(--border);border-radius:var(--radius-xs);
  padding:2px 6px;font-weight:600;letter-spacing:.4px;
}

.sidebar__nav{flex:1;padding:4px 12px 16px;overflow-y:auto}
.sidebar__nav::-webkit-scrollbar{width:6px}
.sidebar__nav::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}
.sidebar__section{margin-bottom:14px}
.sidebar__label{
  font-size:.66rem;text-transform:uppercase;letter-spacing:.9px;
  color:var(--text-subtle);padding:8px 12px 6px;font-weight:600;
}
.sidebar__link{
  display:flex;align-items:center;gap:11px;padding:8px 12px;
  border-radius:var(--radius-sm);
  color:var(--sidebar-text);font-size:.86rem;font-weight:500;
  transition:all var(--transition);margin-bottom:1px;position:relative;
}
.sidebar__link i{font-size:1.05rem;width:18px;text-align:center;color:var(--text-subtle)}
.sidebar__link:hover{background:var(--surface-3);color:var(--sidebar-text-strong)}
.sidebar__link:hover i{color:var(--sidebar-text-strong)}
.sidebar__link--active{
  background:var(--sidebar-active-bg);
  color:var(--sidebar-active-text);font-weight:600;
}
.sidebar__link--active i{color:var(--text)}
.sidebar__link .chev{margin-left:auto;font-size:.7rem;color:var(--text-subtle)}

.sidebar__footer{padding:12px 20px;border-top:1px solid var(--sidebar-border);display:flex;align-items:center;gap:8px;font-size:.72rem;color:var(--text-subtle)}

/* ─── Header / Topbar ───────────────────────────────────── */
.header__left{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.header__toggle{display:none;background:transparent;border:none;font-size:1.3rem;color:var(--text);padding:6px;border-radius:var(--radius-xs)}
.header__toggle:hover{background:var(--surface-3)}
.header__breadcrumb{display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--text-muted);min-width:0;overflow:hidden}
.header__breadcrumb a{color:var(--text-muted);display:inline-flex;align-items:center;gap:6px}
.header__breadcrumb a:hover{color:var(--text)}
.header__breadcrumb span{color:var(--text);font-weight:500}
.header__breadcrumb i.sep{font-size:.6rem;color:var(--text-subtle)}

.header__right{display:flex;align-items:center;gap:6px}
.header__icon-btn{
  position:relative;width:36px;height:36px;border-radius:var(--radius-sm);
  border:1px solid transparent;background:transparent;color:var(--text-muted);
  font-size:1.05rem;display:flex;align-items:center;justify-content:center;
  transition:all var(--transition);
}
.header__icon-btn:hover{background:var(--surface-3);color:var(--text);border-color:var(--border)}
.header__visit{
  display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;
  border-radius:var(--radius-pill);border:1px solid var(--border);
  background:transparent;color:var(--text-muted);
  font-size:.8rem;font-weight:600;text-decoration:none;
  transition:all var(--transition);
}
.header__visit:hover{background:var(--surface-3);color:var(--text);border-color:var(--primary)}
.header__visit i{font-size:.95rem}
@media (max-width:560px){.header__visit span{display:none}.header__visit{padding:0;width:36px;justify-content:center}}
.header__badge{
  position:absolute;top:4px;right:4px;min-width:16px;height:16px;padding:0 4px;
  background:var(--danger);color:#fff;border-radius:999px;
  font-size:.62rem;font-weight:700;display:flex;align-items:center;justify-content:center;
  border:2px solid var(--surface);
}

.header__user{display:flex;align-items:center;gap:9px;padding:5px 10px 5px 5px;border-radius:var(--radius-pill);cursor:pointer;transition:background var(--transition);margin-left:6px}
.header__user:hover{background:var(--surface-3)}
.header__user img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.header__user-info{text-align:left;line-height:1.15}
.header__user-name{font-size:.82rem;font-weight:600;color:var(--text)}
.header__user-role{font-size:.7rem;color:var(--text-subtle)}

/* ─── Dropdown ──────────────────────────────────────────── */
.dropdown{position:relative}
.dropdown__menu{
  position:absolute;top:calc(100% + 8px);right:0;min-width:210px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow-lg);
  padding:5px;display:none;z-index:200;
}
.dropdown__menu.show{display:block}
.dropdown__item{
  display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-sm);
  font-size:.85rem;color:var(--text);transition:background var(--transition);
}
.dropdown__item:hover{background:var(--surface-3);color:var(--text)}
.dropdown__item i{color:var(--text-subtle);width:16px;font-size:.95rem}
.dropdown__divider{height:1px;background:var(--border);margin:4px 0}
.dropdown__item--danger{color:var(--danger)}
.dropdown__item--danger i{color:var(--danger)}
.dropdown__item--danger:hover{background:var(--danger-bg)}

/* ─── Page Header ───────────────────────────────────────── */
.page-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:14px}
.page-header__title{font-family:var(--font-display);font-size:1.6rem;font-weight:700;color:var(--text);letter-spacing:-.02em;line-height:1.2}
.page-header__subtitle{font-size:.86rem;color:var(--text-muted);margin-top:4px}
.page-header__breadcrumb{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--text-muted);margin-bottom:6px}
.page-header__breadcrumb a{color:var(--text-muted)}
.page-header__breadcrumb a:hover{color:var(--text)}
.page-header__breadcrumb span{color:var(--text);font-weight:500}
.page-header__actions{display:flex;align-items:center;gap:8px}

/* ─── Cards ─────────────────────────────────────────────── */
.card{
  background:var(--surface);border-radius:var(--radius);
  border:1px solid var(--border);box-shadow:var(--shadow-xs);
  transition:box-shadow var(--transition),border-color var(--transition);
}
.card:hover{box-shadow:var(--shadow-sm)}
.card__header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px}
.card__title{font-family:var(--font-display);font-size:1rem;font-weight:700;color:var(--text);letter-spacing:-.01em}
.card__subtitle{font-size:.78rem;color:var(--text-muted);margin-top:2px}
.card__body{padding:20px}
.card__footer{padding:14px 20px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:12px}

/* ─── Stat cards (KPI) — minimal SaaS row ───────────────── */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:22px}
.stat-card{
  background:var(--surface);border-radius:var(--radius);
  border:1px solid var(--border);padding:18px 20px;
  display:flex;align-items:center;gap:14px;
  box-shadow:var(--shadow-xs);transition:all var(--transition);
}
.stat-card:hover{box-shadow:var(--shadow-sm);border-color:var(--border-strong)}
.stat-card__icon{
  width:44px;height:44px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;font-size:1.15rem;flex-shrink:0;
  background:var(--surface-3);color:var(--text);
}
.stat-card__icon--primary{background:var(--primary-light);color:var(--primary)}
.stat-card__icon--success{background:var(--success-bg);color:var(--success)}
.stat-card__icon--warning{background:var(--warning-bg);color:var(--warning)}
.stat-card__icon--danger{background:var(--danger-bg);color:var(--danger)}
.stat-card__icon--info{background:var(--info-bg);color:var(--info)}
.stat-card__icon--purple{background:var(--purple-bg);color:var(--purple)}
.stat-card__body{display:flex;flex-direction:column;min-width:0}
.stat-card__label{font-size:.78rem;color:var(--text-muted);font-weight:500;order:1}
.stat-card__value{font-family:var(--font-display);font-size:1.6rem;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--text);order:2;margin-top:2px}
.stat-card__trend{font-size:.72rem;font-weight:600;margin-top:6px;display:inline-flex;align-items:center;gap:3px;order:3}
.stat-card__trend--up{color:var(--success)}
.stat-card__trend--down{color:var(--danger)}

/* ─── Quick action tiles (dashboard) ─────────────────────
   Each tile opens a quick-add popup. Read as one object rather
   than a button with decoration: the coloured glyph carries the
   module, the label the verb, and the caption what will be
   created — so the row can be scanned without reading it. */
.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:10px}
.quick-action{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:12px 14px;text-align:left;text-decoration:none;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  color:var(--text);font-family:inherit;font-size:var(--fs-sm);cursor:pointer;
  transition:border-color var(--transition),box-shadow var(--transition),
             transform var(--transition),background var(--transition);
}
.quick-action:hover{
  background:var(--surface-2);border-color:var(--primary-border);
  box-shadow:var(--shadow-sm);transform:translateY(-1px);color:var(--text);
}
.quick-action:active{transform:none;box-shadow:none}
.quick-action__icon{
  flex-shrink:0;width:38px;height:38px;border-radius:var(--radius-sm);
  display:grid;place-items:center;font-size:1.05rem;
  background:var(--surface-3);color:var(--text);
}
.quick-action__icon--primary{background:var(--primary-light);color:var(--primary-ink)}
.quick-action__icon--success{background:var(--success-bg);color:var(--success)}
.quick-action__icon--warning{background:var(--warning-bg);color:var(--warning)}
.quick-action__icon--danger {background:var(--danger-bg); color:var(--danger)}
.quick-action__icon--info   {background:var(--info-bg);   color:var(--info)}
.quick-action__icon--purple {background:var(--purple-bg); color:var(--purple)}
.quick-action__icon--orange {background:var(--orange-bg); color:var(--orange)}
.quick-action__text{display:flex;flex-direction:column;min-width:0}
.quick-action__label{font-weight:600;line-height:1.3;color:var(--text)}
/* The caption is the first thing to give way on a narrow tile. */
.quick-action__hint{
  font-size:var(--fs-2xs);color:var(--text-muted);line-height:1.3;margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* The chevron confirms the tile is live, without competing at rest. */
.quick-action__go{
  margin-left:auto;font-size:.8rem;color:var(--primary);
  opacity:0;transform:translateX(-4px);
  transition:opacity var(--transition),transform var(--transition);
}
.quick-action:hover .quick-action__go,
.quick-action:focus-visible .quick-action__go{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  .quick-action,.quick-action__go{transition:none}
  .quick-action:hover{transform:none}
}

/* ─── Buttons ───────────────────────────────────────────── */
/* Min height 44px on --lg and on touch devices keeps tap targets legal
   without inflating dense admin toolbars. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 20px;border-radius:var(--radius-sm);
  font-size:var(--fs-sm);font-weight:600;border:1px solid transparent;
  transition:background var(--transition),border-color var(--transition),
             color var(--transition),box-shadow var(--transition),transform var(--transition);
  line-height:1.3;white-space:nowrap;cursor:pointer;text-decoration:none;
}
.btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.btn--primary:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:#fff;box-shadow:0 4px 14px rgba(0,117,192,.28)}
.btn--outline{background:var(--surface);border-color:var(--border-strong);color:var(--text)}
.btn--outline:hover{border-color:var(--primary);background:var(--primary-tint);color:var(--primary)}
.btn--ghost{background:transparent;color:var(--text);border-color:transparent}
.btn--ghost:hover{background:var(--surface-3)}
.btn--danger{background:var(--danger);color:#fff;border-color:var(--danger)}
.btn--danger:hover{background:#a91616;border-color:#a91616}
.btn--success{background:var(--success);color:#fff;border-color:var(--success)}
.btn--success:hover{background:#126b34}
.btn--sm{padding:7px 14px;font-size:var(--fs-xs);gap:6px}
.btn--lg{padding:12px 26px;font-size:var(--fs-body);min-height:44px}
.btn--block{width:100%;white-space:normal}
.btn--icon{width:38px;height:38px;padding:0}
.btn[disabled],.btn.is-disabled{opacity:.55;pointer-events:none}
/* Coarse pointers (touch) get the full 44px target on every button. */
@media (pointer:coarse){
  .btn{min-height:44px}
  .btn--sm{min-height:40px}
  .btn--icon{width:44px;height:44px}
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group{margin-bottom:18px}
.form-label{display:block;font-size:.82rem;font-weight:600;color:var(--text);margin-bottom:6px;letter-spacing:-.1px}
.form-control{
  width:100%;padding:10px 13px;
  border:1px solid var(--border-strong);border-radius:var(--radius-sm);
  font-size:.88rem;color:var(--text);background:var(--surface);
  transition:all var(--transition);
}
.form-control:hover{border-color:#cbd0d8}
.form-control:focus{outline:none;border-color:var(--primary);box-shadow:var(--ring)}
.form-control::placeholder{color:var(--text-subtle)}
.form-control--error{border-color:var(--danger)}
.form-control--error:focus{box-shadow:0 0 0 3px rgba(220,38,38,.15)}
/* A field whose value is fixed by context — e.g. the single property a tenant
   is allowed to report against. Deliberately not styled like :disabled: the
   value still submits, stays selectable and keeps full text contrast, so only
   the surface recedes and the caret is dropped. */
.form-control[readonly]{background:var(--surface-2);border-color:var(--border);cursor:default}
.form-control[readonly]:hover{border-color:var(--border)}
.form-hint{font-size:.74rem;color:var(--text-subtle);margin-top:4px}
.form-error{font-size:.74rem;color:var(--danger);margin-top:4px;display:flex;align-items:center;gap:4px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
select.form-control{
  appearance:none;cursor:pointer;
  /* Same stroked chevron, weight and colour as the search and filter bars —
     the old one was a filled wedge in an off-palette grey. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7688' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5l3-3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;
}
/* An optional field left on "— None —" is a placeholder, not a value, and
   should read like one — matching how ::placeholder treats empty inputs.
   Still 5.1:1 on white, so it stays AA. Browsers without :has() simply
   show it at full strength, which is readable either way. */
select.form-control:has(option[value=""]:checked){color:var(--text-subtle)}

/* ─── Tables ────────────────────────────────────────────── */
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface)}
.table{width:100%;border-collapse:collapse;font-size:.86rem}
.table th{
  background:var(--surface-2);font-weight:600;font-size:.74rem;
  text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);
  padding:11px 16px;text-align:left;border-bottom:1px solid var(--border);
}
.table td{padding:13px 16px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text)}
.table tr:last-child td{border-bottom:none}
.table tbody tr{transition:background var(--transition)}
.table tbody tr:hover td{background:var(--surface-2)}
.table th:first-child,.table td:first-child{padding-left:18px}
.table th:last-child,.table td:last-child{padding-right:18px}
.table .check-col{width:36px;padding-right:0!important}
.table input[type=checkbox]{width:15px;height:15px;border-radius:4px;accent-color:var(--primary);cursor:pointer}
.table__id{font-family:'SF Mono',ui-monospace,Menlo,Monaco,Consolas,monospace;font-size:.78rem;color:var(--text-muted);letter-spacing:.2px}

/* ─── Status pill (with colored dot) — table cells ──────── */
.status-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:3px 10px 3px 8px;border-radius:var(--radius-pill);
  font-size:.74rem;font-weight:600;line-height:1.6;
  border:1px solid transparent;
}
.status-pill::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.status-pill--success{background:var(--success-bg);color:var(--success);border-color:rgba(22,163,74,.18)}
.status-pill--warning{background:var(--warning-bg);color:var(--warning);border-color:rgba(217,119,6,.18)}
.status-pill--danger{background:var(--danger-bg);color:var(--danger);border-color:rgba(220,38,38,.18)}
.status-pill--info{background:var(--info-bg);color:var(--info);border-color:rgba(37,99,235,.18)}
.status-pill--muted{background:var(--surface-3);color:var(--text-muted);border-color:var(--border-strong)}

/* ─── Badges (no dot — keep for legacy) ────────────────── */
.badge{
  display:inline-flex;align-items:center;padding:3px 9px;border-radius:var(--radius-pill);
  font-size:.72rem;font-weight:600;letter-spacing:.1px;text-transform:capitalize;
  border:1px solid transparent;
}
.badge--success{background:var(--success-bg);color:var(--success);border-color:rgba(22,163,74,.18)}
.badge--warning{background:var(--warning-bg);color:var(--warning);border-color:rgba(217,119,6,.18)}
.badge--danger{background:var(--danger-bg);color:var(--danger);border-color:rgba(220,38,38,.18)}
.badge--info{background:var(--info-bg);color:var(--info);border-color:rgba(37,99,235,.18)}
.badge--primary{background:var(--primary-light);color:var(--primary-ink);border-color:var(--primary-border)}
.badge--purple{background:var(--purple-bg);color:var(--purple);border-color:rgba(124,58,237,.18)}
.badge--orange{background:var(--orange-bg);color:var(--orange);border-color:rgba(234,88,12,.18)}
.badge--muted{background:var(--surface-3);color:var(--text-muted);border-color:var(--border-strong)}

/* ─── Alerts ────────────────────────────────────────────── */
.alert{
  display:flex;align-items:center;gap:10px;padding:12px 16px;
  border-radius:var(--radius-sm);font-size:.85rem;margin-bottom:18px;
  border:1px solid transparent;animation:alertIn .3s ease;
}
.alert--success{background:var(--success-bg);color:var(--success);border-color:rgba(22,163,74,.18)}
.alert--danger{background:var(--danger-bg);color:var(--danger);border-color:rgba(220,38,38,.18)}
.alert--warning{background:var(--warning-bg);color:var(--warning);border-color:rgba(217,119,6,.18)}
.alert--info{background:var(--info-bg);color:var(--info);border-color:rgba(37,99,235,.18)}
.alert__close{margin-left:auto;background:none;border:none;color:inherit;opacity:.6;font-size:1rem;cursor:pointer}
.alert__close:hover{opacity:1}
@keyframes alertIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* ─── Auth pages ────────────────────────────────────────── */
/* Simple centered login card */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg);padding:24px}
.auth-card{
  width:100%;max-width:400px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);
  padding:40px 36px;box-shadow:var(--shadow-lg);
}
.auth-card__logo{
  width:48px;height:48px;border-radius:13px;margin:0 auto 14px;
  background:linear-gradient(135deg,#2b9fe0 0%,var(--primary) 100%);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;color:#fff;font-size:1.3rem;
  box-shadow:0 8px 20px rgba(0,117,192,.35);
}
.auth-card__brand{text-align:center;font-size:1rem;font-weight:700;color:var(--text);letter-spacing:-.2px;margin-bottom:26px}
.auth-card__title{font-family:var(--font-display);font-size:1.6rem;font-weight:700;text-align:center;color:var(--text);letter-spacing:-.02em;margin-bottom:6px}
.auth-card__subtitle{text-align:center;color:var(--text-muted);font-size:.9rem;margin-bottom:26px}

.auth{min-height:100vh;display:flex;background:var(--bg)}
.auth__brand{
  flex:1;display:flex;flex-direction:column;justify-content:space-between;
  padding:48px;color:#fff;position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 600px at -10% -20%,rgba(0,117,192,.30) 0%,transparent 60%),
    radial-gradient(900px 500px at 110% 110%,rgba(0,117,192,.16) 0%,transparent 60%),
    linear-gradient(160deg,var(--ink) 0%,var(--ink-2) 55%,var(--ink-3) 100%);
}
.auth__brand-top{position:relative;z-index:1;display:flex;align-items:center;gap:12px}
.auth__brand-logo{
  width:42px;height:42px;border-radius:11px;
  background:linear-gradient(135deg,#2b9fe0 0%,var(--primary) 100%);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;color:#fff;font-size:1.15rem;
  box-shadow:0 8px 20px rgba(0,117,192,.4);
}
.auth__brand-name{font-size:1.1rem;font-weight:700;letter-spacing:-.2px}
.auth__brand-tag{font-size:.7rem;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.8px;font-weight:600;margin-top:2px}
.auth__brand-body{position:relative;z-index:1;max-width:460px;margin:auto 0}
.auth__brand-title{font-family:var(--font-display);font-size:2.3rem;font-weight:700;letter-spacing:-.025em;margin-bottom:16px;line-height:1.15;color:#fff}
.auth__brand-desc{font-size:1rem;color:rgba(255,255,255,.7);line-height:1.65;margin-bottom:28px}
.auth__brand-features{list-style:none;display:flex;flex-direction:column;gap:12px}
.auth__brand-features li{display:flex;align-items:center;gap:10px;font-size:.9rem;color:rgba(255,255,255,.85)}
.auth__brand-features i{
  width:24px;height:24px;border-radius:7px;
  background:rgba(0,117,192,.24);color:#7cc7f2;
  display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;
}
.auth__brand-footer{position:relative;z-index:1;font-size:.78rem;color:rgba(255,255,255,.4)}

.auth__form-side{flex:1;display:flex;align-items:center;justify-content:center;padding:40px;background:var(--surface)}
.auth__form-container{width:100%;max-width:400px}
.auth__form-eyebrow{font-size:.72rem;color:var(--primary);font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-bottom:8px}
.auth__form-title{font-family:var(--font-display);font-size:1.8rem;font-weight:700;margin-bottom:6px;letter-spacing:-.025em;color:var(--text)}
.auth__form-subtitle{color:var(--text-muted);margin-bottom:28px;font-size:.92rem}
.auth__form-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:.82rem}
.auth__remember{display:flex;align-items:center;gap:7px;color:var(--text-muted);cursor:pointer}
.auth__remember input{width:15px;height:15px;accent-color:var(--primary);cursor:pointer}
.auth__footer-text{text-align:center;margin-top:22px;font-size:.86rem;color:var(--text-muted)}

/* ─── Demo Credentials ─────────────────────────────────── */
.demo-creds{margin-top:28px}
.demo-creds__header{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.demo-creds__line{flex:1;height:1px;background:var(--border)}
.demo-creds__label{
  font-size:.72rem;font-weight:700;color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.8px;
  display:flex;align-items:center;gap:5px;white-space:nowrap;
}
.demo-creds__label i{color:var(--warning);font-size:.8rem}
.demo-creds__grid{display:flex;flex-direction:column;gap:6px}
.demo-creds__card{
  display:flex;align-items:center;gap:11px;
  padding:10px 12px;border-radius:var(--radius-sm);
  background:var(--surface-2);border:1px solid var(--border);
  cursor:pointer;transition:all var(--transition);
  text-align:left;font-family:inherit;
}
.demo-creds__card:hover{
  border-color:var(--border-strong);background:var(--surface-3);
  transform:translateX(3px);
}
.demo-creds__card.is-active{
  border-color:var(--primary);background:var(--primary-tint,rgba(22,163,74,.06));
  box-shadow:0 0 0 2px var(--primary-ring);
}
.demo-creds__icon{
  width:34px;height:34px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:.95rem;flex-shrink:0;
}
.demo-creds__icon--primary{background:var(--primary-light);color:var(--primary)}
.demo-creds__icon--info{background:var(--info-bg);color:var(--info)}
.demo-creds__icon--success{background:var(--success-bg);color:var(--success)}
.demo-creds__icon--warning{background:var(--warning-bg);color:var(--warning)}
.demo-creds__icon--purple{background:var(--purple-bg);color:var(--purple)}
.demo-creds__info{flex:1;display:flex;flex-direction:column;min-width:0}
.demo-creds__role{font-size:.82rem;font-weight:600;color:var(--text);line-height:1.2}
.demo-creds__user{font-size:.72rem;color:var(--text-muted);font-family:'SF Mono',ui-monospace,Menlo,Consolas,monospace;letter-spacing:.3px}
.demo-creds__arrow{
  color:var(--text-subtle);font-size:1.2rem;
  transition:transform var(--transition),color var(--transition);
  flex-shrink:0;
}
.demo-creds__card:hover .demo-creds__arrow{transform:translateX(3px);color:var(--primary)}
.demo-creds__card.is-active .demo-creds__arrow{color:var(--primary)}

/* ─── Empty state ───────────────────────────────────────── */
.empty-state{text-align:center;padding:48px 20px}
.empty-state__icon{
  width:56px;height:56px;border-radius:14px;margin:0 auto 14px;
  background:var(--surface-3);color:var(--text-subtle);
  display:flex;align-items:center;justify-content:center;font-size:1.6rem;
}
.empty-state__title{font-size:1rem;font-weight:600;margin-bottom:4px;color:var(--text)}
.empty-state__desc{color:var(--text-muted);font-size:.85rem;max-width:360px;margin:0 auto}

/* ─── Activity feed ─────────────────────────────────────── */
.activity{list-style:none}
.activity__item{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}
.activity__item:last-child{border-bottom:none}
.activity__dot{width:8px;height:8px;border-radius:50%;background:var(--primary);margin-top:7px;flex-shrink:0;box-shadow:0 0 0 3px var(--primary-light)}
.activity__text{font-size:.86rem;line-height:1.5;color:var(--text)}
.activity__time{font-size:.74rem;color:var(--text-subtle);margin-top:2px}

/* ─── Responsive ────────────────────────────────────────── */
@media(max-width:1024px){
  .auth__brand{display:none}
  .auth__form-side{padding:24px}
}
@media(max-width:768px){
  .app__sidebar{transform:translateX(-100%);box-shadow:var(--shadow-lg)}
  .app__sidebar.open{transform:translateX(0)}
  .app__main{margin-left:0}
  .header__toggle{display:flex}
  .stats{grid-template-columns:1fr 1fr}
  .form-row{grid-template-columns:1fr}
  .page-header{flex-direction:column;align-items:flex-start}
  .app__content{padding:18px}
}
@media(max-width:480px){
  .stats{grid-template-columns:1fr}
  .app__content{padding:14px}
}

/* ─── Sidebar overlay (mobile) ──────────────────────────── */
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:99;backdrop-filter:blur(2px)}
.sidebar-overlay.show{display:block}

/* ─── Pagination ────────────────────────────────────────── */
.pagination{display:flex;align-items:center;gap:4px;justify-content:flex-end;padding:14px 0;flex-wrap:wrap}
.pagination__link{
  min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;
  border-radius:var(--radius-xs);font-size:.78rem;font-weight:600;
  color:var(--text-muted);background:var(--surface);
  border:1px solid var(--border);transition:all var(--transition);
}
.pagination__link:hover{border-color:var(--text-muted);color:var(--text)}
.pagination__link.is-active{background:var(--text);color:#fff;border-color:var(--text)}
.pagination__link.is-disabled{opacity:.4;pointer-events:none}
.pagination__ellipsis{padding:0 6px;color:var(--text-subtle);font-weight:600}

/* ─── Filter bar ────────────────────────────────────────── */
.filter-bar{
  display:flex;flex-wrap:wrap;gap:10px;padding:14px 16px;
  background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);
  margin-bottom:16px;align-items:center;
}
.filter-bar .form-group{margin:0;flex:1;min-width:160px}
.filter-bar .form-control{padding:8px 12px;font-size:.84rem}
.filter-chip{
  display:inline-flex;align-items:center;gap:6px;padding:7px 12px;
  background:var(--surface);border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);font-size:.82rem;color:var(--text);font-weight:500;
  cursor:pointer;transition:all var(--transition);
}
.filter-chip:hover{border-color:var(--text-muted)}
.filter-chip i{color:var(--text-muted);font-size:.85rem}

/* ─── Form grids ────────────────────────────────────────── */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.form-grid--2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.form-grid--3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.form-grid .full-span{grid-column:1/-1}
@media(max-width:768px){.form-grid--2,.form-grid--3{grid-template-columns:1fr}}
.form-checkbox{display:flex;align-items:center;gap:8px;font-size:.86rem;color:var(--text);padding:8px 0;cursor:pointer}
.form-checkbox input{width:16px;height:16px;accent-color:var(--primary);cursor:pointer}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}

/* ─── Galleries / uploads ───────────────────────────────── */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:14px}
.gallery__item{position:relative;aspect-ratio:1/1;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border);background:var(--surface-3)}
.gallery__item img{width:100%;height:100%;object-fit:cover}
.gallery__cover-badge{position:absolute;top:6px;left:6px;background:var(--primary);color:#fff;font-size:.64rem;font-weight:700;padding:2px 8px;border-radius:var(--radius-pill);text-transform:uppercase;letter-spacing:.4px}
.gallery__remove{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:rgba(15,23,42,.65);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.78rem;border:none}
.gallery__remove:hover{background:var(--danger)}

.upload-zone{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:28px;border:1.5px dashed var(--border-strong);border-radius:var(--radius);
  background:var(--surface-2);text-align:center;cursor:pointer;transition:all var(--transition);
}
.upload-zone:hover{border-color:var(--primary);background:var(--primary-tint)}
.upload-zone i{font-size:1.6rem;color:var(--text-subtle);margin-bottom:8px}
.upload-zone__hint{font-size:.78rem;color:var(--text-muted);margin-top:4px}
.upload-zone input[type=file]{display:none}
/* A file has been chosen — confirm it without needing a separate line. */
.upload-zone.is-filled{border-style:solid;border-color:var(--primary);background:var(--primary-tint)}
.upload-zone.is-filled i{color:var(--primary)}

/* ─── Property card (grid view) ─────────────────────────── */
.prop-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all var(--transition)}
.prop-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);border-color:var(--border-strong)}
.prop-card__cover{aspect-ratio:16/10;background:var(--surface-3);position:relative;overflow:hidden}
.prop-card__cover img{width:100%;height:100%;object-fit:cover}
.prop-card__cover .badge,.prop-card__cover .status-pill{position:absolute;top:10px;left:10px}
.prop-card__body{padding:14px 16px}
.prop-card__title{font-size:.96rem;font-weight:600;margin-bottom:4px;line-height:1.3;color:var(--text)}
.prop-card__meta{font-size:.76rem;color:var(--text-muted);margin-bottom:10px;display:flex;align-items:center;gap:6px}
.prop-card__price{font-size:1.05rem;font-weight:700;color:var(--text);letter-spacing:-.3px}
.prop-card__specs{display:flex;gap:14px;margin-top:8px;font-size:.76rem;color:var(--text-muted)}
.prop-card__specs span{display:flex;align-items:center;gap:4px}

/* ─── Profile / detail ──────────────────────────────────── */
.profile-grid{display:grid;grid-template-columns:300px 1fr;gap:20px}
@media(max-width:900px){.profile-grid{grid-template-columns:1fr}}
.profile-card{text-align:center;padding:24px}
.profile-card__avatar{width:96px;height:96px;border-radius:50%;margin:0 auto 12px;object-fit:cover;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--border)}
.profile-card__name{font-size:1.15rem;font-weight:700;margin-bottom:2px}
.profile-card__role{font-size:.74rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.6px;margin-bottom:14px;font-weight:600}
.profile-meta{text-align:left;margin-top:16px}
.profile-meta__row{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--border);font-size:.84rem}
.profile-meta__row:first-child{border-top:none}
.profile-meta__label{color:var(--text-muted)}
.profile-meta__value{font-weight:600;color:var(--text);text-align:right}

/* ─── Tabs (with count badges) ──────────────────────────── */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px;overflow-x:auto;padding:0 2px}
.tabs__item{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 4px;margin-right:18px;
  font-size:.88rem;font-weight:500;color:var(--text-muted);
  cursor:pointer;border-bottom:2px solid transparent;
  transition:all var(--transition);white-space:nowrap;background:none;border-top:none;border-left:none;border-right:none;
}
.tabs__item:hover{color:var(--text)}
.tabs__item.is-active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.tabs__count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:22px;height:20px;padding:0 6px;border-radius:var(--radius-pill);
  background:var(--surface-3);color:var(--text-muted);
  font-size:.7rem;font-weight:600;
}
.tabs__item.is-active .tabs__count{background:var(--primary-light);color:var(--primary)}
.tab-panel{display:none}
.tab-panel.is-active{display:block}

/* ─── Timeline ──────────────────────────────────────────── */
.timeline{position:relative;padding-left:22px}
.timeline::before{content:'';position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--border)}
.timeline__item{position:relative;padding-bottom:16px}
.timeline__dot{position:absolute;left:-21px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.timeline__title{font-size:.86rem;font-weight:600;color:var(--text)}
.timeline__meta{font-size:.74rem;color:var(--text-subtle);margin-top:2px}

/* ─── Section title ─────────────────────────────────────── */
.section-title{font-size:.76rem;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted);font-weight:700;margin:16px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--border)}

/* ─── Grid helpers ──────────────────────────────────────── */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:768px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* ─── Button group ──────────────────────────────────────── */
.btn-group{display:inline-flex;gap:6px}
.btn-group .btn{padding:6px 10px;font-size:.74rem}

/* ─── Mini KPI ──────────────────────────────────────────── */
.mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}
.mini-stat{padding:14px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.mini-stat__label{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.mini-stat__value{font-family:var(--font-display);font-size:1.35rem;font-weight:700;margin-top:4px;letter-spacing:-.02em;color:var(--text)}

/* ─── Receipt / Print ───────────────────────────────────── */
.receipt{max-width:680px;margin:0 auto;background:#fff;padding:36px;border-radius:var(--radius);border:1px solid var(--border)}
.receipt__head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--text);padding-bottom:16px;margin-bottom:20px}
.receipt__logo{font-size:1.5rem;font-weight:700;letter-spacing:-.3px}
/* Uploaded mark sits above the company name; height-capped so a large
   upload cannot push the rest of the receipt onto a second page. */
.receipt__logo-img{max-height:56px;max-width:200px;object-fit:contain;margin-bottom:8px;display:block}
.receipt__brand-sub{font-size:.78rem;color:var(--text-muted)}
.receipt__meta{text-align:right;font-size:.84rem}
.receipt__table{width:100%;border-collapse:collapse;margin:16px 0}
.receipt__table td{padding:9px 0;border-bottom:1px dashed var(--border);font-size:.88rem}
.receipt__table tr:last-child td{border-bottom:none;font-weight:700;font-size:1rem;padding-top:14px;border-top:2px solid var(--text)}
@media print{
  .app__sidebar,.app__header,.app__footer,.sidebar-overlay,.no-print{display:none!important}
  .app__main{margin-left:0!important}
  .app__content{padding:0!important;background:#fff}
  .receipt{border:none;max-width:100%}
}

/* ─── Utilities ─────────────────────────────────────────── */
.text-muted{color:var(--text-muted)!important}
.text-subtle{color:var(--text-subtle)!important}
.text-primary{color:var(--primary)!important}
.text-success{color:var(--success)!important}
.text-danger{color:var(--danger)!important}
.text-warning{color:var(--warning)!important}
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.d-flex{display:flex}.align-center{align-items:center}.gap-1{gap:8px}.gap-2{gap:16px}
.justify-between{justify-content:space-between}
.justify-end{justify-content:flex-end}
.w-100{width:100%}

/* ─── Settings console ──────────────────────────────────── */
/* Two-pane layout: a sticky section rail on the left, one panel of
   settings on the right, and a save bar pinned to the bottom of the
   viewport that only lights up when something actually changed. */
.settings{padding-bottom:8px}
.settings__layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:24px;align-items:start}

/* min-width:0 on both tracks — grid items default to min-width:auto, which
   would let the scrollable nav row push the whole layout wider than the page. */
.settings__nav{position:sticky;top:calc(var(--header-height) + 20px);display:flex;flex-direction:column;gap:2px;min-width:0}
.settings__panels{min-width:0}
.settings-nav__item{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:10px 12px;border-radius:var(--radius-sm);
  background:transparent;border:1px solid transparent;cursor:pointer;
  font-family:inherit;font-size:var(--fs-sm);font-weight:500;color:var(--text-muted);
  text-align:left;transition:background var(--transition),color var(--transition),border-color var(--transition);
}
.settings-nav__item i{font-size:1rem;color:var(--text-subtle);transition:color var(--transition)}
.settings-nav__item:hover{background:var(--surface-3);color:var(--text)}
.settings-nav__item:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.settings-nav__item.is-active{
  background:var(--primary-light);border-color:var(--primary-border);
  color:var(--primary-ink);font-weight:600;
}
.settings-nav__item.is-active i{color:var(--primary)}
.settings-nav__label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-nav__count{
  font-size:var(--fs-2xs);font-weight:600;color:var(--text-subtle);
  background:var(--surface-3);border-radius:var(--radius-pill);
  min-width:20px;padding:1px 6px;text-align:center;
}
.settings-nav__item.is-active .settings-nav__count{background:var(--surface);color:var(--primary-ink)}
.settings-nav__meta{
  margin-top:14px;padding-top:14px;border-top:1px solid var(--border);
  display:flex;align-items:flex-start;gap:6px;
  font-size:var(--fs-2xs);color:var(--text-subtle);line-height:1.5;
}

.settings-panel{display:none}
.settings-panel.is-active{display:block;animation:settingsFade 220ms var(--ease-out)}
@keyframes settingsFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.settings-panel__header{padding:18px 22px}
.settings-panel__heading{display:flex;align-items:flex-start;gap:12px}
.settings-panel__icon{
  width:36px;height:36px;flex-shrink:0;border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;
  background:var(--primary-light);color:var(--primary);font-size:1rem;
}
.settings-panel__body{padding:0}

/* One setting per row: description on the left, control on the right. */
.setting-row{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);
  gap:24px;align-items:start;
  padding:18px 22px;border-bottom:1px solid var(--border);
}
.setting-row:last-child{border-bottom:none}
.setting-row--stacked{grid-template-columns:1fr;gap:10px}
.setting-row__label{display:block;font-size:var(--fs-sm);font-weight:600;color:var(--text);cursor:pointer}
.setting-row__req{color:var(--danger);margin-left:2px}
.setting-row__hint{font-size:var(--fs-2xs);color:var(--text-muted);line-height:1.55;margin-top:4px;max-width:56ch}
.setting-row__control{min-width:0}
.setting-row__control .form-control{margin:0}

/* Input with a leading icon or a trailing unit tag (%, days, …). */
.input-affix{position:relative;display:flex;align-items:center}
.input-affix__icon{
  position:absolute;left:12px;font-size:.9rem;color:var(--text-subtle);pointer-events:none;
}
.input-affix--icon .form-control{padding-left:34px}
.input-affix__tag{
  position:absolute;right:10px;font-size:var(--fs-2xs);font-weight:600;
  color:var(--text-muted);background:var(--surface-3);
  border-radius:var(--radius-xs);padding:2px 7px;pointer-events:none;
}
.input-affix--suffix .form-control{padding-right:58px}
/* Spinners would sit underneath the unit tag — drop them. */
.input-affix--suffix input[type=number]{-moz-appearance:textfield}
.input-affix--suffix input[type=number]::-webkit-outer-spin-button,
.input-affix--suffix input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* Toggle switch */
.switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch__track{
  position:relative;width:42px;height:24px;flex-shrink:0;
  background:var(--border-strong);border-radius:var(--radius-pill);
  transition:background var(--transition);
}
.switch__thumb{
  position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:var(--shadow-sm);transition:transform var(--transition);
}
.switch input:checked + .switch__track{background:var(--primary)}
.switch input:checked + .switch__track .switch__thumb{transform:translateX(18px)}
.switch input:focus-visible + .switch__track{box-shadow:var(--ring)}
.switch__text{font-size:var(--fs-sm);font-weight:500;color:var(--text-muted)}
.switch input:checked ~ .switch__text{color:var(--success)}

/* Logo upload + preview of the file chosen before it is sent */
.logo-field{display:flex;align-items:flex-start;gap:14px}
.logo-field__preview{
  width:104px;height:68px;flex-shrink:0;border-radius:var(--radius-sm);
  border:1px dashed var(--border-strong);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  color:var(--text-subtle);font-size:1.2rem;padding:6px;
  transition:opacity var(--transition),border-color var(--transition);
}
.logo-field__preview img{max-width:100%;max-height:100%;object-fit:contain}
.logo-field__preview.is-error{border-color:var(--danger);color:var(--danger);background:var(--danger-bg)}
/* Dimmed while "remove" is ticked, so the pending deletion is visible. */
.logo-field__preview.is-muted{opacity:.4}
.logo-field__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
/* The real input is driven by the styled <label> next to it. */
.logo-field__input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.logo-field__input:focus-visible + .logo-field__actions .btn{outline:2px solid var(--primary);outline-offset:2px}
.logo-field__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.logo-field__actions .btn{cursor:pointer;margin:0}
.logo-field__file{
  font-size:var(--fs-2xs);color:var(--text-muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;
}
.logo-field__remove{
  display:inline-flex;align-items:center;gap:7px;
  font-size:var(--fs-2xs);color:var(--text-muted);cursor:pointer;
}
.logo-field__remove input{width:14px;height:14px;accent-color:var(--danger);cursor:pointer}
@media(max-width:640px){
  .logo-field{flex-direction:column}
}

/* Sticky save bar */
.settings-bar{
  position:sticky;bottom:0;z-index:20;margin-top:20px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:12px 18px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);box-shadow:var(--shadow-md);
  transition:border-color var(--transition),background var(--transition);
}
.settings-bar.is-dirty{border-color:var(--primary-border);background:var(--primary-tint)}
.settings-bar__status{display:flex;align-items:center;gap:8px;font-size:var(--fs-xs);color:var(--text-muted)}
.settings-bar__status i{color:var(--text-subtle)}
.settings-bar.is-dirty .settings-bar__status{color:var(--primary-ink);font-weight:600}
.settings-bar.is-dirty .settings-bar__status i{color:var(--primary)}
.settings-bar__actions{display:flex;align-items:center;gap:8px}

@media(max-width:960px){
  .settings__layout{grid-template-columns:1fr;gap:16px}
  .settings__nav{
    position:static;flex-direction:row;gap:6px;
    overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;
  }
  .settings-nav__item{width:auto;flex:0 0 auto;white-space:nowrap}
  .settings-nav__count,.settings-nav__meta{display:none}
}
@media(max-width:640px){
  .setting-row{grid-template-columns:1fr;gap:10px;padding:16px 16px}
  .settings-panel__header{padding:16px}
  .settings-bar{flex-direction:column;align-items:stretch}
  .settings-bar__actions{justify-content:flex-end}
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* ================================================================
   PUBLIC SITE · Marketing, Discovery & Property Detail
   ----------------------------------------------------------------
   Design principles (in priority order):
     1. Photography leads. Chrome recedes.
     2. Hairline borders over heavy shadows.
     3. One accent colour, used sparingly, so CTAs actually pop.
     4. Tight radii (6-8px) — architectural, not consumer-app.
     5. Every interactive element has a visible focus state.
   ================================================================ */

.public-body{background:var(--bg);color:var(--text-body)}

/* Container. --gutter widens on large screens so content never
   kisses the viewport edge on ultrawide monitors. */
.site-container{
  width:100%;max-width:var(--container);
  margin-inline:auto;padding-inline:var(--gutter);
}
.site-container--narrow{max-width:940px}
@media(min-width:1440px){:root{--gutter:32px}}

/* Legacy aliases — older markup keeps working during the migration. */
.public-container,.public-container--wide{
  width:100%;max-width:var(--container);
  margin-inline:auto;padding-inline:var(--gutter);
}

/* Skip link: first tab stop, invisible until focused. */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:var(--primary);color:#fff;
  padding:12px 20px;border-radius:0 0 var(--radius) 0;
  font-size:var(--fs-sm);font-weight:600;
}
.skip-link:focus{left:0;color:#fff}

/* ════════════════════════════════════════════════════════════
   HEADER · topbar + sticky nav
   ════════════════════════════════════════════════════════════ */
.site-header{position:sticky;top:0;z-index:200}

/* Utility strip. Collapses to zero height once the page scrolls,
   handing the vertical space back to the content. */
.topbar{
  background:var(--ink);color:rgba(255,255,255,.78);
  font-size:var(--fs-xs);
  height:40px;overflow:hidden;
  transition:height var(--transition-slow),opacity var(--transition-slow);
}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);height:40px}
.topbar__contact{display:flex;align-items:center;gap:var(--space-6);min-width:0}
.topbar__contact a,.topbar__contact span{
  display:inline-flex;align-items:center;gap:7px;color:rgba(255,255,255,.78);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.topbar__contact a:hover{color:#fff}
.topbar__contact i{color:var(--primary);font-size:.9rem;flex-shrink:0}
.topbar__social{display:flex;align-items:center;gap:var(--space-1)}
.topbar__social a{
  width:30px;height:30px;border-radius:var(--radius-sm);
  display:inline-flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.62);transition:all var(--transition);
}
.topbar__social a:hover{background:rgba(255,255,255,.10);color:#fff}
.is-scrolled .topbar{height:0;opacity:0}
@media(max-width:860px){
  .topbar__social{display:none}
  .topbar__contact{gap:var(--space-4)}
}
@media(max-width:520px){.topbar__contact a:nth-child(2){display:none}}

/* Main bar */
.navbar{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  transition:box-shadow var(--transition-slow);
}
.is-scrolled .navbar{box-shadow:0 1px 18px rgba(29,51,64,.09)}
.navbar__inner{
  display:flex;align-items:center;gap:var(--space-8);
  height:var(--navbar-height);
}

/* Brand */
.brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
.brand__mark{
  width:38px;height:38px;border-radius:var(--radius);
  background:linear-gradient(140deg,#2b9fe0 0%,var(--primary) 70%);
  color:#fff;display:grid;place-items:center;
  font-size:1.05rem;box-shadow:0 3px 10px rgba(0,117,192,.28);
  overflow:hidden;
}
/* Uploaded logo replaces the gradient tile rather than sitting on top of it. */
.brand__mark--image{background:var(--surface);border:1px solid var(--border);box-shadow:none;padding:3px}
.brand__mark img{width:100%;height:100%;object-fit:contain}
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__name{
  font-family:var(--font-display);font-size:1.2rem;font-weight:800;
  color:var(--text);letter-spacing:-.02em;
}
.brand__tag{
  font-size:.62rem;font-weight:600;color:var(--text-subtle);
  text-transform:uppercase;letter-spacing:.12em;margin-top:1px;
}
@media(max-width:359px){.brand__tag{display:none}}

/* Desktop links. Underline grows from the left on hover — the
   reference's signature nav affordance, kept subtle. */
.navmenu{margin-left:auto}
.navmenu__list{display:flex;align-items:center;gap:var(--space-1);list-style:none}
.navmenu__link{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  padding:10px 14px;border-radius:var(--radius-sm);
  font-size:var(--fs-sm);font-weight:600;color:var(--text-body);
  letter-spacing:.005em;transition:color var(--transition);
}
.navmenu__link::after{
  content:'';position:absolute;left:14px;right:14px;bottom:2px;height:2px;
  background:var(--primary);border-radius:2px;
  transform:scaleX(0);transform-origin:left;
  transition:transform var(--transition);
}
.navmenu__link:hover{color:var(--primary)}
.navmenu__link:hover::after,.navmenu__link.is-active::after{transform:scaleX(1)}
.navmenu__link.is-active{color:var(--text);font-weight:700}

.navbar__actions{display:flex;align-items:center;gap:var(--space-2);flex-shrink:0}

/* Hamburger — hidden on desktop, 44px target on mobile. */
.nav-toggle{
  display:none;width:44px;height:44px;
  align-items:center;justify-content:center;
  background:transparent;border:1px solid var(--border);
  border-radius:var(--radius-sm);color:var(--text);
  font-size:1.4rem;transition:all var(--transition);
}
.nav-toggle:hover{border-color:var(--border-strong);background:var(--surface-3)}

/* ── Mobile drawer ──────────────────────────────────────────
   Off-canvas panel rather than a squashed dropdown: full-size
   tap targets, room to breathe, and the CTAs stay reachable. */
.nav-scrim{
  position:fixed;inset:0;z-index:210;
  background:rgba(16,34,44,.55);backdrop-filter:blur(3px);
  opacity:0;visibility:hidden;
  transition:opacity var(--transition-slow),visibility 0s linear var(--transition-slow);
}
.nav-scrim.is-open{opacity:1;visibility:visible;transition:opacity var(--transition-slow),visibility 0s}

@media(max-width:1024px){
  .navbar__inner{gap:var(--space-4)}
  .nav-toggle{display:inline-flex}
  .navbar__actions .btn--outline{display:none}

  .navmenu{
    position:fixed;top:0;right:0;bottom:0;z-index:220;
    width:min(360px,86vw);
    background:var(--surface);
    border-left:1px solid var(--border);
    box-shadow:var(--shadow-xl);
    display:flex;flex-direction:column;
    padding:var(--space-5);
    transform:translateX(100%);
    transition:transform var(--transition-slow);
    overflow-y:auto;overscroll-behavior:contain;
    margin-left:0;
  }
  .navmenu.is-open{transform:translateX(0)}
  .navmenu__head{
    display:flex;align-items:center;justify-content:space-between;
    padding-bottom:var(--space-4);margin-bottom:var(--space-3);
    border-bottom:1px solid var(--border);
  }
  .navmenu__close{
    width:44px;height:44px;display:grid;place-items:center;
    background:transparent;border:1px solid var(--border);
    border-radius:var(--radius-sm);color:var(--text);font-size:1.2rem;
  }
  .navmenu__close:hover{background:var(--surface-3)}
  .navmenu__list{flex-direction:column;align-items:stretch;gap:2px}
  .navmenu__link{
    padding:14px 12px;font-size:1rem;border-radius:var(--radius-sm);
    min-height:48px;
  }
  .navmenu__link::after{display:none}
  .navmenu__link:hover,.navmenu__link.is-active{background:var(--primary-tint);color:var(--primary)}
  .navmenu__footer{
    margin-top:auto;padding-top:var(--space-5);
    border-top:1px solid var(--border);
    display:flex;flex-direction:column;gap:var(--space-2);
  }
  .navmenu__footer .btn{width:100%}
}
@media(min-width:1025px){
  .navmenu__head,.navmenu__footer{display:none}
}
/* Body scroll lock while the drawer is open. */
body.has-drawer{overflow:hidden}

/* ════════════════════════════════════════════════════════════
   SECTION SYSTEM
   ════════════════════════════════════════════════════════════ */
.section{padding-block:var(--section-y)}
.section--tight{padding-block:var(--section-y-sm)}
.section--flush-top{padding-top:0}
.section--flush-bottom{padding-bottom:0}
.section--muted{background:var(--surface-3)}
.section--surface{background:var(--surface)}
.section--ink{background:var(--ink);color:rgba(255,255,255,.74)}
.section--ink h1,.section--ink h2,.section--ink h3,.section--ink h4{color:#fff}
@media(max-width:768px){:root{--section-y:56px;--section-y-sm:40px;--section-head-gap:32px}}

/* Section header. The uppercase pill eyebrow is the family
   resemblance to the reference; everything else is ours. */
.section-head{
  max-width:660px;margin:0 auto var(--section-head-gap);
  text-align:center;
}
.section-head--start{text-align:left;margin-inline:0;max-width:640px}
.section-head--split{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:var(--space-6);max-width:none;text-align:left;flex-wrap:wrap;
}
.section-head--split .section-head__body{max-width:620px}

.eyebrow{
  display:inline-block;
  padding:6px 16px;border-radius:var(--radius-pill);
  background:var(--primary-light);color:var(--primary-ink);
  font-family:var(--font);font-size:var(--fs-2xs);font-weight:700;
  text-transform:uppercase;letter-spacing:.09em;
  margin-bottom:14px;
}
.section--ink .eyebrow{background:rgba(255,255,255,.10);color:#8fcdf0}

.public-body .section-title{
  font-family:var(--font-display);
  font-size:var(--fs-h2);font-weight:700;
  color:var(--text);letter-spacing:-.02em;line-height:var(--lh-tight);
  /* Explicitly unset the admin .section-title divider styles. */
  text-transform:none;margin:0;padding-bottom:0;border-bottom:0;
}
.section-title em{font-style:normal;color:var(--primary)}
.section--ink .section-title{color:#fff}
.section-lede{
  margin-top:14px;font-size:var(--fs-body);
  color:var(--text-muted);line-height:var(--lh-body);
}
.section-head:not(.section-head--start):not(.section-head--split) .section-lede{
  max-width:560px;margin-inline:auto;
}
.section--ink .section-lede{color:rgba(255,255,255,.68)}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero{
  position:relative;overflow:hidden;
  padding-block:clamp(48px,6vw,88px);
  background:
    radial-gradient(1000px 520px at 88% -10%,rgba(0,117,192,.10) 0%,transparent 62%),
    radial-gradient(760px 420px at -6% 105%,rgba(0,117,192,.07) 0%,transparent 60%),
    linear-gradient(180deg,#f4fafd 0%,var(--bg) 100%);
}
/* Faint architectural grid, masked to a soft ellipse so it never
   competes with the photography. */
.hero::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(29,51,64,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(29,51,64,.035) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 72% 62% at 50% 34%,#000 18%,transparent 72%);
  mask-image:radial-gradient(ellipse 72% 62% at 50% 34%,#000 18%,transparent 72%);
}
.hero__inner{position:relative;z-index:1}

.hero__head{max-width:720px;margin:0 auto var(--space-10);text-align:center}
.hero__badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 8px 6px 6px;border-radius:var(--radius-pill);
  background:var(--surface);border:1px solid var(--border);
  box-shadow:var(--shadow-xs);
  font-size:var(--fs-xs);font-weight:500;color:var(--text-body);
  margin-bottom:var(--space-5);
}
.hero__badge .pip{
  background:var(--primary);color:#fff;
  font-size:var(--fs-2xs);font-weight:700;
  padding:3px 10px;border-radius:var(--radius-pill);
  text-transform:uppercase;letter-spacing:.06em;
}
.hero__title{
  font-family:var(--font-display);
  font-size:var(--fs-display);font-weight:800;
  letter-spacing:-.03em;line-height:1.08;color:var(--text);
  margin-bottom:var(--space-4);
  text-wrap:balance;
}
.hero__title em{font-style:normal;color:var(--primary)}
.hero__lede{
  font-size:1.05rem;color:var(--text-muted);
  line-height:var(--lh-body);max-width:560px;margin-inline:auto;
}

/* ── Search bar · the primary CTA of the whole site ────────── */
.searchbar{
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:var(--space-5);
  box-shadow:0 6px 28px rgba(29,51,64,.08);
  margin-bottom:var(--space-10);
}
.searchbar__grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr auto;
  gap:var(--space-3);align-items:end;
}
.searchbar__field{display:flex;flex-direction:column;min-width:0}
.searchbar__label{
  font-size:var(--fs-xs);font-weight:600;color:var(--text);
  margin-bottom:7px;
}
.searchbar__control{position:relative}
.searchbar__control > i{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  color:var(--text-subtle);font-size:.95rem;pointer-events:none;
}
.searchbar input,.searchbar select{
  width:100%;height:44px;
  padding:0 12px 0 36px;
  border:1px solid var(--border-strong);border-radius:var(--radius-sm);
  background:var(--surface);color:var(--text);
  font-size:var(--fs-sm);
  transition:border-color var(--transition),box-shadow var(--transition);
}
.searchbar select{
  appearance:none;cursor:pointer;padding-right:32px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7688' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5l3-3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
}
.searchbar input::placeholder{color:var(--text-subtle)}
.searchbar input:focus,.searchbar select:focus{
  outline:none;border-color:var(--primary);box-shadow:var(--ring);
}
.searchbar__submit{
  height:44px;padding:0 26px;
  background:var(--primary);color:#fff;border:none;
  border-radius:var(--radius-sm);
  font-size:var(--fs-sm);font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  box-shadow:0 4px 14px rgba(0,117,192,.30);
  transition:all var(--transition);
}
.searchbar__submit:hover{background:var(--primary-hover);box-shadow:0 6px 20px rgba(0,117,192,.38);transform:translateY(-1px)}
.searchbar__submit:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

@media(max-width:1100px){
  .searchbar__grid{grid-template-columns:1fr 1fr 1fr;}
  .searchbar__field--wide{grid-column:1/-1}
  .searchbar__submit{grid-column:1/-1;width:100%}
}
/* Phones: one field per row. A two-column grid leaves the fourth field
   (Bedrooms) sitting alone beside an empty cell, which is the single
   loudest "unfinished" signal on the whole page. */
@media(max-width:640px){
  .searchbar{padding:var(--space-4);border-radius:var(--radius)}
  .searchbar__grid{grid-template-columns:1fr;gap:var(--space-3)}
  .searchbar__field--wide{grid-column:auto}
  .searchbar__submit{margin-top:var(--space-1)}
}

/* ── Hero gallery · real listings, real agent ───────────────
   Left: newest featured property, large. Right: two supporting
   shots stacked over an agent card. Collapses to a single
   column on tablet, then hides the support column on phones so
   the lead image stays large. */
.hero-gallery{
  display:grid;
  grid-template-columns:1.62fr 1fr;
  gap:var(--space-4);
  margin-bottom:var(--space-10);
}
.hero-gallery__aside{display:flex;flex-direction:column;gap:var(--space-4)}
.hero-gallery__aside .hero-shot{flex:1 1 0;min-height:150px}
.hero-gallery__aside .hero-agent{flex:0 0 auto}
/* Listings without supporting photos: centre the agent card rather than
   leaving a stretched, mostly-empty panel beside the lead image. */
.hero-gallery__aside > .hero-agent:only-child{margin-block:auto}

.hero-shot{
  position:relative;display:block;overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  background:var(--surface-3);
  box-shadow:var(--shadow-md);
  transition:box-shadow var(--transition-slow);
}
.hero-shot img{width:100%;height:100%;object-fit:cover;transition:transform 700ms var(--ease-out)}
.hero-shot:hover{box-shadow:var(--shadow-lg)}
.hero-shot:hover img{transform:scale(1.035)}
.hero-shot--lead{min-height:420px}
.hero-shot--sm{min-height:150px}
.hero-shot__overlay{
  position:absolute;top:14px;right:14px;
  display:flex;flex-direction:column;align-items:flex-end;gap:8px;
}
.hero-shot__flag{
  padding:5px 12px;border-radius:var(--radius-sm);
  background:var(--primary);color:#fff;
  font-size:var(--fs-2xs);font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;
}
.hero-shot__price{
  padding:8px 16px;border-radius:var(--radius-sm);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  font-family:var(--font-display);
  font-size:1.15rem;font-weight:700;color:var(--text);
  box-shadow:var(--shadow-sm);
}
/* Caption sits in a gradient scrim so white text stays legible
   over any photograph. */
.hero-shot__caption{
  position:absolute;left:0;right:0;bottom:0;
  padding:36px 18px 16px;color:#fff;
  background:linear-gradient(to top,rgba(16,34,44,.86) 0%,rgba(16,34,44,.45) 45%,transparent 100%);
}
.hero-shot__caption strong{
  display:block;font-family:var(--font-display);
  font-size:1.05rem;font-weight:700;line-height:1.3;
}
.hero-shot__caption span{
  display:inline-flex;align-items:center;gap:6px;
  font-size:var(--fs-xs);color:rgba(255,255,255,.82);margin-top:5px;
}

.hero-agent{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:var(--space-4);box-shadow:var(--shadow-sm);
  transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition);
}
.hero-agent:hover{border-color:var(--primary-border);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.hero-agent__top{display:flex;align-items:center;gap:12px}
.hero-agent__avatar{
  width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0;
  border:2px solid var(--primary-border);background:var(--surface-3);
  display:grid;place-items:center;
  font-weight:700;color:var(--primary-ink);font-size:.95rem;
}
.hero-agent__name{font-size:var(--fs-sm);font-weight:700;color:var(--text);line-height:1.25}
.hero-agent__role{font-size:var(--fs-xs);color:var(--text-muted)}
.hero-agent__meta{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:12px;padding-top:12px;border-top:1px solid var(--border);
  font-size:var(--fs-xs);color:var(--text-muted);
}
.hero-agent__stars{display:inline-flex;gap:2px;color:var(--gold);font-size:.78rem}

@media(max-width:1024px){
  .hero-gallery{grid-template-columns:1fr}
  .hero-gallery__aside{flex-direction:row;flex-wrap:wrap}
  .hero-gallery__aside .hero-shot{flex:1 1 200px}
  .hero-gallery__aside .hero-agent{flex:1 1 100%}
  .hero-gallery__aside > .hero-agent:only-child{margin-block:0}
  .hero-shot--lead{min-height:320px}
  .hero-shot--sm{min-height:150px}
}
@media(max-width:768px){
  .hero-gallery__aside .hero-shot{flex:1 1 45%}
}
@media(max-width:520px){
  .hero-shot--lead{min-height:250px}
  .hero-shot--sm{display:none}
}

/* ── Hero stats strip ─────────────────────────────────────── */
.hero-stats{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:var(--space-4);
}
.hero-stat{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:var(--space-5) var(--space-4);
  text-align:center;transition:border-color var(--transition),box-shadow var(--transition);
}
.hero-stat:hover{border-color:var(--primary-border);box-shadow:var(--shadow-sm)}
.hero-stat__value{
  font-family:var(--font-display);
  font-size:1.9rem;font-weight:800;color:var(--text);
  letter-spacing:-.03em;line-height:1;
}
.hero-stat__label{font-size:var(--fs-xs);color:var(--text-muted);margin-top:6px}
@media(max-width:640px){
  .hero-stats{grid-template-columns:1fr 1fr;gap:var(--space-3)}
  .hero-stat{padding:var(--space-4) var(--space-3)}
  .hero-stat__value{font-size:1.5rem}
}

/* ════════════════════════════════════════════════════════════
   PROPERTY CARD · the workhorse component
   ----------------------------------------------------------------
   Anatomy, top to bottom:
     media (4:3, zoom on hover) → status tag → favourite button
     price (loudest element) → title → location
     spec rail (beds/baths/area) in a bordered footer
   The whole card is clickable via a stretched pseudo-element on
   the title link, which keeps the favourite button independently
   focusable and keeps one clear link target for screen readers.
   ════════════════════════════════════════════════════════════ */
.pgrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:var(--space-6);
}
@media(max-width:640px){
  .pgrid{grid-template-columns:1fr;gap:var(--space-4)}
}

.pcard{
  position:relative;display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;height:100%;
  transition:border-color var(--transition),box-shadow var(--transition),transform var(--transition);
}
.pcard:hover{
  border-color:var(--border-strong);
  box-shadow:var(--shadow-md);
  transform:translateY(-3px);
}
/* Focus ring wraps the whole card when the title link is focused. */
.pcard:focus-within{border-color:var(--primary);box-shadow:var(--ring)}

.pcard__media{
  position:relative;aspect-ratio:4/3;overflow:hidden;
  background:var(--surface-3);
}
.pcard__media img{width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--ease-out)}
.pcard:hover .pcard__media img{transform:scale(1.05)}
.pcard__tags{
  position:absolute;top:12px;left:12px;
  display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 68px);
}
.pcard__count{
  position:absolute;bottom:12px;right:12px;
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:var(--radius-sm);
  background:rgba(16,34,44,.72);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:#fff;font-size:var(--fs-2xs);font-weight:600;
}

/* Favourite. Real POST action — see FavoritesController. */
.pcard__fav{
  position:absolute;top:10px;right:10px;z-index:2;
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.6);
  color:var(--text-muted);font-size:1rem;
  box-shadow:var(--shadow-sm);
  transition:all var(--transition);cursor:pointer;
}
.pcard__fav:hover{color:var(--danger);transform:scale(1.08)}
.pcard__fav:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.pcard__fav.is-saved{color:var(--danger)}
.pcard__fav.is-saved i::before{content:"\f415"} /* bi-heart-fill */
@media(pointer:coarse){.pcard__fav{width:44px;height:44px}}
/* Heart pop — skipped entirely under reduced-motion (see below). */
@keyframes favPop{0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}
.pcard__fav.just-saved{animation:favPop 320ms var(--ease-out)}

.pcard__body{
  display:flex;flex-direction:column;gap:6px;flex:1;
  padding:var(--space-4);
}
.pcard__price{
  font-family:var(--font-display);
  font-size:1.3rem;font-weight:700;color:var(--text);
  letter-spacing:-.02em;line-height:1.2;
}
.pcard__price small{
  font-family:var(--font);font-size:var(--fs-xs);
  font-weight:500;color:var(--text-muted);margin-left:3px;
}
.pcard__title{
  font-family:var(--font-display);
  font-size:var(--fs-h4);font-weight:600;line-height:1.35;
  margin:0;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}
.pcard__title a{color:var(--text);transition:color var(--transition)}
.pcard__title a:hover{color:var(--primary)}
/* Stretched link — makes the entire card clickable. */
.pcard__title a::after{content:'';position:absolute;inset:0;z-index:1}
.pcard__loc{
  display:flex;align-items:center;gap:6px;
  font-size:var(--fs-xs);color:var(--text-muted);
}
.pcard__loc i{color:var(--primary);flex-shrink:0}
.pcard__loc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.pcard__specs{
  display:flex;flex-wrap:wrap;gap:var(--space-4);
  margin-top:auto;padding-top:var(--space-3);
  border-top:1px solid var(--border);
  font-size:var(--fs-xs);color:var(--text-muted);
}
.pcard__specs > span{display:inline-flex;align-items:center;gap:6px}
.pcard__specs i{color:var(--primary);font-size:.95rem}

/* Status / type tags */
.tag{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:var(--radius-sm);
  font-size:var(--fs-2xs);font-weight:600;letter-spacing:.02em;
  border:1px solid transparent;white-space:nowrap;
}
.tag--solid{background:var(--primary);color:#fff;border-color:var(--primary)}
.tag--accent{background:var(--primary-light);color:var(--primary-ink);border-color:var(--primary-border)}
.tag--glass{
  background:rgba(255,255,255,.94);color:var(--text);
  border-color:rgba(255,255,255,.7);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  box-shadow:var(--shadow-xs);
}
.tag--green{background:#e8f7ee;color:var(--success);border-color:rgba(21,128,61,.24)}
.tag--warm{background:#fff1e8;color:var(--orange);border-color:rgba(194,65,12,.24)}
.tag--gold{background:#fdf4e3;color:var(--warning);border-color:rgba(180,83,9,.24)}
.tag--muted{background:var(--surface-3);color:var(--text-muted);border-color:var(--border-strong)}

/* ── List view (listings page toggle) ─────────────────────── */
.pgrid--list{grid-template-columns:1fr;gap:var(--space-4)}
.pgrid--list .pcard{flex-direction:row}
.pgrid--list .pcard__media{
  aspect-ratio:auto;width:300px;flex-shrink:0;align-self:stretch;
}
.pgrid--list .pcard__body{padding:var(--space-5) var(--space-6)}
.pgrid--list .pcard__title{-webkit-line-clamp:1;line-clamp:1}
.pgrid--list .pcard__desc{
  font-size:var(--fs-sm);color:var(--text-muted);line-height:var(--lh-body);
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}
@media(max-width:768px){
  .pgrid--list .pcard{flex-direction:column}
  .pgrid--list .pcard__media{width:100%;aspect-ratio:4/3}
  .pgrid--list .pcard__body{padding:var(--space-4)}
  .pgrid--list .pcard__desc{display:none}
}

/* ════════════════════════════════════════════════════════════
   SPOTLIGHT · split hero card for the headline property
   ════════════════════════════════════════════════════════════ */
.spotlight{
  display:grid;grid-template-columns:1.05fr 1fr;
  background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius-lg);
  overflow:hidden;position:relative;
  transition:border-color var(--transition),box-shadow var(--transition);
}
.spotlight:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}
.spotlight__media{position:relative;min-height:420px;overflow:hidden;background:var(--surface-3)}
.spotlight__media img{width:100%;height:100%;object-fit:cover;transition:transform 700ms var(--ease-out)}
.spotlight:hover .spotlight__media img{transform:scale(1.04)}
.spotlight__tags{position:absolute;top:16px;left:16px;display:flex;gap:8px;flex-wrap:wrap}
.spotlight__body{
  padding:var(--space-10);
  display:flex;flex-direction:column;justify-content:center;
}
.spotlight__meta{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin-bottom:var(--space-4);
}
.spotlight__title{
  font-family:var(--font-display);
  font-size:var(--fs-h3);font-weight:700;letter-spacing:-.02em;
  line-height:1.3;margin-bottom:8px;
}
.spotlight__title a{color:var(--text)}
.spotlight__title a:hover{color:var(--primary)}
.spotlight__title a::after{content:'';position:absolute;inset:0;z-index:1}
.spotlight__desc{
  font-size:var(--fs-sm);color:var(--text-muted);
  line-height:var(--lh-loose);margin:var(--space-4) 0;
  display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;
  -webkit-box-orient:vertical;overflow:hidden;
}
.spotlight__footer{
  margin-top:auto;padding-top:var(--space-4);
  border-top:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-4);flex-wrap:wrap;
}
.spotlight__price{
  font-family:var(--font-display);
  font-size:1.75rem;font-weight:700;color:var(--text);letter-spacing:-.02em;
}
.spotlight__price small{font-family:var(--font);font-size:var(--fs-sm);font-weight:500;color:var(--text-muted)}
.spotlight__actions{display:flex;gap:var(--space-2);position:relative;z-index:2}
@media(max-width:992px){
  .spotlight{grid-template-columns:1fr}
  .spotlight__media{min-height:280px}
  .spotlight__body{padding:var(--space-6)}
}

/* Spec rail — shared by spotlight + detail page */
.spec-rail{
  display:flex;flex-wrap:wrap;gap:var(--space-5);
  list-style:none;font-size:var(--fs-sm);color:var(--text-body);
}
.spec-rail li{display:inline-flex;align-items:center;gap:7px}
.spec-rail i{color:var(--primary);font-size:1rem}

/* ════════════════════════════════════════════════════════════
   CATEGORY TILES · browse by property type
   ════════════════════════════════════════════════════════════ */
.cat-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:var(--space-4);
}
.cat-tile{
  display:flex;flex-direction:column;align-items:flex-start;gap:10px;
  padding:var(--space-5);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);
  transition:all var(--transition);
}
.cat-tile:hover{
  border-color:var(--primary);background:var(--primary-tint);
  transform:translateY(-3px);box-shadow:var(--shadow-sm);
}
.cat-tile__icon{
  width:46px;height:46px;border-radius:var(--radius);
  display:grid;place-items:center;
  background:var(--primary-light);color:var(--primary);font-size:1.25rem;
  transition:all var(--transition);
}
.cat-tile:hover .cat-tile__icon{background:var(--primary);color:#fff}
.cat-tile__name{
  font-family:var(--font-display);font-size:var(--fs-body);
  font-weight:700;color:var(--text);
}
.cat-tile__count{font-size:var(--fs-xs);color:var(--text-muted)}
/* A 190px minimum resolves to a single column on a phone, which turns
   six categories into six screens of mostly empty card. Two up, with
   the icon inline, keeps the whole set scannable in one glance. */
@media(max-width:640px){
  .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
  .cat-tile{padding:var(--space-4);gap:8px}
  .cat-tile__icon{width:40px;height:40px;font-size:1.1rem}
}
@media(max-width:360px){
  .cat-grid{grid-template-columns:1fr}
  .cat-tile{flex-direction:row;align-items:center;gap:var(--space-3)}
  .cat-tile__icon{flex-shrink:0}
}

/* ════════════════════════════════════════════════════════════
   VALUE PROPOSITION GRID
   ════════════════════════════════════════════════════════════ */
.value-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-5);
}
@media(max-width:1024px){.value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.value-grid{grid-template-columns:1fr}}
.value-card{
  padding:var(--space-6);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);
  transition:all var(--transition);
}
.value-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm);transform:translateY(-2px)}
.value-card__icon{
  width:48px;height:48px;border-radius:var(--radius);
  display:grid;place-items:center;
  background:var(--primary-light);color:var(--primary);
  font-size:1.3rem;margin-bottom:var(--space-4);
}
.value-card__icon--green{background:var(--success-bg);color:var(--success)}
.value-card__icon--gold{background:var(--warning-bg);color:var(--warning)}
.value-card__icon--purple{background:var(--purple-bg);color:var(--purple)}
.value-card__icon--warm{background:var(--orange-bg);color:var(--orange)}
.value-card__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);margin-bottom:8px;
}
.value-card__desc{font-size:var(--fs-sm);color:var(--text-muted);line-height:var(--lh-body)}

/* Ink variant, for use inside .section--ink */
.section--ink .value-card{
  background:var(--ink-2);border-color:rgba(255,255,255,.10);
}
.section--ink .value-card:hover{border-color:rgba(255,255,255,.22);box-shadow:none}
.section--ink .value-card__icon{background:rgba(0,117,192,.24);color:#8fcdf0}
.section--ink .value-card__desc{color:rgba(255,255,255,.66)}

/* ════════════════════════════════════════════════════════════
   AGENT CARDS
   ════════════════════════════════════════════════════════════ */
.agent-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--space-5);
}
@media(max-width:1024px){.agent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.agent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Two up is kept down to the narrowest common phone: a full-width
   1:1 portrait per agent turns a four-person team into four screens
   of scrolling. */
@media(max-width:560px){
  .agent-grid{gap:var(--space-3)}
  .agent-card__body{padding:var(--space-3)}
  .agent-card__contact{flex-wrap:wrap;gap:6px;margin-top:var(--space-3)}
}
@media(max-width:359px){.agent-grid{grid-template-columns:1fr}}
.agent-card{
  position:relative;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  transition:all var(--transition);
}
.agent-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md);transform:translateY(-3px)}
.agent-card__media{
  position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--surface-3);
}
.agent-card__media img{width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--ease-out)}
.agent-card:hover .agent-card__media img{transform:scale(1.05)}
.agent-card__badge{position:absolute;top:12px;left:12px}
.agent-card__body{padding:var(--space-4);text-align:center}
.agent-card__name{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);
}
.agent-card__role{
  font-size:var(--fs-xs);color:var(--text-muted);margin-top:2px;
}
.agent-card__stats{
  display:flex;justify-content:center;gap:var(--space-5);
  margin-top:var(--space-3);padding-top:var(--space-3);
  border-top:1px solid var(--border);
  font-size:var(--fs-xs);color:var(--text-muted);
}
.agent-card__stats strong{
  display:block;font-family:var(--font-display);
  font-size:1.05rem;color:var(--text);font-weight:700;
}
.agent-card__contact{
  display:flex;justify-content:center;gap:var(--space-2);
  margin-top:var(--space-4);
}
.agent-card__contact a{
  width:38px;height:38px;border-radius:var(--radius-sm);
  display:grid;place-items:center;
  background:var(--surface-3);color:var(--text-muted);
  transition:all var(--transition);
}
.agent-card__contact a:hover{background:var(--primary);color:#fff}
@media(pointer:coarse){.agent-card__contact a{width:44px;height:44px}}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.quote-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:var(--space-5);
}
.quote-card{
  display:flex;flex-direction:column;gap:var(--space-4);
  padding:var(--space-6);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);
  transition:all var(--transition);
}
.quote-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.quote-card__stars{display:inline-flex;gap:3px;color:var(--gold);font-size:.9rem}
.quote-card__text{
  font-size:var(--fs-body);color:var(--text-body);
  line-height:var(--lh-body);
}
.quote-card__author{
  display:flex;align-items:center;gap:12px;
  margin-top:auto;padding-top:var(--space-4);
  border-top:1px solid var(--border);
}
.quote-card__avatar{
  width:42px;height:42px;border-radius:50%;flex-shrink:0;
  display:grid;place-items:center;object-fit:cover;
  background:var(--primary-light);color:var(--primary-ink);
  font-weight:700;font-size:var(--fs-sm);
}
.quote-card__name{font-size:var(--fs-sm);font-weight:700;color:var(--text)}
.quote-card__role{font-size:var(--fs-xs);color:var(--text-muted)}

/* ════════════════════════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════════════════════════ */
.cta{
  position:relative;overflow:hidden;
  border-radius:var(--radius-lg);
  padding:var(--space-16) var(--space-12);
  background:
    radial-gradient(680px 340px at 4% 0%,rgba(0,117,192,.42) 0%,transparent 62%),
    radial-gradient(620px 320px at 96% 100%,rgba(43,159,224,.24) 0%,transparent 60%),
    linear-gradient(135deg,var(--ink) 0%,var(--ink-2) 60%,var(--ink-3) 100%);
  color:rgba(255,255,255,.74);
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-8);flex-wrap:wrap;
}
.cta__title{
  font-family:var(--font-display);
  font-size:var(--fs-h2);font-weight:700;color:#fff;
  letter-spacing:-.02em;line-height:1.2;margin-bottom:10px;
}
.cta__desc{font-size:var(--fs-body);color:rgba(255,255,255,.70);max-width:540px}
.cta__actions{display:flex;gap:var(--space-3);flex-wrap:wrap}
.cta .btn--primary{background:#fff;color:var(--ink);border-color:#fff}
.cta .btn--primary:hover{background:#e9f2f7;color:var(--ink);border-color:#e9f2f7;box-shadow:0 6px 20px rgba(0,0,0,.22)}
.cta .btn--outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.34)}
.cta .btn--outline:hover{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.6)}
.cta .btn:focus-visible{outline-color:#fff}
@media(max-width:768px){
  .cta{padding:var(--space-10) var(--space-6);text-align:center;justify-content:center}
  .cta__desc{margin-inline:auto}
  .cta__actions{justify-content:center;width:100%}
  .cta__actions .btn{flex:1;min-width:160px}
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer{background:var(--ink);color:rgba(255,255,255,.68);padding-top:var(--space-16)}
.site-footer__grid{
  display:grid;grid-template-columns:1.7fr repeat(3,1fr);
  gap:var(--space-10);
  padding-bottom:var(--space-10);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.site-footer .brand__name{color:#fff}
.site-footer .brand__tag{color:rgba(255,255,255,.45)}
.site-footer__about{
  font-size:var(--fs-sm);line-height:var(--lh-body);
  max-width:340px;margin:var(--space-4) 0;
}
.site-footer__contact{
  list-style:none;display:flex;flex-direction:column;gap:10px;
  font-size:var(--fs-sm);margin-bottom:var(--space-5);
}
.site-footer__contact li{display:flex;align-items:flex-start;gap:10px}
.site-footer__contact i{color:var(--primary);margin-top:3px;flex-shrink:0}
.site-footer__contact a{color:rgba(255,255,255,.68)}
.site-footer__contact a:hover{color:#fff}
.site-footer__social{display:flex;gap:var(--space-2)}
.site-footer__social a{
  width:40px;height:40px;border-radius:var(--radius-sm);
  display:grid;place-items:center;
  background:rgba(255,255,255,.07);color:rgba(255,255,255,.68);
  font-size:1rem;transition:all var(--transition);
}
.site-footer__social a:hover{background:var(--primary);color:#fff;transform:translateY(-2px)}
.site-footer__title{
  font-family:var(--font-display);
  font-size:var(--fs-sm);font-weight:700;color:#fff;
  text-transform:uppercase;letter-spacing:.08em;
  margin-bottom:var(--space-4);
}
.site-footer__links{list-style:none;display:flex;flex-direction:column;gap:11px}
.site-footer__links a{
  color:rgba(255,255,255,.68);font-size:var(--fs-sm);
  display:inline-block;transition:all var(--transition);
}
.site-footer__links a:hover{color:#fff;transform:translateX(3px)}
.site-footer__bottom{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:var(--space-3);
  padding-block:var(--space-5);
  font-size:var(--fs-xs);color:rgba(255,255,255,.48);
}
.site-footer__bottom a{color:rgba(255,255,255,.48)}
.site-footer__bottom a:hover{color:#fff}
@media(max-width:900px){.site-footer__grid{grid-template-columns:1fr 1fr;gap:var(--space-8)}}
@media(max-width:560px){
  .site-footer__grid{grid-template-columns:1fr}
  .site-footer__bottom{flex-direction:column;text-align:center}
}

/* ════════════════════════════════════════════════════════════
   PAGE HERO · subpage banner + breadcrumb
   ════════════════════════════════════════════════════════════ */
.page-hero{
  position:relative;overflow:hidden;
  padding-block:var(--space-16) var(--space-12);
  background:
    radial-gradient(900px 400px at 50% -20%,rgba(0,117,192,.10) 0%,transparent 68%),
    linear-gradient(180deg,#f4fafd 0%,var(--bg) 100%);
  border-bottom:1px solid var(--border);
  text-align:center;
}
.page-hero__title{
  font-family:var(--font-display);
  font-size:var(--fs-h1);font-weight:800;
  letter-spacing:-.03em;line-height:1.12;color:var(--text);
  margin-bottom:12px;text-wrap:balance;
}
.page-hero__lede{
  font-size:var(--fs-body);color:var(--text-muted);
  max-width:580px;margin-inline:auto;line-height:var(--lh-body);
}
@media(max-width:768px){.page-hero{padding-block:var(--space-10) var(--space-8)}}

.crumbs{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  font-size:var(--fs-xs);color:var(--text-muted);
  list-style:none;
}
.crumbs a{color:var(--text-muted)}
.crumbs a:hover{color:var(--primary)}
.crumbs li{display:inline-flex;align-items:center;gap:8px}
.crumbs li:not(:last-child)::after{
  content:'';width:4px;height:4px;border-radius:50%;
  background:var(--border-strong);
}
.crumbs [aria-current]{color:var(--text);font-weight:600}
.crumbs--center{justify-content:center;margin-bottom:var(--space-4)}

/* ════════════════════════════════════════════════════════════
   SEARCH & FILTERS · listings page
   ════════════════════════════════════════════════════════════ */
.filters{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:var(--space-5);
  margin-bottom:var(--space-5);
}
.filters__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:var(--space-3);align-items:end;
}
.filters__field{display:flex;flex-direction:column;min-width:0}
.filters__field--wide{grid-column:span 2}
.filters__label{
  font-size:var(--fs-xs);font-weight:600;color:var(--text);margin-bottom:7px;
}
.filters__control{position:relative}
.filters__control > i{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  color:var(--text-subtle);font-size:.95rem;pointer-events:none;
}
.filters input,.filters select{
  width:100%;height:42px;
  padding:0 12px;border:1px solid var(--border-strong);
  border-radius:var(--radius-sm);background:var(--surface);
  color:var(--text);font-size:var(--fs-sm);
  transition:border-color var(--transition),box-shadow var(--transition);
}
.filters__control > i + input,.filters__control > i + select{padding-left:36px}
.filters select{
  appearance:none;cursor:pointer;padding-right:32px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%236b7688' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5l3-3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
}
.filters input:focus,.filters select:focus{outline:none;border-color:var(--primary);box-shadow:var(--ring)}
.filters__actions{display:flex;flex-direction:row;align-items:flex-end;gap:var(--space-2)}
.filters__actions .btn{height:42px;min-height:42px}
.filters__actions .btn--primary{flex:1}
.filters__actions .btn--icon{flex:0 0 42px;width:42px}
@media(max-width:640px){
  .filters__grid{grid-template-columns:1fr 1fr}
  .filters__field--wide{grid-column:1/-1}
  .filters__actions{grid-column:1/-1}
  .filters__actions .btn{flex:1}
}

/* Active filter chips — always show what's narrowing the results. */
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-4)}
.chips__label{font-size:var(--fs-xs);color:var(--text-muted);font-weight:600}
.chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:6px 8px 6px 12px;border-radius:var(--radius-pill);
  background:var(--primary-light);border:1px solid var(--primary-border);
  color:var(--primary-ink);font-size:var(--fs-xs);font-weight:600;
}
.chip__x{
  display:grid;place-items:center;
  width:18px;height:18px;border-radius:50%;
  background:rgba(0,117,192,.16);color:var(--primary-ink);
  font-size:.62rem;transition:all var(--transition);
}
.chip__x:hover{background:var(--primary);color:#fff}
.chip--clear{
  background:transparent;border-color:var(--border-strong);
  color:var(--text-muted);padding:6px 12px;
}
.chip--clear:hover{border-color:var(--danger);color:var(--danger)}

/* Result toolbar */
.toolbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-4);flex-wrap:wrap;margin-bottom:var(--space-5);
}
.toolbar__count{font-size:var(--fs-sm);color:var(--text-muted)}
.toolbar__count strong{color:var(--text);font-weight:700}
.toolbar__right{display:flex;align-items:center;gap:var(--space-3)}
.viewswitch{
  display:inline-flex;background:var(--surface-3);
  border:1px solid var(--border);border-radius:var(--radius-sm);padding:3px;
}
.viewswitch button{
  width:36px;height:32px;border:none;background:transparent;
  border-radius:var(--radius-xs);color:var(--text-muted);
  display:grid;place-items:center;font-size:1rem;
  transition:all var(--transition);
}
.viewswitch button:hover{color:var(--text)}
.viewswitch button.is-active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow-xs)}
@media(max-width:640px){.viewswitch{display:none}}

/* ════════════════════════════════════════════════════════════
   PROPERTY DETAIL
   ════════════════════════════════════════════════════════════ */
.detail-page{padding-block:var(--space-6) var(--section-y)}

/* ── Gallery: one large stage + thumbnail strip ─────────────
   Beats a static mosaic — every photo is reachable, the active
   one is always full-bleed, and it degrades to a single image
   when a listing only has one upload. */
.pgallery{margin-bottom:var(--space-8)}
.pgallery__stage{
  position:relative;
  aspect-ratio:16/9;
  border-radius:var(--radius-lg);overflow:hidden;
  background:var(--surface-3);border:1px solid var(--border);
}
.pgallery__stage img{
  width:100%;height:100%;object-fit:cover;
  cursor:zoom-in;
}
.pgallery__slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity var(--transition-slow)}
.pgallery__slide.is-active{opacity:1;visibility:visible}
.pgallery__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  border:1px solid var(--border);color:var(--text);
  font-size:1.1rem;box-shadow:var(--shadow-sm);
  transition:all var(--transition);z-index:2;
}
.pgallery__nav:hover{background:#fff;box-shadow:var(--shadow-md)}
.pgallery__nav--prev{left:14px}
.pgallery__nav--next{right:14px}
.pgallery__badges{position:absolute;top:16px;left:16px;display:flex;gap:8px;flex-wrap:wrap;z-index:2}
.pgallery__counter{
  position:absolute;bottom:16px;right:16px;z-index:2;
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 14px;border-radius:var(--radius-sm);
  background:rgba(16,34,44,.74);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  color:#fff;font-size:var(--fs-xs);font-weight:600;
}
.pgallery__thumbs{
  display:grid;grid-auto-flow:column;
  grid-auto-columns:minmax(96px,1fr);
  gap:var(--space-2);margin-top:var(--space-3);
  overflow-x:auto;padding-bottom:4px;
  scrollbar-width:thin;
}
.pgallery__thumbs::-webkit-scrollbar{height:6px}
.pgallery__thumbs::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}
.pgallery__thumb{
  aspect-ratio:4/3;border-radius:var(--radius-sm);
  overflow:hidden;border:2px solid transparent;
  background:var(--surface-3);padding:0;
  transition:border-color var(--transition),opacity var(--transition);
  opacity:.62;
}
.pgallery__thumb img{width:100%;height:100%;object-fit:cover}
.pgallery__thumb:hover{opacity:1}
.pgallery__thumb.is-active{border-color:var(--primary);opacity:1}
@media(max-width:768px){
  .pgallery__stage{aspect-ratio:4/3}
  .pgallery__nav{width:40px;height:40px}
  .pgallery__thumbs{grid-auto-columns:minmax(76px,1fr)}
}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;z-index:900;
  display:grid;place-items:center;
  background:rgba(10,22,29,.94);
  padding:var(--space-6);
  opacity:0;visibility:hidden;
  transition:opacity var(--transition-slow),visibility 0s linear var(--transition-slow);
}
.lightbox.is-open{opacity:1;visibility:visible;transition:opacity var(--transition-slow),visibility 0s}
.lightbox img{
  max-width:100%;max-height:88vh;
  object-fit:contain;border-radius:var(--radius);
}
.lightbox__close,.lightbox__nav{
  position:absolute;width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);
  color:#fff;font-size:1.2rem;
  /* Never `transition:all` here — it would animate the inherited
     visibility change and make these unfocusable while the dialog opens. */
  transition:background var(--transition),border-color var(--transition);
}
.lightbox__close:hover,.lightbox__nav:hover{background:rgba(255,255,255,.24)}
.lightbox__close{top:24px;right:24px}
.lightbox__nav--prev{left:24px;top:50%;transform:translateY(-50%)}
.lightbox__nav--next{right:24px;top:50%;transform:translateY(-50%)}
.lightbox__count{
  position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.72);font-size:var(--fs-sm);font-weight:600;
}
@media(max-width:640px){
  .lightbox{padding:var(--space-3)}
  .lightbox__close{top:12px;right:12px}
  .lightbox__nav--prev{left:8px}
  .lightbox__nav--next{right:8px}
}

/* ── Detail layout ─────────────────────────────────────────── */
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:var(--space-10)}
@media(max-width:1024px){.detail-layout{grid-template-columns:minmax(0,1fr);gap:var(--space-8)}}

.detail-head{margin-bottom:var(--space-5)}
.detail-title{
  font-family:var(--font-display);
  font-size:var(--fs-h1);font-weight:800;
  letter-spacing:-.03em;line-height:1.15;color:var(--text);
  margin:12px 0 10px;text-wrap:balance;
}
.detail-loc{
  display:flex;align-items:flex-start;gap:8px;
  font-size:var(--fs-body);color:var(--text-muted);
}
.detail-loc i{color:var(--primary);margin-top:3px;flex-shrink:0}

/* Quick facts — scannable in under a second. */
.quickstats{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-bottom:var(--space-8)}
.quickstat{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border);
  font-size:var(--fs-sm);color:var(--text-body);font-weight:500;
}
.quickstat i{color:var(--primary);font-size:1rem}
.quickstat strong{color:var(--text);font-weight:700}

/* Tabs */
.dtabs{border-bottom:1px solid var(--border);display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
.dtabs::-webkit-scrollbar{display:none}
.dtab{
  padding:12px 22px;border:none;background:transparent;
  border-bottom:2px solid transparent;
  font-family:var(--font);font-size:var(--fs-sm);font-weight:600;
  color:var(--text-muted);white-space:nowrap;
  transition:all var(--transition);
}
.dtab:hover{color:var(--text)}
.dtab[aria-selected="true"]{color:var(--text);border-bottom-color:var(--primary)}
.dtab:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
/* Desktop padding pushes the third tab off a phone screen, where a
   silently scrolling strip hides content nobody knows to look for.
   Tighter padding lets the set share the row. */
@media(max-width:640px){
  .dtab{flex:1 1 auto;padding:12px 10px;font-size:var(--fs-xs);text-align:center}
}
.dpanel{padding-block:var(--space-8)}
.dpanel[hidden]{display:none}
.dpanel h3{
  font-family:var(--font-display);font-size:1.25rem;
  font-weight:700;color:var(--text);margin-bottom:var(--space-4);
}
.dpanel p{
  font-size:var(--fs-body);line-height:var(--lh-loose);
  color:var(--text-body);margin-bottom:var(--space-4);
  white-space:pre-line;
}

/* Amenities */
.amenity-list{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0 var(--space-8);list-style:none;
}
.amenity-list li{
  display:flex;align-items:center;gap:11px;
  padding:12px 0;font-size:var(--fs-sm);color:var(--text-body);
  border-bottom:1px solid var(--border);
}
.amenity-list i{color:var(--primary);font-size:1.05rem;flex-shrink:0}
.amenity-list li.is-off{color:var(--text-subtle)}
.amenity-list li.is-off i{color:var(--border-strong)}

/* Fact table (specifications tab) */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 var(--space-8)}
.facts__row{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);
  padding:12px 0;border-bottom:1px solid var(--border);
}
.facts__label{font-size:var(--fs-sm);color:var(--text-muted)}
.facts__value{font-size:var(--fs-sm);font-weight:600;color:var(--text);text-align:right}

/* Location placeholder — no map integration exists yet, so this
   states that plainly rather than faking an embed. */
.map-placeholder{
  display:grid;place-items:center;gap:10px;
  padding:var(--space-16) var(--space-6);
  border:1px dashed var(--border-strong);border-radius:var(--radius);
  background:var(--surface-2);text-align:center;
}
.map-placeholder i{font-size:2rem;color:var(--text-subtle)}
.map-placeholder strong{font-family:var(--font-display);color:var(--text);font-size:var(--fs-body)}
.map-placeholder span{font-size:var(--fs-sm);color:var(--text-muted);max-width:380px}

/* ── Sticky sidebar ────────────────────────────────────────── */
.detail-aside{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
@media(min-width:1025px){
  .detail-aside{position:sticky;top:calc(var(--navbar-height) + 24px);align-self:start}
}
.sidecard{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:var(--space-6);
  box-shadow:var(--shadow-sm);min-width:0;
}
@media(max-width:520px){.sidecard{padding:var(--space-5)}}
.sidecard__price-row{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:var(--space-3);margin-bottom:var(--space-4);
}
.sidecard__price{
  font-family:var(--font-display);
  font-size:1.85rem;font-weight:800;color:var(--text);
  letter-spacing:-.03em;line-height:1.1;
}
.sidecard__price small{
  display:block;font-family:var(--font);font-size:var(--fs-xs);
  font-weight:500;color:var(--text-muted);margin-top:3px;letter-spacing:0;
}
.sidecard__divider{height:1px;background:var(--border);margin-block:var(--space-5)}
.sidecard__rows{list-style:none}
.sidecard__row{
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-3);padding:10px 0;
}
.sidecard__row:not(:last-child){border-bottom:1px solid var(--border)}
.sidecard__row dt{font-size:var(--fs-xs);color:var(--text-muted)}
.sidecard__row dd{font-size:var(--fs-sm);font-weight:600;color:var(--text);text-align:right}

.sidecard__agent{display:flex;align-items:center;gap:12px}
.sidecard__avatar{
  width:52px;height:52px;border-radius:50%;flex-shrink:0;
  object-fit:cover;display:grid;place-items:center;
  background:var(--primary-light);color:var(--primary-ink);
  font-weight:700;font-size:1.05rem;
  border:2px solid var(--primary-border);
}
.sidecard__agent-role{
  font-size:var(--fs-2xs);color:var(--text-subtle);
  text-transform:uppercase;letter-spacing:.08em;font-weight:700;
}
.sidecard__agent-name{
  font-family:var(--font-display);font-size:var(--fs-body);
  font-weight:700;color:var(--text);
}
.sidecard__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);margin-bottom:var(--space-4);
}
.sidecard__split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-2);margin-top:var(--space-3)}
.sidecard__split > *{min-width:0}
/* Two nowrap CTAs won't fit side by side on a phone — stack them. */
@media(max-width:520px){.sidecard__split{grid-template-columns:1fr}}

/* Trust strip under the inquiry form */
.trust-note{
  display:flex;align-items:center;gap:8px;
  margin-top:var(--space-4);padding-top:var(--space-4);
  border-top:1px solid var(--border);
  font-size:var(--fs-xs);color:var(--text-muted);
}
.trust-note i{color:var(--success)}

/* ════════════════════════════════════════════════════════════
   STATES · empty, loading, info
   ════════════════════════════════════════════════════════════ */
.state{
  display:grid;place-items:center;gap:var(--space-3);
  padding:var(--space-20) var(--space-6);text-align:center;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);
}
.state__icon{
  width:64px;height:64px;border-radius:var(--radius-lg);
  display:grid;place-items:center;
  background:var(--surface-3);color:var(--text-subtle);font-size:1.7rem;
}
.state__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);
}
.state__desc{font-size:var(--fs-sm);color:var(--text-muted);max-width:380px}

/* Skeletons — used while a grid is being replaced client-side. */
@keyframes shimmer{100%{background-position:-200% 0}}
.skeleton{
  background:linear-gradient(90deg,var(--surface-3) 25%,#e6edf1 50%,var(--surface-3) 75%);
  background-size:200% 100%;
  animation:shimmer 1.4s linear infinite;
  border-radius:var(--radius-xs);
}
.skeleton-card{
  border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;background:var(--surface);
}
.skeleton-card__media{aspect-ratio:4/3}
.skeleton-card__body{padding:var(--space-4);display:flex;flex-direction:column;gap:10px}
.skeleton-line{height:12px}
.skeleton-line--lg{height:20px;width:45%}
.skeleton-line--sm{width:65%}

/* ════════════════════════════════════════════════════════════
   PAGINATION (public)
   ════════════════════════════════════════════════════════════ */
.pager{
  display:flex;align-items:center;justify-content:center;
  gap:6px;flex-wrap:wrap;margin-top:var(--space-10);
}
.pager__link{
  min-width:42px;height:42px;padding:0 12px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--radius-sm);border:1px solid var(--border);
  background:var(--surface);color:var(--text-body);
  font-size:var(--fs-sm);font-weight:600;
  transition:all var(--transition);
}
.pager__link:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-tint)}
.pager__link.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.pager__link.is-disabled{opacity:.4;pointer-events:none}
.pager__gap{padding-inline:6px;color:var(--text-subtle);font-weight:700}

/* ════════════════════════════════════════════════════════════
   ABOUT / CONTACT helpers
   ════════════════════════════════════════════════════════════ */
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12);align-items:center}
@media(max-width:900px){.split{grid-template-columns:1fr;gap:var(--space-8)}}
.split__media{
  aspect-ratio:5/4;border-radius:var(--radius-lg);overflow:hidden;
  border:1px solid var(--border);background:var(--surface-3);position:relative;
}
.split__media img{width:100%;height:100%;object-fit:cover}
.split__prose p{
  font-size:var(--fs-body);color:var(--text-muted);
  line-height:var(--lh-body);margin-bottom:var(--space-4);
}

.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--space-4)}
.info-card{
  display:flex;flex-direction:column;gap:6px;
  padding:var(--space-6);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);transition:all var(--transition);
}
.info-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}
.info-card__icon{
  width:44px;height:44px;border-radius:var(--radius);
  display:grid;place-items:center;
  background:var(--primary-light);color:var(--primary);
  font-size:1.2rem;margin-bottom:8px;
}
.info-card__label{
  font-size:var(--fs-2xs);color:var(--text-muted);
  text-transform:uppercase;letter-spacing:.08em;font-weight:700;
}
.info-card__value{font-size:var(--fs-sm);font-weight:600;color:var(--text);line-height:1.5}
.info-card__value a{color:var(--text)}
.info-card__value a:hover{color:var(--primary)}
.info-card__note{font-size:var(--fs-xs);color:var(--text-muted);font-weight:400}
/* Four stacked cards with the icon on its own line is half a screen of
   scrolling for four short facts. On a phone the icon moves beside the
   text and the card becomes a row. */
@media(max-width:640px){
  .info-grid{gap:var(--space-3)}
  .info-card{
    display:grid;grid-template-columns:auto 1fr;
    column-gap:var(--space-4);row-gap:2px;
    padding:var(--space-4);align-items:center;
  }
  .info-card__icon{
    grid-row:1/span 3;width:42px;height:42px;margin-bottom:0;align-self:start;
  }
  .info-card__label,.info-card__value,.info-card__note{grid-column:2}
}

.contact-layout{display:grid;grid-template-columns:1.45fr 1fr;gap:var(--space-8);align-items:start}
@media(max-width:900px){.contact-layout{grid-template-columns:1fr}}
.panel{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:var(--space-8);
}
.panel__title{
  font-family:var(--font-display);font-size:var(--fs-h3);
  font-weight:700;color:var(--text);margin-bottom:6px;
}
.panel__lede{font-size:var(--fs-sm);color:var(--text-muted);margin-bottom:var(--space-6)}
@media(max-width:640px){.panel{padding:var(--space-5)}}

.faq{display:flex;flex-direction:column;gap:var(--space-4)}
.faq__q{font-size:var(--fs-sm);font-weight:700;color:var(--text);margin-bottom:5px}
.faq__a{font-size:var(--fs-sm);color:var(--text-muted);line-height:var(--lh-body)}

/* ════════════════════════════════════════════════════════════
   SCROLL REVEAL
   Elements start hidden only once JS confirms it can reveal them
   (the .js-reveal-ready class), so content is never trapped
   invisible if JavaScript fails.
   ════════════════════════════════════════════════════════════ */
.js-reveal-ready [data-reveal]{
  opacity:0;transform:translateY(18px);
  transition:opacity 520ms var(--ease-out),transform 520ms var(--ease-out);
}
.js-reveal-ready [data-reveal].is-visible{opacity:1;transform:none}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   Kills transforms and animation outright, keeping only opacity
   so nothing depends on motion to become visible.
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
  .js-reveal-ready [data-reveal]{opacity:1;transform:none}
  .pcard:hover,.value-card:hover,.agent-card:hover,.cat-tile:hover,
  .hero-agent:hover,.hero-stat:hover{transform:none}
  .pcard:hover .pcard__media img,
  .spotlight:hover .spotlight__media img,
  .hero-shot:hover img,
  .agent-card:hover .agent-card__media img{transform:none}
  .skeleton{animation:none}
}

/* ════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════ */
@media print{
  .site-header,.site-footer,.detail-aside,.pgallery__thumbs,
  .pgallery__nav,.pcard__fav,.cta,.no-print{display:none!important}
  .detail-layout{grid-template-columns:1fr}
  .public-body{background:#fff}
}

/* ════════════════════════════════════════════════════════════
   PUBLIC UTILITIES & FORM REFINEMENTS
   ════════════════════════════════════════════════════════════ */

/* Screen-reader-only text. Visible to assistive tech, invisible on
   screen, and becomes visible if it ever receives focus. */
.sr-only{
  position:absolute!important;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.sr-only:focus,.sr-only:focus-within{
  position:static!important;width:auto;height:auto;
  margin:0;overflow:visible;clip:auto;white-space:normal;
}

/* In-page anchors must clear the sticky header. */
.public-body [id]{scroll-margin-top:calc(var(--navbar-height) + 24px)}

/* On a 390px screen the brand, a full-width CTA and the menu button
   cannot share one row without something being squeezed — which is
   exactly how a header starts looking amateur. Below this width the
   header keeps brand + menu, and the drawer carries both account
   actions at full size. */
@media(max-width:480px){.nav-cta{display:none}}

/* Public-side form controls inherit the new scale. Scoped to
   .public-body so admin form density is untouched. */
.public-body .form-label{
  font-size:var(--fs-xs);font-weight:600;
  color:var(--text);margin-bottom:7px;
}
.public-body .form-control{
  padding:11px 14px;border-radius:var(--radius-sm);
  font-size:var(--fs-sm);border-color:var(--border-strong);
  min-height:44px;
}
.public-body .form-control:focus{border-color:var(--primary);box-shadow:var(--ring)}
.public-body textarea.form-control{min-height:auto;line-height:var(--lh-body);resize:vertical}
.public-body .form-group{margin-bottom:var(--space-4)}

/* Inline validation. The message sits directly under its field
   rather than in a summary at the top of the form. */
.field-error{
  display:flex;align-items:center;gap:6px;
  margin-top:6px;font-size:var(--fs-xs);color:var(--danger);
}
.public-body .form-control[aria-invalid="true"]{
  border-color:var(--danger);
}
.public-body .form-control[aria-invalid="true"]:focus{
  box-shadow:0 0 0 3px rgba(200,30,30,.15);
}

/* Flash messages on the public site */
.public-body .alert{
  border-radius:var(--radius);font-size:var(--fs-sm);
  transition:opacity 300ms ease;
}

/* ════════════════════════════════════════════════════════════
   SERVICES — index grid, detail hero, cross-links
   Built from the same hairline-border + faint-shadow vocabulary
   as .pcard and .value-card so the pages read as one system.
   ════════════════════════════════════════════════════════════ */
.svc-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-6);
}
@media(max-width:1024px){.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.svc-grid{grid-template-columns:1fr}}

.svc-card{
  display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  transition:all var(--transition);
}
.svc-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md);transform:translateY(-3px)}
.svc-card__media{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--surface-3)}
.svc-card__media img{width:100%;height:100%;object-fit:cover;transition:transform 600ms var(--ease-out)}
.svc-card:hover .svc-card__media img{transform:scale(1.05)}

/* The icon overlaps the photo edge, tying the two halves together. */
.svc-card__body{padding:var(--space-6);display:flex;flex-direction:column;flex:1;position:relative}
.svc-card__body .value-card__icon{
  margin-top:calc(var(--space-10) * -1);
  margin-bottom:var(--space-4);
  box-shadow:var(--shadow-sm);
}
.svc-card__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);margin-bottom:8px;
}
.svc-card__title a{color:inherit}
.svc-card__title a:hover{color:var(--primary)}
.svc-card__desc{
  font-size:var(--fs-sm);color:var(--text-muted);
  line-height:var(--lh-body);flex:1;
}
.svc-card__more{
  display:inline-flex;align-items:center;gap:7px;
  margin-top:var(--space-5);
  font-size:var(--fs-xs);font-weight:700;color:var(--primary);
}
.svc-card__more i{transition:transform var(--transition)}
.svc-card:hover .svc-card__more i{transform:translateX(4px)}

/* Detail hero: full-bleed photo with the title sitting on a scrim. */
.svc-hero{
  position:relative;margin-top:var(--space-6);
  border-radius:var(--radius-lg);overflow:hidden;
  border:1px solid var(--border);background:var(--surface-3);
  aspect-ratio:21/9;
}
@media(max-width:768px){.svc-hero{aspect-ratio:4/3}}
.svc-hero img{width:100%;height:100%;object-fit:cover}
.svc-hero__overlay{
  position:absolute;inset:auto 0 0 0;
  padding:var(--space-8);
  background:linear-gradient(180deg,transparent 0%,rgba(16,34,44,.82) 65%,rgba(16,34,44,.94) 100%);
  color:#fff;
}
.svc-hero__overlay .detail-title{color:#fff;margin:var(--space-3) 0 6px}
.svc-hero__lede{
  font-size:var(--fs-body);color:rgba(255,255,255,.82);
  max-width:640px;line-height:var(--lh-body);
}
@media(max-width:768px){.svc-hero__overlay{padding:var(--space-5)}}

.value-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:768px){.value-grid--2{grid-template-columns:1fr}}

.svc-mini-grid{display:grid;gap:var(--space-3)}
.svc-mini{
  display:flex;align-items:flex-start;gap:var(--space-4);
  padding:var(--space-4);
  border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface-2);transition:all var(--transition);
}
.svc-mini:hover{border-color:var(--primary-border);background:var(--primary-tint)}
.svc-mini .value-card__icon{width:40px;height:40px;font-size:1.05rem;flex-shrink:0}
.svc-mini strong{display:block;font-size:var(--fs-sm);color:var(--text);margin-bottom:3px}
.svc-mini small{display:block;font-size:var(--fs-xs);color:var(--text-muted);line-height:var(--lh-snug)}

/* ════════════════════════════════════════════════════════════
   NUMBERED STEP LIST — "how it works" sequences
   ════════════════════════════════════════════════════════════ */
.step-list{
  list-style:none;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:var(--space-6);
}
@media(max-width:1024px){.step-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.step-list{grid-template-columns:1fr}}

.step{display:flex;gap:var(--space-4);align-items:flex-start}
.step__num{
  width:38px;height:38px;flex-shrink:0;border-radius:50%;
  display:grid;place-items:center;
  background:var(--primary);color:#fff;
  font-family:var(--font-display);font-weight:800;font-size:var(--fs-sm);
  box-shadow:0 0 0 4px var(--primary-light);
}
.step__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);margin-bottom:6px;
}
.step__desc{font-size:var(--fs-sm);color:var(--text-muted);line-height:var(--lh-body)}

/* Inside a panel the steps stack rather than sitting four across. */
.step-list--tight{grid-template-columns:1fr;gap:var(--space-5)}

/* ════════════════════════════════════════════════════════════
   AGENT PROFILE HERO
   ════════════════════════════════════════════════════════════ */
.agent-hero{
  display:grid;grid-template-columns:220px 1fr;
  gap:var(--space-8);align-items:center;
  margin-top:var(--space-6);padding:var(--space-8);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
@media(max-width:768px){
  .agent-hero{grid-template-columns:1fr;text-align:center;padding:var(--space-6);gap:var(--space-5)}
  .agent-hero__actions{justify-content:center}
}
.agent-hero__photo{
  width:100%;aspect-ratio:1/1;object-fit:cover;
  border-radius:var(--radius-lg);border:1px solid var(--border);
  background:var(--surface-3);
}
@media(max-width:768px){.agent-hero__photo{width:150px;margin-inline:auto}}
.agent-hero__body .detail-title{margin:var(--space-2) 0 var(--space-3)}
.agent-hero__bio{
  font-size:var(--fs-body);color:var(--text-muted);
  line-height:var(--lh-body);max-width:60ch;
}
.agent-hero__actions{
  display:flex;flex-wrap:wrap;gap:var(--space-3);
  margin-top:var(--space-6);
}

/* Agent names became links once profiles existed. */
.agent-card__name a{color:inherit}
.agent-card__name a:hover{color:var(--primary)}
.agent-card__media a{display:block;width:100%;height:100%}

/* ════════════════════════════════════════════════════════════
   LEGAL PAGES — privacy, terms
   A single readable measure; no cards, no decoration.
   ════════════════════════════════════════════════════════════ */
.page-hero--tight{padding-block:var(--space-12) var(--space-10)}

.legal{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:var(--space-10);
}
@media(max-width:768px){.legal{padding:var(--space-6)}}
.legal__meta{
  font-size:var(--fs-xs);color:var(--text-subtle);
  padding-bottom:var(--space-5);margin-bottom:var(--space-6);
  border-bottom:1px solid var(--border);
}
.legal h2{
  font-family:var(--font-display);font-size:var(--fs-h3);
  font-weight:700;color:var(--text);letter-spacing:-.01em;
  margin:var(--space-8) 0 var(--space-3);
}
.legal h2:first-of-type{margin-top:0}
/* Sub-headings arrive from "### " in stored terms text. */
.legal h3{
  font-family:var(--font-display);font-size:var(--fs-h5);
  font-weight:700;color:var(--text);
  margin:var(--space-6) 0 var(--space-2);
}
.legal ol{
  margin:0 0 var(--space-4) var(--space-5);
  display:flex;flex-direction:column;gap:10px;
}
.legal ol li::marker{color:var(--primary);font-weight:600}
.legal a{color:var(--primary);text-decoration:underline}
.legal em{font-style:italic}
.legal p{
  font-size:var(--fs-body);color:var(--text-body);
  line-height:var(--lh-loose);margin-bottom:var(--space-4);
}
.legal ul{
  margin:0 0 var(--space-4) var(--space-5);
  display:flex;flex-direction:column;gap:10px;
}
.legal li{
  font-size:var(--fs-body);color:var(--text-body);
  line-height:var(--lh-body);
}
.legal li::marker{color:var(--primary)}
.legal strong{color:var(--text);font-weight:700}
.legal__footer{margin-top:var(--space-8);text-align:center}

/* ─── Public document list (listing "Documents" tab) ────── */
.doc-list{list-style:none;margin:var(--space-4) 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.doc-list__item{
  display:flex;align-items:center;gap:14px;
  padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface);transition:border-color var(--transition);
}
.doc-list__item:hover{border-color:var(--border-strong)}
.doc-list__icon{font-size:1.6rem;color:var(--text-subtle);flex-shrink:0}
.doc-list__body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.doc-list__name{font-weight:600;color:var(--text)}
.doc-list__meta{font-size:var(--fs-xs);color:var(--text-muted)}
.doc-list__desc{font-size:var(--fs-xs);color:var(--text-body)}
@media(max-width:560px){
  .doc-list__item{flex-wrap:wrap}
  .doc-list__body{flex-basis:100%;order:2}
}

/* ════════════════════════════════════════════════════════════
   FOOTER — a fourth link column joined the grid
   ════════════════════════════════════════════════════════════ */
.site-footer__grid{grid-template-columns:1.7fr repeat(4,1fr)}
@media(max-width:1100px){.site-footer__grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:700px){.site-footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.site-footer__grid{grid-template-columns:1fr}}

.site-footer__legal{display:flex;gap:var(--space-5);flex-wrap:wrap}
.site-footer__legal a{color:rgba(255,255,255,.55);font-size:var(--fs-xs)}
.site-footer__legal a:hover{color:#fff}

/* ════════════════════════════════════════════════════════════
   ABOVE-THE-FOLD CTA + TRUST STRIP
   The hero previously ended at the lede, leaving the primary
   action below the fold on every page but the home page.
   ════════════════════════════════════════════════════════════ */
.page-hero__actions{
  display:flex;flex-wrap:wrap;gap:var(--space-3);
  justify-content:center;margin-top:var(--space-7);
}
@media(max-width:520px){
  /* Full-width stacked buttons beat two cramped ones on a phone. */
  .page-hero__actions{flex-direction:column;align-items:stretch}
  .page-hero__actions .btn{width:100%;justify-content:center}
}

.trust-bar{
  list-style:none;display:flex;flex-wrap:wrap;justify-content:center;
  gap:var(--space-3) var(--space-6);
  margin-top:var(--space-7);padding-top:var(--space-6);
  border-top:1px solid var(--border);
}
.trust-bar li{
  display:inline-flex;align-items:center;gap:8px;
  font-size:var(--fs-xs);color:var(--text-muted);
}
.trust-bar i{color:var(--primary);font-size:1rem}
.trust-bar strong{color:var(--text);font-weight:700}
@media(max-width:520px){
  .trust-bar{flex-direction:column;align-items:flex-start;gap:var(--space-3)}
}

/* A short note closing a section — sources a figure or links onward. */
.section-note{
  margin-top:var(--space-7);text-align:center;
  font-size:var(--fs-xs);color:var(--text-subtle);
}

/* ════════════════════════════════════════════════════════════
   FAQ ACCORDION
   <details>/<summary>: works with JS disabled, keyboard
   operable for free, and the answers stay in the DOM so
   crawlers read them.
   ════════════════════════════════════════════════════════════ */
.faq-list{display:flex;flex-direction:column;gap:var(--space-3)}

.faq-item{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  transition:border-color var(--transition),box-shadow var(--transition);
}
.faq-item[open]{border-color:var(--primary-border);box-shadow:var(--shadow-sm)}
.faq-item__q{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);
  padding:var(--space-5) var(--space-6);
  min-height:44px;                     /* touch target */
  cursor:pointer;list-style:none;
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);
}
.faq-item__q::-webkit-details-marker{display:none}
.faq-item__q:hover{color:var(--primary)}
.faq-item__q:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.faq-item__icon{
  flex-shrink:0;color:var(--primary);font-size:1.1rem;
  transition:transform var(--transition);
}
.faq-item[open] .faq-item__icon{transform:rotate(45deg)}
.faq-item__a{padding:0 var(--space-6) var(--space-5)}
.faq-item__a p{
  font-size:var(--fs-sm);color:var(--text-body);
  line-height:var(--lh-loose);max-width:70ch;
}
@media(max-width:600px){
  .faq-item__q{padding:var(--space-4);font-size:var(--fs-body)}
  .faq-item__a{padding:0 var(--space-4) var(--space-4)}
}

/* ════════════════════════════════════════════════════════════
   CASE STUDY CARDS — real closed transactions
   ════════════════════════════════════════════════════════════ */
.case-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-5);
}
@media(max-width:1024px){.case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.case-grid{grid-template-columns:1fr}}

.case-card{
  display:flex;flex-direction:column;
  padding:var(--space-6);
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);
  transition:all var(--transition);
}
.case-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.case-card__head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:var(--space-5);
}
.case-card__title{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:700;color:var(--text);margin-bottom:6px;
}
.case-card__title a{color:inherit}
.case-card__title a:hover{color:var(--primary)}
.case-card__loc{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:var(--fs-xs);color:var(--text-muted);
  margin-bottom:var(--space-5);
}

/* The numbers are the point of the card, so they get the weight. */
.case-card__stats{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--space-4);
  padding:var(--space-5) 0;margin-top:auto;
  border-top:1px solid var(--border);
}
.case-card__stats > div:first-child{grid-column:1 / -1}
.case-card__stats dt{
  font-size:var(--fs-2xs);color:var(--text-subtle);
  text-transform:uppercase;letter-spacing:.07em;font-weight:700;
  margin-bottom:3px;
}
.case-card__stats dd{
  font-family:var(--font-display);font-size:var(--fs-h4);
  font-weight:800;color:var(--text);letter-spacing:-.02em;
}
.case-card__stats > div:first-child dd{font-size:1.45rem;color:var(--primary-ink)}
.case-card__foot{
  font-size:var(--fs-2xs);color:var(--text-subtle);
  padding-top:var(--space-4);border-top:1px solid var(--border);
}

/* Inline star rating used in the testimonials section head. */
.rating-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.rating-inline__stars{color:var(--gold);display:inline-flex;gap:2px}
.rating-inline strong{color:var(--text);font-weight:800}

/* ════════════════════════════════════════════════════════════
   MAP + DIRECTIONS PANEL
   ════════════════════════════════════════════════════════════ */
.map-panel{
  display:grid;grid-template-columns:1.6fr 1fr;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);overflow:hidden;
}
@media(max-width:900px){.map-panel{grid-template-columns:1fr}}

.map-panel__map{min-height:420px;background:var(--surface-3)}
.map-panel__map iframe{display:block;width:100%;height:100%;min-height:420px;border:0}
@media(max-width:900px){
  .map-panel__map,.map-panel__map iframe{min-height:300px}
}

.map-panel__side{
  padding:var(--space-8);
  display:flex;flex-direction:column;gap:var(--space-5);
  border-left:1px solid var(--border);
}
@media(max-width:900px){
  .map-panel__side{border-left:none;border-top:1px solid var(--border);padding:var(--space-6)}
}
.map-panel__title{
  font-family:var(--font-display);font-size:var(--fs-h3);
  font-weight:700;color:var(--text);letter-spacing:-.02em;
}
.map-panel__address{
  font-style:normal;font-size:var(--fs-sm);
  color:var(--text-body);line-height:var(--lh-body);
}
.map-panel__hours{display:flex;flex-direction:column;gap:8px}
.map-panel__hours > div{
  display:flex;justify-content:space-between;gap:var(--space-4);
  font-size:var(--fs-xs);
  padding-bottom:8px;border-bottom:1px solid var(--border);
}
.map-panel__hours > div:last-child{border-bottom:none}
.map-panel__hours dt{color:var(--text-muted)}
.map-panel__hours dd{color:var(--text);font-weight:700}
.map-panel__actions{display:flex;flex-direction:column;gap:var(--space-2);margin-top:auto}

/* Footer address element inherits the surrounding footer type. */
.site-footer__contact address{font-style:normal}

/* ════════════════════════════════════════════════════════════
   PROMISE LIST — the response-time commitment, stated plainly
   ════════════════════════════════════════════════════════════ */
.promise-list{list-style:none;display:flex;flex-direction:column;gap:var(--space-4)}
.promise-list li{display:flex;gap:var(--space-4);align-items:flex-start}
.promise-list i{
  flex-shrink:0;width:34px;height:34px;border-radius:var(--radius-sm);
  display:grid;place-items:center;
  background:var(--primary-light);color:var(--primary-ink);font-size:1rem;
}
.promise-list span{
  font-size:var(--fs-sm);color:var(--text-muted);line-height:var(--lh-body);
}
.promise-list strong{color:var(--text);font-weight:700}

/* ════════════════════════════════════════════════════════════
   CONFIRMATION MARK — thank-you page
   ════════════════════════════════════════════════════════════ */
.confirm-mark{
  width:76px;height:76px;border-radius:50%;
  display:grid;place-items:center;margin:0 auto var(--space-5);
  background:var(--success-bg);color:var(--success);
  font-size:2.2rem;
  box-shadow:0 0 0 8px rgba(21,128,61,.07);
  animation:confirm-pop 420ms var(--ease-out) both;
}
@keyframes confirm-pop{
  from{transform:scale(.7);opacity:0}
  to{transform:scale(1);opacity:1}
}

/* ════════════════════════════════════════════════════════════
   STICKY MOBILE CTA
   Phone-only. The desktop header keeps its actions in view, so
   the bar would just be chrome on a wide screen.
   ════════════════════════════════════════════════════════════ */
.sticky-cta{display:none}

@media(max-width:768px){
  .sticky-cta{
    position:fixed;left:0;right:0;bottom:0;z-index:60;
    display:grid;grid-template-columns:1fr auto;
    gap:var(--space-2);
    padding:10px var(--gutter);
    /* Clears the iOS home indicator / Android gesture bar. */
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    border-top:1px solid var(--border);
    box-shadow:0 -4px 16px rgba(29,51,64,.08);
    animation:cta-rise 260ms var(--ease-out) both;
  }

  .sticky-cta__btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-height:48px;padding:0 var(--space-5);   /* >= 44px touch target */
    border-radius:var(--radius-sm);
    font-size:var(--fs-sm);font-weight:700;
    border:1px solid var(--border-strong);
    background:var(--surface);color:var(--text);
    transition:background var(--transition),border-color var(--transition);
  }
  .sticky-cta__btn:active{background:var(--surface-3)}
  .sticky-cta__btn--primary{
    background:var(--primary);border-color:var(--primary);color:#fff;
  }
  .sticky-cta__btn--primary:active{background:var(--primary-hover)}

  /* The secondary action collapses to an icon so the primary keeps
     the width it needs to read as the obvious next step. */
  .sticky-cta__btn:not(.sticky-cta__btn--primary) span{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;
  }
  .sticky-cta__btn:not(.sticky-cta__btn--primary){padding:0 var(--space-5)}
  .sticky-cta__btn i{font-size:1.15rem}

  /* Reserve the bar's height so it never covers the last element
     of the page — the same rule as a sticky header needing padding. */
  .public-body{padding-bottom:calc(68px + env(safe-area-inset-bottom, 0px))}
}

@keyframes cta-rise{
  from{transform:translateY(100%)}
  to{transform:translateY(0)}
}

/* Honour a reduced-motion preference across the additions above. */
@media(prefers-reduced-motion:reduce){
  .confirm-mark,.sticky-cta{animation:none}
  .faq-item__icon{transition:none}
}

/* ════════════════════════════════════════════════════════════
   MOBILE REFINEMENT LAYER
   ----------------------------------------------------------------
   The components above are authored desktop-down and reflow into
   one column on their own. This block handles what a reflow cannot
   fix on an actual handset:

     · controls under 16px, which make iOS zoom the viewport the
       instant a field takes focus
     · 48px touch targets on inputs, not just on buttons
     · nowrap button labels overflowing a ~350px content column
     · the header row running out of horizontal space
     · gutters and vertical rhythm measured for a thumb

   Kept in one place, last in the cascade, so the mobile treatment
   can be read — and adjusted — as a single decision.
   ════════════════════════════════════════════════════════════ */

@media(max-width:1024px){
  /* The bar loses the desktop link row here, so it no longer needs
     desktop height. */
  :root{--navbar-height:64px}
  .brand__mark{width:36px;height:36px;font-size:1rem}
  .brand__name{font-size:1.12rem}
  /* Long company names truncate rather than shoving the menu button
     off the edge of the screen. */
  .brand{min-width:0}
  .brand__text{min-width:0}
  .brand__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .navbar__inner{gap:var(--space-3)}
}

@media(max-width:768px){
  /* A marketing page has no business scrolling sideways. `clip`
     rather than `hidden`: `hidden` would turn the body into a scroll
     container and break the sticky header. */
  .public-body{overflow-x:clip}

  /* The default grey flash on tap reads as unfinished; the :active
     states already give the feedback. */
  .public-body a,.public-body button{-webkit-tap-highlight-color:transparent}

  /* ── Form controls ────────────────────────────────────────
     16px is not a stylistic choice. Below it, iOS Safari zooms the
     page on focus and leaves the visitor panning a layout that no
     longer fits the screen — the most common way a responsive site
     still feels broken. */
  .public-body input,
  .public-body select,
  .public-body textarea,
  .form-control{font-size:16px}

  .searchbar input,.searchbar select,
  .filters input,.filters select{height:48px}
  .searchbar__submit{height:48px;font-size:var(--fs-body)}
  .filters__actions .btn{height:48px;min-height:48px}
  .filters__actions .btn--icon{flex:0 0 48px;width:48px}

  /* Header CTA and menu button as a matched pair. */
  .navbar__actions{gap:var(--space-2)}
  .navbar__actions .btn--sm{min-height:40px;padding:8px 14px}
  .nav-toggle{width:42px;height:42px;flex-shrink:0}
}

@media(max-width:640px){
  /* Body copy at 16px, and a narrower gutter: together they buy back
     roughly a word per line on a 393px screen. */
  .public-body{--gutter:18px;--fs-body:1rem;--fs-sm:.9rem}

  /* Hero rhythm. The desktop spacing pushes the search box — the
     actual call to action — below the fold on a phone. */
  .hero{padding-block:var(--space-8) var(--space-10)}
  .hero__head{margin-bottom:var(--space-6)}
  .hero__badge{
    flex-wrap:wrap;justify-content:center;text-align:center;
    margin-bottom:var(--space-4);
  }
  .hero__lede{font-size:1rem;max-width:34ch}
  .searchbar,.hero-gallery{margin-bottom:var(--space-8)}

  /* Section headers read better left-aligned once they are only a few
     words wide; centred text with ragged short lines does not. */
  .section-head{text-align:left}
  .section-head:not(.section-head--start):not(.section-head--split) .section-lede{
    margin-inline:0;
  }
}

@media(max-width:560px){
  /* .btn is nowrap by design, so a flexed pair of long labels will
     overflow the column rather than wrap. Below this width the
     marketing CTAs stack, which also gives each a full-width target. */
  .cta__actions,.spotlight__actions{
    flex-direction:column;align-items:stretch;width:100%;
  }
  .cta__actions .btn,
  .spotlight__actions .btn,
  .section-head--split > .btn{
    width:100%;min-width:0;justify-content:center;
  }
  .spotlight__footer{align-items:flex-start}

  /* Every large action — hero pairs, form submits, 404 and thank-you
     rows — becomes a full-width row of its own. Labels wrap here rather
     than overflowing, since .btn is nowrap by default. */
  .public-body .btn--lg{width:100%;white-space:normal}
}

/* The consent checkbox is the one control in a public form that is
   still mouse-sized. */
@media(pointer:coarse){
  .public-body .form-checkbox{align-items:flex-start;gap:12px}
  .public-body .form-checkbox input{width:22px;height:22px;flex-shrink:0;margin-top:1px}
  .public-body .form-checkbox label{line-height:1.45}
}

/* Touch-specific target sizes for the things that are links rather
   than buttons, and so miss the .btn rules entirely. */
@media(pointer:coarse){
  .site-footer__links a,.site-footer__legal a{padding-block:6px}
  .navmenu__link{min-height:48px}
  .searchbar select,.filters select{background-position:right 14px center}
}

/* ════════════════════════════════════════════════════════════
   MODAL — a dialog over a blurred page
   The page behind is not merely dimmed: the backdrop blurs and
   desaturates it, so the dialog reads as the only live surface
   while the layout underneath stays recognisable.
   ════════════════════════════════════════════════════════════ */
.modal[hidden]{display:none}
.modal{
  position:fixed;inset:0;z-index:300;
  display:flex;align-items:flex-start;justify-content:center;
  padding:var(--space-8) var(--gutter);
  overflow-y:auto;overscroll-behavior:contain;
}
.modal__backdrop{
  position:fixed;inset:0;
  background:rgba(16,34,44,.38);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  opacity:0;transition:opacity var(--transition-slow);
}
.modal.is-open .modal__backdrop{opacity:1}
/* Without backdrop-filter the tint has to carry the separation alone. */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .modal__backdrop{background:rgba(16,34,44,.74)}
}

.modal__dialog{
  position:relative;margin:auto;width:100%;max-width:680px;
  max-height:calc(100vh - var(--space-16));
  display:flex;flex-direction:column;min-height:0;
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);
  opacity:0;transform:translateY(16px) scale(.98);
  transition:opacity var(--transition-slow),transform var(--transition-slow);
}
.modal.is-open .modal__dialog{opacity:1;transform:none}
.modal__dialog--lg{max-width:920px}

.modal__header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);
  padding:var(--space-5) var(--space-6);
  border-bottom:1px solid var(--border);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  background:linear-gradient(180deg,var(--primary-tint),var(--surface));
}
.modal__title{
  font-family:var(--font-display);font-size:1.15rem;font-weight:700;
  letter-spacing:-.02em;color:var(--text);display:flex;align-items:center;gap:10px;
}
.modal__title i{color:var(--primary)}
.modal__subtitle{font-size:var(--fs-xs);color:var(--text-muted);margin-top:4px}
.modal__close{
  flex-shrink:0;width:34px;height:34px;border-radius:var(--radius-sm);
  display:grid;place-items:center;cursor:pointer;
  border:1px solid transparent;background:transparent;color:var(--text-muted);
  transition:background var(--transition),color var(--transition),border-color var(--transition);
}
.modal__close:hover{background:var(--surface-3);color:var(--text);border-color:var(--border)}
.modal__close:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* The form owns the scroll so the header and footer stay put. */
.modal__form{display:flex;flex-direction:column;min-height:0;flex:1}
.modal__body{padding:var(--space-6);overflow-y:auto;flex:1;min-height:0}
.modal__body .form-group:last-child{margin-bottom:0}
.modal__footer{
  display:flex;align-items:center;gap:var(--space-3);
  padding:var(--space-4) var(--space-6);
  border-top:1px solid var(--border);background:var(--surface-2);
  border-radius:0 0 var(--radius-lg) var(--radius-lg);
}
.modal__footer .modal__footer-note{margin-left:auto;font-size:var(--fs-xs);color:var(--text-subtle)}

/* Section captions inside a long form */
.form-section{
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;
  color:var(--text-muted);margin:var(--space-6) 0 var(--space-3);
  padding-bottom:6px;border-bottom:1px solid var(--border);
}
.form-section:first-child{margin-top:0}

body.is-modal-open{overflow:hidden}

@media(max-width:768px){
  .modal{padding:0}
  .modal__dialog{max-width:none;min-height:100%;max-height:none;border:none;border-radius:0}
  .modal__header,.modal__footer{border-radius:0}
  .modal__body{padding:var(--space-5)}
  .modal__footer{flex-wrap:wrap}
  .modal__footer .btn{flex:1;min-width:140px}
  .modal__footer .modal__footer-note{margin-left:0;flex-basis:100%}
}

@media(prefers-reduced-motion:reduce){
  .modal__backdrop,.modal__dialog{transition:none}
}

/* ════════════════════════════════════════════════════════════
   GEO FIELD — location text, coordinates, device positioning
   ════════════════════════════════════════════════════════════ */
.geo{
  border:1px solid var(--border);border-radius:var(--radius);
  background:var(--surface-2);padding:var(--space-4);margin-bottom:18px;
}
.geo__head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;
}
.geo__title{
  font-size:.82rem;font-weight:700;color:var(--text);
  display:flex;align-items:center;gap:6px;
}
.geo__title i{color:var(--primary)}
.geo__hint{font-size:var(--fs-xs);color:var(--text-muted);margin-top:3px;max-width:52ch}
.geo__grid{display:grid;grid-template-columns:1fr 1fr auto;gap:var(--space-3);align-items:end}
.geo .form-group{margin-bottom:var(--space-4)}
.geo__grid .form-group{margin-bottom:0}
.geo__map{
  display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;
  border:1px solid var(--border-strong);border-radius:var(--radius-sm);
  background:var(--surface);color:var(--text-muted);
  font-size:var(--fs-xs);font-weight:600;white-space:nowrap;
  transition:color var(--transition),border-color var(--transition),background var(--transition);
}
.geo__map:hover{color:var(--primary);border-color:var(--primary);background:var(--primary-tint)}
.geo__map.is-disabled{opacity:.5;pointer-events:none}
.geo__status{
  display:none;align-items:flex-start;gap:6px;
  font-size:var(--fs-xs);line-height:1.45;color:var(--text-muted);margin-top:var(--space-3);
}
.geo__status.is-shown{display:flex}
.geo__status--ok{color:var(--success)}
.geo__status--error{color:var(--danger)}
.geo__status i{margin-top:1px}
.spin{display:inline-block;animation:spin 900ms linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spin{animation:none}}

@media(max-width:768px){
  .geo__grid{grid-template-columns:1fr 1fr}
  .geo__map{grid-column:1 / -1;justify-content:center}
  .geo__head .btn{width:100%;justify-content:center}
}

/* Multi-column form rows as classes rather than inline styles, so the
   narrow-screen rules below can actually override them — an inline
   grid-template beats every stylesheet rule and forces the page wide. */
.form-row--3{grid-template-columns:repeat(3,1fr)}
.form-row--4{grid-template-columns:repeat(4,1fr)}
@media(max-width:768px){
  .form-row--3,.form-row--4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .form-row--3,.form-row--4{grid-template-columns:1fr}
}

/* ════════════════════════════════════════════════════════════
   PROPERTY MAP — the pin, framed
   Shared by the admin detail page and the public listing tab.
   ════════════════════════════════════════════════════════════ */
.propmap{display:flex;flex-direction:column;gap:var(--space-3)}
.propmap__frame{
  position:relative;aspect-ratio:16/9;min-height:240px;
  border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;background:var(--surface-2);
  box-shadow:var(--shadow-xs);
}
/* Give the tiles a moment's grace: a plain grey box while the frame
   loads reads as "map arriving", not "map broken". */
.propmap__frame::before{
  content:'';position:absolute;inset:0;
  background:
    linear-gradient(var(--border) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg,var(--border) 1px,transparent 1px) 0 0/32px 32px,
    var(--surface-2);
  opacity:.5;
}
.propmap__frame iframe{position:relative;display:block;width:100%;height:100%}

.propmap__bar{
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-3);flex-wrap:wrap;
}
.propmap__coords{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--font-mono);font-size:var(--fs-xs);
  color:var(--text-muted);
  background:var(--surface-2);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:6px 10px;
  user-select:all;   /* one click selects the whole pair for copying */
}
.propmap__coords i{color:var(--primary);font-size:.85rem}
.propmap__actions{display:flex;gap:var(--space-2);flex-wrap:wrap}
/* Specific enough to beat the public page's .dpanel p rules, which set
   a body size and pre-line wrapping that would break the credit across
   three lines. */
.propmap .propmap__credit{
  font-size:.72rem;color:var(--text-subtle);
  line-height:1.5;margin:0;white-space:normal;
}
.propmap .propmap__credit a{color:var(--text-muted);text-decoration:underline}
.propmap .propmap__credit a:hover{color:var(--primary)}

@media(max-width:520px){
  .propmap__frame{aspect-ratio:4/3}
  .propmap__bar{flex-direction:column;align-items:stretch}
  .propmap__actions .btn{flex:1;justify-content:center}
}

/* The hidden attribute has to beat component display rules. Without this a
   `<div class="form-error" hidden>` still shows, because any explicit display
   overrides the user-agent's [hidden]{display:none}. */
[hidden]{display:none!important}
