:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --card: #fbf8f2;
  --ink: #1c2a23;
  --ink-2: #44514a;
  --muted: #7a8279;
  --line: #d9d0bf;
  --green: #23402f;
  --green-2: #2f5540;
  --brass: #a8813f;
  --brick: #9b4a2c;
  --serif: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --serif-text: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --r: 4px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(244, 239, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { flex: none; }
.logo b { display: block; font: 400 23px/1 var(--serif); letter-spacing: -.01em; }
.logo small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top .call { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.top .call:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }

/* shared cards */
section { padding: 96px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.sec-head p { max-width: 430px; color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.card { text-decoration: none; display: block; }
.card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.status { position: absolute; top: 12px; left: 12px; background: var(--card); font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 2px; }
.status.coming { background: var(--brass); color: #fff; }
.status.contract { background: var(--ink); color: var(--paper); }
.status.sold { background: var(--brick); color: #fff; }
.card .price { font: 400 28px/1 var(--serif); margin: 14px 0 6px; }
.card .spec { font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; flex-wrap: wrap; }
.card .spec b { color: var(--ink); font-weight: 600; }
.card .addr { font-size: 15px; margin-top: 6px; }
.card .hood { font-size: 13px; color: var(--muted); }
.empty { padding: 48px; border: 1px dashed var(--line); text-align: center; color: var(--ink-2); grid-column: 1 / -1; }
/* contact / footer */
.cta { background: var(--ink); color: #e9ece6; padding: 80px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
footer { background: var(--ink); color: #9aa49d; font-size: 13px; padding: 0 0 40px; }
footer .wrap { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: #cfd6cf; }

/* property page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 18px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 560px; }
.gallery button { padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--paper-2); border-radius: 2px; position: relative; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery button:nth-child(4) { grid-column: 2 / 4; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery .more { position: absolute; right: 12px; bottom: 12px; background: var(--card); font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 3px; }
.prop-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; padding: 40px 0 96px; align-items: start; }
.prop-head .status { position: static; display: inline-block; }
.prop-head h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; margin: 16px 0 10px; }
.prop-head .addr { font-size: 18px; color: var(--ink-2); }
.prop-price { font: 400 44px/1 var(--serif); margin: 22px 0 0; }
.keyfacts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 30px 0; }
.keyfacts div { padding: 16px 0; }
.keyfacts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.keyfacts b { display: block; font: 400 26px/1.1 var(--serif); }
.keyfacts span { font-size: 13px; color: var(--muted); }
.prop-body p { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.prop-body h3 { font-size: 28px; margin: 40px 0 14px; }
.feat { columns: 2; padding: 0; list-style: none; margin: 0; }
.feat li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); break-inside: avoid; position: relative; }
.feat li::before { content: ''; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--brass); }
.mortgage { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mortgage .total b { display: block; font: 400 46px/1 var(--serif); margin: 6px 0; }
.mortgage .total span { font-size: 14px; color: var(--muted); }
.breakdown { margin-top: 18px; font-size: 14px; }
.breakdown div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.breakdown i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; }
.stack { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 14px; }
.side { position: sticky; top: 96px; }
.tour { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.tour h3 { font-size: 28px; margin-bottom: 4px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 12px; }
.day { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 8px 2px; text-align: center; cursor: pointer; font-size: 12px; line-height: 1.2; }
.day b { display: block; font: 400 22px/1.1 var(--serif); }
.day[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.agent-mini { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.agent-mini img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-mini b { display: block; }
.agent-mini span { font-size: 13px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 20, 17, .92); z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 4px; z-index: 70; transition: transform .3s; font-size: 15px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* responsive (shared) */
.m-bar { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .top .call { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 62px; gap: 12px; }
  .logo b { font-size: 19px; }
  .logo small { letter-spacing: .18em; }
  .top .call { padding: 8px 12px; font-size: 14px; }
  .top .call .full { display: none; }
  section { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: start; gap: 14px; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; height: auto; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .keyfacts { grid-template-columns: repeat(3, 1fr); }
  .keyfacts div:nth-child(4) { padding-left: 0; border-left: 0; }
  .keyfacts div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .prop-price { font-size: 38px; }
  .feat { columns: 1; }
  .mortgage { grid-template-columns: 1fr; padding: 20px; }
  .m-bar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--green); color: #fff; text-align: center; padding: 15px; border-radius: 6px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
  .prop-grid { padding-bottom: 40px; }
  footer { padding-bottom: 90px; }
}

/* ===== v2: "Neighborhood map" ===== */
@property --siding { syntax: '<color>'; inherits: true; initial-value: #e9ece5; }
@property --trim { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --roof { syntax: '<color>'; inherits: true; initial-value: #47484a; }
@property --door { syntax: '<color>'; inherits: true; initial-value: #9b4a2c; }
@property --grass { syntax: '<color>'; inherits: true; initial-value: #7f9b5c; }
@property --shutter { syntax: '<color>'; inherits: true; initial-value: #2f4a3c; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 4px; border: 0; background: var(--green); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.btn:hover { background: var(--green-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(251, 248, 242, .7); color: var(--ink); border: 1px solid var(--line); }
.btn.brass { background: var(--brass); }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
section, #tourForm, #contact { scroll-margin-top: 72px; }
.demo-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.home .top { background: rgba(244, 239, 230, .78); }

/* map primitives */
.map-wrap { position: relative; overflow: hidden; background: #e9e1d1; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.m-land { fill: #ebe3d3; }
.m-street-bg { fill: none; stroke: #f6f1e7; stroke-width: 2.2; opacity: .55; }
.m-street-bg2 { fill: none; stroke: #f6f1e7; stroke-width: 1.6; opacity: .35; }
.m-water { fill: #b8c8be; }
.m-creek { fill: none; stroke: #9fb6aa; stroke-width: 3.5; }
.m-green-strip { fill: none; stroke: #d3d9b8; stroke-width: 18; stroke-linecap: round; }
.m-park { fill: #c9d3a9; }
.m-area { fill: #e3d9c4; stroke: #f8f4ec; stroke-width: 3; transition: fill .3s; }
.m-street { fill: none; stroke: #faf6ee; stroke-width: 2.6; }
.m-street-dil { fill: none; stroke: #faf6ee; stroke-width: 3.2; }
.m-house { fill: #c9bba0; }
.m-drive { fill: none; stroke: #ded3bf; stroke-width: 1.4; }
.m-tree { fill: #a9b88b; opacity: .9; }
.m-lot { fill: #cfd7ad; }
.m-house-t { fill: var(--brick); }
.m-porch { fill: #7d3a22; }
.m-uptown { fill: #ddd2bb; stroke: #f8f4ec; stroke-width: 3; }
.m-hwy { fill: none; stroke: #d8c49c; stroke-width: 9; }
.m-hwy-s { fill: none; stroke: #d8c49c; stroke-width: 6; }
.m-art { fill: none; stroke: #f8f3ea; stroke-width: 5; }
.m-label { position: absolute; left: 0; top: 0; will-change: transform, opacity; white-space: nowrap; }
.m-label > * { transform: translate(-50%, -50%); }
.lbl-hood { font: 400 22px/1 var(--serif); color: var(--ink); text-shadow: 0 0 6px #ebe3d3, 0 0 2px #ebe3d3; display: block; }
.lbl-hood.ex { font-size: 16px; opacity: .75; }
.lbl-hood.small { font: 600 12px/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.lbl-hood.small em { display: block; font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
.lbl-street { font: italic 400 16px/1 var(--serif-text); color: var(--ink-2); text-shadow: 0 0 5px #faf6ee, 0 0 3px #faf6ee; display: block; }
.lbl-up { font: 400 15px/1 var(--serif); color: var(--ink-2); display: block; }
.target-pin { display: block; position: relative; }
.target-pin i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px rgba(155, 74, 44, .25); }
.target-pin i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--brick); animation: ping 1.8s ease-out infinite; }
.target-pin b { position: absolute; left: 18px; top: -12px; background: var(--ink); color: #fff; font: 600 13px/1 var(--sans); padding: 7px 9px; border-radius: 3px; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* story */
.story { height: 460vh; padding: 0; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage .map-wrap { position: absolute; inset: 0; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 70% 50%, transparent 55%, rgba(28, 42, 35, .18)); }
.house-reveal { position: absolute; right: max(32px, calc((100vw - 1240px) / 2 + 64px)); top: 17vh; width: min(40vw, 500px); background: radial-gradient(80% 80% at 50% 40%, #faf6ee, #ece4d4); border-radius: 6px; padding: 16px 16px 0; box-shadow: 0 30px 60px -30px rgba(28, 42, 35, .55); opacity: 0; pointer-events: none; transform-origin: 50% 80%; }
.house-reveal svg { width: 100%; height: auto; display: block; }
.house-reveal::after { content: 'Illustration · drawn from the listing'; display: block; font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 0 12px; }
.hood-pill { position: absolute; top: 86px; left: max(32px, calc((100vw - 1240px) / 2 + 32px)); z-index: 6; display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 6px 6px 16px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.hood-pill.on { opacity: 1; transform: none; pointer-events: auto; }
.hood-pill span { color: #d6b77a; }
.hood-pill select { appearance: none; background: #2c3a32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; color: #fff; border: 0; border-radius: 999px; padding: 8px 32px 8px 14px; font: 600 15px/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.pick-label { margin-top: 22px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hood-chips { margin-top: 10px; max-width: 560px; }
.hood-chips .chip { background: rgba(251, 248, 242, .9); }
.hood-chips .chip:hover { border-color: var(--ink); }
.hood-chips .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.map-wrap.pickable .m-area { cursor: pointer; }
.map-wrap.pickable .m-area:hover { fill: #d9ccb2; }
.stage .m-area.on { fill: #dccfb4; }
.eyebrow .dot.sold { background: var(--brick); box-shadow: 0 0 0 3px rgba(155, 74, 44, .2); }
.cards { position: absolute; left: 0; right: 0; bottom: 0; top: 72px; pointer-events: none; }
.card-s { position: absolute; left: max(32px, calc((100vw - 1240px) / 2 + 32px)); bottom: 9vh; width: min(500px, calc(100vw - 64px)); background: rgba(251, 248, 242, .92); backdrop-filter: blur(6px); padding: 30px 32px; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(28, 42, 35, .45); opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s; pointer-events: none; }
.card-s.on { opacity: 1; transform: none; pointer-events: auto; }
.card-s.s0 { background: none; box-shadow: none; backdrop-filter: none; padding: 0; width: min(640px, calc(100vw - 64px)); bottom: auto; top: 12vh; }
.card-s.s0 h1 { font-size: clamp(46px, 6.4vw, 96px); line-height: .96; margin: 18px 0 18px; text-shadow: 0 0 30px #ebe3d3, 0 0 12px #ebe3d3; }
.card-s.s0 h1 em { font-family: var(--serif-text); color: var(--green-2); }
.card-s.s0 p { font-size: 19px; color: var(--ink-2); max-width: 470px; text-shadow: 0 0 12px #ebe3d3; }
.card-s h2 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1; margin: 12px 0 12px; }
.card-s p { margin: 0; color: var(--ink-2); font-size: 17px; }
.card-s .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.spec-line { font-size: 19px !important; color: var(--ink) !important; font-weight: 500; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.mini-stats div { padding-top: 14px; }
.mini-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.mini-stats b { display: block; font: 400 28px/1.1 var(--serif); }
.mini-stats span { font-size: 12px; color: var(--muted); }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3f8a55; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(63, 138, 85, .2); }
.rail { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rail li { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex-direction: row-reverse; }
.rail i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-2); transition: background .3s, transform .3s; }
.rail li.on { color: var(--ink); }
.rail li.on i { background: var(--ink); transform: scale(1.3); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: opacity .3s; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--ink-2), transparent); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* valuation */
.value { background: var(--paper); }
.value-grid { display: grid; grid-template-columns: minmax(0, .82fr) 1fr; gap: 48px; align-items: start; }
.house-panel { position: sticky; top: 92px; background: radial-gradient(80% 70% at 50% 40%, #faf6ee, #ece4d4); border-radius: 6px; padding: 24px 24px 0; overflow: hidden; }
.house-panel .house-svg { max-height: 280px; margin: 0 auto; }
.house-svg { width: 100%; height: auto; display: block; transition: --siding .7s, --trim .7s, --roof .7s, --door .7s, --grass .7s, --shutter .7s; }
.house-svg g { transition: opacity .25s; }
.house-svg.swap g { opacity: .2; }
.price-plate { position: relative; background: var(--ink); color: #fff; margin: 0 -24px; padding: 22px 28px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; }
.price-plate .eyebrow { grid-column: 1 / -1; color: #d6b77a; margin-bottom: 8px; }
.price-plate b { font: 400 54px/1 var(--serif); letter-spacing: -.01em; }
.price-plate .range { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #b9c2bb; padding-bottom: 8px; }
.price-plate .range i { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(214, 183, 122, .2), #d6b77a, rgba(214, 183, 122, .2)); position: relative; }
.price-plate .range em { position: absolute; left: 50%; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; }
.price-plate small { grid-column: 1 / -1; color: #9aa49d; font-size: 13px; margin-top: 10px; }
.controls { display: grid; gap: 22px; }
.ctl label, .ctl .lbl { display: flex; justify-content: space-between; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ctl label b, .ctl .lbl b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 15px; }
.ctl select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: 16px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; border: 0; background: none; padding: 11px 6px; cursor: pointer; font-size: 15px; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
input[type=range] { width: 100%; accent-color: var(--green); height: 28px; margin: 0; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.comps { border-top: 1px solid var(--ink); }
.comps h4 { margin: 14px 0 4px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.comps div { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.comps div span:last-child { color: var(--muted); }
.lead { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.lead p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.lead p b { color: var(--ink); }
.lead input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.lead .btn { width: 100%; margin-top: 12px; }

/* explorer */
.homes { background: var(--paper-2); padding-bottom: 96px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filterbar select { padding: 8px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-size: 14px; }
.filterbar .chips:nth-of-type(2) { margin-left: 8px; }
.explorer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.ex-map { position: sticky; top: 84px; }
.ex-map .map-wrap { height: calc(100vh - 150px); min-height: 460px; border-radius: 6px; }
.ex-map .m-area { cursor: pointer; }
.ex-map .m-area:hover { fill: #d9ccb2; }
.ex-map .m-area.on { fill: #cdd6b8; }
.ex-map-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; font-size: 14px; color: var(--ink-2); min-height: 48px; }
.pin { pointer-events: auto; cursor: pointer; display: block; transform: translate(-50%, -100%) !important; background: var(--card); color: var(--ink); font: 600 13px/1 var(--sans); padding: 7px 9px; border-radius: 3px; box-shadow: 0 6px 16px -6px rgba(28, 42, 35, .5); position: relative; transition: background .2s, color .2s, transform .2s; border: 0; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--card); }
.pin small { font-weight: 500; color: var(--muted); font-size: 11px; }
.pin.on small, .pin:hover small { color: #cfd6cf; }
.pin.sold { background: #e6dccb; color: var(--muted); }
.pin.sold::after { border-top-color: #e6dccb; }
.pin.on, .pin:hover { background: var(--ink); color: #fff; z-index: 2; }
.pin.on::after, .pin:hover::after { border-top-color: var(--ink); }
.m-label.edge .pin::before { content: '↗'; margin-right: 4px; color: var(--brass); }
.ex-list .count { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.ex-list .count b { color: var(--ink); }
.row-card { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 12px; margin-bottom: 12px; background: var(--card); border-radius: 4px; text-decoration: none; border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.row-card.on { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(28, 42, 35, .5); }
.row-card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.row-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.row-card .price { font: 400 28px/1 var(--serif); margin: 6px 0 8px; }
.row-card .spec { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; }
.row-card .spec b { color: var(--ink); }
.row-card .addr { margin-top: 8px; font-size: 15px; }
.row-card .hood { font-size: 13px; color: var(--muted); }
.offmarket-row { display: block; background: var(--green); color: #e9ece6; padding: 22px; border-radius: 4px; text-decoration: none; }
.offmarket-row b { display: block; font: 400 26px/1.1 var(--serif); color: #fff; margin: 8px 0; }
.offmarket-row span { color: #d6b77a; font-weight: 600; }

/* notes */
.notes { background: var(--paper); }
.note-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; align-items: start; }
.note { margin: 0; background: var(--card); padding: 28px; border-radius: 3px; position: relative; box-shadow: 0 20px 40px -30px rgba(28, 42, 35, .5); border-top: 3px solid var(--brick); }
.note.n2 { margin-top: 48px; border-top-color: var(--green); }
.note.n3 { margin-top: 18px; border-top-color: var(--brass); }
.note::before { content: ''; position: absolute; top: -10px; left: 28px; width: 14px; height: 14px; border-radius: 50%; background: inherit; border: 3px solid currentColor; color: var(--ink); }
.note .coord { font: 600 11px/1 var(--sans); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }
.note blockquote { margin: 0; font: 400 22px/1.38 var(--serif-text); }
.note.n1 blockquote { font: 400 30px/1.25 var(--serif); }
.note figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.note figcaption b { color: var(--ink); }

/* team */
.team-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 36px; align-items: end; }
.team-copy h2 { margin: 14px 0 18px; }
.team-copy p { color: var(--ink-2); font-size: 17px; }
.team .facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: 26px; }
.team .facts div { padding: 14px 10px 0 0; }
.team .facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.team .facts b { display: block; font: 400 28px/1.1 var(--serif); }
.team .facts span { font-size: 12px; color: var(--muted); }
.agent img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: saturate(.85); border-radius: 2px; }
.agent b { display: block; font: 400 26px/1.1 var(--serif); margin-top: 14px; }
.agent span { color: var(--ink-2); font-size: 14px; }
.cta p { color: #b9c2bb; margin: 14px 0 0; font-size: 17px; }
.cta h2 { margin-top: 12px; }

@media (max-width: 1080px) {
  .value-grid, .explorer { grid-template-columns: 1fr; }
  .house-panel { position: relative; top: 0; }
  .ex-map { position: relative; top: 0; }
  .ex-map .map-wrap { height: 58vh; min-height: 380px; }
  .note-grid { grid-template-columns: 1fr 1fr; }
  .note.n1 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .home .top { background: rgba(244, 239, 230, .9); }
  .card-s { left: 12px; right: 12px; width: auto; bottom: 14px; padding: 20px 20px; }
  .card-s.s0 { top: 26px; left: 16px; right: 16px; bottom: auto; }
  .card-s.s0 h1 { font-size: 44px; }
  .card-s.s0 p { font-size: 16px; }
  .card-s h2 { font-size: 36px; margin: 8px 0; }
  .card-s p { font-size: 15px; }
  .mini-stats b { font-size: 22px; }
  .rail { right: 10px; top: 96px; transform: none; gap: 10px; }
  .rail span { display: none; }
  .scroll-hint { bottom: 18px; }
  .house-reveal { left: 16px; right: 16px; width: auto; top: 128px; padding: 10px 10px 0; }
  .house-reveal svg { max-height: 30vh; }
  .hood-pill { top: 74px; left: 12px; }
  .stage .lbl-hood.small { display: none; }
  .card-s.s0 .hood-chips .chip { font-size: 13px; padding: 5px 10px; }
  .pick-label { margin-top: 14px; }
  .house-panel { position: sticky; top: 62px; z-index: 5; box-shadow: 0 12px 24px -16px rgba(28, 42, 35, .45); }
  .house-panel .house-svg { height: 170px; }
  .price-plate { padding: 12px 16px 14px; row-gap: 4px; }
  .price-plate .eyebrow { margin-bottom: 2px; }
  .price-plate small { display: none; }
  .pin small { display: none; }
  .price-plate { grid-template-columns: 1fr; margin: 0 -14px; }
  .price-plate b { font-size: 34px; }
  .house-panel { padding: 14px 14px 0; margin: 0 -4px; }
  .lead .row2 { grid-template-columns: 1fr; gap: 10px; }
  .filterbar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 6px; scrollbar-width: none; }
  .filterbar .chips { flex-wrap: nowrap; }
  .filterbar > * { flex: none; }
  .chip { white-space: nowrap; }
  .row-card { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; }
  .row-card .price { font-size: 22px; margin: 2px 0 6px; }
  .row-card .spec { font-size: 13px; gap: 8px; }
  .row-card .addr { font-size: 14px; margin-top: 4px; }
  .note-grid { grid-template-columns: 1fr; }
  .note.n2, .note.n3 { margin-top: 0; }
  .note.n1 blockquote { font-size: 24px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .team-copy { grid-column: 1 / -1; }
  .team .facts b { font-size: 22px; }
  .agent b { font-size: 21px; }
  .lbl-hood { font-size: 17px; }
  .pin { font-size: 12px; padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .target-pin i::after, .scroll-hint i { animation: none; }
  .card-s, .house-svg, .house-svg g { transition: none; }
  html { scroll-behavior: auto; }
}

.prop-map { height: 340px; border-radius: 4px; }
.prop-map .m-area.on { fill: #cdd6b8; }
.map-note { font-size: 15px !important; color: var(--muted) !important; margin-top: 10px; }

/* ===== 05.10 (2): pick any home, photo at the end ===== */
.photo-reveal { position: absolute; z-index: 4; margin: 0; right: max(32px, calc((100vw - 1240px) / 2 + 64px)); top: 92px; bottom: 40px; width: min(46vw, 600px); display: flex; flex-direction: column; background: var(--card); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(28, 42, 35, .6); opacity: 0; visibility: hidden; transform-origin: 50% 70%; }
.photo-reveal .ph { position: relative; flex: 1; min-height: 0; background: var(--paper-2); }
.photo-reveal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-reveal figcaption { padding: 18px 22px 20px; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: end; }
.pr-price { font: 400 40px/1 var(--serif); grid-column: 1; }
.pr-addr { grid-column: 1; font-size: 16px; margin-top: 8px; }
.pr-spec { grid-column: 1; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pr-link { grid-column: 2; grid-row: 1 / 4; align-self: center; font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.explore-bar { position: absolute; top: 86px; left: max(32px, calc((100vw - 1240px) / 2 + 32px)); z-index: 6; display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 64px - min(46vw, 600px) - 96px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.explore-bar.on { opacity: 1; transform: none; pointer-events: auto; }
.explore-bar .hood-pill { position: static; opacity: 1; transform: none; pointer-events: auto; flex: none; }
.pill-homes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 24px 4px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.pill-homes::-webkit-scrollbar { display: none; }
.ph-home { flex: none; display: flex; align-items: baseline; gap: 6px; border: 1px solid var(--line); background: rgba(251, 248, 242, .94); border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); }
.ph-home b { font-weight: 700; }
.ph-home span { color: var(--ink-2); }
.ph-home small { display: none; }
.ph-home.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ph-home.on span { color: #cfd6cf; }
.homes-here { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.hh-label { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hh { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; border-radius: 3px; padding: 6px 8px; margin: 0 -8px; cursor: pointer; font-size: 14px; }
.hh b { font: 400 18px/1 var(--serif); }
.hh small { color: var(--muted); font-size: 12px; }
.hh:hover { background: var(--paper-2); }
.hh.on { background: var(--ink); color: #fff; }
.hh.on small { color: #cfd6cf; }
.spin { pointer-events: auto; display: block; transform: translate(-50%, -100%) !important; position: relative; border: 0; background: var(--card); color: var(--ink); font: 600 12px/1 var(--sans); padding: 6px 8px; border-radius: 3px; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(28, 42, 35, .55); margin-top: -8px; }
.spin::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--card); }
.spin i { display: none; }
.spin.sold { background: #e6dccb; color: var(--muted); }
.spin.sold::after { border-top-color: #e6dccb; }
.spin:hover, .spin.on { background: var(--brick); color: #fff; z-index: 3; }
.spin:hover::after, .spin.on::after { border-top-color: var(--brick); }
.stage .lbl-hood { pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 4px 6px; }
.stage .lbl-hood:hover { color: var(--brick); }
.stage .map-svg .m-area { cursor: pointer; }
.stage .map-svg .m-area:hover { fill: #d9ccb2; }
.rail button { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; flex-direction: row-reverse; }
.rail button:hover { color: var(--ink); }
.rail li { display: block; }
.hood-pill { box-shadow: none; }
@media (max-width: 760px) {
  .photo-reveal { left: 12px; right: 12px; width: auto; top: 158px; bottom: auto; height: 46vh; }
  .stage.at-home .rail { opacity: 0; pointer-events: none; }
  .rail { top: 168px; }
  .photo-reveal figcaption { padding: 12px 14px 14px; }
  .pr-price { font-size: 28px; }
  .pr-addr { font-size: 14px; margin-top: 4px; }
  .pr-spec { font-size: 12px; }
  .explore-bar { left: 12px; right: 12px; top: 70px; max-width: none; flex-direction: column; align-items: stretch; gap: 4px; }
  .explore-bar .hood-pill { align-self: flex-start; }
  .ph-home { padding: 6px 10px; font-size: 12px; }
  .ph-home span { display: none; }
  .homes-here { display: none; }
  .card-s.s1 .mini-stats { margin-top: 12px; }
}

.more-btn { width: 100%; margin: 0 0 12px; padding: 14px; border: 1px solid var(--ink); background: none; border-radius: 4px; font-weight: 600; cursor: pointer; }
.more-btn:hover { background: var(--ink); color: var(--paper); }
.pin.cluster { background: var(--ink); color: #fff; }
.pin.cluster::after { border-top-color: var(--ink); }
.pin.cluster b { font-weight: 500; color: #d6b77a; }
