/* =====================================================================
   EstatePilot · Amber Keys website (site/) · warm editorial theme
   Light theme only. Tokens first, then base, components, pages.
   ===================================================================== */
:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --paper-3: #e9dfcf;
  --card: #fffcf7;
  --ink: #1f1b16;
  --ink-2: #4a4238;
  --muted: #8a7f70;
  --muted-text: #6f6457;
  --tc: #c2512c;
  --tc-d: #9c3d1f;
  --tc-soft: #f6e2d8;
  --sage: #5c7a64;
  --sage-soft: #e3ebe2;
  --sand: #e6d3b3;
  --gold: #c9952b;
  --line: rgba(31, 27, 22, .12);
  --line-2: rgba(31, 27, 22, .2);
  --r: 18px;
  --r-lg: 22px;
  --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(31, 27, 22, .05), 0 10px 28px -16px rgba(31, 27, 22, .22);
  --sh-2: 0 2px 4px rgba(31, 27, 22, .05), 0 22px 44px -20px rgba(31, 27, 22, .32);
  --sh-3: 0 30px 80px -24px rgba(31, 27, 22, .45);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hdr-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(194, 81, 44, .45); text-underline-offset: 3px; }
a:hover { color: var(--tc-d); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--tc); font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--tc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.field .seg { align-self: flex-start; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-d); font-weight: 500; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.small-print { font-size: .78rem; color: var(--muted-text); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 18ch; }
.section-head p { color: var(--ink-2); max-width: 52ch; margin-top: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .site-footer { position: relative; }

/* ---------- buttons & form atoms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tc); color: #fff; box-shadow: 0 10px 24px -12px rgba(156, 61, 31, .7); }
.btn-primary:hover { background: var(--tc-d); color: #fff; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn b { font-family: var(--f-mono); font-weight: 500; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span, .field > label, .label { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted-text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 12px 14px;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%234a4238' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(31, 27, 22, .35); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--tc); box-shadow: 0 0 0 4px rgba(194, 81, 44, .14); }
.field.has-error .input, .field.has-error .select { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.err { color: #9f2219; font-size: .82rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.field > .err { text-transform: none; letter-spacing: 0; font-size: .82rem; color: #9f2219; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600;
  line-height: 1.2; transition: all .2s var(--ease); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--sm { padding: 6px 11px; font-size: .82rem; }

.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid var(--line); }
.seg button {
  border: 0; background: transparent; border-radius: 999px; padding: 9px 22px; font-weight: 700; font-size: .95rem; color: var(--ink-2);
  transition: background .25s var(--ease), color .25s, box-shadow .25s;
}
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(31, 27, 22, .25); }

/* checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--card); flex: none; margin: 1px 0 0; display: grid; place-content: center; transition: all .15s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--tc); border-color: var(--tc); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2.5px solid var(--tc); outline-offset: 2px; }

/* range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--tc) var(--fill, 50%), var(--sand) var(--fill, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--sand); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--tc); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--tc); margin-top: -9px; box-shadow: 0 2px 6px rgba(31, 27, 22, .25); transition: transform .15s; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--tc); box-shadow: 0 2px 6px rgba(31, 27, 22, .25); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range--sage { --c: var(--sage); }
.range--sage::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--sage) var(--fill, 50%), var(--sand) var(--fill, 50%)); }
.range--sage::-webkit-slider-thumb { border-color: var(--sage); }
.range--sage::-moz-range-progress { background: var(--sage); }
.range--sage::-moz-range-thumb { border-color: var(--sage); }

/* dual range (budget) */
.dual { position: relative; height: 30px; }
.dual-track { position: absolute; left: 11px; right: 11px; top: 13px; height: 4px; border-radius: 4px; background: var(--sand); }
.dual-fill { position: absolute; top: 0; bottom: 0; background: var(--tc); border-radius: 4px; transition: left .12s, right .12s; }
.dual input { position: absolute; inset: 0; width: 100%; height: 30px; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; }
.dual input::-webkit-slider-runnable-track { background: transparent; height: 30px; }
.dual input::-moz-range-track { background: transparent; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--card); border: 2px solid var(--tc); box-shadow: 0 2px 6px rgba(31, 27, 22, .25); cursor: grab; position: relative; z-index: 2; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--tc); box-shadow: 0 2px 6px rgba(31, 27, 22, .25); cursor: grab; }
.dual input:focus-visible { outline: none; }
.dual input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(194, 81, 44, .25); }
.dual-out { font-family: var(--f-mono); font-size: .86rem; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; }
.dual-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; color: var(--muted-text); margin-top: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(247, 242, 234, .86); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(31, 27, 22, .5); }
.hdr { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--sand); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { font-family: var(--f-display); font-size: 1.42rem; line-height: 1; letter-spacing: -.02em; display: flex; flex-direction: column; }
.brand-word small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-text); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); position: relative; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(31, 27, 22, .05); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--tc); border-radius: 2px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tc); color: #fff; font-size: .72rem; font-family: var(--f-mono); display: inline-grid; place-items: center; font-weight: 500; line-height: 1; }
.badge.is-zero { background: var(--paper-3); color: var(--muted-text); }
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); padding-left: 20px; border-left: 1px solid var(--line); white-space: nowrap; }
.hdr-phone small { color: var(--muted-text); }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; align-items: center; gap: 8px; }
.hdr-saved-m { display: none; }
.mnav { border-top: 1px solid var(--line); background: var(--paper); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -24px rgba(31, 27, 22, .4); }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mnav .mnav-phone { font-family: var(--f-mono); font-size: .85rem; color: var(--muted-text); padding-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9cfbf; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #f1e8da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ft-brand .brand { color: var(--paper); }
.ft-brand .brand-mark { background: var(--tc); color: #fff; }
.ft-brand .brand-word small { color: #a99d8a; }
.ft-brand p { margin-top: 18px; max-width: 36ch; font-size: .93rem; color: #bfb3a1; }
.ft-col h3 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #a99d8a; margin-bottom: 16px; font-weight: 500; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.ft-col li { color: #d9cfbf; }
.ft-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #a99d8a; }
.ft-bottom .mono { font-size: .76rem; }
.ft-ez { color: #f1e8da; }

/* ---------- property card ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card {
  position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); isolation: isolate; border: 1px solid rgba(31, 27, 22, .05);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card.is-flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--sh-1); } 25%, 60% { box-shadow: 0 0 0 3px var(--tc), var(--sh-2); } }
.card.is-hot { box-shadow: 0 0 0 2px rgba(194, 81, 44, .55), var(--sh-2); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.045); }
.card:hover .card-media img.alt { opacity: 1; }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(31, 27, 22, .35), transparent); pointer-events: none; }
.card-flags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; max-width: calc(100% - 72px); }
.flag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 252, 247, .94); color: var(--ink); backdrop-filter: blur(6px); line-height: 1.2; }
.flag .ico { width: 14px; height: 14px; }
.flag--verified { color: var(--sage); }
.flag--rent { background: var(--sage); color: #fff; }
.flag--sale { background: var(--ink); color: var(--paper); }
.ribbon { position: absolute; z-index: 3; left: 0; bottom: 16px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 22px 7px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.card-pic { position: relative; }
.heart { top: auto; bottom: 14px; }
.heart {
  position: absolute; z-index: 4; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 252, 247, .94); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4); transition: transform .25s var(--ease), color .2s, background .2s;
}
.heart:hover { transform: scale(1.08); color: var(--tc); }
.heart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .2s; }
.heart[aria-pressed="true"] { color: var(--tc); }
.heart[aria-pressed="true"] svg { fill: var(--tc); }
.heart.pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .04em; background: var(--paper-2); color: var(--ink-2); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.card-price { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; font-weight: 500; }
.card-price small { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--muted-text); font-weight: 400; margin-top: 5px; letter-spacing: 0; }
.card-row { align-items: flex-start; }
.card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; font-family: var(--f-ui); letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sub { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .82rem; color: var(--ink-2); }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .ico { width: 15px; height: 15px; color: var(--muted); }
.card-compare { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 10px 20px; border-top: 1px solid var(--line); background: rgba(239, 230, 216, .35); cursor: pointer; }
.card-compare .check { font-size: .84rem; align-items: center; }
.card-compare .check input { width: 18px; height: 18px; margin: 0; }

/* ---------- toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-size: .92rem; font-weight: 600; box-shadow: var(--sh-3); display: flex; align-items: center; gap: 12px; pointer-events: auto; animation: toastIn .4s var(--ease); }
.toast a { color: var(--sand); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
body.has-bottom-bar .toast-host { bottom: 96px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31, 27, 22, .55); backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.modal-panel {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; background: var(--paper); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); animation: rise .45s var(--ease); overscroll-behavior: contain;
}
.modal-head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 24px 28px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.modal-head h2 { font-size: 1.7rem; }
.modal-head p { color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.modal-close { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; }
.modal-close:hover { border-color: var(--ink); }
.modal-body { padding: 22px 28px 28px; display: grid; gap: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
body.is-locked { overflow: hidden; }
.privacy-note { display: flex; gap: 12px; align-items: flex-start; background: var(--sage-soft); color: #2f4436; border-radius: 14px; padding: 14px 16px; font-size: .88rem; line-height: 1.5; }
.privacy-note .ico { color: var(--sage); margin-top: 1px; }
.prop-mini { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.prop-mini img { width: 76px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.prop-mini b { display: block; font-size: .95rem; line-height: 1.3; }
.prop-mini span { font-size: .82rem; color: var(--muted-text); }
.time-chips .chip { flex: 1 1 auto; justify-content: center; }
.success { text-align: center; padding: 8px 4px 4px; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); }
.success-mark svg { width: 36px; height: 36px; stroke-width: 2.2; }
.success-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 1.8rem; }
.success .ref { display: inline-flex; gap: 8px; align-items: center; margin: 14px 0 6px; background: var(--card); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 14px; font-family: var(--f-mono); font-size: .95rem; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; text-align: left; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 44px; }
.timeline li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--tc); color: var(--tc-d); font-family: var(--f-mono); font-size: .78rem; display: grid; place-items: center; }
.timeline li::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; font-size: .98rem; }
.timeline span { color: var(--ink-2); font-size: .88rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; background: radial-gradient(1200px 520px at 85% 10%, rgba(230, 211, 179, .55), transparent 65%), radial-gradient(700px 400px at 0% 90%, rgba(194, 81, 44, .07), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hero-copy { padding-top: clamp(8px, 2vw, 28px); }
.hero h1 { font-size: clamp(2.7rem, 5.3vw, 4.9rem); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 20px; font-variation-settings: "opsz" 144; }
.hero h1 em { display: inline-block; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .86rem; color: var(--ink-2); }
.hero-trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero-trust .ico { width: 17px; height: 17px; color: var(--sage); }

.finder { margin-top: 30px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 22px; display: grid; gap: 18px; border: 1px solid rgba(31, 27, 22, .06); }
.finder-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.finder-top .small-print { font-family: var(--f-mono); }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.finder-grid .span-2 { grid-column: 1 / -1; }
.finder .chips .chip { min-width: 46px; justify-content: center; }
.finder-budget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

.explorer { position: relative; background: var(--card); border-radius: 26px; box-shadow: var(--sh-2); border: 1px solid rgba(31, 27, 22, .06); overflow: hidden; }
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px 12px; flex-wrap: wrap; }
.ex-title { display: flex; flex-direction: column; gap: 2px; }
.ex-count { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.15; }
.ex-count b { font-weight: 500; color: var(--tc); font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.2ch; }
.ex-count span { font-family: var(--f-ui); font-size: .85rem; color: var(--muted-text); }
.ex-legend { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted-text); font-family: var(--f-mono); }
.ex-legend i { display: block; width: 84px; height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgb(234, 212, 186), rgb(205, 112, 76), rgb(194, 81, 44)); }
.ex-map { position: relative; aspect-ratio: 1000 / 800; background: #f4ece0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ex-map svg { position: absolute; inset: 0; }
.ex-note { position: absolute; left: 14px; bottom: 12px; font-size: .7rem; font-family: var(--f-mono); color: var(--muted-text); background: rgba(244, 236, 224, .85); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.ex-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 14px; min-width: 190px; max-width: 240px;
  box-shadow: var(--sh-3); font-size: .82rem; transform: translate(-50%, calc(-100% - 18px)); opacity: 0; transition: opacity .2s;
}
.ex-tip.on { opacity: 1; }
.ex-tip b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: 4px; }
.ex-tip .row { display: flex; justify-content: space-between; gap: 12px; color: #d9cfbf; }
.ex-tip .row span:last-child { font-family: var(--f-mono); color: #fff; }
.ex-tip .go { margin-top: 8px; color: var(--sand); font-weight: 700; font-size: .78rem; }
.ex-commute { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 22px; padding: 16px 22px 20px; align-items: end; }
.ex-commute .field > span { display: flex; justify-content: space-between; }
.ex-commute output { font-family: var(--f-mono); color: var(--sage); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .85rem; }
.ex-result { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); min-height: 34px; }
.ex-result .tag { background: var(--sage-soft); color: #2f4436; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 700; }
.ex-result .link-arrow { color: var(--sage); font-size: .88rem; margin-left: auto; }
.ex-result:empty { display: none; }

/* map overlay labels (drawn by site-common) */
.site-map-labels text { font-family: var(--f-ui); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #f7f2ea; stroke-linejoin: round; pointer-events: none; }
.site-map-labels .is-dim text.nm { fill: #8a7f70; }
.site-map-labels .pill rect { fill: var(--tc); }
.site-map-labels .pill text { fill: #fff; stroke: none; font-family: var(--f-mono); font-weight: 500; }
.ep-map-loc { outline: none; }
.ep-map-loc:hover { stroke: #1f1b16 !important; stroke-width: 2.2 !important; }
.ep-map-loc:focus-visible { stroke: var(--tc) !important; stroke-width: 3.5 !important; }
.ep-map-dot { transition: opacity .3s; }
.ep-map-dot:focus-visible { outline: none; }
.ep-map-dot:focus-visible .ep-map-dot-core { fill: #1f1b16; }
.ep-map--explorer .ep-map-mark text + text { display: none; }
.ep-map--explorer .ep-map-mark.is-active text + text { display: block; font-size: 15px; }
.ep-map-mark.is-active circle { stroke-width: 2.5; }
.map-sm .ep-map-road-label, .map-sm .ep-map-hill-label { display: none; }
.map-sm .ep-map-mark:not(.is-active) { display: none; }
.map-sm .ep-map-mark.is-active text + text { font-size: 24px; }
.map-sm .ep-map-commute text { font-size: 26px; }
.map-sm .ep-map-mark circle { r: 18; }
.map-sm .ep-map-mark text:first-of-type { font-size: 19px; }

/* featured */
.featured .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* localities */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.loc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: var(--r); background: var(--card); text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; overflow: hidden; min-height: 230px;
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; color: var(--ink); }
.loc-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border-radius: 50%; background: var(--heat, var(--sand)); opacity: .28; transition: transform .6s var(--ease), opacity .4s; }
.loc-card:hover::after { transform: scale(1.25); opacity: .4; }
.loc-zone { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-text); }
.loc-card h3 { font-size: 1.55rem; }
.loc-card p.vibe { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.loc-figs { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.loc-figs div { display: flex; flex-direction: column; }
.loc-figs b { font-family: var(--f-mono); font-weight: 500; font-size: .92rem; }
.loc-figs span { font-size: .72rem; color: var(--muted-text); }
.loc-count { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 700; }
.loc-count .arr { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); transition: background .3s, color .3s, transform .3s var(--ease); }
.loc-card:hover .loc-count .arr { background: var(--tc); color: #fff; transform: rotate(-45deg); }

/* how it works */
.how { background: var(--paper-2); position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; right: -140px; top: -120px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(194, 81, 44, .18); box-shadow: 0 0 0 60px rgba(194, 81, 44, .025), 0 0 0 120px rgba(194, 81, 44, .02); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: s; }
.step { background: var(--card); border-radius: var(--r); padding: 24px 22px 26px; position: relative; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--f-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--tc); font-weight: 300; }
.step-ico { position: absolute; right: 20px; top: 24px; width: 44px; height: 44px; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); }
.step h3 { font-family: var(--f-ui); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.step p { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.how-promise { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 20px 24px; border-radius: var(--r); background: var(--ink); color: var(--paper); }
.how-promise p { font-family: var(--f-display); font-size: 1.3rem; flex: 1 1 380px; }
.how-promise p em { color: var(--sand); }
.how-promise .small-print { color: #bfb3a1; flex: 1 1 260px; font-size: .82rem; }

/* sell band */
.sell-band { padding: clamp(56px, 7vw, 96px) 0; }
.sell-card { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, #9c3d1f 0%, #c2512c 55%, #cf6a3f 100%); color: #fff; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sell-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; }
.sell-card h2 em { color: var(--sand); }
.sell-card p { color: rgba(255, 255, 255, .86); margin-top: 14px; max-width: 48ch; font-size: 1.05rem; }
.sell-card .btn-light { margin-top: 26px; }
.sell-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.sell-list li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(4px); }
.sell-list .ico { color: var(--sand); margin-top: 2px; }
.sell-list b { display: block; }
.sell-list span { font-size: .88rem; color: rgba(255, 255, 255, .8); }
.sell-arch { position: absolute; right: -60px; bottom: -120px; width: 420px; opacity: .12; pointer-events: none; }

/* =====================================================================
   SEARCH
   ===================================================================== */
.page-search main { padding-bottom: 40px; }
.s-head { padding: 28px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.s-head .s-toolbar { margin: 0; }
.s-head h1 { margin-top: 8px; }
.s-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.s-head h1 b { font-weight: 400; font-family: var(--f-display); color: var(--tc); font-variant-numeric: tabular-nums; }
.wrap--wide { max-width: 1680px; }
.s-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) clamp(360px, 32vw, 560px); gap: 24px; align-items: start; }
.s-filters { position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.s-filters-inner { display: grid; gap: 22px; }
.f-group { display: grid; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group > .label { display: flex; justify-content: space-between; align-items: baseline; }
.f-locs { display: grid; gap: 2px; max-height: 260px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.f-locs .check { padding: 6px 4px; border-radius: 8px; font-size: .9rem; align-items: center; }
.f-locs .check:hover { background: rgba(31, 27, 22, .04); }
.f-locs .check .n { margin-left: auto; font-family: var(--f-mono); font-size: .74rem; color: var(--muted-text); }
.f-locs .check.is-zero { color: var(--muted-text); }
.f-reset { background: none; border: 0; padding: 0; color: var(--tc-d); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.drawer-head, .drawer-foot { display: none; }

.s-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.s-toolbar .grow { flex: 1; }
.s-sort { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.s-sort .select { width: auto; padding: 9px 38px 9px 14px; font-size: .9rem; border-radius: 999px; }
.s-mobile-btns { display: none; gap: 8px; }
.active-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-pills:empty { display: none; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 5px 8px 5px 12px; font-size: .82rem; font-weight: 600; }
.pill-x:hover { border-color: var(--tc); color: var(--tc-d); }
.pill-x svg { width: 14px; height: 14px; }
.s-results .cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.s-map { position: sticky; top: calc(var(--hdr-h) + 16px); border-radius: var(--r-lg); overflow: hidden; background: #f4ece0; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.s-map-stage { position: relative; }
.s-map-canvas { position: relative; aspect-ratio: 760 / 680; }
.s-map-foot { background: var(--card); border-top: 1px solid var(--line); padding: 14px 18px; display: grid; gap: 10px; font-size: .82rem; color: var(--ink-2); }
.s-map-foot .lg { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.s-map-foot .lg span { display: inline-flex; align-items: center; gap: 7px; }
.s-map-foot .lg i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--tc); background: radial-gradient(circle, var(--tc) 0 3px, rgba(194,81,44,.18) 4px); }
.s-map-foot .lg i.heat { width: 54px; height: 8px; border: 0; border-radius: 8px; background: linear-gradient(90deg, rgb(234, 212, 186), rgb(194, 81, 44)); }
.s-map-cap { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 2; }
.s-map-cap span { background: rgba(255, 252, 247, .92); border-radius: 999px; padding: 6px 12px; font-size: .74rem; font-weight: 600; color: var(--ink-2); box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .4); }
.s-map-preview { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: none; }
.s-map-preview.on { display: block; animation: rise .35s var(--ease); }
.s-map-preview a { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px; box-shadow: var(--sh-2); text-decoration: none; }
.s-map-preview img { width: 96px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; }
.s-map-preview b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; display: block; }
.s-map-preview span { font-size: .82rem; color: var(--ink-2); display: block; line-height: 1.35; }
.s-map-preview button { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--paper-2); display: grid; place-items: center; }

.empty { text-align: center; padding: 56px 24px; background: var(--card); border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.empty svg.art { width: 120px; height: 120px; margin: 0 auto 18px; }
.empty h2 { font-size: 1.8rem; }
.empty p { color: var(--ink-2); margin: 10px auto 22px; max-width: 46ch; }
.empty .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.compare-tray {
  position: fixed; left: 50%; bottom: 18px; z-index: 70; transform: translate(-50%, 140%); transition: transform .45s var(--ease); width: min(720px, calc(100vw - 24px));
  background: var(--ink); color: var(--paper); border-radius: 20px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sh-3);
}
.compare-tray:not(.on) { visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.compare-tray.on { transform: translate(-50%, 0); }
.compare-tray .ct-label { font-size: .84rem; font-weight: 700; white-space: nowrap; }
.compare-tray .ct-label small { display: block; color: #a99d8a; font-weight: 500; font-size: .74rem; }
.ct-items { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ct-item { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 5px 6px 5px 5px; flex: none; }
.ct-item img { width: 40px; height: 32px; object-fit: cover; border-radius: 8px; }
.ct-item span { font-family: var(--f-mono); font-size: .76rem; }
.ct-item button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; padding: 0; }
.ct-item button svg { width: 12px; height: 12px; }
.ct-slot { width: 92px; height: 42px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 12px; flex: none; }

/* =====================================================================
   PROPERTY
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted-text); padding: 22px 0 16px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--tc-d); text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 46vw, 560px); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; position: relative; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g-main { grid-row: 1 / 3; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 2fr 1fr; }
.gallery.n2 .g-main { grid-row: 1 / 3; }
.gallery.n2 .g-1 { grid-row: 1 / 3; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery .g-all { position: absolute; cursor: pointer; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 252, 247, .95); border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .88rem; box-shadow: var(--sh-1); }
.gallery .g-all:hover { background: #fff; }
.gallery .ribbon { bottom: 22px; font-size: .78rem; padding: 9px 26px 9px 18px; }
.g-thumbs { display: none; }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: 36px; }
.p-head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-soft { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--sage-soft); color: #2f4436; }
.tag-soft .ico { width: 15px; height: 15px; }
.tag-soft--tc { background: var(--tc-soft); color: var(--tc-d); }
.tag-soft--gold { background: #f6ead0; color: #7a5710; }
.p-head h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; }
.p-sub { color: var(--ink-2); font-size: 1.02rem; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.p-sub .ico { width: 17px; height: 17px; color: var(--tc); }
.p-price-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; margin-top: 6px; }
.p-price { font-family: var(--f-display); font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.p-price small { font-family: var(--f-ui); font-size: .9rem; color: var(--muted-text); font-weight: 500; letter-spacing: 0; display: block; margin-top: 8px; }
.psf { flex: 1 1 300px; max-width: 420px; }
.psf-top { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; margin-bottom: 8px; }
.psf-top b { font-family: var(--f-mono); font-weight: 500; }
.psf-bar { position: relative; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--sage-soft), var(--sand) 50%, var(--tc-soft)); }
.psf-avg { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); left: 50%; }
.psf-avg::after { content: "avg"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: .64rem; color: var(--muted-text); }
.psf-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--tc); border: 3px solid var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); transition: left 1s var(--ease); }
.psf-note { margin-top: 10px; font-size: .84rem; color: var(--ink-2); }
.psf-note b { color: var(--ink); }

.p-sec { padding: 40px 0; border-bottom: 1px solid var(--line); }
.p-sec:last-child { border-bottom: 0; }
.p-sec > h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 20px; }
.p-sec > h2 + .small-print { margin: -12px 0 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.fact { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.fact dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-text); font-weight: 700; }
.fact dd { margin: 4px 0 0; font-weight: 700; font-size: 1rem; }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.amen li { display: flex; align-items: center; gap: 12px; font-size: .94rem; font-weight: 600; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.amen .ai { width: 38px; height: 38px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--tc-d); flex: none; }
.p-desc { font-size: 1.06rem; color: var(--ink-2); max-width: 66ch; line-height: 1.75; }
.p-desc::first-letter { font-family: var(--f-display); font-size: 3.4em; float: left; line-height: .9; margin: 6px 10px 0 0; color: var(--tc); }
.hl { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hl li { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--paper-2); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.hl .ico { color: var(--tc); margin-top: 1px; }

/* sun & facing */
.sun-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); }
.sun-svg { width: 100%; height: auto; display: block; }
.sun-svg .sun-g { transition: transform .5s var(--ease); }
.sun-time { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.sun-time small { font-family: var(--f-mono); font-size: .8rem; color: var(--muted-text); margin-left: 6px; }
.sun-text { font-size: 1.08rem; font-weight: 700; margin: 14px 0 6px; min-height: 2.8em; }
.sun-sub { color: var(--ink-2); font-size: .92rem; }
.sun-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; color: var(--muted-text); margin-top: 4px; }
.sun-slider { margin-top: 18px; }
.sun-tip { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: .9rem; color: var(--ink-2); }
.sun-tip b { color: var(--ink); }

/* location + commute */
.loc-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.mini-map { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #f4ece0; border: 1px solid var(--line); min-height: 300px; }
.mini-map .map-canvas { position: absolute; inset: 0; }
.mini-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(255, 252, 247, .94); border-radius: 12px; padding: 10px 14px; font-size: .84rem; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh-1); }
.mini-cap .ico { color: var(--sage); }
.commute { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.commute li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.commute li:last-child { border-bottom: 0; }
.commute .em { font-size: 1rem; text-align: center; }
.commute .nm { min-width: 0; }
.commute .nm b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commute .bar { display: block; height: 4px; border-radius: 4px; background: var(--paper-2); margin-top: 6px; overflow: hidden; }
.commute .bar i { display: block; height: 100%; border-radius: 4px; background: var(--sage); }
.commute .mins { font-family: var(--f-mono); text-align: right; font-size: .88rem; }

/* calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 28px; }
.calc-inputs { display: grid; gap: 22px; }
.calc-row .field > span { display: flex; justify-content: space-between; align-items: baseline; }
.calc-row output { font-family: var(--f-mono); font-size: .9rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; }
.calc-out { background: var(--paper-2); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc-out .big { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; font-weight: 500; }
.calc-out .big small { font-family: var(--f-ui); font-size: .9rem; color: var(--muted-text); font-weight: 500; }
.calc-split { height: 10px; border-radius: 10px; overflow: hidden; display: flex; background: var(--sand); }
.calc-split i { display: block; height: 100%; background: var(--sage); transition: width .4s var(--ease); }
.calc-split i + i { background: var(--tc); }
.calc-lines { display: grid; gap: 8px; font-size: .88rem; }
.calc-lines div { display: flex; justify-content: space-between; gap: 10px; }
.calc-lines span:last-child { font-family: var(--f-mono); }
.calc-lines .tot { border-top: 1px solid var(--line-2); padding-top: 10px; font-weight: 700; }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.movein { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.movein div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.movein div span:first-child small { display: block; color: var(--muted-text); font-size: .8rem; }
.movein div span:last-child { font-family: var(--f-mono); font-size: 1rem; white-space: nowrap; }
.movein .tot { background: var(--paper-2); border-bottom: 0; font-weight: 800; }
.movein .tot span:last-child { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; }

/* sticky interest card */
.p-aside { position: sticky; top: calc(var(--hdr-h) + 20px); }
.int-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 26px; border: 1px solid rgba(31, 27, 22, .06); display: grid; gap: 16px; }
.int-card .p-price { font-size: 2.2rem; }
.int-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.int-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.int-list li { display: flex; gap: 10px; align-items: flex-start; }
.int-list .ico { width: 18px; height: 18px; color: var(--sage); margin-top: 1px; }
.int-card .btns { display: grid; gap: 10px; }
.int-help { font-size: .84rem; color: var(--muted-text); text-align: center; border-top: 1px solid var(--line); padding-top: 14px; }
.int-help b { font-family: var(--f-mono); font-weight: 500; color: var(--ink-2); }
.save-row { display: flex; gap: 10px; }
.save-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 10px; font-weight: 700; font-size: .88rem; }
.save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.save-btn[aria-pressed="true"] { color: var(--tc-d); border-color: var(--tc); background: var(--tc-soft); }
.save-btn[aria-pressed="true"] svg { fill: var(--tc); stroke: var(--tc); }
.save-btn:hover { border-color: var(--ink); }
.p-bar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 250; background: rgba(20, 17, 13, .96); display: flex; flex-direction: column; color: #fff; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-family: var(--f-mono); font-size: .85rem; gap: 12px; }
.lb-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9cfbf; }
.lb-x, .lb-nav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; flex: none; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .16); }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 76px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; animation: fadeIn .35s ease; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-strip { display: flex; gap: 8px; justify-content: center; padding: 14px; overflow-x: auto; }
.lb-strip button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 72px; height: 52px; flex: none; opacity: .55; background: none; transition: opacity .2s, border-color .2s; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--sand); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .art { width: 160px; margin: 0 auto 26px; }
.notfound h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.notfound p { color: var(--ink-2); max-width: 50ch; margin: 14px auto 26px; }
.notfound .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   SELL
   ===================================================================== */
.sell-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 4vw, 56px); }
.sell-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.sell-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -.03em; margin-top: 16px; }
.sell-hero .lede { margin-top: 18px; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: repeating-linear-gradient(90deg, var(--tc) 0 6px, transparent 6px 12px); opacity: .5; }
.process li { position: relative; padding-right: 22px; }
.process .pn { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--tc); color: var(--tc-d); display: grid; place-items: center; position: relative; z-index: 1; margin-bottom: 16px; }
.process li:first-child .pn { background: var(--tc); color: #fff; }
.process h3 { font-family: var(--f-ui); font-size: 1rem; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.process p { font-size: .9rem; color: var(--ink-2); }
.sell-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.wizard { background: var(--card); border-radius: 26px; box-shadow: var(--sh-2); border: 1px solid rgba(31, 27, 22, .06); overflow: hidden; }
.wz-head { padding: 26px 30px 0; }
.wz-head h2 { font-size: 2rem; }
.wz-steps { display: flex; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.wz-steps li { flex: 1; display: grid; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--muted-text); }
.wz-steps li i { display: block; height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; position: relative; }
.wz-steps li i::after { content: ""; position: absolute; inset: 0; background: var(--tc); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wz-steps li.done i::after, .wz-steps li.cur i::after { transform: scaleX(1); }
.wz-steps li.cur { color: var(--ink); }
.wz-body { padding: 26px 30px 8px; }
.wz-pane { display: none; gap: 20px; }
.wz-pane.on { display: grid; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wz-grid .span-2 { grid-column: 1 / -1; }
.wz-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 30px 26px; border-top: 1px solid var(--line); margin-top: 18px; align-items: center; }
.wz-foot .small-print { flex: 1; }
.price-preview { font-family: var(--f-mono); font-size: .84rem; color: var(--sage); text-transform: none; letter-spacing: 0; font-weight: 500; }
.file-drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; background: var(--paper); cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--tc); background: #fffaf3; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--tc-d); flex: none; }
.file-drop b { display: block; font-size: .95rem; }
.file-drop span { font-size: .82rem; color: var(--muted-text); }
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .9rem; }
.review div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.review div:last-child { border-bottom: 0; }
.review span:first-child { color: var(--muted-text); }
.review span:last-child { font-weight: 700; text-align: right; }
.sell-side { display: grid; gap: 18px; position: sticky; top: calc(var(--hdr-h) + 20px); }
.broker-box { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 26px; }
.broker-box h3 { font-size: 1.5rem; color: var(--paper); }
.broker-box > p { color: #bfb3a1; font-size: .88rem; margin-top: 8px; }
.broker-box ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.broker-box li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #bfb3a1; }
.broker-box li span:last-child { font-family: var(--f-mono); color: var(--sand); font-size: .92rem; }
.sell-hero-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; justify-self: end; width: min(100%, 420px); }
.sell-hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.sell-hero-card li { display: flex; gap: 10px; align-items: flex-start; }
.sell-hero-card .ico { color: var(--sage); width: 18px; height: 18px; margin-top: 2px; }
.broker-box .small-print { color: #a99d8a; margin-top: 14px; }
.assure { background: var(--sage-soft); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 12px; font-size: .9rem; color: #2f4436; }
.assure b { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.assure div { display: flex; gap: 10px; }
.assure .ico { color: var(--sage); margin-top: 2px; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--f-display); font-size: 1.3rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 1px solid var(--line-2); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M6 1v10M1 6h10' stroke='%231f1b16' stroke-width='1.5' stroke-linecap='round'/></svg>") center no-repeat; transition: transform .35s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq summary:hover { color: var(--tc-d); }
.faq .ans { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 70ch; }

/* =====================================================================
   SAVED
   ===================================================================== */
.saved-head { padding: 36px 0 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.saved-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.saved-head p { color: var(--ink-2); margin-top: 10px; }
.cmp-wrap { margin-top: 56px; }
.cmp-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; table-layout: fixed; }
.cmp th, .cmp td { overflow-wrap: anywhere; }
.cmp col.c-lab { width: 170px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { vertical-align: bottom; background: var(--card); }
.cmp tbody th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-text); font-weight: 700; width: 170px; white-space: nowrap; background: rgba(239, 230, 216, .35); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp-prop { display: grid; gap: 8px; min-width: 0; }
.cmp-prop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.cmp-prop a { font-weight: 700; text-decoration: none; line-height: 1.3; font-size: .95rem; }
.cmp td.best { color: var(--sage); font-weight: 800; }
.cmp td.best::after { content: " ✓"; }
.cmp .am { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp .am span { font-size: .74rem; background: var(--paper-2); border-radius: 6px; padding: 2px 7px; }
.cmp .mono { font-size: .88rem; }
.cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; align-items: center; }
.cmp-pick .label { margin-right: 6px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
  .s-layout { grid-template-columns: 248px minmax(0, 1fr) clamp(340px, 31vw, 420px); gap: 22px; }
  .s-results .cards { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1140px) {
  .hdr-phone { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .s-layout { grid-template-columns: 256px minmax(0, 1fr); }
  .s-map { display: none; }
  .page-search.view-map .s-map { display: block; position: relative; top: 0; grid-column: 2; }
  .page-search.view-map .s-results { display: none; }
  .s-mobile-btns { display: flex; }
  .s-mobile-btns .js-filters-btn { display: none; }
  .featured .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .sell-main { grid-template-columns: minmax(0, 1fr) 320px; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .process::before { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-saved-m { display: inline-flex; margin-left: auto; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 999px; }
  .hdr-saved-m + .menu-btn { margin-left: 0; }
  .hdr-saved-m svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .s-layout { grid-template-columns: minmax(0, 1fr); }
  .page-search.view-map .s-map { grid-column: 1; }
  .s-mobile-btns .js-filters-btn { display: inline-flex; }
  .s-filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 120; max-height: 86vh; max-height: 86dvh; background: var(--paper); border-radius: 24px 24px 0 0;
    box-shadow: var(--sh-3); padding: 0; transform: translateY(105%); transition: transform .45s var(--ease), visibility 0s .45s; visibility: hidden; display: flex; flex-direction: column; overflow: hidden;
  }
  .s-filters.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .s-filters-inner { overflow: auto; padding: 8px 20px 20px; flex: 1; overscroll-behavior: contain; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
  .drawer-head h2 { font-size: 1.5rem; }
  .drawer-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); transform: translateX(-50%); }
  .drawer-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .drawer-foot .btn-primary { flex: 1; }
  .scrim { position: fixed; inset: 0; z-index: 110; background: rgba(31, 27, 22, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .p-layout { grid-template-columns: minmax(0, 1fr); }
  .p-aside { display: none; }
  .p-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(255, 252, 247, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 14px; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .4);
  }
  .p-bar .pb-price { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.1; font-weight: 500; }
  .p-bar .pb-price small { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--muted-text); font-weight: 400; }
  .p-bar .btn { margin-left: auto; }
  .p-bar .heart { position: static; box-shadow: none; border: 1px solid var(--line-2); flex: none; }
  .page-property .site-footer { padding-bottom: 110px; }
  .sell-main { grid-template-columns: minmax(0, 1fr); }
  .sell-side { position: static; }
  .sell-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sell-card { grid-template-columns: minmax(0, 1fr); }
  .loc-wrap { grid-template-columns: minmax(0, 1fr); }
  .mini-map { width: 100%; min-height: 260px; aspect-ratio: 5 / 4; }
  .sun-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sun-wrap > div:last-child { width: 100%; }
  .sun-svg { max-width: 300px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r); }
  .gallery button:not(.g-main):not(.g-all) { display: none; }
  .gallery .g-main { grid-row: auto; }
  .g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .g-thumbs button { flex: none; width: 82px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--paper-2); }
  .g-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
  .g-thumbs button[aria-current="true"] { border-color: var(--tc); }
}
@media (max-width: 720px) {
  .featured .cards, .cards { grid-template-columns: minmax(0, 1fr); }
  .loc-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .loc-grid::-webkit-scrollbar { display: none; }
  .loc-card { scroll-snap-align: start; }
  .s-results .cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 20px; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .process .pn { grid-row: 1 / 3; margin: 0; }
  .finder-grid { grid-template-columns: minmax(0, 1fr); }
  .finder { padding: 18px; }
  .ex-commute { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 18px; }
  .ex-head { padding: 14px 16px 10px; }
  .ex-legend { display: none; }
  .ex-map { aspect-ratio: 760 / 675; }
  #ex-hint, #finder-note { display: none; }
  .ex-result .link-arrow { margin-left: 0; }
  .wz-grid { grid-template-columns: minmax(0, 1fr); }
  .wz-head, .wz-body { padding-left: 20px; padding-right: 20px; }
  .wz-foot { padding: 16px 20px 20px; flex-wrap: wrap; }
  .wz-foot .small-print { flex-basis: 100%; order: 3; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sun-wrap, .calc { padding: 20px; }
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .amen li { padding: 8px; gap: 9px; font-size: .86rem; line-height: 1.25; }
  .amen .ai { width: 32px; height: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movein div { padding: 14px 18px; }
  .loc-figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare-tray { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .compare-tray .ct-label { flex: 1; }
  .compare-tray .ct-items { order: 3; flex-basis: 100%; }
  .modal { padding: 0; place-items: end center; }
  .modal-panel { border-radius: 22px 22px 0 0; max-height: 94vh; max-height: 94dvh; width: 100%; }
  .modal-head { padding: 20px 20px 14px; }
  .modal-body { padding: 18px 20px 24px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { display: none; }
  .sell-arch { display: none; }
  .how-promise p { font-size: 1.15rem; }
  .faq summary { font-size: 1.12rem; padding: 18px 44px 18px 0; }
  .p-price-row { gap: 22px; }
  .psf { flex-basis: 100%; }
  .p-desc::first-letter { font-size: 2.8em; }
  .s-toolbar { gap: 10px; }
  .s-sort span { display: none; }
  .cmp { min-width: 600px; font-size: .86rem; }
  .cmp col.c-lab { width: 108px; }
  .cmp tbody th { white-space: normal; font-size: .68rem; }
  .cmp th, .cmp td { padding: 12px; }
}
@media (max-width: 400px) {
  .brand-word { font-size: 1.25rem; }
  .brand-word small { letter-spacing: .14em; }
  .brand-mark { width: 36px; height: 36px; }
  .hdr { gap: 10px; }
  .menu-btn { padding: 8px 12px; }
  .hero h1 { font-size: 2.45rem; }
  .seg button { padding: 8px 16px; }
  .p-bar .pb-price { font-size: 1.2rem; }
  .p-bar .btn { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .p-bar, .p-aside, .compare-tray, .toast-host { display: none !important; }
  body::before { display: none; }
}

/* ---------- late additions: radio chips, phone prefix, gallery 4 ---------- */
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-chips legend { padding: 0; margin-bottom: 8px; }
.radio-chip { position: relative; flex: 1 1 auto; }
.radio-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 9px 10px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s var(--ease); line-height: 1.25; }
.radio-chip span small { font-weight: 500; font-size: .72rem; color: var(--muted-text); font-family: var(--f-mono); }
.radio-chip span:hover { border-color: var(--ink-2); }
.radio-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.radio-chip input:checked + span small { color: var(--sand); }
.radio-chip input:focus-visible + span { outline: 2.5px solid var(--tc); outline-offset: 2px; }
.tel { display: flex; align-items: stretch; }
.tel b { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper-2); font-family: var(--f-mono); font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.tel .input { border-radius: 0 12px 12px 0; }
.gallery.n4 .g-1 { grid-row: 1 / 3; }
.p-share { flex: 1; }
.p-related { padding: 24px 0 96px; }
.p-related h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 24px; }
.rent-info { flex: 1 1 280px; max-width: 420px; font-size: .9rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rent-info b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.p-bar[hidden] { display: none !important; }
