/*
 * Xevendi clickable mockup — tokens, base, shared components, homepage.
 * Tokens follow docs/architecture/11-design-system.md ("Clear Daylight").
 */
:root {
  color-scheme: light;
  /* stone */
  --stone-0: #FFFFFF; --stone-25: #FAF9F7; --stone-50: #F5F4F1; --stone-100: #ECEAE6; --stone-200: #DDDAD4;
  --stone-300: #C5C1B9; --stone-400: #A09B92; --stone-500: #706C65; --stone-600: #5E5A54; --stone-700: #46433E;
  --stone-800: #302E2B; --stone-900: #1F1E1C; --stone-950: #131211;
  /* clay: warm secondary accent (saved hearts, chart highlights) */
  --clay-50: #FBF2ED; --clay-100: #F6E0D5; --clay-200: #EDC0AA; --clay-300: #E19A7C; --clay-400: #D27552;
  --clay-500: #BF5735; --clay-600: #A8462A; --clay-700: #8C3822; --clay-800: #6F2D1D; --clay-900: #4E2016;
  /* deep sea teal: the action colour (owner decision 2026-11-15); clay stays as the warm secondary accent */
  --sea-50: #EBF5F5; --sea-100: #D3EAEA; --sea-200: #A6D3D4; --sea-300: #6FB4B6; --sea-500: #23767A;
  --sea-600: #1A6266; --sea-700: #144E52; --sea-800: #0F3B3E; --sea-900: #0A2A2C;
  --green-50: #EDF6EF; --green-600: #23733C; --green-700: #1B5C30;
  --amber-50: #FEF6E4; --amber-600: #A87306; --amber-800: #7A4F05;
  --red-50: #FDEEEF; --red-600: #B3263E; --red-700: #931F33;
  /* map */
  --map-land: #F4F2EE; --map-water: #CBDDE2;
  /* roles */
  --text-1: var(--stone-900); --text-2: var(--stone-600); --text-3: var(--stone-500);
  --link: var(--sea-700);
  --cta: var(--sea-600); --cta-hover: var(--sea-700); --cta-press: var(--sea-800);
  --focus: var(--sea-500);
  --bg: var(--stone-0); --bg-soft: var(--stone-25); --bg-muted: var(--stone-50);
  --line: var(--stone-200); --line-strong: var(--stone-300);
  /* elevation (stone-950 tinted) */
  --e1: 0 1px 2px rgb(19 18 17 / .06), 0 1px 3px rgb(19 18 17 / .08);
  --e2: 0 4px 12px rgb(19 18 17 / .08), 0 2px 4px rgb(19 18 17 / .06);
  --e3: 0 12px 28px rgb(19 18 17 / .12), 0 4px 8px rgb(19 18 17 / .06);
  --e4: 0 24px 56px rgb(19 18 17 / .18), 0 8px 16px rgb(19 18 17 / .08);
  --scrim: rgb(19 18 17 / .48);
  /* shape */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  /* type */
  /* Zillow uses Object Sans (headings) and Inter (UI), checked 2026-11-16. Owner: "use the free font for now",
     so headings use Figtree, a free (OFL) look-alike, and all UI text uses Inter. Both from Google Fonts. */
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display-xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-h1: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-h2: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
  --fs-price-detail: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-price-card: clamp(1.25rem, 1.15rem + .3vw, 1.375rem);
  /* motion */
  --d1: 120ms; --d2: 200ms; --d3: 280ms; --ease: cubic-bezier(.2, 0, 0, 1);
  /* layout */
  --banner-h: 0px; /* the top "mockup" banner was removed (owner, 2026-11-16); kept at 0 so layout sums still work */ --header-h: 56px; --filter-h: 52px; --gutter: 16px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 64px; --filter-h: 56px; --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-1);
  font: 400 1rem/1.5 var(--font-ui); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--stone-900); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.icon { flex: none; }
.dot { color: var(--stone-400); margin: 0 6px; }
.fine { font-size: 12px; line-height: 1.5; color: var(--text-3); margin-top: 12px; }
.fine .icon { display: inline-block; vertical-align: -2px; }
.noscript { padding: 24px; text-align: center; }

/* ---------- header ---------- */
/* Phone apps pad :root by the safe-area insets; the sticky bars sit below the top inset, painted by body::before. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: var(--header-h);
  background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.035em; line-height: 1;
  color: var(--stone-900); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.wordmark:hover { text-decoration: none; }
.main-nav { display: none; height: 100%; }
.main-nav a {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 9px;
  font-size: 14px; font-weight: 500; color: var(--stone-700); text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--stone-900); }
.main-nav a[aria-current="page"] { color: var(--stone-900); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--sea-600);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.saved-link { position: relative; }
.saved-link[aria-current="page"] { background: var(--stone-100); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--sea-600); color: #fff;
  font-size: 12px; font-weight: 650; display: inline-grid; place-items: center;
}
.menu-btn { margin-left: -8px; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }
@media (min-width: 1200px) { .main-nav { display: flex; } .btn.menu-btn { display: none; } }
.post-ad-btn { margin-right: 6px; white-space: nowrap; }
.post-ad-btn[aria-current="page"] { background: var(--cta-press); }
/* Phones: the menu sheet carries "Post an ad", so the header keeps room for menu, Saved and language. */
@media (max-width: 560px) { .btn.post-ad-btn { display: none; } }
/* Small phones: keep the "Placeholder" tag visible (the wordmark is not approved), shrink spacing instead. */
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .wordmark { font-size: 22px; gap: 6px; }
  .btn.signin { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:active { background: var(--cta-press); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--text-1); }
.btn-secondary:hover { background: var(--stone-50); border-color: var(--stone-400); }
.btn-ghost { background: transparent; color: var(--text-1); }
.btn-ghost:hover { background: var(--stone-100); }
.btn-on-dark { background: #fff; color: var(--stone-900); }
.btn-on-dark:hover { background: var(--stone-100); }
.btn-sm { --h: 34px; font-size: 14px; padding: 0 12px; }
.btn-lg { --h: 48px; font-size: 16px; padding: 0 20px; }
.btn-xl { --h: 56px; font-size: 16px; padding: 0 28px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn-save[aria-pressed="true"] { color: var(--clay-700); border-color: var(--clay-200); background: var(--clay-50); }
.btn-save[aria-pressed="true"] .icon path { fill: var(--clay-600); stroke: var(--clay-600); }
.linklike {
  background: none; border: 0; padding: 0; color: var(--link); font-size: inherit; font-weight: 500;
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; display: inline-flex; align-items: center; gap: 6px;
}
.linklike:hover { text-decoration-thickness: 2px; }
.linklike--muted { color: var(--text-2); }

/* ---------- chips & badges ---------- */
.chip {
  height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text-1); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.chip:hover { border-color: var(--stone-500); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--stone-900); border-color: var(--stone-900); color: #fff; }
.chip .icon { margin-right: -4px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: #fff; color: var(--stone-900); box-shadow: var(--e1);
}
.badge--reduced { background: var(--green-50); color: var(--green-700); }
.badge--newbuild { background: var(--stone-900); color: #fff; }
.badge--viewing { background: var(--sea-50); color: var(--sea-700); }
.badge--legal { background: var(--amber-50); color: var(--amber-800); }
.badge--status { background: var(--stone-900); color: #fff; }
.tag-verify {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: var(--r-xs);
  background: var(--amber-50); color: var(--amber-800); vertical-align: 1px; white-space: nowrap;
}
.preview-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; color: var(--sea-700); background: #fff; border: 1px solid rgb(35 118 122 / .35);
}
.preview-tag--dark { color: #fff; background: transparent; border-color: rgb(255 255 255 / .35); }

/* ---------- forms ---------- */
.input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: #fff; font-size: 16px; font-weight: 400; color: var(--text-1);
  transition: border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
.input:hover { border-color: var(--stone-400); }
.input:focus { outline: none; border-color: var(--stone-900); box-shadow: 0 0 0 1px var(--stone-900); }
.input[aria-invalid="true"] { border-color: var(--red-600); box-shadow: 0 0 0 1px var(--red-600); }
.textarea { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.select {
  height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text-1); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1E1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.select--block { width: 100%; height: 44px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-row output { color: var(--text-1); font-weight: 650; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--text-3); }
.err { font-size: 13px; font-weight: 500; color: var(--red-700); min-height: 0; }
.err:empty { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; color: var(--text-1); padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--stone-900); flex: none; }
.check .muted { margin-left: auto; font-size: 13px; }
.check--small { font-size: 13px; color: var(--text-2); align-items: flex-start; }
.check--small input { margin-top: 1px; }
.opt-list { display: flex; flex-direction: column; border: 0; padding: 0; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--seg { height: 34px; padding: 0 12px; }
input[type="range"] { width: 100%; accent-color: var(--stone-900); margin: 6px 0 0; }

/* ---------- popover, toast, dialogs ---------- */
.popover {
  position: fixed; z-index: 70; width: max-content; min-width: 260px; max-width: min(360px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e3); padding: 16px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: pop-in var(--d2) var(--ease);
}
.popover h3 { font-size: 14px; font-weight: 650; margin: 0 0 10px; }
.popover h3:not(:first-child) { margin-top: 16px; }
.pop-text { font-size: 14px; line-height: 1.5; margin-top: 8px; }
/* The footer carries the popover's bottom padding itself, so it can stick flush when the popover scrolls. */
.popover:has(> .popover-foot) { padding-bottom: 0; }
.popover-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 12px 0 16px; border-top: 1px solid var(--line); background: #fff;
}
.locale-pop .check { font-size: 14px; padding: 4px 0; }
.prov-list { display: flex; flex-direction: column; gap: 8px; }
.prov-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.prov-list dt { color: var(--text-2); }
.prov-list dd { font-weight: 600; text-align: right; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.toast-region { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--stone-900); color: #fff; box-shadow: var(--e3); font-size: 14px; animation: toast-in var(--d3) var(--ease);
}
.toast button, .toast a { background: none; border: 0; padding: 0; color: var(--sea-200); font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { body[data-page="search"] .toast-region, body[data-page="home-detail"] .toast-region { bottom: 92px; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(19 18 17 / .97); color: #fff; }
.lightbox::backdrop { background: rgb(19 18 17 / .97); }
.lb-inner { position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; font-size: 14px; }
.lb-title { flex: 1; min-width: 0; color: var(--stone-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-btn, .lb-nav { border: 0; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; border-radius: 50%; transition: background-color var(--d1) var(--ease); }
.lb-btn { width: 40px; height: 40px; }
.lb-btn:hover, .lb-nav:hover { background: rgb(255 255 255 / .22); }
.lb-stage { min-height: 0; display: grid; place-items: center; padding: 0 16px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lb-caption { text-align: center; padding: 14px 16px 22px; font-size: 14px; color: var(--stone-300); }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (min-width: 768px) { .lb-stage { padding: 0 80px; } }

.modal { border: 0; padding: 0; border-radius: var(--r-lg); box-shadow: var(--e4); width: min(460px, calc(100vw - 32px)); }
.modal::backdrop { background: var(--scrim); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-body h2 { font-size: 20px; font-weight: 650; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.sheet { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(340px, 88vw); background: #fff; box-shadow: var(--e4); }
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: sheet-in var(--d3) var(--ease); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.sheet-nav { display: flex; flex-direction: column; padding: 8px 0; }
.sheet-nav a { padding: 14px 20px; color: var(--text-1); text-decoration: none; font-size: 16px; font-weight: 500; }
.sheet-nav a:hover { background: var(--stone-50); }
.sheet-nav { overflow-y: auto; max-height: calc(100dvh - 64px); }
.sheet-nav a { padding: 11px 20px; }
.sheet-nav .sheet-cta { margin: 12px 20px 20px; justify-content: center; color: #fff; }
.sheet-nav .sheet-cta:hover { background: var(--cta-hover); }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- card ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--stone-100); transition: box-shadow var(--d2) var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d3) var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card.is-hover .card-media { box-shadow: 0 0 0 2px var(--stone-900); }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.card-count {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: rgb(19 18 17 / .62); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none;
}
.status-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 12px; background: rgb(31 30 28 / .72); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.heart {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .94); color: var(--stone-900); display: grid; place-items: center; box-shadow: var(--e1);
  transition: transform var(--d1) var(--ease);
}
.heart:hover { transform: scale(1.06); }
.heart:active { transform: scale(.94); }
.heart[aria-pressed="true"] { color: var(--clay-600); }
.heart[aria-pressed="true"] .icon path, .btn-icon.btn-save[aria-pressed="true"] .icon path { fill: currentColor; }
.pop .icon { animation: heart-pop var(--d3) var(--ease); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-card { font-size: var(--fs-price-card); font-weight: 700; letter-spacing: -.012em; line-height: 1.2; }
.price-from { font-size: .62em; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.price-unit { font-size: .64em; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.drop { font-size: 13px; font-weight: 600; color: var(--green-700); white-space: nowrap; }
.card-facts { font-size: 15px; color: var(--text-1); margin-top: 2px; }
.card-loc { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-loc b { font-weight: 600; color: var(--text-1); }
.card-agency { font-size: 13px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more { color: var(--text-2); font-weight: 500; }
.card-sponsored { color: var(--text-2); font-weight: 650; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.card-link:focus-visible { outline-offset: 4px; }
/* Garages, plots and occupied homes often have no photos: a calm placeholder instead of a broken image. */
.card-ph {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--sea-50), var(--stone-50)); color: var(--sea-600); font-size: 12px; font-weight: 500;
}
.card-ph span { color: var(--text-3); }
.card-kind { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.card-legal {
  font-size: 11px; font-weight: 650; letter-spacing: .01em; color: var(--amber-800); background: var(--amber-50);
  border: 1px solid rgb(168 115 6 / .28); border-radius: var(--r-xs); padding: 1px 6px;
}
.card-who { color: var(--sea-700); font-weight: 600; }
.card-who::before { content: "· "; color: var(--text-3); font-weight: 400; }
.card-hide {
  position: absolute; right: 56px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .94); color: var(--stone-700); display: grid; place-items: center; box-shadow: var(--e1);
  transition: opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.card-hide:hover { color: var(--stone-900); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .card-hide { opacity: 0; }
  .card:hover .card-hide, .card:focus-within .card-hide, .card-hide:focus-visible { opacity: 1; }
}

/* ---------- reveal ---------- */
/* Motion only, no fade: the page is complete at rest even if a frame is captured mid-animation. */
.reveal { animation: reveal 520ms var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes reveal { from { transform: translateY(12px); } to { transform: none; } }

/* ---------- homepage ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 82vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--stone-800); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(19 18 17 / .28) 0%, rgb(19 18 17 / 0) 32%, rgb(19 18 17 / .62) 100%), linear-gradient(90deg, rgb(19 18 17 / .42), transparent 70%);
}
.hero-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 96px var(--gutter) clamp(40px, 7vh, 72px); }
.hero-title { font-family: var(--font-display); font-size: var(--fs-display-xl); line-height: 1.04; font-weight: 650; letter-spacing: -.02em; max-width: 13ch; text-wrap: balance; }
.hero-sub { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.5; max-width: 48ch; margin: 16px 0 28px; color: rgb(255 255 255 / .92); text-wrap: pretty; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 10px; font-size: 11px; color: rgb(255 255 255 / .7); }
.search-module { max-width: 780px; background: #fff; color: var(--text-1); border-radius: var(--r-lg); box-shadow: var(--e4); padding: 12px; }
.op-tabs { display: flex; gap: 4px; padding: 2px 2px 12px; }
.op-tab {
  height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.op-tab:hover { background: var(--stone-100); color: var(--text-1); }
.op-tab[aria-pressed="true"] { background: var(--sea-50); color: var(--sea-800); }
.op-tab--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.search-row { display: flex; gap: 8px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field .field-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field input {
  width: 100%; height: 56px; padding: 0 16px 0 50px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; font-size: 17px; color: var(--text-1);
}
.search-field input:hover { border-color: var(--stone-400); }
.search-field input:focus { outline: none; border-color: var(--stone-900); box-shadow: 0 0 0 1px var(--stone-900); }
.search-hint { font-size: 13px; color: var(--text-2); padding: 10px 4px 2px; }
.search-hint .linklike { font-weight: 500; }
@media (max-width: 559px) { .search-row { flex-direction: column; } .search-row .btn { width: 100%; } }

.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e3); max-height: 380px; overflow: auto;
  overscroll-behavior: contain; scrollbar-width: none; /* owner, 2026-11-16: scrolls, but no scrollbar; a cut-off last row shows there is more */
}
.ac-list::-webkit-scrollbar { display: none; }
.ac-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; color: var(--text-1); }
.ac-item .icon { color: var(--text-3); }
.ac-item:hover, .ac-item[aria-selected="true"] { background: var(--stone-50); }
.ac-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ac-name { font-weight: 500; }
.ac-name b { font-weight: 700; }
.ac-ctx { color: var(--text-2); }
.ac-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ac-empty { padding: 12px; font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ac-empty b { color: var(--text-1); }

.section { padding: clamp(56px, 7vw, 104px) var(--gutter); }
.section--tint { background: var(--bg-soft); border-block: 1px solid var(--stone-100); }
.section--flush-top { padding-top: 0; }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 28px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.kicker--light { color: var(--stone-400); margin: 0; }
.section-title { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; max-width: 20ch; }
.section-aside { max-width: 38ch; font-size: 15px; color: var(--text-2); }
.section-aside .tag-verify { margin-right: 6px; }

.area-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .area-grid { grid-template-columns: 1fr 1fr; } .area-tile--lead { grid-column: span 2; } }
@media (min-width: 960px) { .area-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 232px; } .area-tile--lead { grid-column: span 2; grid-row: span 2; } }
.area-tile {
  position: relative; isolation: isolate; min-height: 220px; border-radius: var(--r-md); overflow: hidden;
  display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--stone-700);
}
.area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--ease); }
.area-tile:hover img { transform: scale(1.04); }
.area-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(19 18 17 / 0) 35%, rgb(19 18 17 / .7) 100%); }
.area-tile-body { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.area-kind { font-size: 12px; font-weight: 600; color: rgb(255 255 255 / .82); }
.area-name { font-family: var(--font-display); font-size: 26px; font-weight: 650; line-height: 1.05; letter-spacing: -.02em; }
.area-tile--lead .area-name { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.area-meta { font-size: 14px; color: rgb(255 255 255 / .9); }
.area-note { margin-top: 20px; font-size: 15px; color: var(--text-2); }

.nb-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .nb-grid { grid-template-columns: .9fr 1fr 1fr; align-items: start; gap: 32px; } }
.nb-intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.nb-intro p:not(.kicker) { color: var(--text-2); max-width: 36ch; }
.nb-intro .kicker { margin: 0; }
.dev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--d2) var(--ease), transform var(--d2) var(--ease); }
.dev-card:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.dev-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.dev-media img { width: 100%; height: 100%; object-fit: cover; }
.dev-media .badge { position: absolute; left: 12px; top: 12px; }
.dev-body { padding: 16px 16px 18px; }
.dev-body h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.dev-body h3 a { color: var(--text-1); text-decoration: none; }
.dev-body h3 a:hover { text-decoration: underline; }
.dev-loc { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.dev-price { font-size: 22px; font-weight: 700; letter-spacing: -.012em; margin-top: 10px; }
.dev-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--stone-100); }
.dev-facts dt { font-size: 12px; color: var(--text-3); }
.dev-facts dd { font-size: 14px; font-weight: 600; }

.steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--r-md); background: var(--bg-muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.step-n { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--stone-300); }
.step h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.step p { color: var(--text-2); font-size: 15px; }

.duo { display: grid; gap: 16px; }
@media (min-width: 960px) { .duo { grid-template-columns: 1.15fr .85fr; gap: 24px; } }
.duo-sell { position: relative; isolation: isolate; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.duo-sell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.duo-sell-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--e3); padding: 24px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.duo-sell-card .kicker { margin: 0; }
.duo-sell-card p:not(.kicker) { color: var(--text-2); font-size: 15px; }
.duo-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; }
.duo-value { border-radius: var(--r-lg); background: var(--stone-900); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.duo-value-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.duo-value-note { color: var(--stone-300); font-size: 15px; max-width: 40ch; }
.mini-range { position: relative; width: 100%; height: 56px; margin-top: 8px; }
.mini-range::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 8px; border-radius: 4px; background: var(--stone-700); }
.mini-range-band { position: absolute; left: 22%; width: 52%; top: 14px; height: 8px; border-radius: 4px; background: #fff; }
.mini-range-mid { position: absolute; left: 47%; top: 6px; width: 2px; height: 24px; background: var(--clay-300); border-radius: 1px; }
.mini-range-lo, .mini-range-hi { position: absolute; top: 32px; font-size: 13px; font-weight: 600; color: var(--stone-200); }
.mini-range-lo { left: 22%; transform: translateX(-50%); } .mini-range-hi { left: 74%; transform: translateX(-50%); }

/* ---------- simple pages ---------- */
.page { padding: 48px var(--gutter) 80px; }
.page--narrow { max-width: 720px; }
.page-head { margin-bottom: 28px; }
.page-title { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.08; }
.page-sub { color: var(--text-2); margin-top: 6px; }
.page-lede { font-size: 18px; color: var(--text-2); margin-top: 16px; max-width: 56ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: 20px; font-weight: 650; }
.empty p { color: var(--text-2); max-width: 44ch; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sea-50); color: var(--sea-600); display: grid; place-items: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px var(--gutter) 28px; color: var(--text-2); font-size: 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 32px; }
/* Owner, 2026-11-16: all four link groups on one row from tablet width up. */
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: minmax(180px, 1fr) 3fr; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wordmark--footer { font-size: 22px; }
.footer-tag { margin-top: 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-cols h2 { font-size: 13px; font-weight: 650; color: var(--text-1); margin-bottom: 2px; }
.footer-cols a, .footer-cols .linklike { color: var(--text-2); text-decoration: none; font-weight: 400; }
.footer-cols a:hover, .footer-cols .linklike:hover { color: var(--text-1); text-decoration: underline; }
.footer-fine { max-width: 1200px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
body[data-page="search"] .site-footer { display: none; }

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