/* ============================================================================
   Delphet web design system: "The Disclosure".
   Every home is presented as an honest, itemised statement on warm form paper.
   Ink rules carry structure (not shadows); figures are tabular; colour appears only
   where a decision is (copper) or a verification is (sage). See DESIGN.md.
   ========================================================================== */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* paper + ink */
  --paper: #F3EEE3; --sheet: #FBF8F2; --sunk: #E9E2D4;
  --ink: #1B1916; --ink-2: #48433B; --ink-3: #655E53; --ink-4: #978E7F;
  --bg: var(--paper); --bg-soft: #EDE7DA; --bg-sunk: var(--sunk);
  --rule: #1B1916;                      /* section rules: true ink */
  --line: #C9BFAE; --line-soft: #DDD5C6; /* hairlines */
  /* the one action colour: Sonoran copper */
  --act: #A9471F; --act-hover: #8E3A18; --act-press: #742F13; --act-soft: #F5E2D6; --act-line: #E0B49C;
  /* verification: sage. Never used for anything a person didn't check. */
  --sage: #2F6B4F; --sage-soft: #E2ECE4;
  --green: var(--sage); --green-soft: var(--sage-soft);
  --red: #B3261E; --red-soft: #F7E1DE;
  --amber: #7E5300; --amber-soft: #F6E8C9;
  --gold: #7A5C12; --gold-soft: #F3E9CC;
  /* legacy aliases still referenced by inline styles / JS */
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --card: var(--sheet); --border: var(--line);
  --action: var(--act); --accent: var(--act); --error: var(--red);
  /* shape: forms are square; depth comes from rules, and only floating layers get a shadow */
  --r: 3px; --r-lg: 4px; --r-sm: 2px; --r-pill: 3px;
  --sh-1: 0 0 0 1px var(--line);
  --sh-2: 0 0 0 1px var(--ink-4);
  --sh-3: 0 10px 28px rgba(27,25,22,.16), 0 0 0 1px rgba(27,25,22,.12);
  --sh-4: 0 18px 48px rgba(27,25,22,.24);
  --font: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --num: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1280px; --header-h: 106px; --bar-h: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'tnum' 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--act); text-decoration: none; }
a:hover { color: var(--act-hover); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--act-soft); }
.muted { color: var(--ink-3); }
.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; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2, .section-head h1 { margin: 0; }
.section-sub { margin: 4px 0 0; color: var(--ink-3); font-size: .95rem; }
.section-more, .section-more-btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; color: var(--act); background: none; border: 0; padding: 0; white-space: nowrap; }
.section-more:hover, .section-more-btn:hover { text-decoration: underline; color: var(--act-hover); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--act); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--r); border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .16s var(--ease-out); }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.97); }
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--act); color: #fff; }
.btn-primary:hover { background: var(--act-hover); color: #fff; }
.btn-primary:active { background: var(--act-press); }
.btn-outline { background: var(--sheet); color: var(--act); border-color: var(--act); }
.btn-outline:hover { background: var(--act-soft); color: var(--act-hover); }
.btn-ghost { background: transparent; color: var(--act); }
.btn-ghost:hover { background: var(--act-soft); color: var(--act-hover); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #A52222; color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn.on { background: var(--act-soft); color: var(--act); border-color: var(--act-line); }
.link-btn, .linkish { background: none; border: 0; padding: 0; color: var(--act); font-weight: 600; font-size: inherit; cursor: pointer; }
.link-btn:hover, .linkish:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- form controls (base; components override below) */
input[type=text], input[type=number], input[type=tel], input[type=email], input[type=url], input[type=search], input[type=password], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--sheet); font-size: 1rem; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2A33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.2); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,43,43,.15); }
select:disabled, input:disabled { background-color: var(--bg-soft); color: var(--ink-3); }

/* ---------------------------------------------------------------- header (form masthead) */
/* Row 1: wordmark, the three promises, account. Row 2: a ruled strip of verbs. The strip's top
   rule is true ink, like the head rule of a statement. */
.site-header { position: relative; z-index: 60; background: var(--paper); border-bottom: 2px solid var(--rule); }
.header-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand note actions" "nav nav nav"; align-items: center; column-gap: 24px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; height: 60px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-name { font-weight: 800; font-size: 1.55rem; letter-spacing: -.045em; color: #161B22; line-height: 1; padding-bottom: 2px; }
.masthead-note { grid-area: note; margin: 0; font-size: .82rem; color: var(--ink-3); letter-spacing: .01em; justify-self: center; text-align: center; }
.topnav { grid-area: nav; display: flex; align-items: stretch; justify-content: space-between; min-width: 0; border-top: 1px solid var(--rule); height: 44px; }
.nav-group { display: flex; align-items: stretch; gap: 0; }
.nav-left > .nav-item:first-child > .nav-top { padding-left: 0; }
.nav-top { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; color: var(--ink); font-weight: 600; font-size: .94rem; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s ease, border-color .15s ease; }
.nav-top:hover { color: var(--act); text-decoration: none; }
.nav-top[aria-current="page"] { border-bottom-color: var(--act); }
.nav-right .nav-top { font-weight: 500; color: var(--ink-2); }
.nav-dash { display: none !important; }

/* Dropdown sheet: a ruled statement page under the strip. */
.nav-item { display: flex; align-items: stretch; }
.nav-item > .nav-top { padding-right: 2px; }
.nav-caret { display: inline-grid; place-items: center; width: 22px; padding: 0; margin-right: 6px; border: 0; background: none; color: var(--ink-3); }
.nav-caret svg { transition: transform .2s var(--ease-out); }
.nav-caret:hover { color: var(--act); }
.nav-item.open > .nav-top { color: var(--act); }
.nav-item.open .nav-caret svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 65; background: var(--sheet); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: 0 14px 28px -14px rgba(27,25,22,.28); visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .12s var(--ease-out), transform .12s var(--ease-out), visibility 0s linear .12s; }
.nav-item.open .mega { visibility: visible; opacity: 1; transform: none; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s; }
.site-header[data-instant] .mega { transition: none !important; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 32px 28px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 0; }
.mega-col { padding: 0 24px; border-left: 1px solid var(--line); }
.mega-col:first-child { padding-left: 0; border-left: 0; }
.mega-aside { background: var(--paper); padding-top: 4px; }
.mega-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mega a { display: block; padding: 7px 0; color: var(--ink); font-size: .95rem; font-weight: 500; border-bottom: 1px dashed var(--line-soft); }
.mega li:last-child a { border-bottom: 0; }
.mega a:hover { color: var(--act); text-decoration: none; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.header-actions .nav-top { height: 40px; border-bottom: 0; margin: 0; font-weight: 600; }
.nav-account { height: 36px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: .92rem; }
.nav-account:hover { background: var(--ink); color: var(--paper); }
.nav-account[data-account] { display: inline-flex; align-items: center; border-color: var(--line); }
.nav-account[data-account]::before { content: ''; width: 22px; height: 22px; margin-right: 8px; border-radius: 2px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EEE3' stroke-width='2'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 19c1.3-3 3.8-4.5 6.5-4.5s5.2 1.5 6.5 4.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.nav-account[data-account]:hover { background: var(--sheet); color: var(--act); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--act); z-index: 2000; transition: width .3s ease, opacity .3s; }

@media (max-width: 1080px) {
  :root { --header-h: 58px; }
  .masthead-note { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "toggle brand actions"; padding: 0 16px; column-gap: 8px; }
  .nav-toggle { display: inline-flex; grid-area: toggle; }
  .brand { height: 56px; }
  .header-actions .nav-msgs { display: none; }
  .topnav { position: fixed; inset: 58px 0 0 0; z-index: 70; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto;
    background: var(--paper); padding: 8px 16px 32px; overflow-y: auto; overscroll-behavior: contain; border-top: 2px solid var(--rule); }
  .topnav.open { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-group + .nav-group { margin-top: 12px; }
  .nav-left > .nav-item:first-child > .nav-top { padding-left: 4px; }
  .nav-top { height: 52px; font-size: 1.05rem; padding: 0 4px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav-top[aria-current="page"] { color: var(--act); border-bottom-color: var(--line); }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > .nav-top { flex: 1; border-bottom: 0; }
  .nav-caret { width: 52px; height: 52px; margin: 0; color: var(--ink-2); }
  .nav-caret svg { width: 16px; height: 16px; }
  .mega { position: static; flex-basis: 100%; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; background: transparent; transition: none; }
  .nav-item.open .mega { display: block; }
  .mega-inner { display: flex; flex-direction: column; gap: 16px; padding: 4px 4px 20px; }
  .mega-col { padding: 0; border-left: 0; }
  .mega-aside { background: transparent; }
  .mega a { padding: 10px 0; font-size: 1rem; }
  .nav-dash { display: inline-flex !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open #cmp-tray, body.nav-open .mobile-cta, body.nav-open .srp-map-toggle, body.nav-open .tabbar { display: none; }
}

/* ---------------------------------------------------------------- phone tab bar */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 74;
    padding: 0 4px env(safe-area-inset-bottom); background: var(--sheet); border-top: 1px solid var(--line-soft); box-shadow: 0 -2px 8px rgba(20,20,28,.06); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: var(--ink-2); font-size: .72rem; font-weight: 600;
    -webkit-tap-highlight-color: transparent; transition: color .15s ease, transform .12s var(--ease-out); }
  .tab:hover { text-decoration: none; color: var(--act); }
  .tab:active { transform: scale(.94); }
  .tab[aria-current="page"] { color: var(--act); }
  body:has(.tabbar) .shell { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  /* Pages with their own bottom action bar keep it; the tab bar steps aside. */
  .page-detail .tabbar, .page-projdetail .tabbar, .page-msgs .tabbar, .page-sellnew .tabbar, .page-projnew .tabbar { display: none; }
  .page-detail .shell, .page-projdetail .shell, .page-msgs .shell, .page-sellnew .shell, .page-projnew .shell { padding-bottom: 0; }
  .page-search .srp-map-toggle { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .page-search #cmp-tray, .page-home #cmp-tray, .page-saved #cmp-tray { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs { font-size: .85rem; color: var(--ink-3); padding: 14px 0 0; }
.crumbs .wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-2); }
.crumbs .sep { color: var(--ink-4); }
.crumbs [aria-current] { color: var(--ink-3); }

/* ---------------------------------------------------------------- home hero: the statement */
.hero { border-bottom: 1px solid var(--rule); background: var(--paper); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 64px; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 15ch; margin-bottom: 18px; text-wrap: balance; }
.hero-sub { font-size: 1.12rem; line-height: 1.55; max-width: 36rem; color: var(--ink-2); margin-bottom: 32px; text-wrap: pretty; }

/* The search is a sentence set on ruled lines. */
.hero-search { max-width: 640px; }
.hs-sentence { margin: 0 0 20px; font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 600; line-height: 2.4; color: var(--ink); letter-spacing: -.01em; }
.hs-words { color: var(--ink-2); font-weight: 500; }
.hs-tabs { display: inline-flex; vertical-align: baseline; border-bottom: 2px solid var(--rule); margin: 0 4px; }
.hs-tab { position: relative; display: inline-flex; align-items: center; padding: 0 6px; cursor: pointer; color: var(--ink-3); font-weight: 700; border-bottom: 2px dashed transparent; margin-bottom: -2px; transition: color .15s ease; }
/* The radio covers its word, invisible but focusable, so keyboard focus draws a ring around the word itself. */
.hs-tab input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.hs-tab input:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.hs-tab.on, .hs-tab:has(input:checked) { color: var(--act); border-bottom: 2px solid var(--act); }
.hs-tab:hover { color: var(--ink); }
.hs-tab:focus-within { outline: 2px solid var(--act); outline-offset: 2px; }
.hs-row { position: relative; display: inline-block; vertical-align: baseline; width: min(100%, 22ch); margin: 0 4px; }
.hs-row input, .hs-budget input { width: 100%; border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; background: transparent; font: inherit; font-weight: 700; color: var(--act); padding: 0 2px; height: 1.6em; min-height: 0; }
.hs-row input::placeholder, .hs-budget input::placeholder { color: var(--ink-3); font-weight: 500; }
.hs-row input:focus, .hs-budget input:focus { outline: none; border-bottom-color: var(--act); box-shadow: 0 2px 0 var(--act); }
.hs-budget { display: inline-flex; align-items: baseline; gap: 2px; margin: 0 4px; font-weight: 700; color: var(--act); }
.hs-budget input { width: 7.5ch; -moz-appearance: textfield; }
.hs-budget input::-webkit-outer-spin-button, .hs-budget input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hs-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* The example statement: one home, itemised. */
.sheet { background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r); padding: 20px 22px 18px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(27,25,22,.35); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--rule); }
.sheet-title { font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; }
.sheet-sample { font-size: .75rem; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 2px 8px; border-radius: var(--r-sm); }
.sheet-home { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sheet-home:hover { text-decoration: none; color: var(--act); }
.sheet-home img, .sheet-home .pcard-ph { position: relative; width: 120px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.sheet-home-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sheet-home-text strong { font-size: 1rem; line-height: 1.3; }
.sheet-home-text span { font-size: .88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet-lines { width: 100%; border-collapse: collapse; margin: 6px 0 0; font-size: .95rem; }
.sheet-lines th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sheet-lines td { text-align: right; font-family: var(--num); font-weight: 500; font-size: .95rem; padding: 8px 0; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.sheet-lines .est { margin-left: 6px; font-size: .7rem; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; vertical-align: 1px; }
.sheet-lines tfoot th { font-weight: 800; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--rule); padding-top: 10px; }
.sheet-lines tfoot td { font-weight: 600; font-size: 1.35rem; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--rule); padding-top: 8px; }
.sheet-checks { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .88rem; }
.sheet-checks li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sheet-checks li::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid var(--ink-4); border-radius: 2px; }
.sheet-checks li.is-yes { color: var(--sage); font-weight: 600; }
.sheet-checks li.is-yes::before { display: none; }
.sheet-checks li svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; border: 1.5px solid currentColor; border-radius: 2px; background: var(--sage-soft); }
.sheet-note { margin: 12px 0 0; font-size: .76rem; line-height: 1.45; color: var(--ink-3); }

/* location / NL autocomplete (shared by hero + search bar) */
.ac-menu { position: absolute; z-index: 90; top: calc(100% + 6px); left: 0; min-width: 100%; width: max(100%, 320px); margin: 0; padding: 4px; list-style: none; background: var(--sheet); color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: var(--r); box-shadow: var(--sh-3); max-height: 360px; overflow-y: auto; text-align: left; font-size: 1rem; line-height: 1.4; font-weight: 400; letter-spacing: 0; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-bottom: 1px dashed var(--line-soft); }
.ac-item:last-child { border-bottom: 0; }
.ac-item[aria-selected="true"], .ac-item:hover { background: var(--act-soft); }
.ac-ico { width: 28px; height: 28px; border-radius: 2px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex-shrink: 0; font-size: .85rem; }
.ac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-label { font-weight: 600; }
.ac-sub { font-size: .85rem; color: var(--ink-3); }
.ac-count { font-size: .85rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- property cards: statements */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 28px 20px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-top: 2px solid var(--rule); border-radius: 0 0 var(--r) var(--r); min-width: 0; transition: border-color .2s ease, transform .2s var(--ease-out); }
.pcard:hover { border-color: var(--ink-4); border-top-color: var(--act); }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 38px; border-bottom: 1px solid var(--line); }
.pcard-loc { font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pcard-check { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: .74rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .04em; }
.pcard-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pcard-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sunk); overflow: hidden; margin: 10px 12px 0; border: 1px solid var(--line); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.025); }
.pcard-badges { position: absolute; top: 56px; left: 20px; right: 64px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: var(--r-sm); font-size: .74rem; font-weight: 700; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); white-space: nowrap; }
.badge-drop { color: var(--red); border-color: var(--red); }
.badge-fresh { color: var(--act); border-color: var(--act); }
.badge-good { color: var(--sage); border-color: var(--sage); }
.badge-promoted { background: var(--ink); color: var(--paper); }
.badge-verified { color: var(--sage); border-color: var(--sage); }
.badge-gone { background: var(--ink); color: var(--paper); }
.badge-project { color: var(--ink); }
.badge-rera { color: var(--act); }
.pcard-save { position: absolute; top: 54px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--ink); z-index: 3; transition: transform .16s var(--ease-out); }
.pcard-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill .15s; }
.pcard-save:hover { color: var(--act); }
.pcard-save:active { transform: scale(.94); }
.pcard-save.on { color: var(--act); }
.pcard-save.on svg { fill: var(--act); stroke: var(--act); }
.pcard-body { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-link { color: inherit; text-decoration: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.pcard-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard-link:hover { text-decoration: none; color: inherit; }
.pcard-link:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--act); }
.pcard:focus-within { outline: 2px solid var(--act); outline-offset: 2px; }
.pcard-monthly { display: flex; flex-direction: column; }
.pcard-monthly-v { font-family: var(--num); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.pcard-monthly-k, .pcard-price-sub { font-size: .74rem; color: var(--ink-3); }
.pcard-pricebox { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--num); font-size: 1rem; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.is-rent .pcard-link { justify-content: flex-start; }
.is-rent .pcard-pricebox { align-items: flex-start; text-align: left; }
.is-rent .pcard-price { font-size: 1.45rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.pcard:not(.is-rent) .pcard-link:not(:has(.pcard-monthly)) .pcard-pricebox { align-items: flex-start; text-align: left; }
.pcard:not(.is-rent) .pcard-link:not(:has(.pcard-monthly)) .pcard-price { font-size: 1.45rem; font-weight: 600; color: var(--ink); }
a.pcard-price:hover { text-decoration: none; color: var(--ink); }
.pcard-was { font-size: .82rem; font-weight: 500; color: var(--ink-3); text-decoration: line-through; }
.pcard-specs { display: flex; flex-wrap: wrap; align-items: center; color: var(--ink); font-size: .92rem; font-variant-numeric: tabular-nums; }
.pcard-specs b { font-weight: 700; margin-right: 3px; }
.pcard-specs i { display: inline-block; width: 1px; height: 13px; background: var(--line); margin: 0 8px; }
.pcard-ptype { color: var(--ink-2); }
.pcard-title { font-weight: 600; color: var(--ink); }
.pcard-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); min-height: 40px; }
.pcard-lister { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pcard-lister-name, .pcard-confirmed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-lister-name { color: var(--ink-2); font-weight: 600; }
.vtick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 2px; background: var(--sage); flex-shrink: 0; }
.vtick svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trust { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trust-dot { display: none; }
.pcard-compare { position: relative; z-index: 2; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sheet); color: var(--ink-2); display: grid; place-items: center; }
.pcard-compare svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard-compare:hover { border-color: var(--act); color: var(--act); }
.pcard-compare.on { background: var(--act); border-color: var(--act); color: #fff; }
.pcard-noimg, .img-fallback, .pcard-ph-mini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--ink-4); background: var(--sunk); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pcard-list { flex-direction: row; }
.pcard-list .pcard-media { width: 240px; aspect-ratio: auto; flex-shrink: 0; }
.is-promoted { border-top-color: var(--gold); }
.is-gone { opacity: .72; }
.proj-kind { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.projcard .pcard-body { gap: 4px; }
.projcard .pcard-media { margin-top: 12px; }
.projcard .pcard-badges, .projcard .pcard-save { top: 22px; }
.projcard-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.projcard .pcard-price { font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* honest painted placeholders for photo-less land / commercial: a survey drawing on paper */
.pcard-ph { position: absolute; inset: 0; display: block; background: var(--paper); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 20px 20px; }
.ph-svg { width: 100%; height: 100%; }
.ph-ground { fill: #E4D9C4; }
.ph-parcel { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 8 6; }
.ph-fill { fill: var(--sheet); opacity: .9; }
.ph-pin { fill: var(--act); }
.ph-pinhole { fill: var(--sheet); }
.ph-bldg { fill: var(--sheet); stroke: var(--ink-2); stroke-width: 2; }
.ph-bldg-tall { fill: var(--paper); }
.ph-win { stroke: var(--ink-4); stroke-width: 3; }
.ph-roof { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.ph-door { fill: var(--ink-4); }
.pcard-ph-label { position: absolute; left: 10px; bottom: 8px; font-size: .72rem; font-weight: 700; color: var(--ink-2); background: var(--sheet); border: 1px solid var(--line); padding: 2px 7px; border-radius: var(--r-sm); }

/* chips, pills */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 600; background: var(--sheet); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill-verified { border-color: var(--sage); color: var(--sage); }
.pill-builder { background: var(--paper); }
.pill-project { border-color: var(--act); color: var(--act); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: .76rem; font-weight: 600; border: 1px solid var(--line); }
.chip-good { border-color: var(--sage); color: var(--sage); }
.chip-neutral { color: var(--ink-2); }

/* ---------------------------------------------------------------- home: ledger, terms, cities */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.ledger-row { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 150px 150px 44px; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger-row:hover { background: linear-gradient(90deg, transparent, var(--sheet) 8%, var(--sheet) 92%, transparent); }
.ledger-media { position: relative; display: block; width: 132px; height: 88px; border: 1px solid var(--line); overflow: hidden; background: var(--sunk); }
.ledger-media img { width: 100%; height: 100%; object-fit: cover; }
.ledger-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ledger-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.ledger-title::after { content: ''; position: absolute; inset: 0; }
.ledger-title:hover { color: var(--act); text-decoration: none; }
.ledger-facts { font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ledger-check { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--ink-3); }
.ledger-check.is-yes { color: var(--sage); font-weight: 700; }
.ledger-check svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ledger-price, .ledger-month { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ledger-k { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ledger-v { font-family: var(--num); font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.ledger-month .ledger-v { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.ledger-save { position: relative; top: auto; right: auto; z-index: 2; }

.terms { border-top: 2px solid var(--rule); margin-top: 24px; }
.terms-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.025em; margin: 0 0 24px; }
.terms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.terms-grid > div { padding: 0 28px; border-left: 1px solid var(--line); }
.terms-grid > div:first-child { padding-left: 0; border-left: 0; }
.terms-grid dt { font-weight: 800; font-size: 1.02rem; margin-bottom: 8px; }
.terms-grid dd { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 38ch; }

.city-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); font-size: .98rem; }
.city-table th, .city-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.city-table thead th { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 10px; padding-bottom: 10px; }
.city-table tbody th a { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.city-table tbody th a:hover { color: var(--act); text-decoration: none; }
.city-table td { color: var(--ink-2); }
.city-table .num { text-align: right; font-family: var(--num); color: var(--ink); }
.city-links { text-align: right !important; white-space: nowrap; }
.city-links a { font-weight: 700; margin-left: 16px; }

/* ---------------------------------------------------------------- home: rails, trio, cities */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-ctl { display: flex; align-items: center; gap: 8px; }
.rail-ctl .section-more { margin-right: 8px; }
.rail-btn { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font-size: 1.4rem; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; }
.rail-btn:hover { border-color: var(--ink-2); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.trio-card { background: var(--sheet); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 32px 28px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: box-shadow .2s, transform .2s; }
.trio-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.trio-card svg { width: 160px; height: 110px; margin-bottom: 20px; }
.trio-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.trio-card p { color: var(--ink-2); flex: 1; max-width: 32ch; }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.city-card { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.city-card:hover { border-color: var(--act); box-shadow: var(--sh-2); text-decoration: none; color: var(--ink); }
.city-name { font-weight: 700; font-size: 1.1rem; }
.city-tag { color: var(--ink-3); font-size: .9rem; }
.city-count { margin-top: 10px; color: var(--act); font-weight: 600; font-size: .9rem; }
.type-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; color: var(--ink-3); font-size: .95rem; }
.type-links span { margin-right: 4px; }
.type-link { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); font-weight: 600; font-size: .9rem; }
.type-link:hover { border-color: var(--ink-2); text-decoration: none; color: var(--ink); }
/* home budget worksheet: two numbers in, a price ceiling out, homes that fit beside it */
.budget-head { margin-bottom: 20px; }
.budget-head h2 { margin: 0; }
.budget-grid { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.budget-card { display: grid; gap: 16px; padding: 22px; border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.afford-form.budget-form { display: grid; gap: 12px; padding: 0; border: 0; border-radius: 0; }
.budget-field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.budget-in { display: flex; align-items: center; height: 48px; border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; background: var(--sheet); transition: border-color .15s ease, box-shadow .15s ease; }
.budget-in:focus-within { border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.18); }
.budget-in i { font-style: normal; padding: 0 4px 0 14px; color: var(--ink-3); font-weight: 600; }
.budget-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0 14px 0 2px; font-size: 1.05rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.budget-out { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.budget-label { display: block; font-size: .88rem; color: var(--ink-3); }
.budget-price { display: block; font-family: var(--num); font-size: 2rem; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.budget-facts { display: flex; gap: 28px; margin: 0; }
.budget-facts div { display: grid; }
.budget-facts dt { font-size: .8rem; color: var(--ink-3); }
.budget-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.budget-cap { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--amber-soft); color: var(--amber); font-size: .85rem; line-height: 1.4; }
.budget-more { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
.budget-rail { min-width: 0; }
.budget-rail .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); padding-bottom: 6px; }
.budget-empty { padding: 48px 24px; text-align: center; color: var(--ink-2); border: 1px dashed var(--ink-4); }
.trust-band { background: var(--bg-soft); padding: 56px 0; margin-top: 24px; }
.trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-cols h3 { margin: 14px 0 6px; }
.trust-cols p { color: var(--ink-2); margin: 0; }
.trust-ico { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--sheet); box-shadow: var(--sh-1); display: grid; place-items: center; color: var(--act); font-weight: 800; font-size: 1.3rem; }
.trust-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-banner { padding: 48px 0; }
.app-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.ab-text h2 { margin-bottom: 6px; }
.ab-text p { color: var(--ink-2); margin: 0; max-width: 40rem; }
.ab-actions { display: flex; gap: 8px; }
.ab-badge { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 700; font-size: .95rem; }
.ab-badge-soon { background: var(--bg-soft); color: var(--ink-3); }
.band { background: var(--bg-soft); padding: 48px 0; }

/* ---------------------------------------------------------------- search results page (split map) */
.page-search .crumbs { display: none; }
.srp-bar { position: sticky; top: 0; z-index: 50; background: var(--sheet); border-bottom: 1px solid var(--line-soft); box-shadow: 0 2px 4px rgba(0,0,0,.04); }
.srp-bar-inner { max-width: 1600px; margin: 0 auto; padding: 12px 24px; }
.srp-filters { margin: 0; }
.srp-fb-row { display: flex; align-items: center; gap: 8px; }
.srp-q { position: relative; flex: 1 1 320px; max-width: 420px; }
.srp-q input { width: 100%; height: 44px; min-height: 0; padding: 0 16px 0 40px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354545A' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 12px center / 18px no-repeat; font-size: .95rem; }
.srp-q input:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.25); }
.srp-sel { position: relative; display: inline-flex; flex-direction: column; }
.srp-sel > span { position: absolute; left: 12px; top: 5px; font-size: .68rem; font-weight: 600; color: var(--ink-3); pointer-events: none; text-transform: uppercase; letter-spacing: .04em; }
.srp-sel select { min-height: 0; height: 44px; padding: 14px 32px 0 12px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--sheet); font-weight: 600; font-size: .9rem; appearance: none; -webkit-appearance: none; min-width: 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2A33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.srp-sel select:focus { outline: none; border-color: var(--act); }
.srp-sel select:hover { border-color: var(--ink-2); }
.srp-price { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ink-4); border-radius: var(--r); height: 44px; padding: 0 6px; background: var(--sheet); }
.srp-price input { width: 92px; height: 34px; min-height: 0; border: 0; padding: 0 6px; font-size: .9rem; font-weight: 600; background: transparent; }
.srp-price input:focus { outline: none; box-shadow: none; background: var(--bg-soft); border-radius: 4px; }
.srp-price span { color: var(--ink-4); }
.srp-more-btn { height: 44px; padding: 0 16px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--sheet); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.srp-more-btn:hover, .srp-more-btn[aria-expanded="true"] { border-color: var(--act); color: var(--act); }
.srp-apply { height: 44px; }
.srp-more-btn.has-count { border-color: var(--act); color: var(--act); }
.srp-count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: var(--r-pill); background: var(--act); color: #fff; font-size: .75rem; }
.srp-adv { position: absolute; z-index: 55; }
.srp-bar-inner { position: relative; }
.srp-adv { margin-top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); box-shadow: var(--sh-3); display: grid; gap: 16px; max-width: 980px; }
.srp-adv-cols { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.srp-adv-group { display: flex; flex-direction: column; gap: 8px; }
.srp-adv-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.srp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(600px, 46%); align-items: start; max-width: 1920px; margin: 0 auto; }
.srp-map { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); background: var(--bg-sunk); border-right: 1px solid var(--line-soft); }
.search-map { position: absolute; inset: 0; }
.map-area-btn { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 600; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--sh-3); }
.map-area-btn:hover { background: var(--bg-soft); }
.map-area-btn:disabled { opacity: .7; }
.srp-map-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.srp-map-close { display: none; }
.srp-map-toggle { display: none; }
.srp-list { padding: 16px 24px 40px; min-width: 0; }
.srp-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.srp-title { font-size: 1.35rem; margin: 0 0 4px; }
.srp-count { margin: 0; font-size: .9rem; }
.srp-head-actions { display: flex; align-items: center; gap: 12px; }
.srp-save-search { gap: 6px; }
.srp-save-search.on { background: var(--act-soft); }
.srp-interpreted { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; font-size: .85rem; }
.srp-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--act-soft); color: var(--act); font-weight: 600; }
.srp-list .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sortsel { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.sortsel select { min-height: 0; width: auto; height: 36px; border: 0; background-color: transparent; background-position: right 2px center; padding-right: 20px !important; font-weight: 700; color: var(--act); padding: 0 4px; cursor: pointer; }
.projects-strip { padding-top: 32px; margin-top: 24px; border-top: 1px solid var(--line-soft); }
.projects-strip .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-search .interlink { border-top: 1px solid var(--line-soft); }
@media (min-width: 1700px) { .srp { grid-template-columns: minmax(0, 1fr) minmax(900px, 50%); } .srp-list .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* leaflet price pins + popup */
.price-pin { background: none; border: 0; }
.price-pin span { display: inline-block; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: var(--r-sm); background: var(--act); color: #fff; font: 700 12px/1.3 var(--font); white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); position: relative; }
.price-pin span::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--act); }
.price-pin.pin-active span, .price-pin:hover span { background: var(--ink); transform: translate(-50%, -100%) scale(1.12); }
.price-pin.pin-active span::after, .price-pin:hover span::after { border-top-color: var(--ink); }
.cluster-pin { background: none; border: 0; }
.cluster-pin span { display: inline-block; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: var(--r-pill); background: var(--sheet); color: var(--act); border: 2px solid var(--act); font: 800 12px/1.2 var(--font); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; }
.cluster-pin:hover span, .cluster-pin.pin-active span { background: var(--act); color: #fff; }
.mp-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-3); }
.mp-popup .leaflet-popup-content { margin: 0; width: 232px !important; }
.mp-card { display: block; color: var(--ink); }
.mp-card:hover { text-decoration: none; color: var(--ink); }
.mp-photo { display: block; height: 128px; background: var(--bg-sunk) center / cover no-repeat; }
.mp-photo-none { display: grid; place-items: center; color: var(--ink-4); font-size: 1.5rem; }
.mp-info { display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 2px; font-family: var(--font); }
.mp-price { font-weight: 700; font-size: 1.15rem; }
.mp-specs { font-size: .85rem; color: var(--ink); }
.mp-loc { font-size: .8rem; color: var(--ink-3); }
.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom a { color: var(--ink) !important; }

/* pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 32px 0 8px; }
.pg { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink); font-weight: 600; }
.pg:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.pg.on { background: var(--ink); color: #fff; }
.pg-gap { display: inline-grid; place-items: center; width: 24px; color: var(--ink-3); }
.pg-prev, .pg-next { color: var(--act); }

/* empty / error / relax */
.empty { text-align: center; padding: 56px 24px; max-width: 560px; margin: 0 auto; }
.empty h1, .empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); }
.empty-mark { width: 64px; height: 64px; margin: 0 auto 16px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: transparent; color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; }
.relax-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.relax { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); font-weight: 600; }
.relax:hover { border-color: var(--act); color: var(--act); text-decoration: none; }
.relax span { color: var(--ink-3); font-weight: 500; }
.notice { padding: 14px 16px; border-radius: var(--r); background: var(--act-soft); color: var(--ink); margin: 16px 0; }
.notice-warn { background: var(--amber-soft); color: var(--amber); }

/* filter chips (search adv, sell wizard amenities) */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; cursor: pointer; background: var(--sheet); user-select: none; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip:hover { border-color: var(--ink-2); }
.fchip.on, .fchip:has(input:checked) { background: var(--act-soft); border-color: var(--act); color: var(--act); }
.fchip:focus-within { outline: 3px solid rgba(169,71,31,.35); }
.fchip-block { height: 44px; }
.flabel { font-weight: 700; font-size: .9rem; }
.filters { display: grid; gap: 16px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.fgroup { display: grid; gap: 8px; }
.frow { display: flex; gap: 8px; align-items: center; }
.dash { color: var(--ink-3); }

/* interlinks */
.interlink-grid { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.interlink-grid a { color: var(--ink-2); font-size: .92rem; }
.interlink-grid a span { color: var(--ink-3); margin-left: 2px; }
.interlink-grid a:hover { color: var(--act); }

/* ---------------------------------------------------------------- property detail */
.detail-top { padding-top: 16px; }
.detail-gallery { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 6px; height: min(56vh, 520px); min-height: 320px; border-radius: var(--r-lg); overflow: hidden; }
.detail-gallery.dg-solo { grid-template-columns: 1fr; }
.dg-main, .dg-cell { position: relative; display: block; overflow: hidden; background: var(--bg-sunk); }
.dg-main, .dg-cell { min-height: 0; min-width: 0; }
.dg-main img, .dg-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.dg-main:hover img, .dg-cell:hover img { filter: brightness(.92); }
.dg-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; min-height: 0; }
.dg-grid:has(> :only-child) { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.dg-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
.dg-grid:has(> :nth-child(3):last-child) > :first-child { grid-column: span 2; }
.dg-empty { position: relative; }
.dg-all { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 1.1rem; }
.dg-allbtn { position: absolute; right: 16px; bottom: 16px; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--sh-3); }
.dg-allbtn { display: inline-flex; align-items: center; gap: 8px; }
.dg-allbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.dg-allbtn:hover { background: var(--bg-soft); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
.detail-head { padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-badges .badge { box-shadow: none; border: 1px solid var(--line); }
.detail-price-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 8px; }
.detail-price { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: baseline; gap: 12px; }
.detail-was { font-size: 1rem; font-weight: 500; text-decoration: line-through; color: var(--ink-3); letter-spacing: 0; }
.detail-facts { display: flex; gap: 28px; }
.detail-facts span { display: flex; flex-direction: column; font-size: .95rem; color: var(--ink-2); line-height: 1.2; }
.detail-facts b { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.detail-title { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; margin: 12px 0 2px; color: var(--ink); }
.detail-loc { color: var(--ink-2); }
.detail-subrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fair, .emi-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; }
.badge-gone { background: var(--ink-2); color: #fff; }
.pcard.is-gone .pcard-media img { filter: grayscale(.85) opacity(.7); }
.pcard.is-gone .pcard-price { color: var(--ink-3); }
.fair-good { background: var(--green-soft); color: var(--green); }
.fair-warn { background: var(--amber-soft); color: var(--amber); }
.fair-neutral { background: var(--bg-soft); color: var(--ink-2); }
.emi-chip { background: var(--bg-soft); color: var(--ink); font-weight: 500; }
.proj-tagline { color: var(--ink-2); font-size: 1.05rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.spec { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--bg-soft); }
.spec-k { font-size: .78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spec-v { font-weight: 600; }
.detail-section { padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { font-size: 1.35rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.detail-desc { white-space: pre-line; color: var(--ink); line-height: 1.65; max-width: 72ch; }
.hl-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.hl-list li { position: relative; padding-left: 26px; }
.hl-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: var(--r-sm); background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7B4E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.amenity-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .9rem; }
.trust-score-big { font-size: 1.6rem; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.trust-score-big small { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.trust-meter { height: 8px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; margin-bottom: 16px; }
.trust-meter span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.trust-factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.trust-factors li { display: flex; gap: 10px; align-items: baseline; }
.trust-factors li span { width: 18px; flex-shrink: 0; font-weight: 800; }
.trust-factors .met span { color: var(--green); }
.trust-factors .unmet { color: var(--ink-3); }
.emi-calc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.emi-calc-out { display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: var(--r); background: var(--act-soft); }
.emi-calc-out strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.emi-calc-out small { font-size: 1rem; font-weight: 600; color: var(--ink-3); }
.emi-calc-controls { display: grid; gap: 18px; }
.emi-ctl { display: grid; gap: 6px; font-size: .92rem; }
.emi-ctl span { display: flex; justify-content: space-between; }
.emi-ctl input[type=range] { width: 100%; height: 28px; accent-color: var(--act); }
.emi-calc-note { margin: 16px 0 0; font-size: .85rem; }
.price-history { border-collapse: collapse; width: 100%; max-width: 480px; }
.price-history td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.price-history td:last-child { text-align: right; font-weight: 600; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.nearby-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.nearby-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); width: 76px; flex-shrink: 0; }
.nearby-name { flex: 1; }
.nearby-km { color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.detail-map { position: relative; height: 340px; border-radius: var(--r); overflow: hidden; background: var(--bg-sunk); }
.map-link { position: absolute; right: 10px; top: 10px; z-index: 500; background: var(--sheet); padding: 6px 12px; border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; box-shadow: var(--sh-2); }
.map-note { font-size: .85rem; margin-top: 10px; }
.config-table { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.config-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.config-row:last-child { border-bottom: 0; }
.config-row.sold { color: var(--ink-3); }
.cfg-type, .cfg-price { font-weight: 700; }
.cfg-avail { font-size: .88rem; color: var(--ink-2); }
.floorplan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.floorplan-grid img { border-radius: var(--r); border: 1px solid var(--line); background: var(--sheet); }

/* sticky contact card */
.detail-side { position: sticky; top: 24px; display: grid; gap: 12px; }
.contact-card { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--sh-3); }
.cc-lister { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.cc-avatar, .dc-avatar, .dh-avatar, .thread-avatar { width: 48px; height: 48px; border-radius: 2px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.cc-name { font-weight: 700; }
.cc-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-sm); background: var(--green); color: #fff; font-size: .7rem; vertical-align: 1px; margin-left: 4px; }
.cc-kind, .cc-resp { font-size: .85rem; color: var(--ink-3); }
.cc-privacy { font-size: .82rem; text-align: center; margin: 4px 0 0; }
.cc-interest { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .82rem; color: var(--ink-3); }
.cc-interest:empty { display: none; }
.cc-report { font-size: .85rem; text-align: center; color: var(--ink-3); margin: 0; }
.contact-card .btn-ghost { min-height: 40px; }
.mobile-cta { display: none; }

/* ---------------------------------------------------------------- generic page heads + content pages */
.search-head { padding-top: 24px; }
.search-head h1 { margin-bottom: 6px; }
.search-intro { max-width: 52rem; }
.projects-hero, .loc-hero, .dealer-hero, .sell-hero, .about-hero { background: var(--bg-soft); padding: 48px 0; margin-bottom: 8px; }
.projects-hero h1, .loc-hero h1, .sell-hero h1, .about-hero h1 { max-width: 22ch; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--act); margin-bottom: 8px; }
.projects-hero-sub, .loc-hero-sub, .loc-hero-blurb { color: var(--ink-2); max-width: 46rem; font-size: 1.05rem; }
.sell-hero .hero-sub, .about-hero .hero-sub, .section .hero-sub { color: var(--ink-2); text-shadow: none; }
.ptabs { display: flex; align-items: center; gap: 4px; padding-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.ptab { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill); color: var(--ink); font-weight: 600; }
.ptab:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.ptab.on { background: var(--ink); color: #fff; }
.ptabs-spacer { flex: 1; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-count { color: var(--ink-2); }
.toolbar-controls { display: flex; gap: 12px; align-items: center; }
.viewswitch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.viewswitch button { width: 40px; height: 36px; border: 0; background: var(--sheet); }
.viewswitch button.on { background: var(--ink); color: #fff; }
.lstats { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.lstat { display: flex; flex-direction: column; padding: 14px 20px; border-radius: var(--r); background: var(--sheet); box-shadow: var(--sh-1); min-width: 160px; }
.lstat-v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.lstat-k { font-size: .85rem; color: var(--ink-3); }
.loc-hero-cta, .sell-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-top: 16px; padding-bottom: 48px; }
.loc-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); color: var(--ink); background: var(--sheet); transition: box-shadow .2s, border-color .2s; }
.loc-card:hover { border-color: var(--act); box-shadow: var(--sh-2); text-decoration: none; color: var(--ink); }
.loc-card h2 { font-size: 1.3rem; }
.loc-card p { color: var(--ink-2); flex: 1; }
.loc-count { color: var(--act); font-weight: 700; }
.driver-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.driver-list li { padding: 16px 18px; border-radius: var(--r); background: var(--bg-soft); }
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-top: 16px; padding-bottom: 48px; }
.dealer-card { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); color: var(--ink); background: var(--sheet); transition: box-shadow .2s, border-color .2s; }
.dealer-card:hover { border-color: var(--act); box-shadow: var(--sh-2); text-decoration: none; color: var(--ink); }
.dc-avatar { width: 56px; height: 56px; }
.dc-body { display: grid; gap: 2px; }
.dc-name { font-weight: 700; font-size: 1.05rem; }
.dc-meta, .dc-resp { color: var(--ink-3); font-size: .88rem; }
.dc-count { font-weight: 600; font-size: .9rem; }
.dealer-hero-inner { display: flex; gap: 24px; align-items: flex-start; }
.dh-avatar { width: 88px; height: 88px; font-size: 2rem; }
.dh-meta { color: var(--ink-2); margin-bottom: 10px; }
.dh-about { max-width: 60ch; color: var(--ink-2); }
.dh-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.step p { color: var(--ink-2); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--act); color: #fff; font-weight: 800; margin-bottom: 14px; }
.sell-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.sell-why p, .about-grid p { color: var(--ink-2); }
.sell-final { text-align: center; }
.about-contact { padding: 24px; border-radius: var(--r-lg); background: var(--bg-soft); }

/* legal + help + plans */
.legal { max-width: 820px; padding-top: 24px; padding-bottom: 64px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal-meta { color: var(--ink-3); }
.legal-draft { padding: 14px 16px; border-radius: var(--r); background: var(--amber-soft); color: var(--amber); margin: 16px 0; }
.legal-unset { color: var(--amber); font-style: italic; }
.safety-list li { margin-bottom: 10px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--act); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.plan-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--sheet); }
.plan-card.plan-featured { border: 2px solid var(--act); box-shadow: var(--sh-3); }
.plan-card ul { padding-left: 0; list-style: none; flex: 1; display: grid; gap: 8px; margin: 0 0 20px; align-content: start; }
.plan-card li { padding-left: 24px; position: relative; color: var(--ink-2); }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan-aud { color: var(--ink-3); font-size: .9rem; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.plan-tag { color: var(--ink-2); }
.plan-note, .plan-fine { font-size: .9rem; }
.plan-now { padding: 16px; border-radius: var(--r); background: var(--act-soft); margin-bottom: 16px; }
.plan-now-name { font-weight: 800; font-size: 1.2rem; }
.plan-usage { display: grid; gap: 4px; color: var(--ink-2); font-size: .92rem; }
.plan-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* affordability tool */
.afford-wrap { max-width: 1100px; }
.afford-intro { max-width: 46rem; margin-bottom: 28px; }
.afford-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.afford-form { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.afford-field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.afford-inwrap { display: flex; align-items: center; height: 52px; border: 1px solid var(--ink-4); border-radius: var(--r); padding: 0 14px; gap: 8px; background: var(--sheet); }
.afford-inwrap:focus-within { border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.2); }
.afford-inwrap i { font-style: normal; color: var(--ink-3); font-weight: 500; }
.afford-inwrap input { flex: 1; min-width: 0; min-height: 0; padding: 0; border: 0; font-size: 1.15rem; font-weight: 700; background: transparent; }
.afford-inwrap input:focus { outline: none; box-shadow: none; }
.afford-result { padding: 28px; border-radius: var(--r-lg); background: var(--bg-soft); display: grid; gap: 16px; position: sticky; top: 24px; }
.afford-big { display: grid; gap: 4px; }
.afford-big strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.afford-break { display: grid; gap: 0; margin: 0; }
.afford-break div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.afford-break dt { color: var(--ink-2); }
.afford-break dd { margin: 0; font-weight: 700; }
.afford-note { font-size: .85rem; margin: 0; }
.afford-explain { margin-top: 48px; max-width: 52rem; }
.afford-explain p { color: var(--ink-2); line-height: 1.7; }

/* compare */
.cmp-head { padding-bottom: 8px; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmp-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: calc(180px + var(--cmp-cols, 2) * 240px); }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-col { position: relative; font-weight: 400; width: calc((100% - 180px) / var(--cmp-cols, 2)); }
.cmp-corner, .cmp-rowlabel { width: 180px; background: var(--bg-soft); font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.cmp-media { position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--bg-sunk); margin-bottom: 10px; }
.cmp-media img { width: 100%; height: 100%; object-fit: cover; }
.cmp-remove { position: absolute; top: 22px; right: 24px; z-index: 2; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--sheet); box-shadow: var(--sh-2); color: var(--ink); display: grid; place-items: center; font-size: .8rem; }
.cmp-remove:hover { text-decoration: none; background: var(--bg-soft); }
.cmp-title { display: block; font-weight: 700; color: var(--ink); }
.cmp-loc { color: var(--ink-3); font-size: .9rem; margin-bottom: 6px; }
.cmp-price { font-weight: 800; font-size: 1.1rem; }
.cmp-best { background: var(--green-soft); }
.cmp-best::after { content: 'Best'; display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .05em; }
.cmp-trust { font-weight: 700; }
.cmp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-note { margin-top: 12px; font-size: .85rem; }
#cmp-tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--sh-4); font-weight: 600; font-size: .92rem; white-space: nowrap; }
#cmp-tray a, #cmp-tray .btn { height: 36px; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); background: var(--act); color: #fff; font-weight: 700; display: inline-flex; align-items: center; }
#cmp-tray a:hover { text-decoration: none; background: var(--act-hover); }
.cmp-tray-clear { border: 0; background: transparent; color: rgba(255,255,255,.75); font-weight: 600; padding: 0 10px; height: 36px; }
.cmp-tray-clear:hover { color: #fff; }

/* ---------------------------------------------------------------- forms (shared) */
.form-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--sheet); margin-bottom: 16px; }
.form-card h2 { font-size: 1.3rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.ff, .modal-field { display: grid; gap: 6px; align-content: start; }
.ff > span, .ff-lbl, .modal-field label, .field-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.ff-full { grid-column: 1 / -1; margin-top: 16px; }
.opt { font-weight: 500; font-size: .82rem; color: var(--ink-3); }
.field-hint { font-size: .84rem; color: var(--ink-3); margin: 4px 0 0; font-weight: 400; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin: 8px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--act); }
.form-status { font-size: .9rem; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.nl-box { margin-top: 20px; padding: 16px; border-radius: var(--r); background: var(--act-soft); display: grid; gap: 8px; }
.nl-box .frow input { flex: 1; }

/* sell wizard */
.sellnew { padding-top: 16px; padding-bottom: 64px; }
.sellnew-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sellnew-head { margin-bottom: 16px; }
.wiz-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wiz-steps li button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border: 0; background: none; font-size: .78rem; font-weight: 600; color: var(--ink-3); text-align: left; }
.wiz-steps li button::before { content: ''; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--bg-sunk); }
.wiz-steps li button span { display: none; }
.wiz-steps li.done button, .wiz-steps li.on button, .wiz-steps li[aria-current] button { color: var(--ink); }
.wiz-steps li.done button::before { background: var(--act); }
.wiz-steps li.on button::before, .wiz-steps li[aria-current] button::before { background: var(--act); }
.wiz-steps li.on button, .wiz-steps li[aria-current] button { color: var(--act); }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.wiz-nav [data-wiz-next], .wiz-nav [data-publish] { margin-left: auto; min-width: 160px; }
.sellnew-side { position: sticky; top: 24px; display: grid; gap: 8px; }
.preview-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: var(--sheet); margin-bottom: 8px; }
.pc-media { position: relative; aspect-ratio: 16/10; background: var(--bg-sunk); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 12px 14px; display: grid; gap: 2px; }
.pc-price { font-size: 1.35rem; font-weight: 800; }
.pc-title { font-weight: 600; }
.pc-loc, .pc-specs { font-size: .9rem; }
.uploader { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 24px; border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.uploader.drag { border-color: var(--act); background: var(--act-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-grid:empty { display: none; }
.photo-item { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--bg-sunk); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.photo-del, .photo-star { position: absolute; top: 6px; width: 30px; height: 30px; border: 0; border-radius: var(--r-sm); background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.photo-del { right: 6px; }
.photo-star { left: 6px; }
.photo-cover-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--act); color: #fff; font-size: .72rem; font-weight: 700; }
.review-list { display: grid; margin: 0 0 16px; border-top: 1px solid var(--line-soft); }
.review-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.review-list dt { color: var(--ink-3); font-weight: 600; font-size: .92rem; }
.review-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 720px) { .review-row { grid-template-columns: 1fr auto; } .review-row dt { grid-column: 1 / -1; } }
.g-band { display: inline-flex; padding: 4px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.g-band.good, .g-band.below { background: var(--green-soft); color: var(--green); }
.g-band.warn, .g-band.above { background: var(--amber-soft); color: var(--amber); }
.g-band.inline, .g-band.neutral { background: var(--bg-soft); color: var(--ink-2); }
.ff-guidance { padding: 14px; border-radius: var(--r); background: var(--bg-soft); }
.config-rows { display: grid; gap: 10px; }
.config-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.config-del { width: 40px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); color: var(--red); }
.sellnew-done, .sellnew-gate { padding: 24px 0; }
.edit-form { display: grid; gap: 14px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edit-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.edit-ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-sunk); }
.edit-ph img { width: 100%; height: 100%; object-fit: cover; }
.edit-add { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 8px; border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--sheet); color: var(--act); font-weight: 700; cursor: pointer; }
.edit-add:hover { border-color: var(--act); background: var(--act-soft); }
.est-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.est-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.est-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.est-conf { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--ink-2); }
.est-conf-high { background: var(--green-soft); color: var(--green); }
.est-conf-low { background: var(--amber-soft); color: var(--amber); }
.est-vs, .est-rent { margin: 8px 0 0; }
.est-comps { margin-top: 12px; }
.est-comps summary { cursor: pointer; color: var(--act); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.est-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .88rem; min-width: 520px; }
.est-table th, .est-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.est-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.est-method { font-size: .8rem; margin-top: 10px; }
.afford-cap { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--amber-soft); color: var(--ink-2); font-size: .85rem; line-height: 1.45; }
.emi-ctl-note { grid-column: 1 / -1; font-size: .78rem; }
.amen-fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.amen-group + .amen-group { margin-top: 12px; }
.amen-label { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.edit-ph-empty { grid-column: 1 / -1; margin: 0; }
.reason-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- dashboard, account, admin */
.dash, .acct, .admin { padding-top: 24px; padding-bottom: 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: 4px; }
.dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.dash-tab { position: relative; height: 48px; padding: 0 16px; border: 0; background: none; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.dash-tab:hover { color: var(--ink); }
.dash-tab.on { color: var(--act); box-shadow: inset 0 -3px 0 var(--act); }
.dash-tab span:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-pill); background: var(--bg-soft); font-size: .78rem; color: var(--ink-2); }
.dash-loading, .saved-loading { padding: 32px 0; color: var(--ink-3); text-align: center; }
.dash-panel { display: grid; gap: 12px; }
.drow { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--sheet); }
.drow-media { width: 140px; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--bg-sunk); flex-shrink: 0; position: relative; display: block; }
.drow-media img { width: 100%; height: 100%; object-fit: cover; }
.drow-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.drow-title { font-weight: 700; color: var(--ink); }
.drow-sub { font-size: .9rem; }
.drow-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ink-3); }
.drow-note { font-size: .88rem; padding: 8px 12px; border-radius: var(--r); background: var(--act-soft); }
.drow-note-err { background: var(--red-soft); color: var(--red); }
.drow-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.drow-lead { border-left: 4px solid var(--line); }
.dstat { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; text-transform: capitalize; background: var(--bg-soft); color: var(--ink-2); width: fit-content; }
.dstat-active, .dstat-live { background: var(--green-soft); color: var(--green); }
.dstat-pending, .dstat-review, .dstat-pending-review { background: var(--amber-soft); color: var(--amber); }
.dstat-rejected, .dstat-removed { background: var(--red-soft); color: var(--red); }
.lead-intent { font-weight: 700; }
.lead-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-reason { font-size: .78rem; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-soft); }
.lead-msg { font-size: .92rem; color: var(--ink-2); padding: 8px 12px; border-radius: var(--r); background: var(--bg-soft); }
.lead-num { font-weight: 700; }
.lead-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead-status { font-size: .8rem; font-weight: 700; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat-tile { padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); min-width: 160px; display: grid; gap: 2px; }
.stat-tile strong, .stat-tile b { font-size: 1.6rem; font-weight: 800; }
.acct { max-width: 860px; }
.page-acct .crumbs .wrap { max-width: 860px; }
.acct-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 16px; background: var(--sheet); }
.acct-form { display: grid; gap: 16px; max-width: 520px; }
.acct-pro { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; margin: 0; }
.acct-pro legend { font-weight: 700; padding: 0 6px; }
.acct-actions { display: flex; align-items: center; gap: 14px; }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; }
.acct-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.acct-danger { border-color: #F2C4C4; }
.acct-banner { padding: 14px 16px; border-radius: var(--r); background: var(--red-soft); color: var(--red); margin-bottom: 16px; }
.admin-h { margin: 16px 0 8px; font-size: 1.1rem; }
.admin-tabs { margin-bottom: 16px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.admin-token-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.ss-list { display: grid; gap: 10px; }
.ss-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.ss-main { flex: 1; min-width: 0; display: grid; }
.ss-label { font-weight: 700; color: var(--ink); }
.ss-meta { font-size: .85rem; color: var(--ink-3); }
.ss-new { display: inline-flex; padding: 2px 8px; border-radius: var(--r-pill); background: var(--act); color: #fff; font-size: .74rem; font-weight: 700; }
.ss-del { border: 0; background: none; color: var(--ink-3); width: 36px; height: 36px; border-radius: var(--r-sm); }
.ss-del:hover { background: var(--bg-soft); color: var(--red); }
.ss-hint { font-size: .9rem; }

/* messages */
.msgs { padding-top: 24px; padding-bottom: 48px; }
.msgs-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - var(--header-h) - 72px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--sheet); }
.msgs-list { border-right: 1px solid var(--line); overflow-y: auto; }
.msgs-list-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.msgs-list-head h1 { font-size: 1.3rem; margin: 0; }
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-item { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--sheet); text-align: left; }
.thread-item:hover { background: var(--bg-soft); }
.thread-item.on { background: var(--act-soft); }
.thread-item.unread strong { color: var(--ink); }
.thread-avatar { width: 40px; height: 40px; font-size: 1rem; }
.thread-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; }
.thread-top time { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.thread-ctx { font-size: .82rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-preview { font-size: .85rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--act); color: #fff; font-size: .74rem; font-weight: 700; display: grid; place-items: center; }
.msgs-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msgs-empty { margin: auto; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.thread-back { display: none; }
.thread-who { flex: 1; min-width: 0; display: grid; }
.thread-who .muted { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-menu { display: flex; gap: 4px; }
.thread-safety { padding: 8px 20px; font-size: .82rem; background: var(--amber-soft); color: var(--amber); }
.thread-msgs { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.msg { max-width: 70%; align-self: flex-start; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--sheet); box-shadow: var(--sh-1); }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 4px; }
.msg.mine { align-self: flex-end; background: var(--act); color: #fff; border-radius: 16px 16px 4px 16px; box-shadow: none; }
.msg.mine time { color: rgba(255,255,255,.75); }
.msg.pending { opacity: .7; }
.msg.failed { background: var(--red-soft); color: var(--red); }
.msg.failed time, .msg.failed .linkish { color: var(--red); }
.thread-first { text-align: center; padding: 24px; }
.thread-compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--sheet); }
.thread-compose textarea, .thread-compose input { flex: 1; min-height: 44px; resize: none; }
.thread-closed { padding: 14px 20px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: .9rem; text-align: center; }

/* ---------------------------------------------------------------- modal, toast */
.modal-scrim { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20,20,28,.55); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px 28px 28px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--sh-4); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal h2 { font-size: 1.4rem; margin-bottom: 6px; padding-right: 32px; }
.modal form { display: grid; gap: 14px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: var(--bg-soft); color: var(--ink); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.modal-close:hover { background: var(--bg-sunk); }
.modal-msg { padding: 10px 14px; border-radius: var(--r); background: var(--act-soft); font-size: .92rem; }
.modal-msg.err, .err { background: var(--red-soft); color: var(--red); }
.modal-msg.ok { background: var(--green-soft); color: var(--green); }
.modal-note { font-size: .84rem; color: var(--ink-3); margin: 0; }
.modal-scrim > .modal-close { position: fixed; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1100; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--sh-4); animation: pop .2s ease; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line-soft); background: var(--sheet); padding: 48px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-col h2 { font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--act); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); text-align: center; display: grid; justify-items: center; gap: 12px; }
.brand-footer .brand-name { font-size: 1.1rem; }
.footer-note { max-width: 70ch; color: var(--ink-3); margin: 0; font-size: .85rem; line-height: 1.6; }
.footer-legal { color: var(--ink-3); margin: 0; font-size: .85rem; }
.footer-legal a { color: var(--ink-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .srp { grid-template-columns: minmax(0, 1fr) minmax(560px, 52%); }
}
@media (max-width: 1023px) {
  .budget-grid { grid-template-columns: 1fr; } .budget-rail .rail { grid-auto-columns: calc((100% - 16px) / 2); }
  .wrap { padding: 0 20px; }
  .srp { display: block; }
  .srp-map { display: none; position: fixed; inset: 0; z-index: 900; height: auto; top: 0; }
  .srp.map-open .srp-map { display: block; }
  .srp-map-close { display: inline-flex; position: absolute; top: 16px; left: 16px; z-index: 1000; height: 44px; align-items: center; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: var(--sheet); box-shadow: var(--sh-3); font-weight: 700; }
  .srp-map-toggle { display: inline-flex; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; height: 48px; align-items: center; gap: 6px; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--sh-4); }
  .srp-list { padding: 16px 20px 96px; }
  .srp-fb-row { flex-wrap: wrap; }
  .srp-q { flex: 1 1 100%; max-width: none; }
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .detail-side { position: static; margin-top: 24px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--sheet); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mc-price { font-weight: 800; font-size: 1.25rem; }
  .page-detail #cmp-tray, .page-projdetail #cmp-tray, .page-search #cmp-tray { bottom: 84px; }
  .page-detail .toast, .page-projdetail .toast, .page-search .toast { bottom: 148px; }
  .page-detail .site-footer, .page-projdetail .site-footer { padding-bottom: 96px; }
  .trio { grid-template-columns: 1fr; }
  .trust-cols, .sell-why, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .afford-grid { grid-template-columns: 1fr; }
  .afford-result { position: static; }
  .sellnew-form { grid-template-columns: 1fr; }
  .sellnew-side { position: static; order: -1; grid-template-columns: 1fr 1fr; }
  .sellnew-side .preview-card, .sellnew-side .modal-note { grid-column: 1 / -1; }
  .sellnew-side .preview-card { display: none; }
  .msgs-body { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 48px); }
  .msgs.thread-open .msgs-list { display: none; }
  .msgs:not(.thread-open) .msgs-thread { display: none; }
  .thread-back { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .emi-calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .header-inner { padding: 0 8px 0 4px; }
  .brand-name { font-size: 1.15rem; }
  .hero { min-height: 460px; }
  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .hs-row { height: 56px; }
  .hs-row input { font-size: 1rem; padding: 0 14px; }
  .rail { grid-auto-columns: 82%; }
  .rail-btn { display: none; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .srp-list .pgrid, .projects-strip .pgrid { grid-template-columns: 1fr; }
  .srp-sel { flex: 1 1 calc(50% - 4px); }
  .srp-sel select { width: 100%; min-width: 0; }
  .srp-price { flex: 1 1 100%; min-width: 0; }
  .srp-price input { flex: 1; width: auto; min-width: 0; }
  .emi-chip { border-radius: var(--r); }
  .emi-chip .muted { flex-basis: 100%; }
  .emi-chip { flex-wrap: wrap; gap: 0 6px; }
  .srp-more-btn, .srp-apply { flex: 1; }
  .srp-bar { position: static; }
  .srp-bar-inner { padding: 12px 16px; }
  .pgrid { grid-template-columns: 1fr; }
  .detail-top { padding: 0; }
  .detail-gallery { border-radius: 0; height: 300px; min-height: 0; grid-template-columns: 1fr; }
  .detail-gallery .dg-grid { display: none; }
  .detail-price-row { gap: 12px 24px; }
  .detail-facts { gap: 20px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .edit-grid { grid-template-columns: 1fr; }
  .wiz-steps { grid-template-columns: repeat(7, 1fr); }
  .wiz-steps li button { font-size: 0; gap: 0; }
  .form-card, .acct-card { padding: 20px 16px; }
  .config-row { grid-template-columns: 1fr 1fr; }
  .config-edit { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .drow { flex-wrap: wrap; }
  .drow-media { width: 100%; }
  .drow-actions { justify-content: flex-start; }
  .budget-grid { grid-template-columns: 1fr; }
  .budget-rail .rail { grid-auto-columns: 82%; }
  .app-banner-inner { padding: 24px 20px; }
  .dealer-hero-inner { flex-direction: column; }
  .msgs { padding: 0; }
  .msgs-body { border-radius: 0; border-left: 0; border-right: 0; height: calc(100vh - var(--header-h)); }
  .cmp-corner, .cmp-rowlabel { width: 120px; }
  .modal { padding: 28px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  /* fewer, gentler: no movement, but colour and opacity changes still guide the eye */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color !important; transition-duration: .12s !important; scroll-behavior: auto !important; }
  .btn:active, .tab:active { transform: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}
@media print {
  .site-header, .site-footer, .srp-bar, .srp-map, .detail-side, .mobile-cta, #cmp-tray { display: none !important; }
}
.hide-btn { display: block; margin: 4px auto 0; font-size: .88rem; color: var(--ink-3); }
.hide-btn[aria-pressed="true"] { color: var(--act); }
.badge-budget { background: var(--green); color: #fff; }
.budget-link { display: inline-block; margin: 4px 0 8px; font-weight: 600; font-size: .9rem; }
.map-draw-btn { position: absolute; top: 16px; right: 16px; z-index: 600; height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--sheet); color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--sh-3); }
.map-draw-btn[aria-pressed="true"] { background: var(--act); color: #fff; }
.search-map.is-drawing { cursor: crosshair; touch-action: none; }
.msg-safety { margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--amber-soft); color: var(--ink); font-size: .82rem; line-height: 1.4; max-width: 360px; }

.colls-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 20px; }
.colls-form { display: flex; gap: 8px; }
.colls-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.colls-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.coll-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); color: var(--ink); text-decoration: none; background: var(--sheet); }
.coll-card:hover { border-color: var(--act); text-decoration: none; }
.coll-cover { width: 72px; height: 56px; flex: none; border-radius: var(--r-sm); background: var(--bg-sunk) center/cover no-repeat; display: grid; place-items: center; color: var(--ink-3); }
.coll-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coll-back { display: inline-block; margin-bottom: 8px; }
.coll-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.coll-head-actions { display: flex; gap: 16px; }
.coll-invite { margin: 12px 0 20px; padding: 10px 12px; background: var(--bg-soft); border-radius: var(--r-sm); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.coll-invite code { overflow-wrap: anywhere; font-size: .85rem; }
.coll-item { display: flex; flex-direction: column; gap: 8px; }
.coll-note { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.coll-note p { margin: 0; }
.coll-item-actions { display: flex; gap: 16px; }
.coll-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.coll-pick-row { display: flex; justify-content: space-between; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sheet); cursor: pointer; text-align: left; font: inherit; }
.coll-pick-row:hover { border-color: var(--act); }

.rent-costs { grid-column: 1 / -1; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.rent-costs legend { font-weight: 700; padding: 0 4px; }
.costs-table { width: 100%; border-collapse: collapse; }
.costs-table th, .costs-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.costs-table th { font-weight: 500; color: var(--ink-2); width: 40%; }
.costs-total th, .costs-total td { font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- /home-loans */
.loans-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px); gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.loans-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; max-width: 15ch; text-wrap: balance; margin-bottom: 20px; }
.loans-lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 52ch; margin-bottom: 28px; }
.loans-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }

.loan-calc { display: grid; gap: 20px; padding: 24px; border-radius: var(--r); background: var(--sheet); box-shadow: 0 18px 40px -26px rgba(27,25,22,.35); border: 1.5px solid var(--rule); }
.loan-calc-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.loan-row { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; align-items: baseline; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.loan-row output { font-weight: 800; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.loan-row input { grid-column: 1 / -1; }
.loan-calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 6px 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--act) 0 var(--fill, 50%), var(--bg-sunk) var(--fill, 50%) 100%); }
.loan-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--act);
  box-shadow: 0 1px 3px rgba(20,20,28,.25); transition: transform .12s var(--ease-out); }
.loan-calc input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.loan-calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--act); }
.loan-result { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.loan-result-label { font-size: .88rem; color: var(--ink-3); font-weight: 600; }
.loan-emi { font-family: var(--num); font-size: 2.4rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.loan-note { margin: 0; font-size: .8rem; color: var(--ink-3); }
.loan-split { height: 10px; border-radius: 0; background: repeating-linear-gradient(135deg, var(--ink-4) 0 2px, var(--sunk) 2px 6px); overflow: hidden; margin-top: 6px; border: 1px solid var(--rule); }
.loan-split-p { display: block; height: 100%; width: 100%; background: var(--act); transform-origin: left; transition: transform .25s var(--ease-out); }
.loan-split-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.loan-split-key dt { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); }
.loan-split-key dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.dot-p { background: var(--act); } .dot-i { background: var(--ink-4); }

.loans-band { background: var(--ink); color: var(--paper); padding: 56px 0 64px; border-top: 2px solid var(--rule); }
.loans-band h2 { color: var(--paper); font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.025em; margin-bottom: 28px; }
.loan-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(243,238,227,.35); }
.loan-step { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 0 0; margin-right: 24px; border-right: 1px solid rgba(243,238,227,.2); }
.loan-step:last-child { border-right: 0; margin-right: 0; }
.loan-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--paper); border-radius: 2px; font-family: var(--num); font-size: .95rem; font-weight: 600; color: var(--paper); margin-bottom: 14px; }
.loan-step h3 { color: var(--paper); font-size: 1.1rem; margin: 0 0 6px; }
.loan-step p { color: #CFC6B5; margin: 0 0 10px; line-height: 1.55; font-size: .95rem; }
.loan-step-link { margin-top: auto; color: var(--paper); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(243,238,227,.45); transition: text-decoration-color .15s ease; }
.loan-step-link:hover { color: var(--paper); text-decoration-color: var(--paper); }
.loans-band :focus-visible { outline-color: var(--paper); }

.loans-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding-top: 72px; }
.loans-split p { color: var(--ink-2); line-height: 1.65; max-width: 56ch; }
.ltv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ltv-table th, .ltv-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line-soft); }
.ltv-table thead th { font-size: .8rem; font-weight: 700; color: var(--ink-3); border-bottom-color: var(--line); padding-top: 0; }
.ltv-table tbody th { font-weight: 600; }
.ltv-table td { font-weight: 800; font-size: 1.15rem; }
.ltv-table td + td { color: var(--ink-2); font-weight: 700; }

.loan-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 8px 0 0; }
.loan-types > div { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.loan-types dt { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.loan-types dd { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.loan-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.loan-docs h3 { font-size: 1rem; margin-bottom: 10px; }
.loan-docs ul { margin: 0; padding: 0; list-style: none; }
.loan-docs li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line-soft); position: relative; line-height: 1.5; }
.loan-docs li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.loans-faq .faq { max-width: 820px; }
.loans-close { background: var(--bg-soft); padding: 64px 0; margin-top: 32px; }
.loans-close-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.loans-close h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.02em; max-width: 26ch; }

@media (max-width: 1023px) {
  .loans-hero, .loans-split { grid-template-columns: 1fr; gap: 40px; }
  .loan-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .loans-hero { padding-top: 16px; padding-bottom: 48px; }
  .loan-calc { padding: 22px 18px; }
  .loan-steps, .loan-types, .loan-docs { grid-template-columns: 1fr; gap: 0 0; }
  .loan-docs { gap: 32px; }
  .loan-step { padding-bottom: 20px; }
  .loans-actions .btn { flex: 1 1 100%; }
  .ltv-table th, .ltv-table td { padding: 14px 6px; }
  .ltv-table td { font-size: 1.05rem; }
}

/* ================================================================ listing page: the disclosure */
.disc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id money" "facts facts"; gap: 18px 40px; padding-top: 20px; padding-bottom: 18px; }
.disc-id { grid-area: id; min-width: 0; }
.disc-id .detail-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 6px; text-wrap: balance; }
.disc-id .detail-loc { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.disc-money { grid-area: money; display: flex; gap: 28px; align-items: flex-end; margin: 0; text-align: right; }
.disc-money > div { display: flex; flex-direction: column; align-items: flex-end; }
.disc-money dt { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.disc-money dd { margin: 0; }
.disc-money .detail-price { font-family: var(--num); font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; }
.disc-list { font-family: var(--num); font-size: 1.15rem; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.disc-budget { align-self: center; }
.disc-facts { grid-area: facts; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.disc-facts > div { padding: 10px 16px 10px 0; border-right: 1px solid var(--line); }
.disc-facts > div + div { padding-left: 16px; }
.disc-facts > div:last-child { border-right: 0; }
.disc-facts dt { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.disc-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }

.page-detail .detail-gallery { border-radius: 0; border: 1px solid var(--rule); gap: 2px; background: var(--rule); }
.page-detail .dg-allbtn { border-radius: var(--r-sm); border: 1px solid var(--rule); }

.disc-sec { padding: 28px 0 32px; border-top: 2px solid var(--rule); }
.disc-sec:first-child { padding-top: 0; border-top: 0; }
.disc-sec > h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.025em; margin: 0 0 18px; }
.disc-n { display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1.5px solid var(--rule); border-radius: 2px; font-family: var(--num); font-size: .95rem; font-weight: 600; transform: translateY(-2px); }
.disc-sub { font-size: 1.02rem; font-weight: 800; margin: 26px 0 10px; }

.disc-checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.disc-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.disc-checks li::before { content: ''; grid-row: span 2; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--ink-4); border-radius: 2px; }
.disc-checks li.is-yes::before { border-color: var(--sage); background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.disc-checks li.is-no::before { border-style: dashed; }
.disc-checks b { font-weight: 700; }
.disc-checks li.is-yes b { color: var(--sage); }
.disc-checks span { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.disc-trust { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; padding: 16px 0 0; }
.disc-trust-score { display: flex; flex-direction: column; }
.disc-trust .trust-score-big { font-family: var(--num); font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.disc-trust .trust-score-big small { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.trust-factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; font-size: .9rem; }
.trust-factors li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.trust-factors li.met { color: var(--ink); }
.trust-factors svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tf-dash { width: 15px; height: 2px; margin-top: 10px; background: var(--ink-4); flex-shrink: 0; }
.disc-fair { margin: 16px 0 0; }

.cost-statement { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 1rem; border-top: 2px solid var(--rule); }
.cost-statement th { text-align: left; font-weight: 600; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cost-statement .cs-src { padding: 11px 12px; border-bottom: 1px dashed var(--line); font-size: .76rem; }
.cost-statement .est, .cost-statement .src { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-3); white-space: nowrap; }
.cost-statement .src { border-color: var(--sage); color: var(--sage); }
.cost-statement .cs-amt { text-align: right; font-family: var(--num); font-weight: 500; padding: 11px 0; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.cost-statement tfoot th, .cost-statement tfoot .cs-amt { border-bottom: 0; border-top: 2px solid var(--rule); padding-top: 12px; font-size: 1.3rem; font-weight: 800; }
.cost-statement tfoot .cs-amt { font-weight: 600; }
.cost-note { max-width: 640px; margin: 10px 0 0; font-size: .82rem; color: var(--ink-3); }

.page-detail .emi-section { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); background: var(--sheet); }
.page-detail .emi-section .disc-sub { margin-top: 0; }
.costs-table, .price-history, .nearby-list { width: 100%; max-width: 640px; border-collapse: collapse; font-size: .95rem; }
.costs-table th, .costs-table td, .price-history td, .nearby-list th, .nearby-list td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.costs-table td, .price-history td:last-child { text-align: right; font-family: var(--num); }
.costs-table th { font-weight: 600; }
.costs-total th, .costs-total td { font-weight: 800; border-top: 2px solid var(--rule); }
.nearby-list th { font-weight: 600; }
.nearby-list .nearby-kind { color: var(--ink-3); text-transform: capitalize; font-size: .88rem; }
.nearby-list .nearby-km { text-align: right; font-family: var(--num); }

.page-detail .spec-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); border-bottom: 0; }
.page-detail .spec { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.page-detail .spec dd { margin: 0; }
.detail-desc { max-width: 68ch; font-size: 1.04rem; line-height: 1.65; color: var(--ink); }
.amenity-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.amenity { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--sheet); font-size: .9rem; }
.hl-list { margin: 18px 0 0; padding-left: 1.1rem; color: var(--ink-2); }

.page-detail .contact-card { background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r); box-shadow: 0 18px 40px -26px rgba(27,25,22,.35); padding: 18px; display: grid; gap: 10px; }
.cc-head { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 10px; border-bottom: 2px solid var(--rule); }
.cc-lister { display: flex; gap: 12px; align-items: center; padding: 4px 0 8px; }
.page-detail .cc-avatar { width: 44px; height: 44px; border-radius: 2px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.cc-name { font-weight: 700; }
.cc-kind { font-size: .86rem; color: var(--ink-3); }
.cc-checked { display: inline-flex; align-items: center; gap: 4px; color: var(--sage); font-weight: 700; }
.cc-checked svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cc-resp { font-size: .82rem; color: var(--ink-3); }
.cc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cc-row .btn { min-height: 38px; padding: 0 8px; font-size: .88rem; }
.page-detail .cc-privacy { margin: 0; font-size: .82rem; color: var(--sage); font-weight: 600; }
.cc-interest { display: flex; gap: 12px; font-size: .8rem; color: var(--ink-3); }
.mc-price small { font-size: .75rem; color: var(--ink-3); margin-left: 4px; font-weight: 500; }

/* ruled tabs and buttons in the paper world */
.btn { border-radius: var(--r); }
.btn-outline { background: var(--sheet); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--sheet); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--rule); }
.steps .step { counter-increment: step; padding: 18px 20px 0 0; border-right: 1px solid var(--line); margin-right: 20px; }
.steps .step:last-child { border-right: 0; }
.steps .step::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--rule); border-radius: 2px; font-family: var(--num); font-weight: 600; margin-bottom: 10px; }
.terms-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.never-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-width: 720px; border-top: 1px solid var(--line); }
.never-list li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.never-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--red); transform: rotate(-45deg); }
.never-list li::after { content: ''; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; background: var(--red); transform: rotate(45deg); }
.sell-hero h1, .about-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.035em; max-width: 22ch; line-height: 1.05; text-wrap: balance; }
.sell-hero, .about-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); background: var(--paper); }

/* browser surfaces carry the palette */
::selection { background: var(--act-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; border-radius: 2px; }
input, textarea { caret-color: var(--act); }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
html { scrollbar-color: var(--ink-4) var(--paper); }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .sheet { max-width: 560px; }
  .ledger-row { grid-template-columns: 96px minmax(0, 1fr) auto 40px; gap: 14px; }
  .ledger-price { display: none; }
  .ledger-media { width: 96px; height: 72px; }
  .terms-grid, .terms-grid-4 { grid-template-columns: 1fr; gap: 0; }
  .terms-grid > div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .terms-grid > div:first-child { border-top: 0; padding-top: 0; }
  .disc-head { grid-template-columns: 1fr; grid-template-areas: "id" "money" "facts"; }
  .disc-money { justify-content: flex-start; text-align: left; }
  .disc-money > div { align-items: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-inner { padding-top: 32px; padding-bottom: 40px; }
  .hs-sentence { line-height: 2.2; }
  .hs-row { width: 100%; margin: 0; }
  .city-table td:nth-child(2) { display: none; }
  .disc-facts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .disc-facts > div:nth-child(3n) { border-right: 0; }
  .disc-facts > div:nth-child(3n+1) { padding-left: 0; }
  .disc-facts > div { border-bottom: 1px solid var(--line); }
  .disc-trust { grid-template-columns: 1fr; gap: 12px; }
  .cost-statement .cs-src { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .ledger-row { grid-template-columns: 80px minmax(0, 1fr) 40px; }
  .ledger-month { grid-column: 2; align-items: flex-start; text-align: left; }
  .ledger-save { grid-row: 1; grid-column: 3; }
  .ledger-media { width: 80px; height: 64px; grid-row: span 2; }
}

/* ================================================================ search: list first, map on request */
.srp-bar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: none; }
.srp-bar-inner { max-width: var(--wrap); padding: 12px 32px; }
.srp-q input, .srp-sel select, .srp-price, .srp-more-btn { border-color: var(--rule); border-radius: var(--r); background-color: var(--sheet); }
.srp { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.srp-list { padding: 22px 0 48px; }
.srp-list-head { align-items: flex-end; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--rule); }
.srp-title { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; font-weight: 800; }
.srp-chip { border-radius: 2px; background: var(--sheet); border: 1px solid var(--act); }
.srp-list .pgrid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 28px 20px; }
.srp-map-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.srp-map { display: none; position: relative; height: min(56vh, 520px); margin: 0 0 24px; border: 1.5px solid var(--rule); background: var(--sunk); top: auto; }
.srp.map-open .srp-map { display: block; }
.srp-map-close { display: inline-flex; position: absolute; top: 12px; right: 12px; z-index: 1000; height: 38px; align-items: center; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--sheet); font-weight: 700; }
.map-area-btn { border-radius: var(--r); border: 1.5px solid var(--rule); box-shadow: var(--sh-3); }
.price-pin span { border-radius: 2px; font-family: var(--num); font-weight: 600; }
.cluster-pin span { border-radius: 2px; font-family: var(--num); }
@media (max-width: 1080px) {
  .srp { padding: 0 20px; }
  .srp-bar-inner { padding: 10px 20px; }
}
@media (max-width: 720px) {
  .srp { padding: 0 16px; }
  .srp.map-open .srp-map { position: fixed; inset: 0; z-index: 900; height: auto; margin: 0; border: 0; }
  .srp-list { padding-bottom: 96px; }
  .srp-head-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
  .srp-head-actions { flex-wrap: wrap; gap: 8px; }
  .sortsel { margin-left: auto; }
  .disc-facts dd { font-size: .98rem; }
}

/* ---------------------------------------------------------------- home: the film band
   A landscape film opens the home page. Owner footage plays from /web/media/hero.mp4; until it
   exists, a drawn Sonoran landscape drifts on paper. Only transform and opacity animate. */
.hero-film-wrap { border-bottom: 1px solid var(--rule); }
.film { position: relative; height: clamp(300px, 44vh, 520px); overflow: hidden; isolation: isolate; background: #EFE3D2; contain: paint; }
.film-scene, .film-sky, .film-grain, .film-scrim, .film-video { position: absolute; inset: 0; }
.film-sky { background: linear-gradient(180deg, #F4EEE2 0%, #F3E6D4 46%, #EDCDB1 78%, #E6BD9C 100%); }
.film-sun { position: absolute; right: 17%; bottom: 41%; width: clamp(120px, 14vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #E59A6E 0 54%, rgba(229,154,110,.32) 55%, rgba(229,154,110,0) 70%);
  animation: sun-rise 2.6s var(--ease-out) both; will-change: transform; }
@keyframes sun-rise { from { transform: translate3d(0, 70px, 0) scale(.96); opacity: 0; } }
.film-layer { position: absolute; inset: 0; }
.film-layer svg { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 3200 / 600;
  animation: film-drift var(--drift, 120s) linear infinite; will-change: transform; backface-visibility: hidden; }
@keyframes film-drift { to { transform: translate3d(-50%, 0, 0); } }
.l-far svg { --drift: 220s; fill: #DCC4AA; }
.l-mid svg { --drift: 140s; fill: #C49A7B; }
.l-near svg { --drift: 80s; fill: #3B2F27; }
.film-layer { animation: layer-in 1.6s var(--ease-out) both; }
.l-far { animation-delay: .05s; } .l-mid { animation-delay: .15s; } .l-near { animation-delay: .25s; }
@keyframes layer-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
.film-grain { opacity: .22; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.film-paused .film-layer svg, .film-paused .film-sun { animation-play-state: paused; }

.film-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease-out), transform 2.4s var(--ease-out); }
.film-video.is-playing { opacity: 1; transform: none; }
.film-scrim { pointer-events: none; background: linear-gradient(180deg, rgba(243,238,227,0) 90%, var(--paper) 100%); }
.film--video .film-scrim { background:
  linear-gradient(180deg, rgba(18,14,10,.58) 0%, rgba(18,14,10,.22) 42%, rgba(18,14,10,0) 66%),
  linear-gradient(180deg, rgba(243,238,227,0) 82%, var(--paper) 100%); }

.film-caption { position: relative; z-index: 2; padding-top: clamp(40px, 7vh, 80px); }
.film-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--num); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px;
  animation: fade-up .8s var(--ease-out) .1s both; }
.film-tag::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.film .hero-title { max-width: 16ch; margin: 0; color: var(--ink); }
.film--video .hero-title, .film--video .film-tag { color: #FBF8F2; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.ht-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
/* The headline is the page's largest text and its LCP: it paints at once. The drifting film is the
   page's one authored motion. */
.ht-line > span { display: inline-block; }
@keyframes line-rise { from { transform: translate3d(0, 108%, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

.film-pause { position: absolute; z-index: 3; right: max(16px, calc((100vw - var(--wrap)) / 2 + 32px)); top: 24px; display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: rgba(251,248,242,.86); color: var(--ink);
  font-family: var(--num); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .16s var(--ease-out), background-color .15s ease; }
.film-pause:active { transform: scale(.97); }
.film-pause svg { width: 12px; height: 12px; fill: currentColor; }
.film-pause .fp-play { display: none; }
.film-pause[aria-pressed="true"] .fp-play { display: block; }
.film-pause[aria-pressed="true"] .fp-a, .film-pause[aria-pressed="true"] .fp-b { display: none; }

/* the statement sheet is laid over the bottom of the film on wide screens */
.hero-film-wrap .hero-inner { padding-top: 36px; position: relative; z-index: 2; }
.hero-film-wrap .sheet { animation: sheet-in .9s var(--ease-out) .35s both; }
@keyframes sheet-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@media (min-width: 1081px) {
  .hero-film-wrap .sheet { margin-top: -260px; box-shadow: 0 1px 0 var(--rule), 0 30px 60px -28px rgba(27,25,22,.5); }
  .hero-film-wrap .hero-copy { padding-top: 8px; }
}
@media (max-width: 720px) {
  .film { height: clamp(240px, 36vh, 340px); }
  .film-sun { right: 8%; bottom: 40%; }
  .film-pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .film-pause { right: 16px; top: 16px; width: 32px; padding: 0; justify-content: center; }
  .hero-film-wrap .hero-inner { padding-top: 24px; }
}

/* ---------------------------------------------------------------- motion system
   Page-to-page: cross-document View Transitions. The header never moves; the page under it
   fades and lifts 6px; a listing photo morphs from its card into the listing gallery. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(root) { animation-duration: .26s; }
::view-transition-old(root) { animation: vt-out .16s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .28s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
::view-transition-group(listing-photo) { animation-duration: .36s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(listing-photo), ::view-transition-new(listing-photo) { height: 100%; object-fit: cover; overflow: clip; }
.dg-main img { view-transition-name: listing-photo; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .01ms !important; }
}

/* Scroll reveal: sections below the fold rise in once; their cards follow in a short cascade. */
.rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv .pgrid > *, .rv .ledger > *, .rv .rail > *, .rv .terms-grid > *, .rv .city-table tbody tr {
  opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.rv.in .pgrid > *, .rv.in .ledger > *, .rv.in .rail > *, .rv.in .terms-grid > *, .rv.in .city-table tbody tr { opacity: 1; transform: none; }
.rv.in :is(.pgrid, .ledger, .rail, .terms-grid, tbody) > :nth-child(2) { transition-delay: .05s; }
.rv.in :is(.pgrid, .ledger, .rail, .terms-grid, tbody) > :nth-child(3) { transition-delay: .09s; }
.rv.in :is(.pgrid, .ledger, .rail, .terms-grid, tbody) > :nth-child(4) { transition-delay: .12s; }
.rv.in :is(.pgrid, .ledger, .rail, .terms-grid, tbody) > :nth-child(5) { transition-delay: .14s; }
.rv.in :is(.pgrid, .ledger, .rail, .terms-grid, tbody) > :nth-child(n+6) { transition-delay: .16s; }

/* Press feedback on everything pressable; hover lifts only where a real pointer can hover. */
.pcard-media, .ledger-media, .city-card, .loc-card, .dealer-card, .chip, .hs-go, .nav-link { transition: transform .16s var(--ease-out), border-color .15s ease, color .15s ease, background-color .15s ease; }
.city-card:active, .loc-card:active, .dealer-card:active, .chip:active, .hs-go:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .ledger-row .ledger-media img { transition: transform .5s var(--ease-out); }
  .ledger-row:hover .ledger-media img { transform: scale(1.04); }
  .loc-card:hover, .dealer-card:hover, .city-card:hover { transform: translate3d(0, -2px, 0); }
}
@media (hover: none) { .pcard:hover .pcard-media img { transform: none; } }

/* ---------------------------------------------------------------- the filter strip
   One ruled row. Each button opens a small popover anchored to it: scale .97→1 and fade from the
   button's corner, 160ms in, 110ms out; when one is already open the next swaps instantly. */
.fstrip { margin: 0; }
.fs-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.fs-q { flex: 1 1 260px; max-width: 360px; }
.fs-q > svg { display: none; }
.fs-item { position: relative; flex: none; }
.fs-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--sheet); color: var(--ink);
  font-weight: 600; font-size: .9rem; white-space: nowrap; transition: transform .16s var(--ease-out), border-color .15s ease, background-color .15s ease, color .15s ease; }
.fs-btn:hover { border-color: var(--ink); }
.fs-btn:active { transform: scale(.97); }
.fs-btn.is-set { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fs-btn[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--act); }
.fs-btn.is-set[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--act); }
.fs-caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.fs-btn[aria-expanded="true"] .fs-caret { transform: rotate(180deg); }
.fs-save { margin-left: auto; border-style: dashed; }
.fs-save.on { border-style: solid; color: var(--sage); border-color: var(--sage); }

.fs-seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; height: 40px; flex: none; background: var(--sheet); }
.fs-seg-opt { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font-weight: 700; font-size: .9rem; color: var(--ink-3); cursor: pointer; transition: background-color .15s ease, color .15s ease; user-select: none; }
.fs-seg-opt + .fs-seg-opt { border-left: 1px solid var(--line); }
.fs-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fs-seg-opt:hover { color: var(--ink); }
.fs-seg-opt.on, .fs-seg-opt:has(input:checked) { background: var(--ink); color: var(--paper); }
.fs-seg-opt:focus-within { outline: 2px solid var(--act); outline-offset: -2px; }
.fs-seg-wide { display: flex; width: 100%; }
.fs-seg-wide .fs-seg-opt { flex: 1; padding: 0 6px; }

.fs-pop { position: absolute; z-index: 120; top: calc(100% + 8px); left: 0; width: 340px; padding: 16px 16px 12px; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r);
  box-shadow: var(--sh-3); transform-origin: top left; opacity: 0; transform: scale(.97) translate3d(0, -4px, 0);
  transition: opacity .11s ease, transform .11s ease; }
.fs-pop.open { opacity: 1; transform: none; transition: opacity .16s var(--ease-out), transform .16s var(--ease-out); }
.fs-pop.instant, .fs-pop.instant.open { transition: none; }
.fs-pop.fs-pop-right { left: auto; right: 0; transform-origin: top right; }
.fs-pop-wide { width: 520px; }
.fs-pop-title { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fs-sub { margin: 14px 0 8px; font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.fs-sub:first-of-type { margin-top: 0; }
.fs-help { margin: 0 0 12px; font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.fs-pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.fs-range { display: flex; align-items: flex-end; gap: 10px; }
.fs-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.fs-money { display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 10px; border: 1px solid var(--ink-4); border-radius: var(--r); background: var(--paper); font-family: var(--num); color: var(--ink-2); }
.fs-money:focus-within { border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.2); }
.fs-money input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-family: var(--num); font-size: .95rem; color: var(--ink); padding: 0; -moz-appearance: textfield; }
.fs-money input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--act); }
.fs-money input::-webkit-outer-spin-button, .fs-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fs-dash { padding-bottom: 10px; color: var(--ink-4); }
.fs-range-sm input { height: 40px; width: 100%; border: 1px solid var(--ink-4); border-radius: var(--r); padding: 0 10px; background: var(--paper); font-family: var(--num); }
.fs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fs-chip { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border: 1px dashed var(--ink-4); border-radius: var(--r-sm); font-family: var(--num); font-size: .86rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.fs-chip:active { transform: scale(.97); }
.fs-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fs-chip.on, .fs-chip:has(input:checked) { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fs-inline { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink-3); }
.fs-inline .fs-money { flex: 1; }
.fs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fs-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 74px; border: 1.5px dashed var(--ink-4); border-radius: var(--r-sm); cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--ink-2);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.fs-tile:active { transform: scale(.97); }
.fs-tile input { position: absolute; opacity: 0; pointer-events: none; }
.fs-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fs-tile:hover { border-color: var(--ink); color: var(--ink); }
.fs-tile.on, .fs-tile:has(input:checked) { border-style: solid; border-color: var(--ink); background: var(--act-soft); color: var(--act); }
.fs-tile:focus-within { outline: 2px solid var(--act); outline-offset: 2px; }
.fs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-cols .srp-sel select { width: 100%; min-width: 0; }
.fs-cols .srp-sel > span { position: static; display: block; margin-bottom: 4px; }
.fs-cols .srp-sel select { padding-top: 0; height: 40px; }
.fs-checks { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fs-amen { max-height: 132px; overflow-y: auto; padding: 2px; }

/* the two views */
.vswitch { display: inline-flex; height: 36px; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.vs-opt { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: .86rem; font-weight: 700; color: var(--ink-3); transition: background-color .15s ease, color .15s ease; }
.vs-opt + .vs-opt { border-left: 1px solid var(--line); }
.vs-opt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.vs-opt:hover { color: var(--ink); text-decoration: none; }
.vs-opt.on { background: var(--ink); color: var(--paper); }
.page-search .srp { display: block; max-width: var(--wrap); }
.page-search .srp-list .pgrid { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); }

/* ---------------------------------------------------------------- the Map desk
   The ledger on the left reads like a statement; the map is attached on the right. */
.page-desk .site-footer, .page-desk .app-banner, .page-desk .interlink { display: none; }
.desk { position: relative; display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); height: calc(100dvh - var(--desk-top, 170px)); min-height: 480px; border-top: 1px solid var(--rule); }
.desk-list { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-right: 1.5px solid var(--rule); scrollbar-gutter: stable; }
.desk-grip { display: none; }
.desk-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; background: var(--paper); border-bottom: 2px solid var(--rule); }
.desk-title { font-size: 1.2rem; margin: 0 0 2px; letter-spacing: -.015em; }
.desk-count { margin: 0; font-family: var(--num); font-size: .82rem; color: var(--ink-3); }
.desk-actions { display: flex; align-items: center; gap: 10px; }
.desk-rows { list-style: none; margin: 0; padding: 0 20px; transition: opacity .18s var(--ease-out), filter .18s var(--ease-out); }
.desk-rows.is-swapping { opacity: .25; filter: blur(2px); transition-duration: .1s; }
.desk-row { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr) auto 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: background-color .15s ease; }
.desk-row::before { content: ''; position: absolute; left: -20px; top: 0; bottom: 0; width: 3px; background: var(--act); transform: scaleY(0); transform-origin: top; transition: transform .2s var(--ease-out); }
.desk-row.is-hot::before { transform: none; }
.desk-row.is-hot { background: var(--sheet); }
.desk-row.is-added { animation: row-in .42s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 35ms); }
@keyframes row-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.desk-media { position: relative; display: block; width: 124px; aspect-ratio: 3 / 2; border: 1px solid var(--line); overflow: hidden; background: var(--sunk); }
.desk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.desk-flag { position: absolute; left: 0; top: 0; padding: 1px 6px; background: var(--ink); color: var(--paper); font-family: var(--num); font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.desk-flag-cut { background: var(--act); }
.desk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk-title-link, .desk-title { color: var(--ink); }
a.desk-title { font-weight: 700; font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.desk-title::after { content: ''; position: absolute; inset: 0; }
a.desk-title:hover { color: var(--act); text-decoration: none; }
.desk-facts { font-size: .86rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-list-price { font-family: var(--num); font-size: .8rem; color: var(--ink-3); }
.desk-check { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--ink-3); }
.desk-check.is-yes { color: var(--sage); font-weight: 700; }
.desk-check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.desk-money { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.desk-k { font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.desk-v { font-family: var(--num); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.desk-save { position: relative; top: auto; right: auto; z-index: 2; width: 34px; height: 34px; }
.desk-foot { padding: 16px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.desk-empty { margin: 8px 0 0; color: var(--ink-3); text-align: center; max-width: 34ch; }
@media (hover: hover) and (pointer: fine) { .desk-row:hover { background: var(--sheet); } .desk-row:hover .desk-media img { transform: scale(1.04); } }

.desk-map { position: relative; min-width: 0; background: #E8E2D6; }
.desk-canvas { position: absolute; inset: 0; }
.desk-canvas .leaflet-tile-pane { filter: sepia(.28) saturate(.75) brightness(1.02) contrast(.96); }
.desk-canvas.is-drawing { cursor: crosshair; touch-action: none; }
.desk-tag { position: absolute; z-index: 500; left: 16px; top: 14px; margin: 0; padding: 6px 10px; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r-sm);
  font-family: var(--num); font-size: .78rem; font-weight: 600; color: var(--ink); pointer-events: none; }
.desk-tools { position: absolute; z-index: 500; right: 16px; top: 14px; display: flex; gap: 8px; }
.desk-tool { height: 34px; padding: 0 12px; border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--sheet); font-weight: 700; font-size: .84rem; color: var(--ink);
  transition: transform .16s var(--ease-out), background-color .15s ease, color .15s ease; }
.desk-tool:active { transform: scale(.97); }
.desk-tool.is-on { background: var(--ink); color: var(--paper); }
.desk-busy { position: absolute; z-index: 501; left: 0; right: 0; top: 0; height: 3px; margin: 0; overflow: hidden; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.desk-busy.on { opacity: 1; }
.desk-busy span { position: absolute; top: 0; bottom: 0; width: 34%; background: var(--act); animation: busy 0.9s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes busy { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(300%, 0, 0); } }
.desk-map .leaflet-control-zoom { border: 1.5px solid var(--rule) !important; border-radius: var(--r-sm) !important; box-shadow: none !important; margin: 0 16px 22px 0 !important; }
.desk-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 32px; color: var(--ink); background: var(--sheet); border-color: var(--line) !important; font-family: var(--num); }
.desk-map .leaflet-control-zoom a:hover { background: var(--paper); }
.desk-map .leaflet-control-attribution { background: rgba(251,248,242,.8); font-size: 10px; }

/* pins: square copper price tags in Plex Mono, showing the all-in monthly cost */
.dpin-wrap { background: none; border: 0; }
.dpin-wrap > span { transition: transform .18s var(--ease-out), opacity .14s ease, background-color .15s ease, color .15s ease; }
.dpin-wrap.is-entering > span { opacity: 0; transform: translate(-50%, -100%) scale(.85); }
.dpin-wrap.is-leaving > span { opacity: 0; transform: translate(-50%, -100%) scale(.9); }
.dpin { position: relative; display: inline-block; transform: translate(-50%, -100%); padding: 3px 7px 3px; background: var(--act); color: #FBF8F2; border: 1px solid #742F13;
  font: 600 12px/1.25 var(--num); white-space: nowrap; border-radius: 1px; box-shadow: 0 1px 0 rgba(27,25,22,.35); cursor: pointer; }
.dpin small { font-size: 11px; margin-left: 1px; }
.dpin::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #742F13; }
.dpin.is-checked::before { content: ''; position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; background: var(--sage); border: 1.5px solid #FBF8F2; border-radius: 1px; }
.dpin.is-new { box-shadow: 0 0 0 2px #FBF8F2, 0 1px 0 rgba(27,25,22,.35); }
.dpin-wrap.is-hot > span, .dpin-wrap:hover > span { background: var(--ink); border-color: var(--ink); transform: translate(-50%, -100%) scale(1.12); }
.dpin-wrap.is-hot .dpin::after, .dpin-wrap:hover .dpin::after { border-top-color: var(--ink); }
.dclus { display: inline-block; transform: translate(-50%, -50%); padding: 5px 9px; background: var(--ink); color: var(--paper); font: 600 12px/1.2 var(--num); white-space: nowrap; border: 1.5px solid #FBF8F2; box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
.dclus b { font-size: 13px; }
.dpin-wrap:hover .dclus { transform: translate(-50%, -50%) scale(1.06); }
.dpin-wrap.is-hot .dclus { background: var(--act); }
.desk-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--r); border: 1.5px solid var(--rule); box-shadow: var(--sh-3); overflow: hidden; }
.desk-popup .leaflet-popup-content { margin: 0; width: 250px !important; }
.desk-popup .leaflet-popup-tip { background: var(--sheet); border: 1.5px solid var(--rule); }
.desk-popup { animation: pop-in .16s var(--ease-out); transform-origin: bottom center; }
@keyframes pop-in { from { opacity: 0; } }
.dpop { display: block; color: var(--ink); }
.dpop:hover { text-decoration: none; color: var(--ink); }
.dpop-photo { display: block; aspect-ratio: 16 / 9; background: var(--sunk); border-bottom: 1px solid var(--line); overflow: hidden; }
.dpop-photo img { width: 100%; height: 100%; object-fit: cover; }
.dpop-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; background: var(--sheet); }
.dpop-loc { font-weight: 700; font-size: .95rem; }
.dpop-specs { font-size: .8rem; color: var(--ink-3); }
.dpop-money { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 2px; padding-top: 6px; border-top: 2px solid var(--rule); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.dpop-money b { font-family: var(--num); font-size: 1.15rem; color: var(--ink); letter-spacing: 0; }
.dpop-check { font-size: .78rem; font-weight: 700; color: var(--sage); }

@media (max-width: 1180px) and (min-width: 861px) {
  .desk { grid-template-columns: minmax(380px, 48%) minmax(0, 1fr); }
  .desk-row { grid-template-columns: 96px minmax(0, 1fr) auto 34px; gap: 12px; }
  .desk-media { width: 96px; }
  .fs-q { max-width: 240px; }
  .fs-save { display: none; }
}
@media (max-width: 1080px) {
  .fs-row { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fs-row::-webkit-scrollbar { display: none; }
  .fs-item { position: static; }
  .fs-pop, .fs-pop.fs-pop-right { position: fixed; left: 12px; right: 12px; top: auto; width: auto; max-width: 520px; margin-top: 8px; transform-origin: top center; }
  .srp-bar-inner { position: relative; }
}
/* phones and small tablets: a full-screen map with the results on a sheet */
@media (max-width: 860px) {
  .desk { display: block; height: calc(100dvh - var(--desk-top, 150px)); overflow: hidden; border-top: 0; }
  .desk-map { position: absolute; inset: 0; }
  .desk-list { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-right: 0; border-top: 1.5px solid var(--rule); border-radius: 10px 10px 0 0;
    box-shadow: 0 -10px 30px -12px rgba(27,25,22,.35); will-change: transform; z-index: 600; }
  .desk-grip { display: flex; justify-content: center; position: sticky; top: 0; z-index: 4; padding: 8px 0 2px; background: var(--paper); cursor: grab; touch-action: none; }
  .desk-grip span { width: 40px; height: 4px; border-radius: 2px; background: var(--ink-4); }
  .desk-head { top: 14px; padding: 4px 16px 10px; touch-action: none; }
  .desk-title { font-size: 1.05rem; }
  .desk-rows { padding: 0 16px; }
  .desk-row { grid-template-columns: 96px minmax(0, 1fr) 34px; grid-template-rows: auto auto; row-gap: 6px; }
  .desk-media { width: 96px; grid-row: span 2; }
  .desk-money { grid-column: 2; grid-row: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 6px; align-items: baseline; }
  .desk-save { grid-column: 3; grid-row: 1; }
  .desk-list[data-detent="peek"] .desk-rows { opacity: .0; pointer-events: none; }
  .desk-list[data-detent="peek"] { overflow: hidden; }
  .desk-tag { top: 12px; left: 12px; }
  .desk-tools { top: 12px; right: 12px; }
  .desk-map .leaflet-control-zoom { display: none; }
  .fs-q { flex: 0 0 200px; }
  .fs-save { display: none; }
}
@media (max-width: 720px) {
  .desk { height: calc(100dvh - var(--desk-top, 150px) - 58px - env(safe-area-inset-bottom)); }
}
.desk { isolation: isolate; }
.vs-opt { white-space: nowrap; }
@media (max-width: 860px) {
  .desk-map .leaflet-bottom.leaflet-right { bottom: 124px; }
  .desk-head { gap: 8px; }
  .vswitch { height: 32px; }
  .vs-opt { padding: 0 10px; font-size: .8rem; }
}
@media (max-width: 860px) {
  .desk-list { z-index: 1000; }
  .desk-actions { width: 100%; justify-content: space-between; }
  .desk-actions .sortsel { font-size: 0; gap: 0; }
  .desk-actions .sortsel select { font-size: .9rem; }
}

/* listing walkthrough video (owner footage, or a clearly labelled sample) */
.walk { margin: 0 0 20px; border: 1.5px solid var(--rule); background: #000; }
.walk-video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.walk figcaption { padding: 10px 14px; background: var(--sheet); border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-2); }
.walk-sample figcaption { background: var(--amber-soft); color: var(--amber); }
.admin-video { display: block; width: 240px; max-width: 100%; aspect-ratio: 16 / 9; background: #000; margin-bottom: 8px; border: 1px solid var(--rule); }

.edit-vid-status { margin: 2px 0 8px; font-size: .86rem; }
.edit-vid-status.is-bad { color: var(--red); }
.edit-vid-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-vid-bar { height: 3px; margin-top: 8px; background: var(--line); overflow: hidden; }
.edit-vid-bar span { display: block; height: 100%; background: var(--act); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.detail-main, .detail-layout > * { min-width: 0; }
.walk, .walk-video { max-width: 100%; }
.has-photo { padding: 0; overflow: hidden; background: var(--sunk); border: 1px solid var(--rule); }
.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.loc-plate { margin-top: 0; margin-bottom: 24px; }
.loc-plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border: 1.5px solid var(--rule); display: block; }
.loc-plate figcaption { margin-top: 6px; font-family: var(--num); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }

/* ---- Sample data (stream R): amber is the system's colour for sample-data labels ---- */
.sample-ribbon { background: var(--amber-soft); color: #5E3D00; /* deep amber, 8:1 on amber-soft */ border-bottom: 1px solid currentColor; padding: 8px 16px; font-size: .86rem; line-height: 1.4; text-align: center; text-wrap: balance; }
.sample-ribbon b { font-weight: 800; }
.notice-sample { background: var(--amber-soft); color: var(--amber); border: 1px solid currentColor; }
.pcard-sample, .ledger-check.is-sample, .desk-check.is-sample { color: var(--amber); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.pcard-sample { border: 1px solid currentColor; border-radius: var(--r-sm); padding: 1px 6px; background: var(--amber-soft); }

/* Audit 22 Nov: visible focus on the price pair, readable search placeholder, finger-sized sliders */
.srp-price:focus-within { border-color: var(--act); box-shadow: 0 0 0 3px rgba(169,71,31,.25); }
.srp-q input::placeholder, .fs-q input::placeholder { color: var(--ink-3); }
input[type=range] { min-height: 28px; }
/* No one-word last lines in running text; headings break evenly. */
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* Listing section 5: what could go wrong. Ruled like the checks, numbered by the section. */
.risk-list { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.risk-list li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.risk-list li:first-child { border-top: 2px solid var(--rule); }
.risk-list b { font-weight: 700; }
.risk-list span { color: var(--ink-2); line-height: 1.55; }

/* Taste gate 22 Nov: card header wraps instead of overlapping on narrow phones; 44px tap targets. */
.pcard-head { flex-wrap: wrap; row-gap: 4px; }
.pcard-loc { flex: 1 1 8ch; white-space: normal; }
@media (max-width: 720px) {
  .footer-col a, .city-links a, .city-table th a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col ul { gap: 0 !important; }
  .hs-row input, .hs-budget input { height: 44px; }
}
/* The Buy/Rent words in the search sentence are radios hidden inside their labels: show the ring on the word. */

/* Taste gate round 2 (home loans): sliders show a real focus ring, phone tap targets are 44px,
   and the payment figure stays below the h1 on phones. */
input[type=range]:focus-visible { outline: 2px solid var(--act); outline-offset: 4px; }
.loan-step-link, .faq summary { display: inline-flex; align-items: center; min-height: 44px; }
.faq summary { display: flex; }
@media (max-width: 720px) { .loan-emi { font-size: 1.9rem; } }
