/* dwellohomes.net V3 — components (ported from the brand lab). Token-driven; re-themes
   from tokens.css. No lab chrome here — real site styles only. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* Inner scroll panes keep a slim styled bar */
::-webkit-scrollbar{width:11px; height:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ink) 22%,transparent); border-radius:10px; border:3px solid transparent; background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--ink) 42%,transparent); background-clip:content-box}
/* Document scrollbar is HIDDEN — replaced by a custom floating overlay (#v3-scrollbar, scrollbar.js)
   so content reaches the true window edge and the bar sits over it, reserving no gutter. */
html{scrollbar-width:none}
html::-webkit-scrollbar, body::-webkit-scrollbar{display:none; width:0; height:0}
#v3-scrollbar{position:fixed; top:0; right:2px; width:8px; height:40px; border-radius:8px; z-index:2147483000;
  background:color-mix(in srgb,var(--ink) 28%,transparent); opacity:0; pointer-events:none;
  transition:opacity .3s, width .12s, background .12s; will-change:transform}
#v3-scrollbar.on{opacity:1}
#v3-scrollbar:hover, #v3-scrollbar.drag{width:11px; background:color-mix(in srgb,var(--ink) 48%,transparent)}
body{margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--font-body); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; line-height:1.08; letter-spacing:-.015em; text-wrap:balance}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.wrap{max-width:1160px; margin:0 auto; padding:0 28px}
.accent-word{font-family:var(--font-accent); color:var(--accent); font-weight:400; letter-spacing:0; font-size:calc(1em * var(--accent-scale, 1))}
.eyebrow{font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}

/* buttons */
.btn{font-family:var(--font-body); font-weight:700; font-size:15px; border-radius:var(--r); padding:13px 22px;
  border:1px solid transparent; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:.15s}
.btn i{font-size:16px}
.btn-primary{background:var(--accent); color:var(--accent-ink)} .btn-primary:hover{filter:brightness(.93)}
.btn-secondary{background:var(--accent2); color:var(--accent2-ink)} .btn-secondary:hover{filter:brightness(1.15)}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--border)} .btn-ghost:hover{border-color:var(--ink)}
.btn-accent-outline{background:transparent; color:var(--accent); border-color:var(--accent)} .btn-accent-outline:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.btn-ink{background:var(--ink); color:var(--ground)}
.btn-sm{padding:9px 15px; font-size:13px} .btn-lg{padding:16px 30px; font-size:17px}
.btn-link{display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:700; font-size:15px}
.btn-link i{transition:.15s} .btn-link:hover i{transform:translateX(3px)}

/* header */
.hdr-wrap{position:sticky; top:0; z-index:50}
.hdr-strip{background:var(--accent); color:#fff; text-align:center; font-size:14px; font-weight:500; line-height:1.3; padding:6px 16px}
.hdr-strip b{font-weight:700}
/* eXp Realty must be a crawlable link (eXp policy) at the SAME font size as the team name (IL 68 Adm. Code 1450.715). */
.hdr-strip a{color:#fff; font-weight:700; text-decoration:underline; text-underline-offset:2px}
.hdr{background:var(--bar-bg); backdrop-filter:blur(14px); border-bottom:1px solid var(--border)}
.hdr-in{padding:6px 24px; display:flex; align-items:center; gap:28px}
.hdr-logo{display:inline-flex; align-items:center; line-height:0}
.hdr-logo svg{height:46px; width:auto; display:block}
.logo{font-family:var(--font-display); font-weight:700; font-size:23px; letter-spacing:-.02em}
.hdr nav{display:flex; gap:24px; font-size:15px; font-weight:600; color:var(--ink-soft)}
.hdr nav a:hover{color:var(--ink)}
.hdr-actions{margin-left:auto; display:flex; align-items:center; gap:14px}
.hdr-signin{font-family:var(--font-body); font-size:15px; font-weight:600; color:var(--ink-soft); cursor:pointer}
.hdr-signin:hover{color:var(--ink)}
/* Mobile: the white header is hidden (nav → bottom pill; account → My-dwello tab; contact → per-page CTAs). The
   orange strip stays as a clean, centered brokerage/compliance line — treated as the thin legal bar it is. */
@media(max-width:820px){
  .hdr{display:none}
  .hdr-strip{padding:7px 8px; white-space:nowrap; overflow:hidden}
  .hdr-strip-txt{font-size:min(2.45vw, 12.5px); letter-spacing:-.01em}   /* viewport-scaled so the FULL line fits one row on any phone (down to 320px) */
  /* iOS auto-zooms any focused input whose font-size is < 16px (and it ignores user-scalable=no), so every
     text-entry field is pinned to 16px on phones — the field focuses with no zoom. !important beats the
     per-component 14–15px sizes; checkbox/radio are unaffected visually. */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font-size:16px !important }
}

/* ===== Mobile top bar (wordmark + hamburger) + slide-in nav drawer — the full site nav on phones ===== */
.mtop{display:none}
.mtop-logo svg{height:24px; width:auto; display:block}
.mtop-burger{display:flex; flex-direction:column; gap:4px; background:none; border:none; padding:9px 6px; cursor:pointer; -webkit-tap-highlight-color:transparent}
.mtop-burger span{display:block; width:22px; height:2px; border-radius:2px; background:var(--ink)}
/* visibility (delayed off) instead of display:none — keeps the panel mounted through the slide-OUT so closing
   animates too; display:none would snap it away instantly. */
.mdrawer{position:fixed; inset:0; z-index:300; visibility:hidden; transition:visibility 0s .3s}
.mdrawer.is-open{visibility:visible; transition:visibility 0s 0s}
.mdrawer-scrim{position:absolute; inset:0; background:rgba(26,20,15,.5); opacity:0; transition:opacity .28s ease}
.mdrawer.is-open .mdrawer-scrim{opacity:1}
.mdrawer-panel{position:absolute; top:0; bottom:0; right:0; width:min(320px,84vw); background:var(--ground); box-shadow:-8px 0 34px -16px rgba(0,0,0,.4); transform:translateX(100%); transition:transform .28s cubic-bezier(.2,.7,.3,1); overflow-y:auto; display:flex; flex-direction:column; padding:calc(env(safe-area-inset-top) + 8px) 0 max(env(safe-area-inset-bottom),16px)}
.mdrawer.is-open .mdrawer-panel{transform:translateX(0)}
.mdrawer-head{display:flex; align-items:center; justify-content:space-between; padding:4px 16px 14px; border-bottom:1px solid var(--border)}
.mdrawer-logo svg{height:24px; width:auto; display:block}
.mdrawer-x{background:none; border:none; font-size:22px; color:var(--ink-soft); cursor:pointer; padding:6px; line-height:1}
.mdrawer-links{display:flex; flex-direction:column; padding:6px 0}
.mdrawer-link{padding:15px 20px; font-family:var(--font-body); font-size:17px; font-weight:600; color:var(--ink); text-decoration:none}
.mdrawer-link:active{background:var(--surface)}
.mdrawer-foot{margin-top:auto; padding:16px}
.mdrawer-cta{width:100%}
@media(max-width:820px){
  .mtop{display:flex; align-items:center; justify-content:space-between; padding:8px 12px 8px 14px; background:var(--ground); border-bottom:1px solid var(--border)}
  body.det-listing .mtop{display:none}   /* immersive listing owns the full viewport */
  /* STICK the top header (compliance strip + hamburger bar) — it must not scroll/swipe away with the page. */
  .hdr-wrap{position:sticky; top:0; z-index:50}
}

/* ===== View Transitions — the REAL page nav for opening/closing a listing slides like a native drill-down.
   Scoped to the "listing" / "listing-back" types set in head() (pageswap/pagereveal); every other nav = instant.
   No iframe, bfcache-safe. Unsupported browsers ignore all of this and navigate instantly (no regression). ===== */
@view-transition{ navigation:auto }
::view-transition-old(root), ::view-transition-new(root){ animation:none }   /* default = instant for non-listing navs */
html:active-view-transition-type(listing)::view-transition-old(root){ animation:vtOutLeft .30s cubic-bezier(.2,.7,.3,1) both }
html:active-view-transition-type(listing)::view-transition-new(root){ z-index:2; animation:vtInRight .30s cubic-bezier(.2,.7,.3,1) both }
html:active-view-transition-type(listing-back)::view-transition-old(root){ z-index:2; animation:vtOutRight .28s cubic-bezier(.4,0,1,1) both }
html:active-view-transition-type(listing-back)::view-transition-new(root){ animation:vtInLeft .28s cubic-bezier(.4,0,1,1) both }
@keyframes vtInRight{ from{transform:translateX(100%)} to{transform:translateX(0)} }
@keyframes vtOutLeft{ from{transform:translateX(0)} to{transform:translateX(-24%)} }
@keyframes vtOutRight{ from{transform:translateX(0)} to{transform:translateX(100%)} }
@keyframes vtInLeft{ from{transform:translateX(-24%)} to{transform:translateX(0)} }

/* hero — photo + warm-orange tone + dark scrim for white text */
.hero{position:relative; color:#fff; overflow:hidden; background:#101216}
.hero::before{content:""; position:absolute; inset:0; background:var(--hero-img) center/cover}
.hero::after{content:""; position:absolute; inset:0; background:
  linear-gradient(100deg, rgba(10,12,16,.66) 0%, rgba(10,12,16,.42) 34%, rgba(10,12,16,.10) 72%, rgba(10,12,16,0) 86%),
  linear-gradient(180deg, rgba(10,12,16,0) 44%, rgba(10,12,16,.40))}
.hero .wrap{position:relative; z-index:1; padding-top:64px; padding-bottom:56px}
.hero h1{font-size:clamp(38px,6vw,62px); font-weight:600; max-width:15ch; color:#fff}
.hero h1 .accent-word{color:#fff}  /* photo hero: accent word pops by contrast (white), script carries the signature. Orange elsewhere on light surfaces. */
.hero p{font-size:19px; color:#fff; max-width:50ch; margin:18px 0 24px; text-shadow:0 1px 3px rgba(0,0,0,.55), 0 1px 16px rgba(0,0,0,.4)}
.hsearch{max-width:600px}
.searchbar{display:flex; border-radius:var(--r-lg); overflow:hidden; background:var(--card); box-shadow:0 10px 34px -14px rgba(0,0,0,.5)}
.searchbar input{flex:1; border:1px solid var(--border); border-right:none; border-radius:var(--r-lg) 0 0 var(--r-lg); padding:16px 18px; font-family:var(--font-body); font-size:16px; outline:none; background:transparent; color:var(--ink)}
.searchbar .btn{border-radius:0; padding:0; display:grid; place-items:center; overflow:hidden; white-space:nowrap; transition:width .28s cubic-bezier(.4,0,.2,1)}
.searchbar .hs-go{width:62px}
.searchbar .hs-go i{font-size:21px}
.searchbar .hs-sell{width:158px; font-size:15px}
/* Buy / Sell / Rent connected tabs — white; selected merges into the bar with orange text (single bar border, no double line).
   padding-left clears the bar's corner radius so the active tab sits on the FLAT top edge (no gap at the rounded corner). */
.hs-conn{display:flex; gap:5px; padding-left:18px}
.hs-conn button{font-family:var(--font-body); font-weight:700; font-size:14px; color:var(--ink-soft); background:var(--card); border:1px solid var(--border); border-bottom:none; cursor:pointer; padding:9px 22px; border-radius:var(--r-lg) var(--r-lg) 0 0; transition:color .15s}
.hs-conn button:hover{color:var(--ink)}
.hs-conn button.on{color:var(--accent); margin-bottom:-1px; position:relative; z-index:1}
.hero-nl{margin-top:16px; font-size:14px; color:rgba(255,255,255,.86); text-shadow:0 1px 8px rgba(0,0,0,.4)}
.hero-talk{display:inline-flex; align-items:center; gap:7px; margin-top:15px; font-weight:700; font-size:15px; color:#fff; cursor:pointer; text-shadow:0 1px 8px rgba(0,0,0,.4)}
.hero-talk i{font-size:16px; transition:.15s} .hero-talk:hover i{transform:translateX(3px)}
.hero-mred{margin-top:26px; font-size:12px; color:rgba(255,255,255,.72); text-shadow:0 1px 6px rgba(0,0,0,.4)}

/* Agent hero — clean LIGHT hero (the site's own background), dark text, knockout figure bottom-anchored
   on the right, text/search on the left. No house photo. Waist/thigh-up crops land on the hero's bottom
   edge (he "stands" in the frame), with a soft contact shadow at his feet so he doesn't float. */
.hero.is-agent{min-height:clamp(480px,60vh,640px); background:var(--ground); color:var(--ink)}
.hero.is-agent::before{display:none}   /* no house photo */
.hero.is-agent::after{background:      /* soft contact shadow under the figure */
  radial-gradient(42% 13% at 80% 100%, rgba(0,0,0,.10), rgba(0,0,0,0) 72%)}
.hero.is-agent h1{color:var(--ink)}
.hero.is-agent h1 .accent-word{color:var(--accent)}   /* "home" pops orange on the light surface */
.hero.is-agent p{color:var(--ink-soft); text-shadow:none}
.hero.is-agent .hero-talk{color:var(--ink); text-shadow:none}
.hero.is-agent .hero-nl,.hero.is-agent .hero-mred{color:var(--muted); text-shadow:none}
.hero-agent{position:absolute; right:clamp(8px,5vw,72px); bottom:0; height:100%; width:auto;
  max-width:44%; object-fit:contain; object-position:bottom center; z-index:1; pointer-events:none;
  /* even rim (separates the white shirt from the white bg) + light depth + floor grounding */
  filter:drop-shadow(0 0 1.5px rgba(26,20,15,.30)) drop-shadow(0 2px 3px rgba(26,20,15,.14)) drop-shadow(0 20px 28px rgba(0,0,0,.14))}
@media(max-width:900px){ .hero.is-agent .wrap{padding-right:34%} .hero-agent{max-width:40%; right:0} }
@media(max-width:660px){ .hero-agent{display:none} .hero.is-agent .wrap{padding-right:0} .hero.is-agent{min-height:0} }
.hero-picker{position:absolute; top:16px; right:16px; z-index:3; display:flex; align-items:center; gap:6px}
.hero-picker span{font-size:11px; color:rgba(255,255,255,.85); margin-right:2px}
.hero-picker button{width:30px; height:30px; border-radius:6px; border:1.5px solid rgba(255,255,255,.5); background:rgba(0,0,0,.32); color:#fff; font-weight:700; font-size:12px; cursor:pointer}
.hero-picker button.on{background:var(--accent); border-color:var(--accent)}

/* section */
.section{padding:56px 0}
.section-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:24px}
.section-head h2{font-size:30px; font-weight:600}

/* guides / blogs — shared card (illustration band + copy) */
.guides .section-head{align-items:flex-end}
.guides-sub{color:var(--ink-soft); font-size:15px; margin:6px 0 0}
.guides-seeall{flex:none; white-space:nowrap; align-self:flex-end}
.guides-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:stretch}
.gcard{display:flex; flex-direction:column; background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s; cursor:pointer; text-decoration:none}
.gcard:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.gcard-ill{aspect-ratio:3/2; background:var(--surface); border-bottom:1px solid var(--border); overflow:hidden}
.gcard-ill img{width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.8); transform-origin:center}
.gcard-body{padding:16px 18px 15px; display:flex; flex-direction:column; flex:1}
.gcard-cat{font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:8px}
.gcard-title{font-family:var(--font-display); font-weight:600; font-size:19px; line-height:1.2; color:var(--ink); margin:0; text-wrap:wrap}
.gcard-sum{color:var(--muted); font-size:14px; line-height:1.5; margin:7px 0 10px}
.gcard-read{display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:700; font-size:14px; cursor:pointer; text-decoration:none}
.gcard-body .gcard-read{margin-top:auto; align-self:flex-start}
.gcard-read i{font-size:15px; transition:transform .15s}
.gcard:hover .gcard-read i{transform:translateX(3px)}
@media(max-width:820px){ .guides-grid{grid-template-columns:1fr} .guides-seeall{display:none} }

/* ── guides + blog: hub hero + article (restrained centered reading column) ── */
.post-hero{padding:56px 0 8px; border-bottom:1px solid var(--border)}
.post-hero h1{font-family:var(--font-display); font-weight:600; font-size:40px; line-height:1.05; color:var(--ink)}
.post-hero-dek{margin-top:12px; color:var(--muted); font-size:18px; line-height:1.5; max-width:60ch}
.post-empty{color:var(--muted); font-size:16px; padding:24px 0}

.post-wrap{max-width:720px; margin:0 auto; padding:0 24px}
.post{padding:40px 0 8px}
.post-crumbs{font-size:13px; color:var(--muted); margin-bottom:22px; display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.post-crumbs a{color:var(--muted); text-decoration:none}
.post-crumbs a:hover{color:var(--accent)}
.post-crumbs span{color:var(--border)}
.post-crumbs span:last-child{color:var(--ink-soft)}   /* current page — readable (was inheriting the faint separator color) */
.post-cat{font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:10px}
.post-title{font-family:var(--font-display); font-weight:600; font-size:38px; line-height:1.1; color:var(--ink); margin:0}
.post-dek{margin-top:14px; font-size:19px; line-height:1.5; color:var(--muted)}
.post-byline{margin-top:18px; display:flex; gap:10px; align-items:center; font-size:14px; color:var(--muted); flex-wrap:wrap}
.post-author{font-weight:700; color:var(--ink)}
.post-dot{color:var(--border)}
.post-ill{margin:28px 0 4px; aspect-ratio:3/2; background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden}
.post-ill img{width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.6); transform-origin:center}

.post-body{margin-top:8px}
.post-body h2{font-family:var(--font-display); font-weight:600; font-size:26px; line-height:1.2; color:var(--ink); margin:34px 0 12px}
.post-body h3{font-family:var(--font-display); font-weight:600; font-size:20px; color:var(--ink); margin:26px 0 10px}
.post-body p{font-size:17px; line-height:1.72; color:var(--ink); margin:0 0 18px}
.post-body ul,.post-body ol{margin:0 0 18px; padding-left:24px}
.post-body li{font-size:17px; line-height:1.7; color:var(--ink); margin:0 0 8px}
.post-body a{color:var(--accent); text-decoration:underline; text-underline-offset:2px}
.post-body strong{font-weight:700; color:var(--ink)}
.post-body blockquote{margin:0 0 20px; padding:6px 0 6px 20px; border-left:3px solid var(--accent); color:var(--muted); font-size:18px; line-height:1.6}
.post-body hr{border:0; border-top:1px solid var(--border); margin:32px 0}
.post-body code{font-family:var(--font-mono,monospace); font-size:14px; background:var(--surface); padding:2px 6px; border-radius:6px}

.post-faq{max-width:720px; margin:36px auto 0; border-top:1px solid var(--border); padding-top:28px}
.post-faq h2{font-family:var(--font-display); font-weight:600; font-size:24px; color:var(--ink); margin:0 0 12px}
.post-q{border-bottom:1px solid var(--border); padding:14px 0}
.post-q summary{font-weight:600; font-size:17px; color:var(--ink); cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:12px}
.post-q summary::-webkit-details-marker{display:none}
.post-q summary::after{content:"+"; color:var(--accent); font-weight:700}
.post-q[open] summary::after{content:"–"}
.post-a{margin-top:10px; font-size:16px; line-height:1.65; color:var(--muted)}

.post-cta{margin:44px auto 64px; max-width:720px; padding:0 24px}
.post-cta-in{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:28px 26px; text-align:center}
.post-cta-in h3{font-family:var(--font-display); font-weight:600; font-size:22px; color:var(--ink); margin:0 0 6px}
.post-cta-in p{color:var(--muted); font-size:15px; line-height:1.5; margin:0 0 16px; max-width:46ch; margin-left:auto; margin-right:auto}
.post-notfound{max-width:600px; margin:0 auto; padding:100px 24px; text-align:center; color:var(--muted)}
.post-notfound i{font-size:44px; color:var(--accent)}
.post-notfound h1{font-family:var(--font-display); font-weight:600; font-size:30px; color:var(--ink); margin:14px 0 8px}
@media(max-width:640px){ .post-title{font-size:30px} .post-hero h1{font-size:32px} .post-body p,.post-body li{font-size:16px} }

/* ── /homes index + town guide (neighborhood-guide scaffold) ── */
.town-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.town-card{display:flex; flex-direction:column; gap:4px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:22px 22px 18px; text-decoration:none; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s}
.town-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.town-card-name{font-family:var(--font-display); font-weight:600; font-size:22px; color:var(--ink)}
.town-card-cty{font-size:13px; color:var(--muted)}
.town-card-stat{margin-top:10px; font-size:14px; font-weight:600; color:var(--ink)}
.town-card-go{margin-top:14px; display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:700; font-size:14px}
@media(max-width:820px){ .town-grid{grid-template-columns:1fr} }

.town-county-sec{padding:30px 0}
.town-county-sec .section-head{margin-bottom:16px}
.town-hero{padding:48px 0 6px; border-bottom:1px solid var(--border)}
.town-hero h1{font-family:var(--font-display); font-weight:600; font-size:40px; line-height:1.06; color:var(--ink); margin-top:14px}
.town-lead{margin-top:12px; color:var(--muted); font-size:19px; line-height:1.5; max-width:62ch}

/* dated market snapshot — the AI-extractable block */
.mkt{padding:34px 0 6px}
.mkt-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap}
.mkt-head h2{font-family:var(--font-display); font-weight:600; font-size:26px; color:var(--ink)}
.mkt-asof{font-size:13px; color:var(--muted); font-weight:600}
.mkt-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
.mkt-stat{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px 16px; text-align:center; box-shadow:var(--shadow-card)}
.mkt-n{font-family:var(--font-display); font-weight:700; font-size:30px; color:var(--ink); line-height:1}
.mkt-l{margin-top:6px; font-size:12.5px; color:var(--muted)}
.mkt-note{margin-top:16px; font-size:16px; line-height:1.6; color:var(--ink); max-width:78ch}
.mkt-note strong{font-weight:700}
@media(max-width:640px){ .mkt-grid{grid-template-columns:repeat(2,1fr)} .town-hero h1{font-size:32px} }

.town-rail{padding-top:34px}
.town-seeall{display:inline-flex; align-items:center; gap:6px; color:var(--accent); font-weight:700; font-size:14px; text-decoration:none; white-space:nowrap}
/* town body: ONE container (.wrap, 1160) like the market strip + rail above — consistent left edge.
   Prose caps at a readable width, left-aligned; grids (essentials/nearby) span the full width. */
.town-body{padding-top:8px}
.town-body>.post-body:first-child{margin-top:8px}
.town-body .post-body{max-width:768px}
.town-know{margin-top:10px; max-width:768px}
.town-know h2,.town-locals h2,.town-nearby h2{font-family:var(--font-display); font-weight:600; font-size:24px; color:var(--ink); margin:28px 0 12px}
.town-locals{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px 22px; margin-top:24px; max-width:860px}
.town-locals-list{margin:0; padding-left:20px}
.town-locals-list li{font-size:16px; line-height:1.65; color:var(--ink); margin-bottom:8px}

.town-essentials{margin-top:28px}
.te-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.te-item{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow-card)}
.te-h{display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; color:var(--ink); margin-bottom:6px}
.te-h i{color:var(--accent); font-size:18px}
.te-item p{font-size:14px; line-height:1.55; color:var(--muted); margin:0}
@media(max-width:820px){ .te-grid{grid-template-columns:1fr} }

.town-nearby-chips{display:flex; flex-wrap:wrap; gap:10px}
.town-chip{display:inline-flex; align-items:center; padding:8px 15px; border-radius:999px; border:1px solid var(--border); background:var(--card); color:var(--ink); font-weight:600; font-size:14px; text-decoration:none; transition:border-color .15s, color .15s}
a.town-chip:hover{border-color:var(--accent); color:var(--accent)}
.town-chip-plain{color:var(--muted); cursor:default}
/* town FAQ + CTA: align to the wrap's left edge (override the article-column centering), readable width */
.post-faq.town-faq{max-width:820px; margin-left:0; margin-right:0; margin-top:8px}
.town-cta{max-width:1160px; margin:44px auto 64px; padding:0 28px}
.town-cta .post-cta-in{max-width:768px; margin-left:0}

/* listing card */
.listings{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.lc{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s; cursor:pointer}   /* whole card opens the listing */
.lc-sk{cursor:default}   /* skeleton placeholders aren't clickable */
.lc:hover, .lc.is-hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}   /* .is-hover (map pill highlight) = the SAME standard lift, nothing extra */
.lc-photo{aspect-ratio:3/2; position:relative; overflow:hidden; background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 26%,#dfd9d3),color-mix(in srgb,var(--accent2) 22%,#cfc9c3))}
/* photo carousel: a flex track of full-width slides, translateX to advance */
.lc-track{position:absolute; inset:0; z-index:0; display:flex; height:100%; transition:transform .3s cubic-bezier(.4,0,.2,1); will-change:transform; touch-action:pan-y}   /* pan-y → vertical scroll native, horizontal swipe is ours */
.lc-slide{flex:0 0 100%; width:100%; height:100%; object-fit:cover; display:block}
.lc-photo .lc-hl, .lc-photo .lc-fav, .lc-photo .lc-locate{z-index:1}
.lc-arrow, .lc-dots{z-index:2}
/* Phosphor caret arrows — bare white icon + drop-shadow (no button chrome, less clutter next to heart/locate).
   Reveal on CARD hover, same as heart/locate. Hover-capable devices only — touch uses swipe. */
.lc-arrow{position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border:none; background:transparent; display:grid; place-items:center; cursor:pointer; opacity:0; transition:opacity .15s ease}
.lc-prev{left:2px} .lc-next{right:2px}
.lc-arrow i{font-size:26px; color:#fff; filter:drop-shadow(0 1px 4px rgba(0,0,0,.55)); transition:transform .12s ease}
.lc:hover .lc-arrow{opacity:1}
.lc-arrow:hover i{transform:scale(1.12)}
.lc-arrow:active i{transform:scale(.9)}
@media (hover:none){ .lc-arrow{display:none} }
.lc-dots{position:absolute; left:0; right:0; bottom:9px; display:flex; justify-content:center; gap:5px; pointer-events:none}
.lc-dot{width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); box-shadow:0 0 2px rgba(0,0,0,.35); pointer-events:auto; cursor:pointer; transition:background .15s, transform .15s}
.lc-dot.on{background:#fff; transform:scale(1.15)}
.lc-hl{position:absolute; top:12px; left:12px; background:var(--accent); color:var(--accent-ink); font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:6px 10px; border-radius:var(--r-sm)}
.lc-hl.is-closed{background:var(--st-closed); color:#fff}
.lc-fav{position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.92); border:none; display:grid; place-items:center; cursor:pointer; opacity:0; transform:translateY(4px); transition:opacity .15s ease, transform .15s ease; box-shadow:var(--shadow-card)}
.lc-fav i{font-size:15px; color:var(--ink); transition:color .15s}
.lc:hover .lc-fav{opacity:1; transform:translateY(0)}     /* reveal on DIRECT card hover only (not map-pill highlight) */
.lc-fav:hover i{color:var(--accent)}
.lc-fav.is-saved{opacity:1; transform:none}               /* a saved heart stays visible */
.lc-fav.is-saved i{color:var(--accent)}
.lc-fav:active{transform:scale(.86)}
.lc-fav.pop{animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}
@media (max-width:900px){ .lc-fav{opacity:1; transform:none} }   /* touch (no hover): always visible */
@keyframes favPop{0%{transform:scale(1)}40%{transform:scale(1.3)}72%{transform:scale(.9)}100%{transform:scale(1)}}
/* ── Tactile tap "pop" (kit-wide) ─────────────────────────────────────────────────────────────────
   ONE delegated handler (shell.js) adds .pop to any control carrying a marker on click:
     data-pop      → the control itself bounces (icon buttons, chips, tabs, arrows).
     data-pop-ico  → only its icon bounces (wider text buttons, so the label doesn't scale).
   Add a marker to make a control pop — no per-element JS. Reduced-motion disables it (below). */
[data-pop].pop{animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}
[data-pop-ico].pop :is(i,.mnav-ic){animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}
/* "Show on map" — reveals on card hover (desktop split-view only); flies the map camera to the listing */
/* Locate = fly the map to this listing → only meaningful in the search grid (which has the side-by-side map).
   Hidden on every other .lc surface (detail "similar/nearby homes", comps, homepage) where there's no map. */
.lc-locate{display:none; position:absolute; bottom:10px; left:10px; z-index:1; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.92); border:none; place-items:center; cursor:pointer; opacity:0; transform:translateY(4px); transition:opacity .15s ease, transform .15s ease; box-shadow:var(--shadow-card)}
.srp-grid .lc-locate{display:grid}
.lc-locate i{font-size:15px; color:var(--ink); transition:color .15s}
.srp-grid .lc:hover .lc-locate{opacity:1; transform:translateY(0)}     /* reveal on DIRECT card hover only — if you're on the pill you don't need it */
.lc-locate:hover i{color:var(--accent)}
.lc-locate:active{transform:scale(.9)}
.lc-locate.pop{animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}   /* same click-pop as the heart */
@media (max-width:900px){ .srp-grid .lc-locate{display:none} }   /* no side-by-side map on mobile */
.lc-body{padding:4px 16px 10px}
.lc-top{display:flex; align-items:center; justify-content:space-between; gap:10px}
.lc-price{font-family:var(--font-display); font-weight:700; font-size:29px; letter-spacing:-.02em}
.lc-priceblock{display:flex; flex-direction:column; gap:1px}   /* stack the lead + muted figure so the est /mo always shows (never dropped for width); srp-monthly's order:-1 puts the searched-by number on top */
.lc-mo{font-size:12.5px; color:var(--ink-soft); font-weight:600; font-variant-numeric:tabular-nums}
.lc-mo[data-tip]{cursor:help; text-decoration:underline; text-decoration-style:dotted; text-decoration-color:color-mix(in srgb,var(--ink-soft) 55%,transparent); text-underline-offset:3px}
/* est /mo leads with the number; "est." is a muted qualifier to the right (card + detail hero share this) */
.mo-est{color:var(--muted); font-weight:600; font-size:clamp(11px,.62em,15px); letter-spacing:0; margin-left:5px}
.srp-grid .lc-mo{font-size:12px}
/* monthly-payment mode: /mo becomes the headline, list price the small secondary */
.srp-grid.srp-monthly .lc-mo{order:-1; font-family:var(--font-display); font-size:20px; font-weight:700; color:var(--ink); letter-spacing:-.02em; text-decoration:none}
.srp-grid.srp-monthly .lc-priceblock:has(.lc-mo) .lc-price{font-size:13px; font-weight:600; color:var(--ink-soft)}
.lc-tip{position:fixed; z-index:300; max-width:250px; background:var(--ink); color:var(--ground); font-size:11px; font-weight:500; line-height:1.45; padding:9px 12px; border-radius:9px; box-shadow:var(--shadow-lift); pointer-events:none; opacity:0; transition:opacity .12s; text-transform:none; letter-spacing:normal}
.lc-tip.show{opacity:1}
.srp-disc{font-size:11px; color:var(--ink-soft); line-height:1.5; padding:6px 16px 26px}
.lc-status{display:inline-flex; align-items:center; background:var(--sc,var(--st-active)); color:#fff; font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:4px 8px; border-radius:var(--r-xs); white-space:nowrap}
.lc-specs{display:flex; gap:18px; margin:8px 0; font-size:19px; color:var(--muted); font-weight:600}   /* symmetric top/bottom → row sits centered between price and address */
.lc-specs span{display:inline-flex; align-items:center; gap:7px} .lc-specs i{font-size:23px; color:var(--muted)}
.lc-specs b{color:var(--ink); font-weight:700}
.lc-addr{color:var(--ink); font-size:20px; font-weight:500; margin-top:0; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lc-addr2{color:var(--muted); font-size:16px; font-weight:500; margin-top:2px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lc-mls{margin-top:6px; font-size:11px; color:var(--muted); letter-spacing:.01em}

/* featured rail — full-bleed peek carousel with a symmetric edge gutter (left card ↔ right arrows) */
.featured{--rail-gutter:clamp(20px, 4vw, 56px)}
.featured .wrap{max-width:none; margin:0; padding-left:var(--rail-gutter); padding-right:var(--rail-gutter)}
.featured .section-head{align-items:center}
.rail-tools{display:flex; align-items:center; gap:12px}
.rail-arrow{width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--card); color:var(--ink); display:grid; place-items:center; cursor:pointer; transition:.15s; flex:none}
.rail-arrow i{font-size:17px}
.rail-arrow:hover:not(:disabled){border-color:var(--ink)}
.rail-arrow:disabled{opacity:.32; cursor:default}
/* overflow-x:auto forces overflow-y:auto → a lifted card's top/shadow would clip.
   Generous vertical padding gives the lift + shadow room; negative margins keep the rhythm. */
.rail{display:flex; align-items:stretch; gap:20px; overflow-x:auto;   /* stretch → every card in a rail matches the tallest */
  margin:-10px 0 -38px;
  padding:16px var(--rail-gutter) 44px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch}
.rail::-webkit-scrollbar{display:none}
.rail .lc{flex:0 0 360px; scroll-snap-align:start; display:flex; flex-direction:column}   /* column so the body fills the stretched height */
.rail .lc .lc-body{flex:1 1 auto}
/* Homepage rail cards are bigger → put the est /mo on the SAME line as the price (search grid keeps the stack). */
.rail .lc-priceblock{flex-direction:row; align-items:baseline; gap:8px; flex-wrap:wrap}

/* Agent-page team-stat tiles — v3 card chrome, no tinted background, count-up numbers. */
/* Agent sections rotate off-white bands like the rest of the site: stats + Recent sales = --surface. */
.astats-sec{background:var(--surface); border-top:1px solid var(--border)}
.featured.is-soft{background:var(--surface); border-top:1px solid var(--border)}
.why.is-bio{background:var(--ground)}                                             /* agent pages: white 'About me' */
.sell.is-soft{background:var(--surface)}                                          /* agent pages: off-white 'home worth' */
.astats{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.astat{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card); padding:24px 22px}
.astat-ic i{font-size:24px; color:var(--accent)}
.astat-num{font-family:var(--font-display); font-weight:800; font-size:38px; letter-spacing:-.02em; line-height:1.05; margin:12px 0 4px; font-variant-numeric:tabular-nums}
.astat-lbl{color:var(--ink); font-size:15px; font-weight:600}
.astat-sub{display:block; color:var(--muted); font-size:12.5px; font-weight:400; margin-top:2px}
@media(max-width:720px){ .astats{gap:10px} .astat{padding:16px 14px} .astat-num{font-size:26px} .astat-lbl{font-size:13px} .astat-sub{font-size:11px} }

/* /agents team page — team-stats hero (cards/profiles land under this later) */
.agents-hero{padding:48px 0 40px}
.agents-crumb{font-size:13px; color:var(--muted); margin-bottom:14px}
.agents-crumb a{color:var(--ink-soft)} .agents-crumb a:hover{color:var(--ink)} .agents-crumb span{margin:0 6px}
.agents-h1{font-size:clamp(30px,5vw,46px); font-weight:600; letter-spacing:-.02em; margin:0}
.agents-lede{color:var(--ink-soft); font-size:18px; line-height:1.5; max-width:62ch; margin:14px 0 28px}
@media(max-width:720px){ .agents-hero{padding:32px 0 28px} .agents-lede{font-size:16px} }
/* two-column hero: text left, team stats right-aligned to the container edge */
.agents-hero-in{display:flex; align-items:center; justify-content:space-between; gap:48px; flex-wrap:wrap}
.agents-hero-text{flex:1 1 340px; min-width:0}
.agents-hero-text .agents-lede{margin-bottom:0}
/* compact team-stats tiles sitting on the right */
.agents-astats{gap:12px; margin-top:0; flex:0 1 auto}
.agents-astats .astat{padding:15px 18px; min-width:134px}
.agents-astats .astat-ic i{font-size:19px}
.agents-astats .astat-num{font-size:27px; margin:7px 0 3px}
.agents-astats .astat-lbl{font-size:13.5px}
.agents-astats .astat-sub{font-size:11.5px}
@media(max-width:860px){ .agents-hero-in{display:block} .agents-astats{margin-top:24px} .agents-astats .astat{min-width:0} }
@media(max-width:720px){ .agents-astats .astat-num{font-size:23px} }
/* roster cards — uniform orange-knockout headshot; opens the profile. Card shrinks via a shorter photo
   (4:3), the info block keeps its size (adds the email line). */
.agents-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; padding:4px 0 8px}
.agent-card{display:block; background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s}
.agent-card:hover{box-shadow:var(--shadow-lift); transform:translateY(-2px)}
/* /about — photo hero: lift the eyebrow off the dark image (the base .eyebrow is muted/dark) */
.abt-hero .eyebrow{color:rgba(255,255,255,.85); margin-bottom:14px}
/* /about — Our story: editorial two-column (label left, prose right) on white */
.abt-story{background:var(--ground)}
.abt-story-in{display:grid; grid-template-columns:.8fr 1.4fr; gap:clamp(32px,6vw,80px); align-items:start}
.abt-story-head .eyebrow{margin-bottom:10px}
.abt-story-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:600; letter-spacing:-.02em; margin:0; max-width:12ch}
.abt-story-body p{font-size:17px; line-height:1.75; color:var(--ink-soft); margin:0 0 18px; max-width:64ch}
.abt-story-body p:last-child{margin-bottom:0}
@media(max-width:820px){ .abt-story-in{grid-template-columns:1fr; gap:18px} .abt-story-head h2{max-width:none} }
/* /about — What sets us apart: value-prop cards on off-white */
.abt-diff{background:var(--surface); border-top:1px solid var(--border)}
.abt-diff-head{margin-bottom:26px}
.abt-diff-head .eyebrow{margin-bottom:8px}
.abt-diff-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:600; letter-spacing:-.02em; margin:0}
.abt-diff-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.abt-diff-card{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card); padding:24px 22px}
.abt-diff-card .ic{margin-bottom:12px; line-height:1}
.abt-diff-card .ic i{font-size:26px; color:var(--accent)}
.abt-diff-card h3{font-size:17px; font-weight:700; margin:0 0 6px; color:var(--ink)}
.abt-diff-card p{font-size:14px; line-height:1.6; color:var(--ink-soft); margin:0}
@media(max-width:920px){ .abt-diff-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:520px){ .abt-diff-grid{grid-template-columns:1fr} }
/* /about — team teaser: centered, real faces, pull to /agents. White. */
.abt-team{background:var(--ground)}
.abt-team-head{text-align:center; max-width:600px; margin:0 auto 30px}
.abt-team-head .eyebrow{margin-bottom:8px}
.abt-team-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:600; letter-spacing:-.02em; margin:0 0 12px}
.abt-team-head p{font-size:17px; line-height:1.6; color:var(--ink-soft); margin:0}
.abt-team-avatars{display:flex; flex-wrap:wrap; justify-content:center; gap:14px; margin-bottom:30px}
.abt-team-av{width:76px; height:76px; border-radius:50%; overflow:hidden; background:var(--accent); box-shadow:var(--shadow-card)}
.abt-team-av img{width:100%; height:100%; object-fit:cover; object-position:center top; display:block}
.abt-team-cta{text-align:center}
/* /about — where we serve: town chips (internal links). Off-white. */
.abt-serve{background:var(--surface); border-top:1px solid var(--border)}
.abt-serve-head{max-width:640px; margin-bottom:22px}
.abt-serve-head .eyebrow{margin-bottom:8px}
.abt-serve-head h2{font-size:clamp(26px,3.4vw,38px); font-weight:600; letter-spacing:-.02em; margin:0 0 10px}
.abt-serve-head p{font-size:17px; line-height:1.6; color:var(--ink-soft); margin:0}
.abt-serve-counties{display:grid; grid-template-columns:1fr 1fr; gap:26px 48px; margin-bottom:26px}
.abt-serve-cty{font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:9px}
.abt-serve-towns{display:flex; flex-wrap:wrap; gap:6px 20px; font-size:16px; line-height:1.5}
.abt-serve-towns a{color:var(--ink); font-weight:500; white-space:nowrap}
.abt-serve-towns a:hover{color:var(--accent)}
@media(max-width:640px){ .abt-serve-counties{grid-template-columns:1fr; gap:22px} }
.abt-serve-more{display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:15px; color:var(--accent)}
.abt-serve-more i{transition:.15s} .abt-serve-more:hover i{transform:translateX(3px)}
/* /contact — intro + form, two-column. */
.ct-page{background:var(--ground)}
.ct-in{display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,64px); align-items:start}
.ct-intro .eyebrow{margin-bottom:12px}
.ct-intro h1{font-size:clamp(34px,5vw,52px); font-weight:600; letter-spacing:-.02em; margin:0}
.ct-intro > p{font-size:18px; line-height:1.6; color:var(--ink-soft); margin:16px 0 24px; max-width:44ch}
.ct-points{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px}
.ct-points li{display:flex; gap:10px; align-items:center; font-size:15px; color:var(--ink)}
.ct-points li i{color:var(--accent); font-size:19px; flex:none}
.ct-form-card{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card); padding:clamp(22px,3vw,32px)}
.ct-row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.ct-field{margin-bottom:14px}
.ct-field label{display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px}
.ct-field input,.ct-field textarea{width:100%; box-sizing:border-box; padding:11px 13px; border:1px solid var(--border); border-radius:10px; background:var(--ground); font:inherit; font-size:15px; color:var(--ink)}
.ct-field textarea{resize:vertical}
.ct-field input:focus,.ct-field textarea:focus{outline:none; border-color:var(--accent)}
.ct-form-card .tour-consent{margin:6px 0 14px}
.ct-err{color:var(--err); font-size:13px; margin-top:10px; min-height:16px}
.ct-done{text-align:center; padding:30px 8px}
.ct-done i{font-size:46px; color:var(--accent)}
.ct-done h3{font-size:20px; font-weight:600; margin:12px 0 6px}
.ct-done p{color:var(--ink-soft); font-size:15px; margin:0}
@media(max-width:820px){ .ct-in{grid-template-columns:1fr; gap:28px} }
/* /about — closing CTA band (white, to alternate off the off-white serve section).
   Two-class selector so it beats the base .closing (--surface) regardless of source order. */
.closing.abt-closing{background:var(--ground)}
.abt-cta-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.agent-card-static{cursor:default}
.agent-card-static:hover{box-shadow:var(--shadow-card); transform:none}
.agent-card-ph{aspect-ratio:4/3; background:var(--accent); overflow:hidden}
.agent-card-ph img{width:100%; height:100%; object-fit:cover; object-position:center top; display:block}
.agent-card-body{padding:15px 18px 17px}
.agent-card-nm{font-size:18px; font-weight:700; color:var(--ink); line-height:1.25}
.agent-card-title{font-size:13px; font-weight:500; color:var(--muted)}
.agent-card-title::before{content:"·"; margin:0 7px; color:var(--muted); font-weight:400}
.agent-card-role{font-size:13px; color:var(--muted); margin-top:3px}
.agent-card-contact{margin-top:13px; padding-top:12px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:7px}
.acc-row{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); overflow:hidden}
.acc-row i{font-size:15px; color:var(--accent); flex:none}
.acc-row span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
@media(max-width:820px){ .agents-grid{grid-template-columns:repeat(2,1fr); gap:16px} }
@media(max-width:480px){ .agents-grid{grid-template-columns:1fr} }
/* agent profile */
.aprof-hero{display:grid; grid-template-columns:.82fr 1.18fr; gap:clamp(28px,5vw,56px); align-items:start; max-width:1100px; margin:0 auto; padding:44px clamp(20px,4vw,56px) 56px}
.aprof-photo{aspect-ratio:4/5; width:100%; max-width:420px; border-radius:16px; overflow:hidden; box-shadow:var(--shadow-card); background:var(--surface)}
.aprof-photo img{width:100%; height:100%; object-fit:cover; display:block}
.aprof-name{font-size:clamp(28px,4vw,42px); font-weight:600; letter-spacing:-.02em; margin:6px 0 0}
.aprof-role{color:var(--accent); font-weight:700; font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin:8px 0 0}
.aprof-langs{display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-size:14px; margin:12px 0 0}
.aprof-langs i{font-size:17px; color:var(--accent); flex:none}
.aprof-contact{display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 0}
.aprof-cbtn{display:inline-flex; align-items:center; gap:7px; padding:10px 16px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--card); color:var(--ink); font-weight:600; font-size:14px; transition:.15s}
.aprof-cbtn:hover{border-color:var(--accent); color:var(--accent)}
.aprof-cbtn i{font-size:17px}
/* bio now lives in the right column, under the contact buttons; search CTA sits at its foot */
.aprof-bio{margin:26px 0 0}
.aprof-bio h2{font-size:22px; font-weight:600; margin:0 0 12px}
.aprof-bio p{color:var(--ink-soft); font-size:16px; line-height:1.7; margin:0 0 14px; max-width:60ch}
.aprof-cta{margin:22px 0 0}
.aprof-cta .btn{font-size:15px}
@media(max-width:820px){ .aprof-hero{grid-template-columns:1fr; padding:28px 20px 40px} .aprof-photo{max-width:300px} }
.rail .lc-photo{aspect-ratio:16/9}  /* shorter, wider photo in the carousel (base card stays 3:2) */
/* Similar-homes strip inside the listing detail (reuses .rail scroll, drops the homepage gutter/margins).
   Vertical padding clears the card lift shadow (overflow-x forces overflow-y → shadow would clip). */
.det-sim{margin:0; padding:18px 0 26px}   /* free horizontal scroll (no snap), matching the homepage rails */
.det-sim .lc{flex:0 0 320px; scroll-snap-align:none}
.det-sim-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:2px}
.det-sim-head h2{margin:0}
/* match-reason pill (replaces the feature highlight on similar-homes cards) */
.lc-reason{display:inline-flex; align-items:center; gap:5px}
.lc-reason i{font-size:12px}
/* Recently-sold comps strip: compCard (price-comparison chip), styled to MATCH the homepage sold cards
   — base font sizes (via .lc-sold, no det-sim condensing) + a filled price pill — at the Similar-homes width. */
.det-comp{margin:0; padding:18px 0 26px}   /* free horizontal scroll (no snap), matching the homepage rails */
.rail.det-comp .lc.lc-sold{flex:0 0 320px; scroll-snap-align:none}
.det-comp-htext{min-width:0}
.det-comp-sub{font-size:13px; color:var(--ink-soft); margin-top:3px; font-variant-numeric:tabular-nums}
/* price-comparison pill — filled, matching the homepage vs-ask pill (.lc-vs): up=green, down=red */
.comp-chip{display:inline-flex; align-items:center; gap:3px; flex:none; color:#fff; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:4px 8px; border-radius:var(--r-xs); white-space:nowrap}
.comp-chip i{font-size:11px}
.comp-chip.dir-more{background:var(--st-active)}
.comp-chip.dir-less{background:var(--st-pending)}
.comp-chip.dir-same{background:var(--muted)}
.lc-comp-ctx{margin-top:8px; font-size:11px; color:var(--muted); letter-spacing:.01em}
/* Property history — Zillow-style reverse-chron event table */
.ph-table{margin-top:2px}
.ph-row{display:flex; align-items:center; gap:14px; padding:14px 2px; border-bottom:1px solid var(--border)}
.ph-row:last-child{border-bottom:none}
.ph-ic{width:34px; height:34px; border-radius:9px; display:grid; place-items:center; flex:none; border:1px solid var(--border); background:var(--card)}
.ph-ic i{font-size:16px}
.ph-ic-listed i{color:var(--accent)}
.ph-ic-cut i{color:var(--st-pending)}
.ph-ic-up i{color:var(--ok)}
.ph-ic-pending i{color:#B45309}
.ph-ic-sold i{color:var(--ink)}
.ph-ic-back i{color:var(--ok)}
.ph-ic-off i{color:var(--ink-soft)}
.ph-main{flex:1; min-width:0}
.ph-ev{font-size:15.5px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.ph-delta{font-size:12px; font-weight:800; letter-spacing:.01em}
.ph-delta.cut{color:var(--st-pending)}
.ph-delta.up{color:var(--ok)}
.ph-sub{font-size:13px; color:var(--ink-soft); margin-top:2px}
.ph-price{text-align:right; font-family:'Satoshi',sans-serif; font-weight:800; font-size:16.5px; color:var(--ink); flex:none; font-variant-numeric:tabular-nums}
.ph-psf{font-size:12px; font-weight:600; color:var(--ink-soft); margin-top:1px}
.ph-dash{color:var(--ink-soft); font-weight:600}
/* Tax history — Year · Property taxes · Assessed value */
.tax-table{margin-top:4px}
.tax-head, .tax-row{display:grid; grid-template-columns:0.8fr 1.2fr 1.2fr; gap:14px; align-items:baseline}
.tax-head{padding:0 2px 10px; border-bottom:1.5px solid var(--border)}
.tax-head span{font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft)}
.tax-row{padding:13px 2px; border-bottom:1px solid var(--border)}
.tax-row:last-child{border-bottom:none}
.tax-yr{font-family:'Satoshi',sans-serif; font-weight:800; font-size:15.5px; color:var(--ink); font-variant-numeric:tabular-nums}
.tax-cell{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap}
.tax-val{font-family:'Satoshi',sans-serif; font-weight:700; font-size:15.5px; color:var(--ink); font-variant-numeric:tabular-nums}
.tax-delta{display:inline-flex; align-items:center; gap:2px; font-size:12px; font-weight:700; color:var(--ink-soft); font-variant-numeric:tabular-nums}
.tax-delta i{font-size:11px}
/* terminal "see all" card — align-self:stretch so it matches the listing cards' height (the rail is align-items:flex-start,
   which would otherwise collapse this arrow+text card to its content). Content stays centered in the full-height box. */
.lc-more{flex:0 0 360px; align-self:stretch; scroll-snap-align:start; background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; transition:box-shadow .18s, transform .18s}
.lc-more:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.lc-more-arrow{width:52px; height:52px; border-radius:50%; background:var(--accent); color:var(--accent-ink); display:grid; place-items:center; margin-bottom:8px}
.lc-more-arrow i{font-size:24px}
.lc-more-t{font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--ink)}
.lc-more-s{font-size:14px; color:var(--muted)}
@media(max-width:820px){
  .rail-tools .rail-arrow{display:none}
  .rail .lc, .lc-more{flex-basis:78vw}
}

/* action band */
.action{background:var(--surface); padding:44px 0}
.acards{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.acard{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; display:flex; flex-direction:column; min-height:360px; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s}
.acard:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.acard h3{font-size:21px; font-weight:600; margin:9px 0 6px}
.acard p{color:var(--muted); font-size:14px; margin:0}
.ab-foot{margin-top:18px; display:flex; flex-direction:column}
/* value-range preview — bar + pin + low/high */
.ab-gauge{margin-top:26px}
.ab-gauge .track{position:relative; height:7px; border-radius:999px; background:color-mix(in srgb,var(--accent) 13%,var(--surface))}
.ab-gauge .fill{position:absolute; inset:0; border-radius:999px; background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 40%,#fff),var(--accent))}
.ab-gauge .pin{position:absolute; top:-8px; width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid var(--ink); transform:translateX(-50%)}
.ab-gauge .ends{display:flex; justify-content:space-between; margin-top:5px; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums}
.ab-addr{display:flex; flex-direction:column; gap:10px} .ab-addr input{padding:13px 14px; font-size:14px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink); font-family:var(--font-body); outline:none} .ab-addr input:focus{border-color:var(--accent)}
.ab-note{margin-top:12px; font-size:12.5px; color:var(--muted)} .ab-note a{color:var(--accent); font-weight:600}
.ab-priv{display:flex; align-items:flex-start; gap:6px; margin-top:12px; font-size:11.5px; color:var(--ink-soft); line-height:1.4} .ab-priv i{font-size:14px; color:var(--muted); flex:none; margin-top:1px}
/* Buy: live-inventory snapshot */
.inv{display:flex; margin-top:22px}
.inv-cell{flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:3px}
.inv-cell + .inv-cell{margin-left:14px; padding-left:14px; border-left:1px solid var(--border)}
.inv-n{font-family:var(--font-display); font-weight:700; font-size:23px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; color:var(--ink)}
.inv-n.hot{color:var(--accent)}
.inv-l{font-size:11.5px; color:var(--muted); font-weight:500; line-height:1.25}
/* Rent: 12-month rent trend */
.trend{margin-top:22px}
.trend-row{display:flex; align-items:center; justify-content:space-between; gap:14px}
.trend-val{font-family:var(--font-display); font-weight:700; font-size:23px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; color:var(--ink)}
.trend-unit{font-size:12px; font-weight:600; color:var(--muted); margin-left:1px}
.trend-lbl{font-size:11.5px; color:var(--muted); margin-top:3px}
.trend-spark{width:104px; height:40px; flex:none; overflow:visible; display:block}
.ab-connect{text-align:center; color:var(--ink-soft); margin-top:18px; font-size:14px} .ab-connect a{color:var(--accent); font-weight:700}
.acards-2{grid-template-columns:repeat(2,1fr)}
/* Path cards (Buy / Rent / Build your team) — centered, illustration-led. Art slot reserved + empty for now. */
.acard-path{align-items:center; text-align:center; padding:30px 24px 26px}
/* Fixed-height circle slot: circle centered, the mag-glass handle / sign escape via overflow
   (no layout push), so all three headings align regardless of each illustration's escape. */
.acard-art{position:relative; width:122px; height:150px; overflow:visible; flex:none}
.acard-art-pic{position:absolute; left:0; height:auto; max-width:none}  /* max-width:none so inline width beats global img{max-width:100%}; per-card width/top place the off-white circle centered */
.acard-art-circle{position:absolute; left:0; top:14px; width:122px; height:122px; border-radius:50%; background:var(--surface)}
.acard-path h3{font-size:22px; margin:18px 0 8px}
.acard-path p{max-width:34ch; margin:0 0 24px}
.acard-path .btn{margin-top:auto}

/* seller product section (two-column) */
.sell{background:var(--ground); padding:60px 0; border-top:1px solid var(--border)}
.sell-in{position:relative; display:flex; align-items:center; min-height:460px; max-width:1160px; margin:0 auto; padding:0 28px}
.sell-copy{max-width:480px; flex:none; position:relative; z-index:2}
.sell-copy .eyebrow{color:var(--accent)}
.sell-copy h2{font-size:36px; font-weight:600; line-height:1.1; letter-spacing:-.01em; margin:10px 0 12px}
.sell-lead{color:var(--ink-soft); font-size:16px; line-height:1.6; margin:0 0 22px; max-width:48ch}
.sell-form{display:flex; max-width:480px; border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; background:var(--card)}
.sell-form:focus-within{border-color:var(--accent)}
.sell-form input{flex:1; min-width:0; padding:16px 18px; font-size:16px; border:none; border-radius:0; background:transparent; color:var(--ink); font-family:var(--font-body); outline:none}
.sell-form .btn{flex:none; border-radius:0; white-space:nowrap}
.sell-sub{margin-top:14px; font-size:13px; color:var(--muted)} .sell-sub a{color:var(--accent); font-weight:600; cursor:pointer}
.sell-priv{display:flex; align-items:center; gap:7px; margin-top:16px; font-size:12px; color:var(--ink-soft)} .sell-priv i{color:var(--muted); font-size:14px}
/* home-value illustration panel (replaced the fake result card) */
/* out of flow + right-bleed: grows big without moving the copy or the sold cards; clamped so it never scrolls */
.sell-art{position:absolute; top:50%; transform:translateY(-50%); right:calc((1160px - 100vw)/2 + 20px); width:min(800px, calc(100vw - 620px)); z-index:1}
.sell-art img{display:block; width:100%; height:auto}
.sell-viz{background:var(--card); border:1px solid var(--border); border-radius:var(--r-xl); padding:26px; box-shadow:var(--shadow-card); max-width:440px; justify-self:center; width:100%}
.report-addr{font-size:12.5px; color:var(--muted); font-weight:600; margin-bottom:14px}
.report-val{font-family:var(--font-display); font-weight:700; font-size:42px; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1}
.report-vlbl{font-size:12.5px; color:var(--muted); margin-top:6px}
.report-foot{font-size:12px; color:var(--muted); line-height:1.5; margin-top:18px}
/* Row 2 — recently sold comps (photoless listing cards) */
.sold-row{margin-top:48px}
.sold-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px}
.sold-title{font-family:var(--font-display); font-weight:600; font-size:22px; color:var(--ink)}
.sold-sub{color:var(--ink-soft); font-size:14px; margin-top:4px}
.sold-rail{gap:18px; padding:14px 0 30px; margin:-10px 0 -18px}
.rail .lc.lc-sold{flex:0 0 258px; scroll-snap-align:start}
.lc-sold .lc-body{padding:18px 18px 16px}
.lc-sold-date{margin-top:8px; font-size:11px; color:var(--muted); letter-spacing:.01em}
.lc-vs{display:inline-flex; align-items:center; gap:3px; flex:none; color:#fff; font-size:10px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:4px 8px; border-radius:var(--r-xs); white-space:nowrap} .lc-vs i{font-size:11px}
.lc-vs.over,.lc-vs.at{background:var(--st-active)}
.lc-vs.under{background:var(--st-pending)}

/* estimate modal (side-by-side desktop, stacked mobile) */
.emodal{position:fixed; inset:0; z-index:300; display:none; align-items:center; justify-content:center; padding:20px}
.emodal.open{display:flex}
.emodal-back{position:absolute; inset:0; background:rgba(20,15,10,.5); backdrop-filter:blur(3px)}
.emodal-panel{position:relative; z-index:1; width:min(880px,100%); max-height:90vh; overflow:auto; background:var(--card); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-lift)}
.emodal-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 18px; border-bottom:1px solid var(--border)}
.emodal-addr{display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; color:var(--ink)} .emodal-addr i{color:var(--accent); font-size:16px}
.emodal-edit{display:inline-flex; align-items:center; gap:5px; font-size:13px; color:var(--accent); font-weight:600; background:none; border:none; cursor:pointer; padding:6px 9px; border-radius:var(--r-sm)} .emodal-edit:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)} .emodal-edit i{font-size:15px}
.emodal-x{display:grid; place-items:center; width:34px; height:34px; border-radius:999px; color:var(--muted); background:none; border:none; cursor:pointer; font-size:18px; padding:0} .emodal-x:hover{background:var(--surface); color:var(--ink)}
.emodal-cols{display:grid; grid-template-columns:1fr 1fr}
.em-est{padding:26px 24px; border-right:1px solid var(--border)}
.em-cap{padding:26px 24px; background:var(--surface)}
.em-lbl{font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.em-fields{margin-top:22px}
.em-names{display:grid; grid-template-columns:1fr 1fr; gap:10px; max-height:0; opacity:0; overflow:hidden; margin-bottom:0; transition:max-height .3s ease, opacity .25s ease, margin-bottom .3s ease}
.em-names.show{max-height:120px; opacity:1; margin-bottom:12px}
.em-names .em-field{margin-bottom:0}
.em-range{font-family:var(--font-display); font-weight:700; font-size:32px; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; margin:12px 0 3px; line-height:1.05}
.em-esth{font-size:12px; color:var(--muted)}
.em-avm-disc{margin-top:8px; font-size:11.5px; line-height:1.45; color:var(--muted)}   /* AVM legal disclaimer — not an appraisal */
.em-note{margin-top:20px; font-size:13px; color:var(--ink-soft); line-height:1.5; display:flex; gap:9px} .em-note i{color:var(--accent); flex:none; margin-top:1px; font-size:16px}
.em-field{margin-bottom:12px} .em-field label{display:block; font-size:12px; font-weight:600; color:var(--ink-soft); margin-bottom:5px}
.em-field input{width:100%; padding:12px 13px; font-size:14px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink); font-family:var(--font-body); outline:none} .em-field input:focus{border-color:var(--accent)}
.em-field input.err{border-color:var(--err); box-shadow:0 0 0 3px color-mix(in srgb,var(--err) 16%,transparent)}
.em-field input.ok{border-color:var(--ok)}
.em-hint{display:none; font-size:12px; line-height:1.4; margin-top:6px}
.em-hint.err{display:flex; align-items:center; gap:5px; color:var(--err)} .em-hint.err i{font-size:14px}
.em-phone{display:none} .em-phone.show{display:block}
.check{display:inline-flex; align-items:center; gap:10px; cursor:pointer; position:relative}
.check input{position:absolute; opacity:0; width:0; height:0}
.ck-box{width:22px; height:22px; border-radius:6px; border:1.5px solid var(--border); display:grid; place-items:center; transition:.15s; color:#fff; flex:none}
.ck-box i{font-size:14px; opacity:0; transform:scale(.6); transition:.15s; display:block}
.check input:checked+.ck-box{background:var(--accent); border-color:var(--accent)}
.check input:checked+.ck-box i{opacity:1; transform:scale(1)}
/* radio dot (lab .rad) */
.rad{width:22px; height:22px; border-radius:50%; border:1.5px solid var(--border); display:grid; place-items:center; transition:.15s; flex:none}
.rad::after{content:""; width:10px; height:10px; border-radius:50%; background:var(--accent); transform:scale(0); transition:.15s}
.check input:checked+.rad{border-color:var(--accent)}
.check input:checked+.rad::after{transform:scale(1)}
.filt-radios{display:flex; flex-direction:column; gap:2px; padding:2px 0 6px}
.filt-radios .check{font-size:16px; color:var(--ink); padding:9px 6px; border-radius:9px; transition:background .12s}
.filt-radios .check:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.em-toggles{display:flex; flex-direction:column; gap:12px; margin:18px 0}
.em-tog{align-items:flex-start; gap:9px; font-size:13px; color:var(--ink); line-height:1.4} .em-tog .ck-box{width:18px; height:18px; border-radius:5px; margin-top:1px} .em-tog .ck-box i{font-size:12px} .em-tog b{font-weight:700}
.em-reassure{display:flex; gap:8px; align-items:flex-start; margin:2px 0 14px; padding:11px 12px; background:color-mix(in srgb,var(--accent) 6%,transparent); border-radius:var(--r); font-size:12px; color:var(--ink-soft); line-height:1.45} .em-reassure i{color:var(--accent); font-size:15px; flex:none; margin-top:1px}
.em-submit{margin-top:2px}
.em-consent{font-size:11px; color:var(--muted); line-height:1.45; margin-top:12px}
.em-done{text-align:center; padding:26px 8px}
.em-done-ic{color:var(--accent); font-size:46px; line-height:1; margin-bottom:12px}
.em-done h4{font-size:18px; font-weight:600; margin:0 0 6px; color:var(--ink)}
.em-done p{font-size:13.5px; color:var(--muted); line-height:1.55; margin:0}
/* stepped flow: 1 estimate+contact · 2 questionnaire · 3 success */
.em-step{display:none}
.em-step.on{display:block}
.em-step-2{padding:20px 28px 22px}
.em-back{display:inline-flex; align-items:center; gap:6px; background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:14px; cursor:pointer; font-family:inherit; padding:4px 2px; margin-bottom:12px}
.em-back:hover{color:var(--ink)}
.em-back i{font-size:16px; transition:transform .14s}
.em-back:hover i{transform:translateX(-2px)}
.em-q-head{margin-bottom:22px}
.em-q-head h3{font-size:20px; font-weight:600; color:var(--ink); margin:8px 0 5px; line-height:1.2}
.em-q-head p{font-size:13px; color:var(--muted); line-height:1.45; margin:0}
.em-q{display:flex; flex-direction:column; gap:22px}
.em-qlbl{font-size:14px; font-weight:700; color:var(--ink); margin-bottom:10px}
.em-chips{display:flex; flex-wrap:wrap; gap:8px}
.em-chip{padding:9px 15px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--card); font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--ink-soft); cursor:pointer; transition:border-color .14s, color .14s, background .14s}
.em-chip:hover{border-color:var(--ink-soft); color:var(--ink)}
.em-chip.on{background:var(--accent); border-color:var(--accent); color:#fff}
.em-q-foot{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:28px; padding-top:18px; border-top:1px solid var(--border)}
.em-skip{background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:14px; cursor:pointer; font-family:inherit; padding:6px 2px}
.em-skip:hover{color:var(--ink)}
.em-q-done{padding:12px 28px}
.em-step-3 .em-done{padding:44px 26px}
@media(max-width:820px){ .sell-in{display:block; min-height:0; padding:0 20px} .sell-copy{max-width:none} .sell-art{position:static; width:100%; max-width:520px; transform:none; right:auto; margin:28px auto 0} }
@media(max-width:720px){ .emodal-cols{grid-template-columns:1fr} .em-est{border-right:none; border-bottom:1px solid var(--border)} }
/* ── Mobile (≤820px): the WHOLE .emodal family (estimate / contact / schedule-tour / disclosures / auth / qualifier)
   docks to the bottom as a slide-up sheet — one rule, since they all share .emodal > .emodal-back + .emodal-panel. ── */
@media(max-width:820px){
  .emodal{align-items:flex-end; padding:0}
  .emodal.open{animation:none}
  .emodal-panel, .emodal-panel.cmodal-panel, .emodal-panel.auth-panel, .emodal-panel.tmodal-panel{
    width:100%; max-width:none; max-height:92dvh; border-radius:20px 20px 0 0; border-bottom:0;
    box-shadow:0 -12px 40px -12px rgba(20,15,10,.42); animation:emodalUp .3s cubic-bezier(.2,.75,.3,1)}
  @keyframes emodalUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  .emodal-panel::before{content:""; display:block; width:38px; height:4px; border-radius:2px; background:var(--border); margin:8px auto -4px}
  .emodal-head{position:sticky; top:0; z-index:1; background:var(--card)}   /* title + X stay pinned while the body scrolls */
  /* the one other centered modal (Set a password) — same treatment for consistency */
  .dw-setpw-back{align-items:flex-end; padding:0}
  .dw-setpw{width:100%; max-width:none; border-radius:20px 20px 0 0; padding-bottom:calc(24px + env(safe-area-inset-bottom)); animation:emodalUp .3s cubic-bezier(.2,.75,.3,1)}

  /* ── Pinned action footers — ONLY on actions WITHOUT a consent disclaimer (tour date step "Continue",
     qualifier "Done", Save search). Compliance: any submit with a disclaimer stays in natural scroll so the
     disclosure remains directly above the button (TCPA adjacency) — those are deliberately NOT listed here. ── */
  .sheet-foot, .em-step-2 .em-q-foot{
    position:sticky; bottom:0; z-index:3; background:var(--card); border-top:1px solid var(--border);
    padding-top:12px; padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .tmodal-body .sheet-foot{margin:16px -22px -22px; padding-left:22px; padding-right:22px}
  .sheet-foot .tstep-go{margin-top:0}
  .em-step-2 .em-q-foot{margin:16px -28px -22px; padding-left:28px; padding-right:28px}
  /* Save-search now carries an always-on email-alert disclosure → it's a consent-bearing submit, so its footer stays in
     NATURAL SCROLL (disclosure directly above the button), NOT pinned. The sheet's own bottom padding clears the button. */
}

/* why dwello */
.why{background:var(--surface); border-top:1px solid var(--border)}
.why-in{display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(32px,5vw,64px); align-items:center; padding:64px clamp(20px,4vw,56px)}
.why-photo{aspect-ratio:4/5; width:100%; max-width:480px; justify-self:center; border-radius:16px; overflow:hidden; background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 22%,#e0dad4),color-mix(in srgb,var(--accent2) 16%,#cfc9c3)); box-shadow:var(--shadow-card)}
.why-photo picture,.why-photo img{display:block; width:100%; height:100%; object-fit:cover; object-position:50% 16%}
.why h2{font-size:34px; font-weight:600; margin:10px 0 0; max-width:28ch}
.why-intro{color:var(--ink-soft); font-size:16.5px; line-height:1.55; margin:16px 0 22px; max-width:52ch}
/* Agent bio ("About me") — reuses the .why frame; simple stacked copy + one CTA, no bullets/reviews. */
.bio-copy{margin:16px 0 24px}
.bio-copy p{color:var(--ink-soft); font-size:16.5px; line-height:1.6; margin:0 0 14px; max-width:52ch}
.bio-copy p:last-child{margin-bottom:0}
.why.is-bio .why-photo img{object-position:50% 50%}   /* the bio crop is already 4:5 — center it */
.why-list{list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:12px}
.why-list li{display:flex; gap:11px; align-items:flex-start; font-size:15px; color:var(--ink); line-height:1.4}
.why-list .ck{flex:none; color:var(--accent); margin-top:1px; line-height:1}
.why-list .ck i{font-size:18px}
.why-quote{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px 20px; box-shadow:var(--shadow-card); max-width:520px; margin-bottom:22px}
.why-stars{display:flex; gap:2px; color:var(--accent); margin-bottom:9px}
.why-stars i{font-size:15px}
.why-quote p{font-family:var(--font-display); font-weight:500; font-size:16px; color:var(--ink); line-height:1.4; margin:0 0 8px}
.why-by{font-size:12.5px; color:var(--muted)}
.why-cta{display:flex; gap:12px; flex-wrap:wrap; margin-bottom:12px}
.why-note{font-size:13px; color:var(--muted)}
@media(max-width:820px){
  .why-in{grid-template-columns:1fr; gap:26px; padding:48px 24px}
  .why-photo{max-width:320px; aspect-ratio:3/2}
  .why-cta{width:100%} .why-cta .btn{flex:1}
}

/* closing cta */
.closing{padding:64px 0; text-align:center; background:var(--surface); border-top:1px solid var(--border)}
.closing h2{font-size:clamp(28px,4vw,40px); font-weight:600; max-width:18ch; margin:0 auto}
.closing p{color:var(--ink-soft); font-size:17px; margin:16px auto 26px; max-width:48ch}

/* footer + compliance */
.footer{background:var(--surface); border-top:1px solid var(--border); padding:48px 0 34px}
.footer-cols{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px}
.footer h4{font-size:13px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--ink); margin-bottom:12px}
.footer a{display:block; color:var(--ink-soft); font-size:14px; padding:4px 0} .footer a:hover{color:var(--ink)}
.footer .logo{margin-bottom:10px}
.footer-lockup{height:112px; width:auto; display:block; margin-bottom:14px; margin-left:-4px}   /* Tier-2 brand: dwello Home Group · brokered by eXp (transparent PNG) */
.compliance{border-top:1px solid var(--border); margin-top:34px; padding-top:22px; display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; color:var(--muted); font-size:12px; line-height:1.5}
.eho{width:34px; height:34px; flex:none; border:1.5px solid var(--muted); border-radius:5px; display:grid; place-items:center; font-size:8px; font-weight:800; text-align:center; color:var(--muted); line-height:1}
/* Compliance band — required IDX/brokerage/fair-housing disclosures. Text kept a readable 12.5px on the surface
   (NOT tiny gray-on-gray — MLS GRID Rule 22/24 "readily visible… not smaller than the median"). In the footer it
   sits under the columns; on /search it caps the results column. */
.footer .cband{border-top:1px solid var(--border); margin-top:34px; padding-top:22px}
.cband-logos{display:flex; align-items:center; gap:18px; margin-bottom:12px}
.cband-eho{height:44px; width:auto; flex:none}   /* full EHO logo (house + text) at its real ~3:1 ratio — never squished square */
.cband-mls{height:22px; width:auto; opacity:.7}
.cband-txt{color:var(--ink-soft); font-size:12.5px; line-height:1.55; max-width:none}
.cband-txt p{margin:0 0 7px}
.cband-broker b{color:var(--ink)}
.cband-broker a, .cband-txt a{display:inline; color:var(--ink-soft); text-decoration:underline; padding:0}   /* override .footer a{display:block} so the eXp link stays inline */
.cband-broker b{font-weight:700}
.cband-copy{color:var(--muted)}
/* On /search the band caps the scrolling results column with a divider + breathing room above the map/footer edge. */
.srp-list .cband{border-top:1px solid var(--border); margin-top:20px; padding:20px 4px 32px}
/* Footer on a phone: the brand block goes full-width on top (lockup + tagline get room instead of being squeezed
   next to a link column), then Search/Company/Legal sit 2-up below. Lockup scaled down; tighter padding. */
@media(max-width:560px){
  .footer{padding:34px 0 28px}
  .footer-cols{grid-template-columns:1fr 1fr; gap:24px 20px}
  .footer-cols>div:first-child{grid-column:1 / -1}
  .footer-lockup{height:88px; margin-bottom:10px}
  .footer .cband{margin-top:26px}
  .cband-logos{gap:14px}
}

/* ── Mobile bottom nav: a floating solid-WHITE pill (not glass) with orange Phosphor tabs + v3 soft lift, styled
      like the filter chip. Shown <=820px (when the header's desktop nav is hidden); never on the immersive
      listing detail. Active tab = filled icon + soft orange highlight + bold label; every press pops (favPop). ── */
/* App-like navigation is handled by the app-shell soft-nav (scripts()): same-origin page links swap #dwv while the
   bottom nav + header persist. The content swap is INSTANT — no page transition. */
.mnav{display:none}
@media(max-width:820px){
  .mnav{display:flex; position:fixed; z-index:60; left:50%; transform:translateX(-50%);
    bottom:calc(10px + env(safe-area-inset-bottom)); width:calc(100% - 30px); max-width:412px;
    background:var(--card); border:1px solid var(--border); border-radius:var(--r-pill);
    box-shadow:0 1px 2px rgba(20,15,10,.05), 0 9px 22px -14px rgba(20,15,10,.30); padding:4px 5px}
  .mnav-tab{flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:5px 2px;
    text-decoration:none; color:var(--accent); border-radius:var(--r-md); -webkit-tap-highlight-color:transparent}
  .mnav-ic{display:grid; place-items:center; width:40px; height:21px; border-radius:var(--r-pill); font-size:19px; line-height:1; transition:background .16s}
  .mnav-l{font-family:var(--font-body); font-size:10px; font-weight:600; letter-spacing:.01em; white-space:nowrap; color:inherit}
  .mnav-tab:not(.on){color:color-mix(in srgb, var(--accent) 58%, var(--muted))}   /* inactive = muted orange */
  .mnav-tab.on .mnav-ic{background:color-mix(in srgb, var(--accent) 13%, transparent)}
  .mnav-tab.on .mnav-l{font-weight:700}
  .mnav-ic.pop{animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}
  body:not(.det-listing){padding-bottom:calc(62px + env(safe-area-inset-bottom))}   /* clear the floating pill */
  body.det-listing .mnav{display:none}
}
/* Legal pages — minimal stub presentation (content authored per later sweep). */
.legal-wrap{padding:40px 0 64px; max-width:760px}
.legal-crumb{font-size:13px; color:var(--muted); margin-bottom:16px}
.legal-crumb a{color:var(--ink-soft)} .legal-crumb span{margin:0 6px}
.legal-h1{font-family:var(--font-display); font-size:34px; letter-spacing:-.02em; margin:0 0 14px}
.legal-pending{color:var(--ink-soft); font-size:16px; line-height:1.6}
/* Authored legal article (Privacy Policy, etc.) */
.legal-updated{color:var(--muted); font-size:14px; margin:-6px 0 18px}
.legal-draft{background:#FFF4E5; border:1px solid #F5C77E; color:#8a5a00; font-size:13.5px; line-height:1.5; padding:10px 14px; border-radius:10px; margin:0 0 26px}
.legal-body h2{font-family:var(--font-display); font-size:22px; letter-spacing:-.01em; margin:32px 0 10px}
.legal-body h3{font-size:16px; font-weight:700; color:var(--ink); margin:18px 0 6px}
.legal-body p{color:var(--ink-soft); font-size:15.5px; line-height:1.7; margin:0 0 12px}
.legal-body ul{margin:0 0 12px; padding-left:22px}
.legal-body li{color:var(--ink-soft); font-size:15.5px; line-height:1.65; margin:0 0 6px}
.legal-body a{color:var(--accent); text-decoration:underline}
.legal-strong{color:var(--ink)!important; font-weight:700; font-size:14.5px!important; line-height:1.6!important; background:var(--bg-2,#f6f6f4); border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin:0 0 14px}
@media(max-width:900px){
  .listings,.acards{grid-template-columns:1fr}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important} .lc-fav.pop{animation:none!important} .det-save.pop i{animation:none!important} [data-pop].pop{animation:none!important} [data-pop-ico].pop :is(i,.mnav-ic){animation:none!important}}

/* ============================================================
   SEARCH PAGE (SRP) — full-height app shell, 60/40 split
   ============================================================ */
.app-shell{height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden}
/* a11y: the <main> landmark inside the app shell must keep the flex chain so .srp-split can still grow. */
.app-main{flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden}
#main:focus{outline:none}
/* Skip-to-content link — off-screen until keyboard-focused, then pinned top-left. */
.skip-link{position:absolute; left:-9999px; top:0; z-index:100000; background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 10px 0; font-weight:700; text-decoration:none}
.skip-link:focus{left:0}
/* Cookie notice — non-blocking bottom card, symmetric buttons. */
.cookie-bar{position:fixed; left:16px; right:16px; bottom:16px; z-index:99998; max-width:660px; margin:0 auto; background:var(--card); border:1px solid var(--border); border-radius:14px; box-shadow:0 14px 44px rgba(16,24,40,.18); padding:15px 18px; display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.cookie-bar-txt{flex:1; min-width:220px; font-size:13.5px; line-height:1.5; color:var(--ink-soft)}
.cookie-bar-txt a{color:var(--accent); text-decoration:underline}
.cookie-bar-acts{display:flex; gap:10px; flex:none}
@media(max-width:520px){ .cookie-bar{flex-direction:column; align-items:stretch} .cookie-bar-acts{justify-content:flex-end} }

/* filter bar (full width across the top, incl. over the map) */
.srp-bar{flex:none; display:flex; align-items:center; gap:12px; padding:11px 20px; background:var(--card); border-bottom:1px solid var(--border); flex-wrap:wrap}
.srp-searchbar{flex:0 1 380px; min-width:230px; margin:0; border:1px solid var(--border); border-radius:var(--r); box-shadow:none; align-items:stretch}
.srp-searchbar:focus-within{border-color:var(--accent)}
.srp-searchbar input{border:none; border-radius:var(--r) 0 0 var(--r); padding:10px 14px; font-size:14px}
/* ── Search bar (.sbar) — location chips + autocomplete. Compact; chips scroll HORIZONTALLY (never a 2nd row); menu reuses .pick-menu ── */
.sbar{flex:0 1 380px; min-width:200px; max-width:420px; display:flex; align-items:stretch; background:var(--card); border:1px solid var(--border); border-radius:var(--r); overflow:hidden}
.srp-bar .sbar{flex:0 1 380px}
.sbar:focus-within{border-color:var(--accent)}
.sbar-field{flex:1; min-width:0; display:flex; flex-wrap:nowrap; align-items:center; gap:5px; padding:0 8px; cursor:text; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none}
.sbar-field::-webkit-scrollbar{display:none}
.sbar-in{flex:1 0 auto; min-width:72px; border:none; outline:none; background:transparent; font-family:var(--font-body); font-size:14px; color:var(--ink); padding:9px 2px}
.sbar-in::placeholder{color:var(--ink-soft)}
.tag.sbar-tag{flex:0 0 auto; max-width:150px; font-size:12px; font-weight:600; padding:2px 2px 2px 10px; gap:1px}   /* smaller than the keyword chip, same white/accent/× style (.tag.sbar-tag beats .tag) */
.sbar-tag .sbar-tag-t{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tag.sbar-tag .tag-x{width:15px; height:15px} .tag.sbar-tag .tag-x i{font-size:10px}
.sbar-go{flex:0 0 auto; width:50px; border-radius:0; display:grid; place-items:center; cursor:pointer}
.sbar-go i{font-size:19px}
/* NL did-you-mean / unresolved-location note — a thin strip under the search bar */
.srp-note{display:flex; align-items:center; gap:10px; padding:8px 20px; background:var(--surface); border-bottom:1px solid var(--border); font-size:13px; color:var(--ink-soft)}
.srp-note-t{flex:1}
.srp-note b{color:var(--ink); font-weight:600}
.srp-note-x{border:none; background:transparent; color:var(--ink-soft); font-size:17px; line-height:1; cursor:pointer; padding:0 4px}
.srp-note-x:hover{color:var(--ink)}
.srp-searchbar .hs-go{width:46px} .srp-searchbar .hs-go i{font-size:17px}
.srp-chips{display:flex; gap:9px; flex-wrap:wrap}
.srp-chip{display:inline-flex; align-items:center; gap:6px; padding:10px 14px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--ink); cursor:pointer; white-space:nowrap; transition:border-color .15s}
.srp-chip:hover{border-color:var(--ink-soft)}
.srp-chip i{color:var(--muted); font-size:15px}
.srp-baractions{margin-left:auto; display:flex; align-items:center; gap:14px}
.srp-save{flex:none} .srp-save i{font-size:15px}
.srp-saved{display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid var(--border); border-radius:var(--r-pill); font-weight:700; font-size:14px; color:var(--ink); text-decoration:none; font-variant-numeric:tabular-nums; transition:border-color .15s} .srp-saved:hover{border-color:var(--ink-soft)} .srp-saved i{color:var(--accent); font-size:16px}

/* split: listings (60%) | map (40%) */
.srp-split{flex:1; display:flex; min-height:0}
.srp-list{flex:0 0 50%; max-width:50%; overflow-y:auto; background:var(--ground)}
.srp-grip{display:none}   /* mobile split-view drag handle only (shown in the ≤820 block) */
.srp-toolbar{display:none}   /* mobile split-view toolbar only */
.srp-map{flex:0 0 50%; position:relative; border-left:1px solid var(--border)}

/* listings column */
.srp-sub{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:18px 20px 12px}
.srp-sub h1{font-size:20px; font-weight:600; letter-spacing:-.01em}
.srp-cnt{color:var(--muted); font-size:13px; margin-top:3px} .srp-cnt b{color:var(--ink); font-weight:700}
.srp-sort{display:flex; align-items:center; gap:9px; flex:none} .srp-sort>span{font-size:13px; color:var(--muted); font-weight:600}
.srp-sort .sel{position:relative}
.srp-sort .sel select{appearance:none; padding:9px 34px 9px 13px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink); font-family:var(--font-body); font-size:14px; font-weight:600; cursor:pointer}
.srp-sort .sel i{position:absolute; right:11px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:15px; pointer-events:none}
.srp-grid{display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:4px 16px 28px}
.srp-sentinel{height:1px; width:100%}   /* infinite-scroll trip wire (observed with a ~1000px rootMargin) */
.srp-grid.is-loading{opacity:.55; transition:opacity .12s; pointer-events:none}   /* in-place filter apply — no page reload */
/* ── Loading skeletons — a LAYOUT BACKSTOP shown only during a real fetch/image wait (no artificial delay). ── */
@keyframes skShimmer{0%{background-position:-140% 0}100%{background-position:140% 0}}
.lc-sk{pointer-events:none}
.lc-sk .lc-photo{background:color-mix(in srgb,var(--ink) 7%,var(--card))}   /* grey (override the accent gradient) */
.lc-sk .lc-body{display:flex; flex-direction:column; gap:10px; padding-top:14px; padding-bottom:16px}
.sk-bar{border-radius:6px; background:linear-gradient(100deg,color-mix(in srgb,var(--ink) 6%,var(--card)) 30%,color-mix(in srgb,var(--ink) 12%,var(--card)) 50%,color-mix(in srgb,var(--ink) 6%,var(--card)) 70%); background-size:220% 100%; animation:skShimmer 1.25s ease-in-out infinite}
.sk-price{height:26px; width:46%} .sk-specs{height:15px; width:64%} .sk-addr{height:15px; width:82%} .sk-sub{height:12px; width:40%}
/* real card photo: a shimmer over the placeholder until the <img> loads (JS removes .is-loading on load) */
.lc-photo.is-loading::after{content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background:linear-gradient(100deg,transparent 25%,color-mix(in srgb,#fff 42%,transparent) 50%,transparent 75%); background-size:220% 100%; animation:skShimmer 1.25s ease-in-out infinite}
.lc-slide{opacity:0; transition:opacity .35s ease} .lc-slide.is-loaded{opacity:1}
.srp-gridmsg{grid-column:1/-1; padding:44px 16px; text-align:center; color:var(--ink-soft); font-size:15px}
/* denser cards on the SRP — smaller photo + tighter type to fit more on screen */
.srp-grid .lc-photo{aspect-ratio:16/9}
.srp-grid .lc-body, .det-sim .lc-body{padding:4px 14px 8px}
.srp-grid .lc-price, .det-sim .lc-price{font-size:24px}
.srp-grid .lc-specs, .det-sim .lc-specs{font-size:16.5px; gap:16px; margin:7px 0} .srp-grid .lc-specs i, .det-sim .lc-specs i{font-size:20px}
.srp-grid .lc-addr, .det-sim .lc-addr{font-size:17px; margin-top:0}
.srp-grid .lc-addr2, .det-sim .lc-addr2{font-size:14.5px}
.srp-grid .lc-mls, .det-sim .lc-mls{margin-top:5px}

/* custom dropdown picker (replaces native select) */
.dd{position:relative}
.dd-trig{display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); font-family:var(--font-body); font-weight:600; font-size:15px; color:var(--ink); cursor:pointer; white-space:nowrap; transition:border-color .15s} .dd-trig:hover{border-color:var(--ink-soft)}
.dd-trig i{color:var(--muted); font-size:15px; transition:transform .15s}
.dd.open .dd-trig{border-color:var(--ink-soft)} .dd.open .dd-trig i{transform:rotate(180deg)}
/* Styled dropdown menu — unified with the header account/profile dropdown (.hdr-acct-pop). */
.dd-menu{position:absolute; top:calc(100% + 6px); right:0; min-width:200px; background:var(--card); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-lift); padding:8px; display:none; z-index:60}
.dd.open .dd-menu{display:block}
.dd-menu.left{right:auto; left:0}
.dd-opt{display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; padding:12px 15px; border:none; background:none; border-radius:10px; font-family:var(--font-body); font-size:16px; font-weight:500; color:var(--ink); text-align:left; cursor:pointer}
.dd-opt:hover{background:var(--surface)}
.dd-opt.is-sel{color:var(--accent); font-weight:700}
.dd-opt i{font-size:16px; color:var(--accent); opacity:0; flex:none} .dd-opt.is-sel i{opacity:1}

/* ---- filter chip popovers (Price / Beds & baths / Property type) ---- */
.filt{position:relative}
.srp-chip i.ph-caret-down{transition:transform .15s}
.filt.open .srp-chip{border-color:var(--ink-soft)} .filt.open .srp-chip i.ph-caret-down{transform:rotate(180deg)}
.filt-count{display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; margin-left:4px; border-radius:var(--r-pill); background:var(--accent); color:var(--accent-ink); font-size:11px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums}
.srp-chip.applied{border-color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,transparent); color:var(--ink)} .srp-chip.applied i{color:var(--accent)}
.filt-pop{position:absolute; top:calc(100% + 8px); left:0; z-index:60; width:380px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lift); padding:24px; display:none}
.filt.open .filt-pop{display:block}
.filt-pop.thin{width:238px}
.filt[data-filt="status"] .filt-pop{width:266px}   /* a touch wider so "Under contract/Pending" fits one line */
.fpop-h{font-weight:700; font-size:18px; color:var(--ink); margin-bottom:20px}
.fpop-sub{font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:22px 0 12px}
.fpop-foot{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:22px; padding-top:18px; border-top:1px solid var(--border)}
.fpop-foot .filt-apply{white-space:nowrap; padding:11px 18px}   /* "See N homes" preview stays one line */
.fpop-reset{background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:14px; cursor:pointer; padding:0; white-space:nowrap} .fpop-reset:hover{color:var(--ink)}
.filt-lbl{display:block; font-size:15px; font-weight:700; color:var(--ink-soft); margin-bottom:11px}
.filt-chips{display:flex; flex-wrap:wrap; gap:8px}
.type-actions{margin-bottom:16px}
.type-toggle{background:none; border:none; padding:0; color:var(--accent); font-family:var(--font-body); font-weight:700; font-size:14px; cursor:pointer} .type-toggle:hover{text-decoration:underline}
.type-list{display:flex; flex-direction:column; gap:17px}
.type-list .check{font-size:16px; color:var(--ink)}
.type-list .ck-box{width:24px; height:24px; border-radius:7px} .type-list .ck-box i{font-size:15px}
/* bigger filter internals — these are main characters */
.filt-pop .seg button{font-size:15px; padding-top:11px; padding-bottom:11px}
.filt-pop .rng-hist{height:56px}
.filt-pop .rng-thumb{width:22px; height:22px}
.filt-pop .rng-vals{font-size:16px; margin-top:18px}
.filt-pop .mm-in input{font-size:15px; padding:14px 14px 14px 28px}
.filt-pop .mm-in .cur{font-size:16px}
/* price List-price / Monthly-payment */
.filt[data-filt="price"] .fpop-h{margin-bottom:12px}
.price-mode{margin-bottom:18px}
.price-panel[hidden]{display:none}
.price-help{font-size:12.5px; color:var(--ink-soft); line-height:1.45; margin:12px 2px 0}
.price-disc{font-size:11px; color:var(--ink-soft); line-height:1.5; margin-top:16px}
/* Monthly-payment panel: Down payment (small $/% toggle ABOVE a full-width field) + a compact Interest rate */
.mrow{display:flex; gap:16px; margin-top:16px; align-items:flex-start}
.mrow .mcol{min-width:0}
.mrow .dp-col{flex:1}                               /* down payment gets the room (fits "1,000,000") */
.mrow .rate-col{flex:none; width:120px}
.dp-head{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:11px}
.dp-head .filt-lbl{margin-bottom:0}
.seg.dp-unit.sm{flex:none; padding:2px}
.seg.dp-unit.sm button{padding:4px 11px; font-size:12.5px; font-weight:700; border-radius:8px}
.mm-in.dp-field{width:100%}
.mm-in.dp-field input{width:100%; padding-left:14px}
.mm-in.rate-in input{padding-left:14px; padding-right:26px}
.mm-in .cur.suf{left:auto; right:12px}

/* ---- "All filters" mega-panel — full-height dropdown, contained + scrollable ---- */
.more-pop{width:min(600px, calc(100vw - 32px)); left:auto; right:0; padding:0; max-height:calc(100dvh - 88px); overflow:hidden; flex-direction:column}
.filt.open .more-pop{display:flex}
.more-head{flex:none; display:flex; align-items:center; justify-content:space-between; padding:20px 24px 15px; border-bottom:1px solid var(--border)}
.more-head .fpop-h{margin:0}
.more-x{width:34px; height:34px; display:grid; place-items:center; border:none; background:transparent; border-radius:8px; cursor:pointer; color:var(--ink-soft); font-size:20px; transition:background .12s, color .12s}
.more-x:hover{background:color-mix(in srgb,var(--ink) 7%,transparent); color:var(--ink)}
.more-body{flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:4px 24px 20px}
.more-sec{padding:16px 0; border-bottom:1px solid var(--border)}
.more-sec:last-child{border-bottom:none}
.more-row2{display:grid; grid-template-columns:1fr 1fr; gap:0 22px; padding:16px 0; border-bottom:1px solid var(--border)}
.more-row2 .more-sec{border:none; padding:0}
.more-checks{display:grid; grid-template-columns:1fr 1fr; gap:12px 18px}
.more-checks .check{font-size:16px; color:var(--ink)}
.more-nohoa{margin-top:14px; font-size:16px; color:var(--ink)}
.more-body .mm-in input{padding-left:14px}
.more-body .mm-in.mm-money input{padding-left:26px}   /* room for the $ prefix on HOA / property tax */
.more-kw input{width:100%; box-sizing:border-box; padding:13px 15px; font-size:15px; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); color:var(--ink); font-family:inherit}
.more-kw input::placeholder{color:var(--ink-soft)}
.more-kw input:focus{outline:none; border-color:var(--accent)}
/* ── Keyword token input (.tagfield; reusable) — chips populate BELOW the field. WHITE pill + accent text (never a tinted fill) ── */
.tagfield .tag-input{width:100%; box-sizing:border-box; padding:13px 15px; font-size:15px; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); color:var(--ink); font-family:inherit; outline:none}
.tagfield .tag-input::placeholder{color:var(--ink-soft)}
.tagfield .tag-input:focus{border-color:var(--accent)}
.tagfield .tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.tagfield .tags:empty{margin-top:0}
.tag{display:inline-flex; align-items:center; gap:5px; padding:5px 6px 5px 13px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-pill); font-size:13.5px; font-weight:600; color:var(--accent); white-space:nowrap}
.tag-x{display:grid; place-items:center; width:18px; height:18px; border:none; border-radius:50%; background:transparent; color:var(--accent); opacity:.6; cursor:pointer; padding:0; flex:none}
.tag-x:hover{opacity:1; background:var(--surface)}
.tag-x i{font-size:12px}
/* ── Typeahead menu skin (.pick-menu; reused by the search bar) — dropdown surface + row anatomy
   (icon / label / sub / right-meta / group header). Each caller supplies its own row content. ── */
.pick-menu{position:fixed; z-index:90; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lift); padding:6px; max-height:320px; overflow-y:auto; overscroll-behavior:contain}
.pick-row{display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:var(--r-sm); cursor:pointer}
.pick-row.is-active{background:var(--surface)}                 /* keyboard/hover highlight — neutral, never tinted */
.pick-ic{font-size:19px; color:var(--muted); flex:none; width:22px; text-align:center}
.pick-main{flex:1; min-width:0}
.pick-label{font-size:15px; color:var(--ink); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pick-sub{font-size:12.5px; color:var(--muted); margin-top:1px}
.pick-meta{flex:none; font-size:12px; font-weight:700; color:var(--ink-soft); background:var(--card); border:1px solid var(--border); border-radius:var(--r-sm); padding:2px 8px}   /* right-slot (e.g. school grade span) */
.pick-group{font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:11px 10px 5px}   /* group header (search bar) */
.pick-group+.pick-row, .pick-row+.pick-group{border-top:0}
.pick-empty{padding:12px 12px; font-size:14px; color:var(--muted)}
.more-foot{flex:none; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 24px; border-top:1px solid var(--border); background:var(--card)}
.more-foot .fpop-reset{background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:15px; cursor:pointer; font-family:inherit; padding:6px 4px}
.more-foot .fpop-reset:hover{color:var(--ink)}
.more-foot .filt-apply{padding:11px 22px}
/* range slider + histogram */
.rng-hist{display:flex; align-items:flex-end; gap:2px; height:46px; padding:0 8px}
.rng-hist span{flex:1; background:var(--border); border-radius:2px 2px 0 0; transition:background .12s}
.rng-hist span.in{background:color-mix(in srgb,var(--accent) 42%,var(--card))}
.rng-track{position:relative; height:4px; border-radius:999px; background:var(--border); margin:9px 8px 0}
.rng-fill{position:absolute; top:0; height:100%; border-radius:999px; background:var(--accent)}
.rng-thumb{position:absolute; top:50%; width:20px; height:20px; border-radius:50%; background:var(--card); border:2px solid var(--accent); box-shadow:var(--shadow-card); transform:translate(-50%,-50%); cursor:grab; touch-action:none}
.rng-thumb:active{cursor:grabbing}
.rng-vals{display:flex; justify-content:space-between; margin-top:16px; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--ink); font-variant-numeric:tabular-nums}
/* min / max inputs */
.mm{display:flex; align-items:center; gap:12px}
.mm-in{position:relative; flex:1}
.mm-in .cur{position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:15px; pointer-events:none}
.mm-in input{width:100%; padding:12px 13px 12px 26px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink); font-family:var(--font-body); font-size:14px; outline:none; font-variant-numeric:tabular-nums}
.mm-in input:focus{border-color:var(--accent)}
.mm-dash{width:14px; height:1.5px; background:var(--border); flex:none}
/* segmented control */
.seg{display:inline-flex; background:var(--card); border:1px solid var(--border); border-radius:9px; padding:3px}
.seg button{border:none; background:transparent; padding:8px 14px; border-radius:8px; font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--ink-soft); cursor:pointer}
.seg button.on{background:var(--card); color:var(--accent); box-shadow:0 0 0 1px var(--border), 0 2px 8px -1px rgba(16,15,14,.18)}
.seg.full{display:flex; width:100%}
.seg.full button{flex:1; padding-left:4px; padding-right:4px; text-align:center}
/* multi-select chip */
.chip{border:1px solid var(--border); background:var(--card); color:var(--ink-soft); padding:8px 13px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; font-family:var(--font-body); transition:.15s}
.chip:hover{border-color:var(--ink-soft)}
.chip[aria-pressed="true"]{background:var(--ink); color:var(--ground); border-color:var(--ink)}
.chip.filter[aria-pressed="true"]{background:var(--accent); color:var(--accent-ink); border-color:var(--accent)}

/* ───────── Mobile (≤820px): every filter dropdown becomes a bottom slide-up sheet ─────────
   No markup change — the 4 core chips AND the "All filters" mega-panel all render into .filt-pop, so this is a
   scoped restyle. positionFiltPop() skips its inline fixed-positioning on mobile so these rules govern. */
@media(max-width:820px){
  body.filt-sheet-open{overflow:hidden}
  body.filt-sheet-open::before{content:""; position:fixed; inset:0; background:rgba(26,20,15,.42); z-index:8400; animation:filtScrim .2s ease}
  @keyframes filtScrim{from{opacity:0}to{opacity:1}}
  /* Sheet EXIT — _v3SheetOut adds .v3-sheet-out to the panel (and .v3-back-out to an .emodal scrim) just before the real
     close, so sheets slide DOWN the way they slid up instead of popping out. !important overrides the entrance animation. */
  .v3-sheet-out{animation:v3SheetDown .24s cubic-bezier(.4,0,1,1) forwards !important}
  @keyframes v3SheetDown{to{transform:translateY(100%)}}
  .v3-back-out{animation:v3BackOut .24s ease forwards}
  @keyframes v3BackOut{to{opacity:0}}
  /* the popover, re-anchored to the bottom as a full-width sheet */
  .filt-pop, .filt-pop.thin, .filt[data-filt="status"] .filt-pop{
    position:fixed; left:0; right:0; bottom:0; top:auto; width:100%; max-width:none; max-height:86dvh; margin:0;
    border-radius:20px 20px 0 0; border-bottom:0; padding:20px 18px 0;
    box-shadow:0 -12px 40px -12px rgba(20,15,10,.40); overflow-y:auto; -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain; z-index:8500; animation:filtSheetUp .3s cubic-bezier(.2,.75,.3,1)}
  @keyframes filtSheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  /* grab handle at the top of every sheet */
  .filt-pop::before{content:""; display:block; width:38px; height:4px; border-radius:2px; background:var(--border); margin:0 auto 16px; flex:none}
  /* sticky footer → Apply / "See N homes" always reachable while the body scrolls */
  .fpop-foot{position:sticky; bottom:0; background:var(--card); margin-top:20px; padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  /* the "All filters" mega-panel: same bottom sheet; keep its own header/scroll-body/footer intact */
  .more-pop{padding:0; max-height:86dvh; overflow:hidden; border-radius:20px 20px 0 0}
  .more-pop::before{margin:12px auto 4px}
  .more-foot{position:static; padding-bottom:calc(15px + env(safe-area-inset-bottom))}

  /* ── Combined "Filters" sheet: the 4 core filters are relocated (JS) into .msheet-core at the TOP of .more-body ──
     The chip row is gone; the solo "Filters" button is the only entry. Each moved .filt renders as an inline section. */
  .srp-chips{display:none !important}
  .msheet-core .filt{position:static; display:block; padding:16px 0; border-bottom:1px solid var(--border)}
  .msheet-core .filt-trig{display:none}                 /* the chip trigger — the section header replaces it */
  .msheet-core .filt-pop, .msheet-core .filt-pop.thin{
    position:static !important; left:auto !important; right:auto !important; bottom:auto !important; top:auto !important;
    width:auto !important; max-width:none !important; max-height:none !important; margin:0 !important;
    border:0 !important; border-radius:0 !important; box-shadow:none !important; padding:0 !important;
    overflow:visible !important; z-index:auto !important; animation:none !important}
  .msheet-core .filt-pop::before{display:none}          /* no grab handle on inner sections */
  .msheet-core .fpop-foot{display:none}                 /* one global footer (the sheet's See-homes) — not per section */
  .msheet-core .fpop-h{font-size:15px; font-weight:700; color:var(--ink-soft); margin:0 0 12px}
  .msheet-core .filt-lbl{font-size:14px}
  .msheet-core .mm-in input{padding-left:26px}   /* room for the $ prefix (price min/max) — .more-body's 14px default overlapped it */
  /* Status section — collapsible, starts collapsed */
  .msheet-core .filt[data-filt="status"] .fpop-h{display:flex; align-items:center; justify-content:space-between; margin:0; cursor:pointer; -webkit-tap-highlight-color:transparent}
  .msheet-core .filt[data-filt="status"] .fpop-h::after{content:""; width:8px; height:8px; border-right:2px solid var(--ink-soft); border-bottom:2px solid var(--ink-soft); transform:rotate(45deg); transition:transform .2s; margin:-3px 3px 0 0}
  .msheet-core .filt[data-filt="status"]:not(.msheet-collapsed) .fpop-h{margin-bottom:12px}
  .msheet-core .filt[data-filt="status"]:not(.msheet-collapsed) .fpop-h::after{transform:rotate(225deg)}
  .msheet-core .filt[data-filt="status"].msheet-collapsed .filt-radios{display:none}
  /* Status "For sale" is the server default; give the collapsed header a hint of the current pick */
  /* mobile layout rearrange: 2-up rows stack to their own row (each min/max group gets full width) + breathing room */
  .more-row2{grid-template-columns:1fr; row-gap:20px}
  .more-checks{grid-template-columns:1fr 1fr}
  .more-body{padding-left:18px; padding-right:18px}

  /* ── Mobile bar restructure — Row 1: pill search + icon-only Filters. Row 2: Save (½) + Sort (½). ── */
  .srp-bar{padding:10px 14px 12px}
  .sbar, .srp-bar .sbar{flex:1 1 auto; min-width:0; max-width:none; order:1; border-radius:var(--r-pill); box-shadow:0 1px 2px rgba(20,15,10,.05)}
  .sbar-field{padding:0 6px 0 15px}
  .sbar-in{flex:1 1 0; padding:9px 2px; font-size:14px}
  .sbar-go{display:none}                                            /* drop the orange search button on mobile */
  .srp-baractions{order:2; flex:0 0 auto; margin-left:0}
  .srp-baractions .filt-more .filt-trig{width:44px; min-height:40px; padding:0; gap:0; justify-content:center; align-items:center; font-size:0; border-radius:var(--r-pill)}
  .srp-baractions .filt-more .filt-trig i.ph-sliders-horizontal{font-size:19px}
  .srp-baractions .filt-more .filt-count{display:none !important}   /* no number indicator on mobile */
  /* Row 2 (JS-relocated): Save + Sort side by side, thin, each ~half */
  .srp-mobrow2{order:9; flex:1 1 100%; display:flex; align-items:stretch; gap:10px; margin-top:2px}
  .srp-mobrow2 .ss-savewrap{flex:1 1 0; min-width:0}
  .srp-mobrow2 .ss-btns{width:100%}
  .srp-mobrow2 .ss-btn-save{width:100%; padding:9px 12px; border-radius:var(--r-pill)}
  .srp-mobrow2 .ss-save-more{display:inline}                        /* "Save" → "Save search" on mobile */
  .srp-mobrow2 .srp-sort{flex:1 1 0; min-width:0; gap:0}
  .srp-mobrow2 .srp-sort>span{display:none}                         /* hide the "Sort" label — the pill reads "Newest" */
  .srp-mobrow2 .srp-sort .dd{width:100%}
  .srp-mobrow2 .srp-sort .dd-trig{width:100%; justify-content:center; padding:9px 14px; border-radius:var(--r-pill); font-size:14px}
  .srp-mobrow2 .srp-sort .dd-trig i{display:none}                   /* remove the caret — centered "Newest" */

  /* Sort → slide-up sheet (mobile) */
  .srp-mobrow2 .srp-sort .dd-menu{position:fixed; left:0; right:0; bottom:0; top:auto; width:100%; min-width:0; max-height:70dvh;
    border-radius:20px 20px 0 0; border-bottom:0; padding:10px 12px calc(14px + env(safe-area-inset-bottom));
    box-shadow:0 -12px 40px -12px rgba(20,15,10,.40); overflow-y:auto; -webkit-overflow-scrolling:touch; z-index:8500;
    animation:filtSheetUp .3s cubic-bezier(.2,.75,.3,1)}
  .srp-mobrow2 .srp-sort .dd-menu::before{content:""; display:block; width:38px; height:4px; border-radius:2px; background:var(--border); margin:2px auto 10px}
  .srp-mobrow2 .srp-sort .dd-opt{padding:15px 14px; font-size:16px; border-radius:12px}

  /* Save search → slide-up sheet (mobile) */
  .srp-mobrow2 .ss-pop{position:fixed; left:0; right:0; bottom:0; top:auto; width:100%; max-width:none; max-height:82dvh;
    border-radius:20px 20px 0 0; padding:8px 18px calc(20px + env(safe-area-inset-bottom));
    box-shadow:0 -12px 40px -12px rgba(20,15,10,.40); overflow-y:auto; -webkit-overflow-scrolling:touch; z-index:8600;
    animation:filtSheetUp .3s cubic-bezier(.2,.75,.3,1)}
  .srp-mobrow2 .ss-pop::before{content:""; display:block; width:38px; height:4px; border-radius:2px; background:var(--border); margin:4px auto 14px}

  /* ── Condensed results header — H1 (SEO) + count on ONE row (H1 left, count right) to reclaim a row ── */
  .srp-sub{padding:9px 15px 6px; align-items:center}
  .srp-sub > div:not(.srp-sort){flex:1; min-width:0; display:flex; align-items:baseline; justify-content:space-between; gap:10px}
  .srp-sub h1{font-size:14px; line-height:1.25; flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .srp-cnt{font-size:12px; margin-top:0; flex:none; white-space:nowrap}
  /* ── Condensed cards — shorter photo + tighter body/type, MLS# hidden ── */
  .srp-grid .lc-photo{aspect-ratio:2.2/1}
  .srp-grid{gap:14px; padding:2px 14px 22px}
  .srp-grid .lc-body{padding:8px 14px 10px}
  .srp-grid .lc-price{font-size:21px}
  .srp-grid .lc-specs{font-size:15px; gap:14px; margin:4px 0}
  .srp-grid .lc-specs i{font-size:18px}
  /* street + city on ONE line, city muted; ellipsis if it overflows */
  .srp-grid .lc-addrline{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.35}
  .srp-grid .lc-addr{display:inline; font-size:15px; white-space:normal; overflow:visible; text-overflow:clip; line-height:inherit}
  .srp-grid .lc-addr2{display:inline; font-size:15px; margin-left:5px; margin-top:0; line-height:inherit}
  .srp-grid .lc-mls{display:none}
}

/* map column — live Mapbox GL */
.srp-map-gl{position:absolute !important; inset:0}
.srp-map-gl .mapboxgl-canvas{outline:none}
.srp-map .mapbg{position:absolute; inset:0; border:none; border-radius:0; height:auto}
.mapbg{position:relative; overflow:hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb,var(--ink) 5%,transparent) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 52px, color-mix(in srgb,var(--ink) 5%,transparent) 52px 53px),
    var(--surface)}
.mapbg .mk{position:absolute; transform:translate(-50%,-50%)}
.map-ov{position:absolute; z-index:4}
.map-ov-tl{top:14px; left:14px} .map-ov-tr{top:14px; right:14px}
.map-btn{display:inline-flex; align-items:center; gap:6px; padding:9px 13px; background:var(--card); border:1px solid var(--border); border-radius:var(--r); font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--ink); cursor:pointer; box-shadow:var(--shadow-card)} .map-btn:hover{border-color:var(--ink-soft)} .map-btn i{font-size:15px; color:var(--muted)}
/* ── Freehand draw-to-filter — the bar overlays the map pane; crosshair cursor; home pins hidden while drawing ── */
.srp-draw-ui{position:absolute; inset:0; z-index:6; display:none; pointer-events:none}
.srp-draw-ui[aria-hidden="false"]{display:block}
body.srp-drawing .map-ov{display:none !important}
body.srp-drawing .srp-map-gl .mapboxgl-canvas{cursor:crosshair}
body.srp-drawing .srp-map-gl .mapboxgl-marker{display:none !important}   /* hide DOM price pills → clean canvas to draw on */
.srp-draw-bar{position:absolute; top:0; left:0; right:0; display:flex; align-items:center; gap:12px; padding:11px 13px; background:var(--card); border-bottom:1px solid var(--border); box-shadow:0 2px 10px rgba(20,12,16,0.06); pointer-events:auto}
.srp-draw-x{flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:color-mix(in srgb, var(--ink) 6%, transparent); border:0; color:var(--ink); cursor:pointer} .srp-draw-x:hover{background:color-mix(in srgb, var(--ink) 11%, transparent)} .srp-draw-x i{font-size:17px}
.srp-draw-title{flex:1 1 auto; text-align:center; color:var(--ink); font-family:var(--font-display); font-weight:600; font-size:15px}
.srp-draw-acts{flex:0 0 auto; display:flex; align-items:center; gap:9px}
.srp-draw-apply{background:var(--accent); color:var(--accent-ink); border:0; border-radius:10px; padding:9px 17px; font-family:var(--font-body); font-weight:700; font-size:14px; cursor:pointer} .srp-draw-apply:hover{filter:brightness(0.95)}
.srp-draw-clear{background:transparent; color:var(--ink); border:1px solid var(--border); border-radius:10px; padding:9px 17px; font-family:var(--font-body); font-weight:700; font-size:14px; cursor:pointer} .srp-draw-clear:hover{border-color:var(--ink-soft)}
/* DOM price pill (above PILL_ZOOM; below, WebGL dots/clusters render — those need no CSS). --mk = status color. */
.mk-pill{display:inline-flex; align-items:center; position:relative; font-family:var(--font-body); font-weight:800; font-size:10.5px; letter-spacing:-.01em; font-variant-numeric:tabular-nums; background:var(--card); color:var(--ink); border:1px solid var(--mk,var(--accent)); padding:2px 6px; border-radius:999px; box-shadow:var(--shadow-card); cursor:pointer; white-space:nowrap}
.mk-pill .mk-tail{position:absolute; bottom:-4px; left:50%; width:7px; height:7px; background:var(--card); border-right:1px solid var(--mk,var(--accent)); border-bottom:1px solid var(--mk,var(--accent)); transform:translateX(-50%) rotate(45deg)}
.mk-pill:hover{z-index:4}
.mk-pill.is-sel{background:var(--mk,var(--accent)); color:#fff; z-index:5} .mk-pill.is-sel .mk-tail{background:var(--mk,var(--accent))}
/* card → marker highlight (hover sync): fill + lift so the hovered card's pill pops */
.mk-pill.is-hover{background:var(--mk,var(--accent)); color:#fff; z-index:6; transform:scale(1.06); box-shadow:var(--shadow-lift)} .mk-pill.is-hover .mk-tail{background:var(--mk,var(--accent))}
/* ── Pill preview card (hover desktop / tap mobile) — the real .lc listing card in a popover over the map ── */
.v3-map-preview{position:absolute; z-index:40; width:196px; pointer-events:auto; filter:drop-shadow(0 10px 22px rgba(16,20,26,.26)); opacity:0; transform:translateY(4px) scale(.985); transition:opacity .12s ease, transform .12s ease}
.v3-map-preview.is-in{opacity:1; transform:none}
.v3-map-preview .lc{margin:0; box-shadow:none; cursor:pointer}
.v3-map-preview .lc:hover{box-shadow:none; transform:none}
/* Compact card in the popover — shrink the photo + all content so it covers fewer pills */
.v3-map-preview .lc-photo{aspect-ratio:16/10}
.v3-map-preview .lc-body{padding:2px 10px 8px}
.v3-map-preview .lc-price{font-size:18px}
.v3-map-preview .lc-mo{font-size:10px}
.v3-map-preview .lc-status{font-size:8px; padding:2px 5px}
.v3-map-preview .lc-hl{top:8px; left:8px; font-size:8px; padding:3px 6px}
.v3-map-preview .lc-specs{gap:9px; margin:4px 0; font-size:11px}
.v3-map-preview .lc-specs i{font-size:13px}
.v3-map-preview .lc-addr{font-size:12px}
.v3-map-preview .lc-addr2{font-size:11px; margin-top:1px}
.v3-map-preview .lc-mls{display:none}
.v3-map-preview .lc-fav{width:24px; height:24px; top:7px; right:7px; opacity:1; transform:none}
.v3-map-preview .lc-fav i{font-size:12px}
.v3-map-preview .lc-locate{display:none}   /* redundant on the map itself */
.v3-map-preview::after{content:""; position:absolute; left:var(--caret,50%); bottom:-6px; transform:translateX(-50%) rotate(45deg); width:12px; height:12px; background:var(--card); border-right:1px solid var(--border); border-bottom:1px solid var(--border)}
.v3-map-preview.is-below::after{bottom:auto; top:-6px; transform:translateX(-50%) rotate(225deg)}
.v3-map-preview-load{height:150px; border-radius:var(--r-lg); border:1px solid var(--border); background:linear-gradient(100deg,var(--surface) 30%,color-mix(in srgb,var(--surface) 55%,#fff) 50%,var(--surface) 70%); background-size:200% 100%; animation:v3prevshim 1.1s linear infinite}
@keyframes v3prevshim{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* ── MOBILE bottom-docked pin card (Zillow/Redfin) — horizontal, swipeable through stacked pins ── */
/* z-index 61 = above the .mnav bottom nav (60) + the Save/Draw toolbar, so the card sits on top of everything.
   `bottom` is set in JS to dock ABOVE the .mnav bar; this calc is the fallback when the nav isn't present. */
.v3-mobcard{position:fixed; left:8px; right:8px; bottom:calc(env(safe-area-inset-bottom,0px) + 66px); z-index:61; display:none; transform:translateY(180%); transition:transform .26s cubic-bezier(.2,.7,.3,1)}
.v3-mobcard.is-in{transform:none}
.v3-mobcard-strip{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none}
.v3-mobcard-strip::-webkit-scrollbar{display:none}
.v3-mobcard-slide{flex:0 0 100%; scroll-snap-align:center; box-sizing:border-box; padding:0 2px}
.v3-mobcard-load{height:96px; border-radius:14px; border:1px solid var(--border); background:var(--card); box-shadow:var(--shadow-lift)}
.v3-mobcard .lc{display:flex; flex-direction:row; align-items:stretch; height:96px; margin:0; border-radius:14px; overflow:hidden; box-shadow:var(--shadow-lift); cursor:pointer}
.v3-mobcard .lc-photo{flex:0 0 128px; aspect-ratio:auto; height:auto; align-self:stretch; border-radius:0}
.v3-mobcard .lc-arrow, .v3-mobcard .lc-dots, .v3-mobcard .lc-locate, .v3-mobcard .lc-mls, .v3-mobcard .lc-hl{display:none}   /* single hero photo, no carousel/badges in the dock */
.v3-mobcard .lc-fav{width:26px; height:26px; top:6px; right:6px; opacity:1; transform:none}
.v3-mobcard .lc-fav i{font-size:12px}
.v3-mobcard .lc-body{flex:1; min-width:0; padding:8px 12px; display:flex; flex-direction:column; justify-content:center}
.v3-mobcard .lc-top{gap:8px}
.v3-mobcard .lc-price{font-size:19px}
.v3-mobcard .lc-mo{font-size:10px}
.v3-mobcard .lc-status{font-size:8px; padding:2px 5px}
.v3-mobcard .lc-specs{gap:10px; margin:3px 0; font-size:11px} .v3-mobcard .lc-specs i{font-size:13px}
.v3-mobcard .lc-addr{font-size:12px}
.v3-mobcard .lc-addr2{font-size:11px; margin-top:0}
.v3-mobcard-dots{position:absolute; top:-24px; left:50%; transform:translateX(-50%); font:600 11px/1 var(--font-body); color:#fff; background:rgba(20,24,30,.72); padding:4px 10px; border-radius:999px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
/* co-located (condo) stack: a "card behind" look (via box-shadow so it always paints BEHIND — a negative-z ::before
   breaks once the pill gets a stacking context on hover) + a +N badge; click opens the unit list */
.mk-multi{box-shadow:3px 3px 0 -1px var(--card), 3px 3px 0 0 var(--mk,var(--accent)), var(--shadow-card)}
.mk-badge{display:inline-flex; align-items:center; justify-content:center; min-width:14px; height:14px; margin-left:5px; padding:0 3px; border-radius:999px; background:var(--mk,var(--accent)); color:#fff; font-size:9px; font-weight:800; line-height:1}
.mk-pill.is-hover .mk-badge{background:#fff; color:var(--mk,var(--accent))}
.mk-pop-wrap .mapboxgl-popup-content{padding:0; border-radius:12px; overflow:hidden; box-shadow:var(--shadow-lift); border:1px solid var(--border)}
.mk-pop{font-family:var(--font-body); min-width:210px; max-height:288px; overflow-y:auto}
.mk-pop-h{position:sticky; top:0; padding:13px 14px 11px; font-weight:800; font-size:13px; border-bottom:1px solid var(--border); background:var(--card)}
.mk-pop-row{display:flex; align-items:center; gap:8px; width:100%; padding:9px 14px; background:none; border:none; border-bottom:1px solid var(--border); cursor:pointer; text-align:left; font-family:inherit; transition:background .12s}
.mk-pop-row:last-child{border-bottom:none}
.mk-pop-row:hover{background:var(--surface)}
/* the unit you're currently viewing — just orange text (the app's selection convention), no spine/fill */
.mk-pop-row.is-active .mk-pop-addr, .mk-pop-row.is-active .mk-pop-price, .mk-pop-row.is-active .mk-pop-bd{color:var(--accent)}
.mk-pop-addr{flex:1; min-width:0; font-weight:600; font-size:12px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.mk-pop-price{font-weight:800; font-size:12px; color:var(--ink); margin-left:8px; flex:none}
.mk-pop-bd{font-size:11px; color:var(--muted); flex:none}

@media(max-width:900px){
  .srp-split{flex-direction:column}
  .srp-list{flex:1 1 auto; max-width:100%}
  .srp-map{display:none}
  .srp-grid{grid-template-columns:1fr}
  /* compact filter bar: stack to 3 tidy rows — full-width search · chips in ONE horizontal-scroll row (never wrap) ·
     Save search. The saved-homes heart is dropped (the bottom-nav Saved tab covers it). */
  /* Row 1: shortened search + Filters + Save (heart dropped). Row 2: the primary filter chips scroll. */
  .srp-bar{flex-direction:row; flex-wrap:wrap; align-items:center; gap:9px; padding:10px 14px}
  .sbar, .srp-bar .sbar{flex:1 1 0; min-width:132px; max-width:none; order:1}   /* basis 0 so it doesn't hog row 1 — Filters + Save sit beside it; floor keeps the field usable */
  .sbar-in{flex:1 1 0}   /* basis 0 so the input shrinks (placeholder truncates) instead of forcing width */
  .sbar-go{width:42px}
  .srp-baractions{flex:0 0 auto; order:2; margin-left:0; gap:7px}
  .srp-chips{flex:1 1 100%; order:3; gap:7px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none}
  .srp-chips::-webkit-scrollbar{display:none}
  .srp-chips .filt{flex:none}
  .srp-chips .srp-chip{padding:9px 11px}
  .srp-saved{display:none}
  /* compact the two row-1 actions so a usable search field remains */
  .ss-save-more{display:none}   /* "Save search" -> "Save" */
  .srp-baractions .ss-btn-save{padding:9px 12px}
  .srp-baractions .filt-more .filt-trig{padding:8px 11px}
  .srp-baractions .filt-more .filt-trig .ph-caret-down{display:none}   /* sheet opens on tap — no caret; the count badge stays (combined active-filter count) */
}

/* ══════════ Mobile split view (≤820px) — full-screen map + draggable list sheet ══════════
   Zillow model: the map fills the screen, the search bar floats transparent over it, and the list is a
   FIXED bottom sheet dragged between 3 snaps (full map · 60/40 split · full list). Desktop keeps the
   side-by-side split. Snap px + the handle drag are driven by _srpMobileSplit() in shell.js.
   (Placed after the ≤900 block so it wins — that block hides the map for tablets.) */
@media(max-width:820px){
  .srp-split{display:block}
  /* map — full-screen, behind the sheet + bar */
  .srp-map{display:block; position:fixed; inset:0; z-index:1; border-left:0}
  /* search bar — floats over the map, transparent; only the pills are interactive (gaps pan the map) */
  .srp-bar{position:fixed; left:0; right:0; top:var(--srp-hdr-h,30px); z-index:6; background:transparent; border-bottom:1px solid transparent; padding:8px 12px; pointer-events:none;
    transition:background-color .3s cubic-bezier(.2,.75,.3,1), border-color .3s cubic-bezier(.2,.75,.3,1)}
  .srp-bar > *{pointer-events:auto}
  /* The slide-up sheets (filters/sort/save) render as position:fixed panels but live INSIDE .srp-bar, whose z-index:6
     forms a stacking context — so their z-index:8500 is LOCAL to that context and sits under the root-level scrim
     (body.filt-sheet-open::before, z 8400). Lift the bar above the scrim while a sheet is open so its sheet is tappable;
     the scrim still dims the map (z1) + list (z4) behind, and the thin search-bar row above the sheet is harmless. */
  body.filt-sheet-open .srp-bar{z-index:8450}
  /* full-list snap → the bar goes opaque (fades in, timed with the sheet snap) so the map no longer shows behind it */
  body.srp-full .srp-bar{background:var(--card); border-bottom-color:var(--border); pointer-events:auto}
  /* full-list → the sheet sits flush under the bar: flatten the grip lip so bar + list read as one white surface */
  body.srp-full .srp-grip{border-radius:0; box-shadow:none}
  /* full-list (settled, not mid-drag) → the map is fully covered, so drop it out of the render tree (no wasted GPU/tiles).
     It re-mounts + resizes the instant a drag back begins, resuming exactly where it left off. */
  body.srp-map-off .srp-map{display:none}

  /* ── Split-view toolbar: Draw · Layers · Save. FLOATS above the grip (over the map), not attached to the sheet —
     so in full-map view it rides above the handle, which sits above the bottom nav. Hidden in full-list; the map's
     own Draw/Layers overlays are hidden (they live here now); the bar's Save+Sort row is suppressed (Save is here, Sort gone). ── */
  /* PINNED (fixed) over the map, just under the search bar — --srp-tb-top set in JS to the bar's bottom. Sits OUTSIDE
     the list sheet now, so it never rides down with the list. Hidden in full-list except the view-cycle (to get back). */
  .srp-toolbar{position:fixed; left:0; right:0; top:var(--srp-tb-top,112px); z-index:5;
    display:flex; align-items:center; gap:8px; padding:0 14px; background:transparent; pointer-events:none;
    transition:top .3s cubic-bezier(.2,.75,.3,1)}
  body.srp-dragging .srp-toolbar{transition:none}   /* track the list live while dragging; animate on snap */
  .srp-toolbar > *{pointer-events:auto}
  body.srp-full .srp-toolbar{display:none}   /* full-list: no toolbar (no clean spot for it) — drag the sheet down to exit */
  .srp-tool{width:40px; height:38px; flex:none; display:grid; place-items:center; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--card); color:var(--ink); cursor:pointer; font-size:0; box-shadow:0 2px 8px rgba(20,15,10,.16)}
  .srp-tool i{font-size:18px}
  /* view-cycle button: icon + label, auto width */
  .srp-tool-view{width:auto; display:inline-flex; align-items:center; gap:6px; padding:0 13px}
  .srp-tool-view i{font-size:16px}
  .srp-tool-view-l{font:700 12px/1 var(--font-body); color:inherit; letter-spacing:.01em}
  body.srp-drawing .srp-tool-view{display:none}   /* while drawing, the toolbar shows Cancel/Clear/Apply only */
  .srp-tool.is-active{border-color:var(--accent); color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,transparent)}
  .srp-tool-save{margin-left:auto; padding:8px 16px; font-size:13px; border-radius:var(--r-pill); box-shadow:0 2px 8px rgba(20,15,10,.2)}
  .map-ov{display:none}   /* Draw moved into the toolbar */
  .srp-map .mapboxgl-ctrl-logo{display:none}   /* hide the Mapbox wordmark (it gets lifted to the top by the ctrl rule below) */
  .srp-map .mapboxgl-ctrl-group{display:none}  /* no zoom +/- buttons on mobile — pinch-to-zoom is all you need */
  /* ── While drawing, the SAME floating toolbar swaps Draw+Save for Cancel · Clear · Apply (no separate draw bar) ── */
  .srp-draw-bar{display:none}                  /* the top/bottom draw bar is replaced by the toolbar on mobile */
  .srp-tool-dcancel, .srp-tool-dclear, .srp-tool-dapply{display:none}          /* draw-mode buttons: hidden until drawing */
  body.srp-drawing .srp-tool-draw, body.srp-drawing .srp-tool-save{display:none}
  body.srp-drawing .srp-tool-dcancel{display:grid}
  body.srp-drawing .srp-tool-dclear, body.srp-drawing .srp-tool-dapply{display:inline-flex}
  .srp-tool-dclear{margin-left:auto; align-items:center; padding:8px 16px; font-size:13px; font-weight:700; border-radius:var(--r-pill);
    border:1px solid var(--border); background:var(--card); color:var(--ink); box-shadow:0 2px 8px rgba(20,15,10,.16); cursor:pointer}
  .srp-tool-dapply{align-items:center; padding:8px 18px; font-size:13px; border-radius:var(--r-pill); box-shadow:0 2px 8px rgba(20,15,10,.2)}
  /* split/map: suppress the bar's Save+Sort row, but keep the savewrap renderable so the toolbar's Save can open its sheet */
  body:not(.srp-full) .srp-mobrow2{margin-top:0; gap:0}
  body:not(.srp-full) .srp-mobrow2 .ss-btns, body:not(.srp-full) .srp-mobrow2 .srp-sort{display:none}
  /* list — a fixed bottom sheet, translated to one of 3 snap points */
  .srp-list{position:fixed; inset:0; z-index:4; max-width:none; overflow:visible; background:transparent;
    display:flex; flex-direction:column; will-change:transform;
    transform:translateY(var(--sheet-y,58vh)); transition:transform .3s cubic-bezier(.2,.75,.3,1)}
  body.srp-dragging .srp-list{transition:none}
  /* grip — the drag handle + rounded sheet lip */
  .srp-grip{display:flex; flex-direction:column; align-items:center; flex:none; width:100%; padding:8px 0 7px; gap:4px;
    background:var(--card); border:0; border-radius:18px 18px 0 0; box-shadow:0 -10px 30px -12px rgba(20,15,10,.26);
    cursor:grab; touch-action:none; -webkit-tap-highlight-color:transparent}
  .srp-grip:active{cursor:grabbing}
  .srp-grip-bar{width:40px; height:5px; border-radius:3px; background:var(--border)}
  /* scrollable list body */
  .srp-list-body{flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
    background:var(--ground); padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .srp-list-body .srp-sub{background:var(--card)}   /* white header lip under the grip */
  /* map controls — lift out from under the sheet, just below the floating bar */
  .srp-map .mapboxgl-ctrl-bottom-right, .srp-map .mapboxgl-ctrl-bottom-left{bottom:auto; top:calc(var(--srp-hdr-h,30px) + 58px)}
}

/* ===================== Listing detail — overlay + page ===================== */
/* overlay over the frozen search page (iframe embed) */
#detail-overlay{position:fixed; inset:0; z-index:200; display:none}
#detail-overlay.is-open, #detail-overlay.is-closing{display:block}   /* stay mounted through the exit animation */
.detail-scrim{position:absolute; inset:0; background:rgba(26,20,15,.5); backdrop-filter:blur(2px); animation:detFade .18s ease}
.detail-panel{position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:min(1520px, calc(100vw - 96px)); background:var(--card); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-lift); animation:detRise .22s cubic-bezier(.2,.7,.3,1)}
/* CLOSE — the reverse of the open animation (scrim fades, panel falls). */
#detail-overlay.is-closing .detail-scrim{animation:detFadeOut .2s ease forwards}
#detail-overlay.is-closing .detail-panel{animation:detFall .2s cubic-bezier(.4,0,1,1) forwards}
/* MOBILE listing open = a native-feeling drill-down: the fullscreen panel slides in from the right (out to the
   right on close). The skeleton covers the load so there's no blank gap. Overrides detRise/detFall below 880px. */
@keyframes detSlideInR{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes detSlideOutR{from{transform:translateX(0)}to{transform:translateX(100%)}}
.detail-frame{width:100%; height:100%; border:0; display:block; background:var(--card); opacity:1; transition:opacity .2s ease}
/* skeleton over the iframe while it loads (revealed on frame 'load') */
.detail-sk{position:absolute; inset:0; z-index:1; background:var(--card); overflow:hidden; display:none}
.detail-panel.is-loading .detail-sk{display:block}
.detail-panel.is-loading .detail-frame{opacity:0}
.dsk{padding:22px 26px; height:100%; box-sizing:border-box; overflow:hidden}
.dsk .sk-bar{border-radius:8px}
.dsk-hero{display:grid; grid-template-columns:2fr 1fr; gap:8px; height:min(46vh,360px)}
.dsk-hero-main{height:100%; border-radius:14px}
.dsk-hero-side{display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px}
.dsk-thumb{height:100%; border-radius:12px}
.dsk-body{display:grid; grid-template-columns:1fr 360px; gap:40px; margin-top:24px}
.dsk-price{height:34px; width:210px}
.dsk-facts{display:flex; gap:14px; margin-top:16px}
.dsk-fact{height:16px; width:76px}
.dsk-addr{height:18px; width:44%; margin-top:16px}
.dsk-nav{display:flex; gap:10px; margin-top:24px}
.dsk-pill{height:26px; width:82px; border-radius:20px}
.dsk-lines{display:flex; flex-direction:column; gap:11px; margin-top:26px}
.dsk-line{height:14px}
.dsk-rail .dsk-railcard{border:1px solid var(--border); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:13px}
.dsk-rail-h{height:22px; width:64%; margin-bottom:4px}
.dsk-btn{height:46px; width:100%; border-radius:12px; margin-top:8px}
/* Mobile listing = ONE photo column + slide-up sheet, so the skeleton must match: a single tall photo (no
   left-hero + 4-thumb desktop split), single-column body, no rail. */
@media (max-width:900px){
  .dsk-body{grid-template-columns:1fr} .dsk-rail{display:none}
  .dsk-hero{grid-template-columns:1fr; height:min(44vh,340px)}
  .dsk-hero-side{display:none}
}
@keyframes detFade{from{opacity:0}to{opacity:1}}
@keyframes detRise{from{opacity:0; transform:translateX(-50%) translateY(10px)}to{opacity:1; transform:translateX(-50%) translateY(0)}}
@keyframes detFall{from{opacity:1; transform:translateX(-50%) translateY(0)}to{opacity:0; transform:translateX(-50%) translateY(8px)}}
@keyframes detFadeOut{from{opacity:1}to{opacity:0}}

/* embed doc (inside the iframe) */
body.det-embed{background:var(--card)}
/* slim listing action bar — Back/✕ (left) · Save · Share (right) */
.det-topbar{position:sticky; top:0; z-index:30; display:flex; align-items:center; justify-content:space-between; padding:12px 18px; background:var(--card); border-bottom:1px solid var(--border)}
.det-close{display:inline-flex; align-items:center; gap:7px; border:none; background:none; padding:0; color:var(--ink-soft); font-weight:600; font-size:15px; cursor:pointer; font-family:inherit; transition:color .12s}
.det-close:hover{color:var(--ink)}
.det-close i{font-size:18px}
.det-actions{display:flex; align-items:center; gap:4px}
.det-act{display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border:none; background:none; color:var(--ink); font-size:14.5px; font-weight:600; cursor:pointer; font-family:inherit; border-radius:var(--r-md); transition:background .12s}
.det-act:hover{background:var(--surface)}
.det-act i{font-size:18px}
.det-act.is-saved i{color:var(--accent)}
.det-save.pop i{animation:favPop .36s cubic-bezier(.34,1.56,.64,1)}

/* standalone back bar */
.det-backbar{display:flex; align-items:center; justify-content:space-between; max-width:1520px; margin:0 auto; padding:16px 28px 0}
.det-back{display:inline-flex; align-items:center; gap:7px; color:var(--ink-soft); font-weight:600; font-size:15px; text-decoration:none}
.det-back:hover{color:var(--ink)}
.det-back i{font-size:18px}

.det{max-width:1520px; margin:0 auto; padding:0 28px 96px}
body.det-embed .det{padding-top:14px}

/* hero gallery (placeholder photos) */
.det-hero{display:grid; grid-template-columns:2fr 1fr; gap:8px; height:432px; border-radius:var(--r-lg); overflow:hidden; margin-top:16px}
.det-hero-side{display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:8px}
.det-hero-main{position:relative; height:100%}
.det-photo{position:relative; display:block; width:100%; height:100%; padding:0; border:none; cursor:pointer; background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 26%,#dfd9d3),color-mix(in srgb,var(--accent2) 22%,#cfc9c3)); background-size:cover; background-position:center; transition:filter .15s}
.det-photo[data-lbx]:hover{filter:brightness(.94)}
.det-photo-empty{display:grid; place-items:center; gap:6px; color:var(--ink-soft); font-size:14px; cursor:default}
.det-photo-empty i{font-size:30px}
.det-hl{position:absolute; top:16px; left:16px; background:var(--accent); color:var(--accent-ink); font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:6px 11px; border-radius:var(--r-sm)}
.det-hl.is-closed{background:var(--st-closed); color:#fff}   /* SOLD pill — matches the .lc-hl.is-closed card badge (not the accent "feature" style) */
.det-allphotos{position:absolute; bottom:12px; right:12px; display:inline-flex; align-items:center; gap:7px; background:var(--card); color:var(--ink); border:none; border-radius:var(--r-pill); padding:9px 14px; font-size:13px; font-weight:700; cursor:pointer; box-shadow:var(--shadow-card); transition:color .12s}
.det-allphotos:hover{color:var(--accent)}
.det-addr2{font-size:16px; color:var(--muted); margin-top:2px}
.det-soon{font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-pill); padding:2px 7px; vertical-align:middle; margin-left:6px}
.det-notfound{max-width:420px; margin:80px auto; text-align:center; color:var(--ink)}
.det-notfound i{font-size:44px; color:var(--muted)} .det-notfound h1{font-size:24px; margin:14px 0 6px} .det-notfound p{color:var(--muted); margin:0 0 20px}
/* section nav — replaces the hairline; sticky scrollspy tabs */
.det-nav{position:sticky; top:0; z-index:20; display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; background:var(--ground); border-bottom:1px solid var(--border); margin-top:6px; padding:2px 0}
.det-nav::-webkit-scrollbar{display:none}
.det-nav-tab{flex:none; padding:13px 14px; font-size:14.5px; font-weight:600; color:var(--ink-soft); text-decoration:none; border-bottom:2px solid transparent; white-space:nowrap; transition:color .12s, border-color .12s}
.det-nav-tab:hover{color:var(--ink)}
.det-nav-tab.on{color:var(--accent); border-bottom-color:var(--accent)}
.det-sec, .det-head{scroll-margin-top:76px}

/* key-facts strip */
.det-head{padding:2px 0 18px; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap}
.det-head-l{flex:1; min-width:0}
.det-disc{flex:none; margin-top:6px; display:inline-flex; align-items:center; gap:8px; padding:11px 15px; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); color:var(--ink-soft); font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; transition:.12s}
.det-disc:hover{border-color:var(--accent); color:var(--accent)}
.det-disc i{font-size:17px}
.det-priceblock{display:flex; flex-direction:column; gap:2px}
.det-price{font-family:'Satoshi',sans-serif; font-weight:900; font-size:34px; letter-spacing:-.02em; color:var(--ink)}
.det-mo{font-size:15px; color:var(--ink-soft); font-weight:600; font-variant-numeric:tabular-nums}
.det-mo[data-tip]{cursor:help; text-decoration:underline; text-decoration-style:dotted; text-decoration-color:color-mix(in srgb,var(--ink-soft) 55%,transparent); text-underline-offset:3px}
/* lead-swap — searched by monthly payment → /mo LEADS, list price muted (mirrors the search card). */
.det-priceblock.is-lead-mo .det-mo{order:-1; font-family:'Satoshi',sans-serif; font-weight:900; font-size:34px; letter-spacing:-.02em; color:var(--ink); text-decoration:none}
.det-priceblock.is-lead-mo .det-price{font-size:16px; font-weight:600; color:var(--ink-soft)}
.lc-priceblock.is-lead-mo .lc-mo{order:-1; font-family:var(--font-display); font-size:20px; font-weight:700; color:var(--ink); letter-spacing:-.02em; text-decoration:none}
.lc-priceblock.is-lead-mo .lc-price{font-size:13px; font-weight:600; color:var(--ink-soft)}
.det-addr{font-size:22px; color:var(--ink); margin-top:9px}
.det-facts{display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-top:9px; font-size:27px; color:var(--ink-soft)}
.det-facts b{color:var(--ink); font-weight:800}
.det-dot{width:4px; height:4px; border-radius:50%; background:var(--ink-soft); opacity:.5}
.det-meta{display:flex; align-items:center; gap:10px; margin-top:12px; font-size:15px; color:var(--ink-soft); flex-wrap:nowrap}
.det-status-inline{flex:none; display:inline-flex; align-items:center; white-space:nowrap; background:var(--sc,var(--st-active)); color:#fff; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:4px 9px; border-radius:var(--r-xs); line-height:1}
.det-meta-txt{white-space:nowrap}
.det-updated{white-space:nowrap; font-size:12.5px; color:var(--muted); border-radius:6px; padding:2px 4px}
.det-updated:empty{display:none}

/* body: main (placeholders) + right rail */
.det-body{display:grid; grid-template-columns:1fr 372px; gap:36px; margin-top:14px; align-items:start}
.det-main{min-width:0}  /* let the 1fr track hold its width so the similar-homes rail scrolls inside it (not blow the column out) */
.det-sec{padding:26px 0; border-top:1px solid var(--border)}
.det-sec:first-child{border-top:none; padding-top:14px}
.det-sec h2{font-family:'Satoshi',sans-serif; font-weight:800; font-size:21px; color:var(--ink); margin:0 0 12px}
.det-sec-ph{min-height:96px; border:1px dashed var(--border); border-radius:var(--r-md); display:grid; place-items:center; color:var(--ink-soft); font-size:14px; background:var(--surface)}
/* What's special = the listing description — clamped with a fade + read more */
.det-desc{font-size:18px; line-height:1.65; color:var(--ink); max-width:70ch}
/* shared collapse — clamp + bottom fade + Read more (What's special, Facts & features) */
.det-collapse{position:relative}
.det-collapse.clamped{overflow:hidden}
.det-collapse.clamped::after{content:""; position:absolute; left:0; right:0; bottom:0; height:3.4em; background:linear-gradient(transparent, var(--ground)); pointer-events:none}
.det-desc.clamped{max-height:9.6em}
.det-facts-body.clamped{max-height:230px}
.det-readmore{margin-top:14px; display:inline-flex; align-items:center; gap:6px; border:none; background:none; padding:0; color:var(--accent); font-size:15px; font-weight:700; cursor:pointer; font-family:inherit}
.det-readmore:hover span{text-decoration:underline}
.det-readmore i{font-size:16px; transition:transform .15s}
.det-readmore.open i{transform:rotate(180deg)}
/* full-screen photo lightbox (carousel + grid) */
.lbx{position:fixed; inset:0; z-index:1000; background:rgba(12,9,7,.96); display:none; flex-direction:column}
.lbx.open{display:flex}
.lbx-top{display:flex; align-items:center; justify-content:space-between; padding:14px 18px; color:#fff; flex:none}
.lbx-count{font-size:14px; font-weight:700; font-variant-numeric:tabular-nums}
.lbx-close, .lbx-gridtoggle{display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,.12); color:#fff; border:none; border-radius:var(--r-pill); padding:9px 14px; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; transition:background .12s}
.lbx-close{padding:9px 11px} .lbx-close i, .lbx-gridtoggle i{font-size:17px}
.lbx-close:hover, .lbx-gridtoggle:hover{background:rgba(255,255,255,.22)}
.lbx-stage{flex:1; min-height:0; display:flex; padding:12px}
.lbx-img{margin:auto; max-width:100%; max-height:100%; object-fit:contain; border-radius:8px}
.lbx-arrow{position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:46px; height:46px; border-radius:50%; border:none; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; cursor:pointer; transition:background .12s}
.lbx-arrow:hover{background:rgba(255,255,255,.26)} .lbx-arrow i{font-size:22px}
.lbx-prev{left:16px} .lbx-next{right:16px}
.lbx-thumbs{flex:none; display:flex; gap:8px; overflow-x:auto; padding:12px 18px; scrollbar-width:none}
.lbx-thumbs::-webkit-scrollbar{display:none}
.lbx-thumb{flex:0 0 84px; height:58px; border-radius:7px; border:2px solid transparent; background-size:cover; background-position:center; cursor:pointer; opacity:.6; transition:opacity .12s, border-color .12s}
.lbx-thumb:hover{opacity:.85} .lbx-thumb.on{opacity:1; border-color:#fff}
.lbx-grid{display:none; flex:1; min-height:0; overflow-y:auto; padding:8px 18px 24px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px}
.lbx.grid .lbx-stage, .lbx.grid .lbx-arrow, .lbx.grid .lbx-thumbs{display:none}
.lbx.grid .lbx-grid{display:grid}
.lbx-gitem{aspect-ratio:3/2; border-radius:9px; border:none; background-size:cover; background-position:center; cursor:pointer; transition:filter .12s}
.lbx-gitem:hover{filter:brightness(.92)}
@media (max-width:720px){ .lbx-arrow{width:40px; height:40px} .lbx-thumb{flex-basis:64px; height:46px} }
/* Facts & features — highlight chips + grouped 2-col fact grid */
.det-chips{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px}
/* orange/white search-bar-chip style (no ×) — smaller than before */
.det-chip{display:inline-flex; align-items:center; padding:6px 12px; background:var(--card); border:1px solid var(--accent); border-radius:var(--r-pill); font-size:13px; font-weight:600; color:var(--accent)}
.det-highlights{margin:2px 0 16px}   /* description highlights sit tight between the header and the text */
/* IDX attribution (registry-driven) — source courtesy + verbatim MLS GRID disclaimer, logos bottom-right, muted */
.det-idx{display:flex; align-items:flex-start; justify-content:space-between; gap:28px; padding:18px 0}
.idx-text{min-width:0}
.idx-src{font-size:13px; color:var(--ink-soft); margin-top:4px}
.idx-logos{display:flex; align-items:center; gap:14px; flex:none; margin-top:2px}
.idx-logo{height:24px; width:auto; opacity:.55}
/* contact-an-agent modal (reuses .emodal chrome) */
.cmodal-panel{width:min(460px,100%)}
.cmodal-body{padding:18px}
.cmodal-lede{font-size:14px; color:var(--ink-soft); margin:0 0 16px; line-height:1.5}
.cmodal-form{display:flex; flex-direction:column; gap:12px}
.cmodal-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.cmodal-field{display:flex; flex-direction:column; gap:5px}
.cmodal-field label{font-size:13px; font-weight:600; color:var(--ink)}
.cmodal-opt{font-weight:500; color:var(--muted)}
.cmodal-field input, .cmodal-field textarea{padding:11px 13px; border:1px solid var(--border); border-radius:var(--r-md); font-family:inherit; font-size:14px; color:var(--ink); background:var(--card); outline:none; transition:border-color .15s}
.cmodal-field input:focus, .cmodal-field textarea:focus{border-color:var(--accent)}
.cmodal-field textarea{resize:vertical; min-height:70px}
.cmodal-note{display:flex; align-items:flex-start; gap:7px; font-size:12px; color:var(--ink-soft)} .cmodal-note i{color:var(--accent); font-size:15px; flex:none}
@media(max-width:520px){ .cmodal-row{grid-template-columns:1fr} }
.det-facts-grid{columns:2; column-gap:52px}
.fact-group{break-inside:avoid; -webkit-column-break-inside:avoid; padding-bottom:20px}
.fact-group h3{font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-soft); margin:0 0 4px}
.fact-row{display:flex; justify-content:space-between; gap:20px; padding:10px 0; border-bottom:1px solid var(--border); font-size:16px}
.fact-group .fact-row:last-child{border-bottom:none}
.fact-k{color:var(--ink-soft)}
.fact-v{color:var(--ink); font-weight:600; text-align:right}
@media(max-width:720px){ .det-facts-grid{columns:1} }
/* Schools — rating badge + row (Fair-Housing careful: schools + ratings only) */
.det-schools{margin-top:4px}
.school-row{display:flex; align-items:center; gap:16px; padding:14px 0; border-bottom:1px solid var(--border)}
.school-row:last-child{border-bottom:none}
.school-rating{width:48px; height:48px; border-radius:12px; border:1px solid var(--border); background:var(--card); display:flex; flex-direction:column; align-items:center; justify-content:center; flex:none; line-height:1}
.school-rating b{font-size:20px; font-weight:800}
.school-rating span{font-size:9px; font-weight:700; color:var(--ink-soft); margin-top:2px}
.school-rating[data-tier="high"] b{color:var(--ok)}
.school-rating[data-tier="mid"] b{color:#B45309}
.school-rating[data-tier="low"] b{color:var(--err)}
.school-info{flex:1; min-width:0}
.school-name{font-size:17px; font-weight:600; color:var(--ink)}
.school-meta{font-size:14px; color:var(--ink-soft); margin-top:2px}
.school-type{font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); flex:none}
.school-district{margin-top:18px; font-size:15px; color:var(--ink-soft)}
.school-district b{color:var(--ink); font-weight:700}
.det-legal{margin-top:14px; font-size:11.5px; line-height:1.5; color:var(--ink-soft)}
/* Neighborhood — map + getting around + what's nearby */
.nb-cats{display:flex; gap:8px; overflow-x:auto; padding-bottom:3px; margin-bottom:11px; scrollbar-width:none}
.nb-cats::-webkit-scrollbar{display:none}
.nb-cat{flex:none}
.nb-map{position:relative; height:340px; border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; background:var(--surface)}
.nb-map .mapboxgl-canvas{border-radius:var(--r-lg)}
.nb-map.is-static{background-image:linear-gradient(color-mix(in srgb,var(--border) 60%,transparent) 1px,transparent 1px), linear-gradient(90deg,color-mix(in srgb,var(--border) 60%,transparent) 1px,transparent 1px); background-size:46px 46px; background-position:center}
.nb-map-pin{position:relative; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--pin-c); box-shadow:0 0 0 2px var(--card), var(--shadow-lift); cursor:pointer}
.nb-map-pin::after{content:''; position:absolute; left:50%; bottom:-6px; transform:translateX(-50%); width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; border-top:9px solid var(--pin-c)}
.nb-map-home{--pin-c:var(--accent); width:44px; height:44px}
.nb-map-home i{font-size:22px}
.nb-map-office{--pin-c:var(--accent); width:36px; height:36px; background:var(--card); color:var(--accent); box-shadow:inset 0 0 0 2px var(--accent), 0 0 0 2px var(--card), var(--shadow-lift)}
.nb-map-office i{font-size:17px}
/* POI pin = a bare Mapbox-positioned wrapper (.nb-poi-mk) + an inner dot (.nb-map-poi) we can animate — Mapbox owns the
   wrapper's transform for positioning, so the hover scale has to live on the inner element. */
.nb-poi-mk{cursor:pointer}
.nb-map-poi{width:22px; height:22px; transition:transform .15s ease, box-shadow .15s ease}
.nb-map-poi::after{display:none}   /* category dots: no teardrop pointer, colored inline per category */
.nb-map-poi i{font-size:12px}
.nb-poi-mk:hover{z-index:3}
.nb-poi-mk:hover .nb-map-poi{transform:scale(1.22); box-shadow:0 0 0 2px var(--card), var(--shadow-lift)}
.nb-none{color:var(--muted)}
.nb-see{color:var(--accent); font-weight:600; cursor:pointer}
.nb-cat.nb-loading{opacity:.55; pointer-events:none}
.nb-pop .mapboxgl-popup-content{padding:8px 11px; border-radius:var(--r-md); box-shadow:var(--shadow-lift); font-family:var(--font-body)}
.nb-pop-name{font-weight:700; font-size:13px; color:var(--ink); line-height:1.25}
.nb-pop-meta{font-size:12px; color:var(--muted); margin-top:1px}
.nb-range{font-weight:500; color:var(--muted); text-transform:none; letter-spacing:0}
.nb-map.is-static .nb-map-pin{position:absolute; transform:translate(-50%,-100%)}
.nb-map.is-static .nb-map-home{left:50%; top:50%; z-index:2}
.nb-map.is-static .nb-map-office{left:63%; top:39%}
.nb-map-hint{position:absolute; bottom:11px; left:12px; display:inline-flex; align-items:center; gap:6px; font-family:var(--font-body); font-weight:700; font-size:12px; color:var(--ink-soft); background:var(--card); border:1px solid var(--border); border-radius:var(--r-pill); padding:5px 11px; box-shadow:var(--shadow-card)}
.nb-map-hint i{font-size:14px; color:var(--muted)}
.nb-sub{font-family:var(--font-body); font-weight:800; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); margin:2px 0 13px}
.nb-sub-2{margin-top:28px}
.nb-ga{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.nb-ws-attr{display:inline-block; margin-top:9px; font-size:11.5px; font-weight:600; color:var(--muted); text-decoration:none}
.nb-ws-attr:hover{color:var(--accent); text-decoration:underline}
.nb-ga-tile{background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-card); padding:17px 17px 16px}
.nb-ga-tile i{font-size:22px; color:var(--accent)}
.nb-ga-score{font-family:'Satoshi',sans-serif; font-weight:800; font-size:30px; line-height:1; color:var(--ink); margin-top:9px; font-variant-numeric:tabular-nums}
.nb-ga-score span{font-size:14px; font-weight:700; color:var(--ink-soft)}
.nb-ga-label{font-size:15px; font-weight:700; color:var(--ink); margin-top:7px}
.nb-ga-cap{font-size:12.5px; color:var(--ink-soft); margin-top:2px}
.nb-office{display:flex; align-items:center; gap:14px; text-decoration:none; background:var(--card); border:1.5px solid color-mix(in srgb,var(--accent) 42%,var(--border)); border-radius:var(--r-md); box-shadow:var(--shadow-card); padding:14px 16px; margin-bottom:14px; transition:box-shadow .18s, transform .18s}
.nb-office:hover{box-shadow:var(--shadow-lift); transform:translateY(-1px)}
.nb-office-ic{width:42px; height:42px; border-radius:11px; background:var(--accent); color:#fff; display:grid; place-items:center; flex:none}
.nb-office-ic i{font-size:22px}
.nb-office-t{flex:1; min-width:0}
.nb-office-name{font-size:15.5px; font-weight:800; color:var(--ink)}
.nb-office-meta{font-size:13px; color:var(--ink-soft); margin-top:1px}
.nb-office-mi{font-family:var(--font-body); font-weight:800; font-size:14px; color:var(--accent); border:1px solid color-mix(in srgb,var(--accent) 40%,var(--border)); border-radius:var(--r-pill); padding:5px 12px; flex:none; font-variant-numeric:tabular-nums}
.nb-nearby{display:grid; grid-template-columns:1fr 1fr; gap:0 30px}
.nb-near{display:flex; align-items:center; gap:13px; padding:13px 0; border-bottom:1px solid var(--border)}
.nb-near-ic{width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background:var(--card); display:grid; place-items:center; flex:none}
.nb-near-ic i{font-size:19px; color:var(--ink-soft)}
.nb-near-t{min-width:0}
.nb-near-name{font-size:15px; font-weight:700; color:var(--ink)}
.nb-near-meta{font-size:13px; color:var(--ink-soft); margin-top:1px; font-variant-numeric:tabular-nums}
@media(max-width:640px){.nb-ga{gap:8px}.nb-ga-tile{padding:14px 13px}.nb-ga-score{font-size:26px}.nb-nearby{grid-template-columns:1fr; gap:0}}
/* Monthly cost — mortgage calculator */
.calc{max-width:640px}
.calc-total-num{font-family:var(--font-display); font-weight:800; font-size:31px; letter-spacing:-.02em; color:var(--ink)}
.calc-total-num span{font-size:18px; font-weight:700; color:var(--ink-soft)}
.calc-total-sub{font-size:13.5px; color:var(--ink-soft); margin-top:1px}
.calc-bar{display:flex; gap:2px; height:11px; border-radius:999px; overflow:hidden; margin:13px 0 11px; background:var(--surface)}
.calc-seg{--c:var(--accent); background:var(--c); transition:width .18s}
.calc-seg-pi{--c:var(--accent)} .calc-seg-tax{--c:#E0A23C} .calc-seg-ins{--c:#8CA0AE} .calc-seg-pmi{--c:#E5674B} .calc-seg-hoa{--c:#5FA574}
.calc-legend{display:grid; grid-template-columns:1fr 1fr; gap:6px 28px}
.calc-item{display:flex; align-items:center; gap:9px; font-size:14.5px; color:var(--ink-soft)}
.calc-item b{margin-left:auto; color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums}
.calc-dot{width:11px; height:11px; border-radius:3px; flex:none; --c:var(--accent); background:var(--c)}
.calc-dot-pi{--c:var(--accent)} .calc-dot-tax{--c:#E0A23C} .calc-dot-ins{--c:#8CA0AE} .calc-dot-pmi{--c:#E5674B} .calc-dot-hoa{--c:#5FA574}
.calc-inputs{display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; margin:18px 0 2px}
.calc-field label{display:flex; align-items:center; gap:8px; font-size:14.5px; font-weight:700; color:var(--ink-soft); margin-bottom:7px}
.calc-downpct{font-weight:600; color:var(--accent)}
.calc-inp{position:relative; display:flex; align-items:center}
.calc-inp .calc-cur{position:absolute; left:13px; color:var(--ink-soft); font-size:15px; pointer-events:none}
.calc-inp input{width:100%; box-sizing:border-box; font-size:15px; font-weight:600; padding:10px 13px 10px 26px; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); color:var(--ink); font-family:inherit}
.calc-inp input:focus{outline:none; border-color:var(--accent)}
.calc-inp-suf input{padding:10px 30px 10px 13px}
.calc-inp .calc-suf{position:absolute; right:13px; color:var(--ink-soft); font-size:14px; pointer-events:none}
.calc-inp-unit input{padding-left:46px}
.calc-unit{position:absolute; left:9px; top:50%; transform:translateY(-50%); display:flex; align-items:baseline; gap:3px; z-index:2}
.calc-unit button{border:none; background:none; padding:0; font-weight:800; color:var(--ink); cursor:pointer; font-family:inherit; line-height:1; transition:opacity .12s, font-size .12s}
.calc-unit button.on{font-size:15px; opacity:1}
.calc-unit button:not(.on){font-size:11px; opacity:.3}
.calc-unit button:not(.on):hover{opacity:.6}
.calc-cta{display:flex; align-items:center; gap:13px; margin:16px 0 2px}
.calc-lender{font-size:13px; color:var(--ink-soft)}
@media(max-width:720px){ .calc-legend, .calc-inputs{grid-template-columns:1fr} }
/* MLS / IDX attribution */
.idx-courtesy{font-size:14.5px; color:var(--ink); margin-bottom:6px}
.idx-courtesy b{font-weight:700}
.idx-note{font-size:11.5px; line-height:1.5; color:var(--ink-soft); max-width:82ch}
/* Contact a dwello agent */
.contact-card{border:1px solid var(--border); border-radius:var(--r-lg); padding:24px 26px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap}
.contact-copy h2{font-size:21px; font-weight:800; color:var(--ink)}
.contact-copy p{font-size:15px; color:var(--ink-soft); margin-top:6px; line-height:1.5; max-width:44ch}
.contact-actions{display:flex; flex-direction:column; gap:10px; min-width:220px}
.contact-actions .btn{width:100%}
@media(max-width:640px){ .contact-actions{min-width:100%} }

.det-rail{position:sticky; top:84px}
/* embed overlay keeps a sticky 60px topbar; the nav sticks below it, and the rail clears both (topbar 60 + nav 55) */
body.det-embed .det-nav{top:60px}
body.det-embed .det-rail{top:126px}

/* ---- the schedule-a-showing CTA card ---- */
.tour-card{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card); padding:20px}
.tour-agent{display:flex; align-items:center; gap:11px; padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--border)}
.tour-ava{width:46px; height:46px; border-radius:var(--r-pill); background:var(--accent); display:grid; place-items:center; overflow:hidden; flex:none}
.tour-ava i{font-size:25px; color:#fff; transform:translateY(7px) scale(1.9)}
.tour-ava img{width:100%; height:100%; object-fit:cover}   /* real agent headshot fills the circle */
.tour-agent-name{font-weight:800; font-size:15px; color:var(--ink); display:flex; align-items:center; gap:5px}
.tour-agent-name i{color:var(--accent); font-size:15px}
.tour-agent-role{font-size:13px; color:var(--ink-soft); margin-top:1px}
.tour-head{font-family:'Satoshi',sans-serif; font-weight:800; font-size:19px; color:var(--ink)}
.tour-sub{font-size:14px; color:var(--ink-soft); margin-top:3px; line-height:1.4}

.tour-days{display:flex; gap:8px; margin-top:16px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none}
.tour-days::-webkit-scrollbar{display:none}
.tour-day{flex:none; width:58px; padding:9px 0; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); cursor:pointer; text-align:center; transition:.12s; font-family:inherit}
.tour-day:hover{border-color:var(--ink-soft)}
.tour-day.on{border-color:var(--accent); background:color-mix(in srgb,var(--accent) 9%,transparent)}
.tour-day-w{display:block; font-size:11px; font-weight:600; letter-spacing:-.01em; color:var(--ink-soft)}
.tour-day.on .tour-day-w{color:var(--accent)}
.tour-day-n{display:block; font-size:18px; font-weight:800; color:var(--ink); margin-top:2px}
.tour-day.on .tour-day-n{color:var(--accent)}

.tour-slots-wrap{margin-top:12px; max-height:184px; overflow-y:auto}
.tour-slots{display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-right:2px}
.tour-slot{padding:11px 0; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; transition:.12s; font-family:inherit}
.tour-slot:hover{border-color:var(--ink-soft)}
.tour-slot.on{border-color:var(--accent); background:color-mix(in srgb,var(--accent) 10%,transparent); color:var(--accent)}
.tour-slot.gone{color:var(--ink-soft); opacity:.42; text-decoration:line-through; cursor:not-allowed}
.tour-slot.gone:hover{border-color:var(--border)}

.tour-cta{width:100%; margin-top:16px; padding:14px; font-size:16px; border-radius:var(--r-md)}
.tour-or{display:flex; align-items:center; gap:12px; margin:16px 0; color:var(--ink-soft); font-size:13px}
.tour-or::before,.tour-or::after{content:""; flex:1; height:1px; background:var(--border)}
.tour-chan{display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px}
.tour-chan button{display:flex; align-items:center; justify-content:center; gap:6px; padding:11px 0; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); font-size:14px; font-weight:700; color:var(--ink); cursor:pointer; font-family:inherit; transition:.12s}
.tour-chan button:hover{border-color:var(--accent); color:var(--accent)}
.tour-chan button i{font-size:16px}
.tour-note{display:flex; align-items:flex-start; gap:8px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); font-size:12.5px; line-height:1.45; color:var(--ink-soft)}
.tour-note i{color:var(--accent); font-size:16px; flex:none; margin-top:1px}
/* compact rail: secondary "Message" under the primary CTA */
.tour-cta{margin-bottom:9px}
.tour-msg{width:100%; padding:12px; font-size:15px; border-radius:var(--r-md)}

/* ── shared picker (in-scroll scheduler + sheet step 1) ── */
.tour-scope .tour-plbl{font-size:13px; font-weight:700; color:var(--ink); margin:14px 0 8px; display:flex; align-items:center; gap:8px}
.tour-scope .tour-plbl:first-child{margin-top:0}
.tpick-count{font-weight:600; color:var(--accent); font-size:12px}
.tour-daywrap{display:flex; align-items:center; gap:8px}
.tour-dayscroll{flex:none; width:30px; height:30px; border-radius:50%; border:1px solid var(--border); background:var(--card); color:var(--ink); display:grid; place-items:center; cursor:pointer; transition:.12s}
.tour-dayscroll:hover{border-color:var(--ink)}
.tour-daywrap .tour-days{margin-top:0; flex:1}
.tour-slot.is-cap{opacity:.4; cursor:not-allowed}
.tour-slot.is-cap:hover{border-color:var(--border)}
.tpick-list{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; min-height:20px}
.tpick-empty{font-size:12.5px; color:var(--ink-soft)}
.tpick{display:inline-flex; align-items:center; gap:6px; padding:6px 8px 6px 11px; background:color-mix(in srgb,var(--accent) 8%,transparent); border:1px solid var(--accent); border-radius:var(--r-pill); font-size:13px; font-weight:600; color:var(--accent)}
.tpick i{font-size:14px}
.tpick-x{display:grid; place-items:center; width:18px; height:18px; border:none; border-radius:50%; background:transparent; color:var(--accent); cursor:pointer; padding:0}
.tpick-x:hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.tpick-x i{font-size:12px}

/* compact in-scroll teaser (day chips only → opens the sheet) */
.ttease{border:1px solid var(--border); border-radius:var(--r-lg); background:var(--card); padding:16px 18px}
.ttease-sub{display:flex; align-items:center; gap:7px; font-size:13.5px; line-height:1.4; color:var(--ink-soft); margin-bottom:13px}
.ttease-sub i{color:var(--accent); font-size:16px; flex:none}
.ttease-row{display:flex; align-items:center; gap:14px}
.ttease-days{display:flex; gap:8px; flex:1; overflow-x:auto; scrollbar-width:none}
.ttease-days::-webkit-scrollbar{display:none}
.ttease-day{flex:none; width:56px; padding:8px 0; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); cursor:pointer; text-align:center; transition:.12s; font-family:inherit}
.ttease-day:hover{border-color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,transparent)}
.ttease-day-w{display:block; font-size:11px; font-weight:600; color:var(--ink-soft)}
.ttease-day:hover .ttease-day-w{color:var(--accent)}
.ttease-day-n{display:block; font-size:17px; font-weight:800; color:var(--ink); margin-top:1px}
.ttease-day:hover .ttease-day-n{color:var(--accent)}
.ttease-cta{flex:none; padding:11px 18px; font-size:15px; border-radius:var(--r-md)}
@media(max-width:640px){ .ttease-row{flex-direction:column; align-items:stretch} .ttease-cta{width:100%} }

/* ── schedule-a-tour sheet ── */
.tmodal-panel{width:min(540px,100%)}
.tour-ctx{display:flex; align-items:center; gap:12px; padding:14px 22px; border-bottom:1px solid var(--border)}
.tour-thumb{width:56px; height:44px; flex:none; border-radius:var(--r-md); background:var(--surface) center/cover no-repeat; border:1px solid var(--border)}
.tour-thumb-ph{display:grid; place-items:center; color:var(--muted)} .tour-thumb-ph i{font-size:22px}
.tour-ctx-addr{font-weight:700; font-size:14.5px; color:var(--ink); line-height:1.25}
.tour-ctx-mode{font-size:12.5px; color:var(--ink-soft); margin-top:3px; display:flex; align-items:center; gap:5px} .tour-ctx-mode i{font-size:14px; color:var(--accent)}
.tdots{display:flex; gap:8px; padding:12px 22px 0}
.tdot{flex:1; text-align:center; font-size:11.5px; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:var(--muted); padding-bottom:8px; border-bottom:2px solid var(--border); transition:.15s}
#tmodal[data-step="1"] .tdot[data-s="1"], #tmodal[data-step="2"] .tdot[data-s="2"], #tmodal[data-step="3"] .tdot{color:var(--accent); border-color:var(--accent)}
#tmodal[data-step="2"] .tdot[data-s="1"]{color:var(--ink-soft); border-color:var(--accent)}
.tmodal-body{padding:18px 22px 22px}
.tstep{display:none}
#tmodal[data-step="1"] .tstep[data-step="1"], #tmodal[data-step="2"] .tstep[data-step="2"], #tmodal[data-step="3"] .tstep[data-step="3"]{display:block}
.tmodal .tour-slots{grid-template-columns:repeat(3,1fr); max-height:196px; overflow-y:auto; padding-right:2px}
.tstep-go{width:100%; margin-top:18px; padding:14px; font-size:16px; border-radius:var(--r-md)}
.tstep-back{display:inline-flex; align-items:center; gap:6px; background:none; border:none; color:var(--ink-soft); font-size:13.5px; font-weight:600; cursor:pointer; padding:0; margin-bottom:14px; font-family:inherit}
.tstep-back:hover{color:var(--accent)}
.tyou-recap{display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:11px 13px; background:var(--surface); border-radius:var(--r-md); font-size:13.5px; color:var(--ink); margin-bottom:16px}
.tyou-recap i{color:var(--accent); font-size:16px}
.tour-consent{font-size:11px; line-height:1.5; color:var(--muted); margin-top:12px}
/* confirmation */
.tstep-done{text-align:center}
.tdone-ic{font-size:52px; color:var(--accent); line-height:1; margin:6px 0 12px}
.tdone-h{font-family:'Satoshi',sans-serif; font-weight:800; font-size:23px; color:var(--ink)}
.tdone-sub{font-size:14.5px; line-height:1.5; color:var(--ink-soft); margin:8px auto 20px; max-width:40ch}
.tdone-lbl{text-align:left; font-size:11.5px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); margin:0 0 8px}
.tconf-times{list-style:none; text-align:left; margin:0 0 20px; display:flex; flex-direction:column; gap:7px}
.tconf-times li{display:flex; align-items:center; gap:8px; font-size:14.5px; font-weight:600; color:var(--ink)} .tconf-times li i{color:var(--accent); font-size:17px}
.tnext{list-style:none; counter-reset:tn; text-align:left; margin:0 0 22px; display:flex; flex-direction:column; gap:12px}
.tnext li{display:flex; align-items:flex-start; gap:11px; font-size:14px; line-height:1.4; color:var(--ink-soft); counter-increment:tn}
.tnext li i{flex:none; width:30px; height:30px; border-radius:50%; background:color-mix(in srgb,var(--accent) 10%,transparent); color:var(--accent); display:grid; place-items:center; font-size:16px}
.tdone-actions .btn{width:100%; padding:13px; font-size:15px; border-radius:var(--r-md)}

/* mobile sticky bottom action bar */
.det-bottombar{display:none; position:fixed; left:0; right:0; bottom:0; z-index:40; gap:10px; align-items:center; padding:11px 16px calc(11px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--border); box-shadow:0 -6px 20px -14px rgba(20,15,10,.4)}
.det-bb-icon{width:46px; height:46px; flex:none; display:grid; place-items:center; border:1.5px solid var(--border); border-radius:var(--r-md); background:var(--card); color:var(--ink); font-size:20px; cursor:pointer}
.det-bb-icon.is-saved i{color:var(--accent)}
.det-bb-tour{flex:1; padding:14px; font-size:16px; border-radius:var(--r-md)}

/* ── Mobile immersive listing (photo reel + slide-up info sheet). The reel/back/peek/fsbar/in-sheet-compliance are
      desktop-hidden; the sheet + sheet-scroll are display:contents on desktop so nav + the two-column body flow exactly
      as before — zero desktop change. Everything below only comes alive under the mobile media query. ── */
.det-reel, .det-mback, .det-peek, .det-peek-grab, .det-fsbar, .det-mcompliance, .det-cta{display:none}   /* mobile sheet chrome — hidden on desktop (the grabber was leaking as a stray pill above the tabs) */
.det-sheet, .det-sheet-scroll{display:contents}

@media(max-width:880px){
  /* desktop chrome the immersive surface replaces */
  .det-hero, .det-backbar, .det-bottombar, .det-nav, .det-rail{display:none}
  body.det-listing .hdr-wrap{display:none}
  body.det-listing, body.det-photofull{overflow:hidden}
  .det{padding:0}
  .det-body{display:block; margin-top:0}

  /* ── expanded-sheet content: the peek already shows price/address/specs/status, so hide those from the in-scroll
        head (kill the giant wrapped facts strip + duplicate price/address); keep the useful meta + disclosures. Then
        reflow the sections to a phone with the existing v3 hairline rhythm + tokens — arrangement only, no restyle. ── */
  .det-head{display:block; padding:14px 0 0; margin-top:2px; border-top:1px solid var(--border)}
  .det-head .det-priceblock, .det-head .det-facts, .det-head .det-addr, .det-head .det-addr2, .det-head .det-meta .det-status-inline{display:none}
  .det-head-l{min-width:0}
  .det-meta{margin-top:0; flex-wrap:wrap; row-gap:4px}
  .det-meta-txt, .det-updated{white-space:normal}   /* mobile: allow wrapping (desktop stays one line) */
  .det-disc{margin-top:14px; width:100%; justify-content:center}
  .det-sec{padding:22px 0}
  .det-sec h2{font-size:19px; margin-bottom:11px}
  .det-desc{font-size:16.5px; max-width:none}
  .det-idx{flex-direction:column; gap:14px; align-items:flex-start}

  /* photo reel — full-bleed vertical, behind the sheet. No scrollbar (else its gutter leaves a strip beside the photos). */
  .det-reel{display:block; position:fixed; inset:0; overflow-y:auto; -webkit-overflow-scrolling:touch; background:#0b0b0c; z-index:1; scrollbar-width:none; -ms-overflow-style:none}
  .det-reel::-webkit-scrollbar{width:0; height:0; display:none}
  .det-reel-item{width:100%; line-height:0}
  .det-reel-img{width:100%; height:auto; display:block; touch-action:pan-y}

  /* floating back over the photos */
  .det-mback{display:grid; place-items:center; position:fixed; top:calc(12px + env(safe-area-inset-top)); left:12px; z-index:6; width:40px; height:40px; border:none; border-radius:var(--r-pill); background:rgba(20,15,10,.5); color:#fff; font-size:20px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); cursor:pointer}

  /* info sheet */
  .det-sheet{display:flex; flex-direction:column; position:fixed; left:0; right:0; top:0; height:100dvh; z-index:5; background:var(--card); border-radius:18px 18px 0 0; box-shadow:0 -10px 34px -14px rgba(20,15,10,.55); transition:transform .3s cubic-bezier(.32,.72,0,1); will-change:transform}
  .det-sheet-scroll{display:block; flex:1; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:2px 18px 40px; scrollbar-width:none; -ms-overflow-style:none}
  .det-sheet-scroll::-webkit-scrollbar{width:0; height:0; display:none}
  .det-sheet.is-peek .det-sheet-scroll{overflow:hidden}

  /* grabber = the ONLY fixed top element (flex-none child of the sheet); everything else scrolls. */
  .det-peek-grab{display:block; flex:none; width:100%; border:none; background:none; padding:8px 0; cursor:grab; touch-action:none}
  .det-peek-grab>span{display:block; width:40px; height:5px; border-radius:999px; background:var(--border); margin:0 auto}
  /* peek info — status (top-left) · price + est/mo · big two-line address · BIG spec row. Share+Save cluster top-right.
     Lives at the top of the scroll region (already 18px-padded) so it scrolls away when the sheet is expanded. */
  .det-peek{display:block; position:relative; padding:2px 0 14px}
  .det-peek-actions{position:absolute; top:0; right:0; display:flex; gap:8px; z-index:2}
  .det-peek-share, .det-peek-save{width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--card); color:var(--ink); font-size:19px; cursor:pointer}
  .det-peek-save.is-saved{color:var(--accent); border-color:var(--accent)}
  .det-peek-info{cursor:pointer}
  .det-peek-statusline{margin-bottom:5px}
  .det-peek-status{font-size:11px}
  .det-peek-priceblock{display:flex; align-items:baseline; gap:9px; padding-right:96px}
  .det-peek-price{font-family:var(--font-display); font-weight:700; font-size:26px; line-height:1; color:var(--ink)}
  .det-peek-priceblock .lc-mo{font-size:13px}
  .det-peek-addr1{margin-top:11px; font-family:var(--font-display); font-weight:600; font-size:20px; line-height:1.15; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .det-peek-addr2{margin-top:1px; font-size:14px; color:var(--muted)}
  /* bed/bath/sqft — own full-width row, big + prominent (Zillow/Redfin standard; address never competes for width) */
  .det-peek-specs{display:flex; gap:24px; margin-top:14px; font-size:19px; color:var(--ink); font-variant-numeric:tabular-nums}
  .det-peek-specs span{display:inline-flex; align-items:center; gap:7px}
  .det-peek-specs i{color:var(--ink-soft); font-size:24px}
  .det-peek-specs b{font-weight:700}

  /* pinned bottom action bar — always visible; the sheet content scrolls behind it (scroll-region gets a JS padding-bottom) */
  .det-cta{display:flex; position:fixed; left:0; right:0; bottom:0; z-index:6; gap:9px; align-items:center; padding:10px 18px calc(10px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--border); box-shadow:0 -6px 20px -14px rgba(20,15,10,.4)}
  .det-peek-tour{flex:7; padding:15px; font-size:16.5px; font-weight:700; border-radius:var(--r-md)}
  .det-peek-msg{flex:3; padding:15px; font-size:15px; border-radius:var(--r-md)}

  .det.sheet-full .det-mback{display:none}   /* photos hidden when the sheet is up → back not needed (drag down to reveal) */

  /* fullscreen photo mode — the reel jumps ABOVE the sheet (z 8) so it's a true takeover over the peek, not a hide-behind */
  .det.is-photofull .det-sheet{transform:translateY(100%)}
  .det.is-photofull .det-mback, .det.is-photofull .det-cta{display:none}
  .det.is-photofull .det-reel{background:#000; z-index:8}
  .det.is-photofull .det-reel-item{overflow:visible}
  .det.is-photofull .det-fsbar{display:flex; align-items:center; justify-content:space-between; position:fixed; top:0; left:0; right:0; z-index:9; padding:calc(10px + env(safe-area-inset-top)) 16px 12px; background:linear-gradient(rgba(0,0,0,.55),transparent); pointer-events:none}
  .det-fs-close{pointer-events:auto; width:40px; height:40px; display:grid; place-items:center; border:none; border-radius:var(--r-pill); background:rgba(255,255,255,.18); color:#fff; font-size:20px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); cursor:pointer}
  .det-fs-count{color:#fff; font-size:14px; font-weight:600; text-shadow:0 1px 4px rgba(0,0,0,.6)}
  .det-reel-img.is-zoomed{position:relative; z-index:3; touch-action:none}

  /* in-sheet compliance (page footer is hidden in immersive) */
  .det-mcompliance{display:block; margin:8px -18px 0; border-top:1px solid var(--border)}

  .detail-panel{top:0; bottom:0; left:0; transform:none; width:100vw; border-radius:0; animation:detSlideInR .3s cubic-bezier(.2,.7,.3,1)}
  #detail-overlay.is-closing .detail-panel{animation:detSlideOutR .26s cubic-bezier(.4,0,1,1) forwards}
  .detail-scrim{animation:none}   /* the fullscreen panel IS the surface on mobile — no scrim fade needed */
}

/* ============================================================
   SELL PAGE (/sell) — the seller engine. White ground + accent,
   soft-lift cards, honest-first. Shares .sell-form / .sold-rail /
   .emodal / .ab-connect / .why-stars with the homepage.
   ============================================================ */
/* estimate-modal refine step (tighten the range before capture) */
.em-refine{margin-top:22px; padding-top:18px; border-top:1px solid var(--border)}
.em-refine-h{font-size:12px; font-weight:700; color:var(--ink-soft); margin-bottom:12px}
.em-refine-row{display:flex; gap:14px}
.em-refine-f{flex:1; min-width:0}
.em-refine-f+.em-refine-f{margin-top:0}
.em-refine-f>label{display:block; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:6px}
.em-seg{display:flex; width:100%}
.em-seg button{flex:1; padding:8px 4px; font-size:13px; text-align:center}
.em-seg-cond{margin-top:12px}
.em-seg-cond button{font-size:12px; padding:8px 2px}

/* hero variant (over photo) */
.sellp-hero-eye{color:#fff; opacity:.92; margin-bottom:12px; text-shadow:0 1px 8px rgba(0,0,0,.4)}
.sellp-hero-bar{max-width:560px; margin-top:6px}
.sellp-hero-bar .hs-sell{width:172px}
.sellp-hero-chips{display:flex; flex-wrap:wrap; gap:20px; margin-top:18px}
.sellp-hero-chips span{display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.45)}
.sellp-hero-chips i{font-size:17px; color:#fff}

/* shared section head + accent emphasis */
.sellp-sec-head{max-width:660px; margin:0 auto 38px; text-align:center}
.sellp-sec-head .eyebrow{color:var(--accent)}
.sellp-sec-head h2{font-size:clamp(26px,3.4vw,34px); font-weight:600; letter-spacing:-.01em; margin:8px 0 0}
.sellp-sec-sub{color:var(--ink-soft); font-size:16px; line-height:1.55; margin:12px 0 0}
.sellp-em{color:var(--accent)}
.sellp-closing-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

/* ── neighborhood / community page (prototype) ───────────────────────────────────────────── */
.nh-hero .post-crumbs{margin-bottom:14px}
.nh-hero .post-crumbs a{color:#fff; opacity:.9} .nh-hero .post-crumbs span{color:rgba(255,255,255,.6)}
.nh-hero .post-crumbs span:last-child{color:#fff}   /* current page on the dark hero — crisp, not faint */
.nh-hero-eye{color:#fff; opacity:.92; margin-bottom:10px; text-shadow:0 1px 8px rgba(0,0,0,.4)}
.nh-hero-dek{max-width:600px; color:#fff; opacity:.95; font-size:17px; line-height:1.5; text-shadow:0 1px 10px rgba(0,0,0,.5)}
.nh-hero-dek strong{font-weight:800}
.nh-hero-bar{max-width:560px; margin-top:18px}
.nh-hero-bar .hs-sell{width:172px}
.nh-hero-chips{display:flex; flex-wrap:wrap; gap:20px; margin-top:18px}
.nh-hero-chips span{display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.45)}
.nh-hero-chips i{font-size:17px; color:#fff}
.nh-sub{color:var(--ink-soft); font-size:15px; line-height:1.5; margin:6px 0 0; max-width:640px}
/* yoy chip */
.nh-yoy-row{margin-top:16px}
/* no-tint rule: white (card) inside, colored outline + text — never a tinted fill */
.nh-yoy{display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:700; padding:7px 13px; border-radius:999px; background:var(--card); border:1px solid var(--border)}
.nh-yoy.up{color:#0a7c42; border-color:#0a7c42}
.nh-yoy.dn{color:#b23b2e; border-color:#b23b2e}
.nh-yoy.fl{color:var(--ink-soft)}
/* price trend */
.nh-trend-wrap{margin-top:26px; background:var(--ground); border:1px solid var(--border); border-radius:16px; padding:20px 14px 8px; overflow-x:auto}
.nh-trend-svg{width:100%; min-width:520px; height:auto; display:block}
.nh-bar{fill:var(--accent)} .nh-bar-v{fill:var(--ink); font-size:11px; font-weight:700}
.nh-bar-x{fill:var(--muted); font-size:10px; font-weight:600}
/* by-bed table */
.nh-bed-table{width:100%; max-width:560px; margin-top:24px; border-collapse:collapse; font-size:15px}
.nh-bed-table th{text-align:left; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:0 0 10px; border-bottom:1px solid var(--border)}
.nh-bed-table td{padding:13px 0; border-bottom:1px solid var(--border)}
.nh-bed-table td:first-child{font-weight:700; color:var(--ink)}
.nh-bed-table td:last-child{font-weight:800; color:var(--ink); text-align:right}
.nh-bed-table td:nth-child(2){color:var(--ink-soft); text-align:right; width:120px}
.nh-bed-table th:last-child{text-align:right} .nh-bed-table th:nth-child(2){text-align:right}
/* actives + empty */
.nh-empty{margin-top:20px; padding:24px; background:var(--ground); border:1px dashed var(--border); border-radius:14px; color:var(--ink-soft); font-size:15px}
.nh-link{background:none; border:none; padding:0; color:var(--accent); font-weight:700; cursor:pointer; font-size:inherit}
.nh-link:hover{text-decoration:underline}
.nh-about-in{max-width:760px} .nh-about-in p{color:var(--ink-soft); font-size:16px; line-height:1.6; margin:10px 0 0}
.nh-facts{list-style:none; margin:22px 0 0; padding:0; display:grid; gap:12px}
.nh-facts li{display:flex; gap:11px; align-items:flex-start; font-size:15px; line-height:1.5; color:var(--ink)}
.nh-facts i{color:var(--accent); font-size:19px; flex:none; margin-top:1px}
.nh-closing-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px}
@media(max-width:560px){ .nh-hero-chips{gap:14px} .nh-trend-svg{min-width:460px} }

/* 2 — honest / CMA differentiator (white ground so the illustration blends) */
.sellp-honest{background:var(--ground); padding:64px 0; border-top:1px solid var(--border)}
.sellp-honest-in{display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(32px,5vw,64px); align-items:center}
.sellp-honest-copy .eyebrow{color:var(--accent)}
.sellp-honest-copy h2{font-size:clamp(26px,3.4vw,36px); font-weight:600; line-height:1.12; letter-spacing:-.01em; margin:10px 0 16px; max-width:20ch}
.sellp-honest-copy p{color:var(--ink-soft); font-size:16px; line-height:1.62; margin:0 0 14px; max-width:56ch}
.sellp-honest-list{list-style:none; padding:0; margin:18px 0 26px; display:flex; flex-direction:column; gap:11px}
.sellp-honest-list li{display:flex; gap:10px; align-items:flex-start; font-size:15px; color:var(--ink); line-height:1.4}
.sellp-honest-list i{color:var(--accent); font-size:17px; flex:none; margin-top:1px}
.sellp-honest-art img{display:block; width:100%; height:auto; max-width:520px; margin:0 auto}

/* 3 — how dwello sells (off-white band, step cards) */
.sellp-steps{background:var(--ground)}
/* roadmap: 4 stations on a flowing accent path (no boxes, no tinted fills) */
.sellp-road{position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:10px}
.sellp-road-line{position:absolute; top:32px; left:12.5%; right:12.5%; height:2px; z-index:0; background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 32%,var(--border)),var(--accent))}
.sellp-road-step{position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center}
.sellp-road-node{width:64px; height:64px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; flex:none; box-shadow:0 0 0 6px var(--ground), 0 10px 22px -8px color-mix(in srgb,var(--accent) 55%,transparent)}
.sellp-road-node i{font-size:30px}
.sellp-road-txt{margin-top:16px}
.sellp-road-num{font-family:var(--font-display); font-weight:800; font-size:13px; letter-spacing:.08em; color:var(--muted); margin-bottom:5px; font-variant-numeric:tabular-nums}
.sellp-road-step h3{font-size:18px; font-weight:600; margin:0 0 6px; color:var(--ink)}
.sellp-road-step p{font-size:14px; color:var(--ink-soft); line-height:1.55; margin:0 auto; max-width:26ch}
/* the path flows down into the portal section */
.sellp-road-into{display:flex; flex-direction:column; align-items:center; margin-top:38px}
.sellp-road-into-line{width:2px; height:40px; background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 30%,var(--border)))}
.sellp-road-into i{color:var(--accent); font-size:22px; margin-top:-5px}

/* ②b — My dwello portal (surface band; browser-frame product preview) */
.sellp-portal{background:var(--surface); padding:60px 0 64px; border-top:1px solid var(--border)}
.sellp-portal-in{display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,60px); align-items:center}
.sellp-portal-copy .eyebrow{color:var(--accent)}
.sellp-portal-copy h2{font-size:clamp(26px,3.4vw,34px); font-weight:600; letter-spacing:-.01em; margin:10px 0 14px; max-width:16ch}
.sellp-portal-copy>p{color:var(--ink-soft); font-size:16px; line-height:1.62; max-width:52ch; margin:0 0 22px}
.sellp-portal-list{list-style:none; padding:0; margin:0 0 26px; display:flex; flex-direction:column; gap:13px}
.sellp-portal-list li{display:flex; gap:11px; align-items:flex-start; font-size:15px; color:var(--ink); line-height:1.4}
.sellp-portal-list i{color:var(--accent); font-size:20px; flex:none; margin-top:1px}
.sellp-portal-viz{justify-self:center; width:100%; max-width:460px}
.sellp-device{background:var(--card); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-lift); overflow:hidden}
.sellp-device-bar{display:flex; align-items:center; gap:7px; padding:11px 15px; border-bottom:1px solid var(--border); background:var(--ground)}
.sellp-device-bar>span{width:10px; height:10px; border-radius:50%; background:var(--border)}
.sellp-device-url{margin-left:9px; font-size:11px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-pill); padding:4px 12px}
.sellp-device-body{padding:20px 22px 22px}
.sellp-device-h{font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--ink); margin-bottom:16px}
.sellp-mini{position:relative; margin-bottom:16px}
.sellp-mini::before{content:""; position:absolute; left:10px; top:18px; bottom:18px; width:2px; background:var(--border)}
.sellp-mini-step{position:relative; z-index:1; display:flex; align-items:center; gap:13px; padding:8px 0}
.sellp-mini-node{width:22px; height:22px; border-radius:50%; flex:none; display:grid; place-items:center; background:var(--surface); border:2px solid var(--border)}
.sellp-mini-node i{font-size:12px}
.sellp-mini-step.done .sellp-mini-node{background:var(--accent); border-color:var(--accent); color:#fff}
.sellp-mini-step.now .sellp-mini-node{background:var(--card); border-color:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 16%,transparent)}
.sellp-mini-lbl{font-size:14px; color:var(--ink)}
.sellp-mini-step.todo .sellp-mini-lbl{color:var(--ink-soft)}
.sellp-mini-step.now .sellp-mini-lbl{font-weight:700; color:var(--accent)}
.sellp-device-rows{display:flex; gap:12px; border-top:1px solid var(--border); padding-top:15px}
.sellp-device-rows>div{flex:1; display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink-soft)}
.sellp-device-rows i{color:var(--accent); font-size:16px; flex:none}
.sellp-device-rows b{margin-left:auto; color:var(--ink); font-weight:700}

/* 4 — comp proof (reuses sold-rail) */
.sellp-sold{background:var(--surface); padding:56px 0; border-top:1px solid var(--border)}
.sellp-sold .sold-row{margin-top:0}

/* 5 — options (white; centered path-cards, icon-in-circle to match the homepage device) */
.sellp-options{background:var(--ground)}
.sellp-opt-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:6px}
.sellp-opt{display:flex; flex-direction:column; align-items:center; text-align:center; background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); padding:30px 24px 26px; box-shadow:var(--shadow-card); transition:box-shadow .18s, transform .18s}
.sellp-opt:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift)}
.sellp-opt-ic{width:72px; height:72px; border-radius:50%; background:var(--surface); color:var(--accent); display:grid; place-items:center; flex:none; margin-bottom:16px}
.sellp-opt-ic i{font-size:32px}
.sellp-opt h3{font-size:19px; font-weight:600; margin:0 0 7px; color:var(--ink)}
.sellp-opt p{font-size:14px; color:var(--ink-soft); line-height:1.55; margin:0; max-width:32ch}

/* 6 — track your value (email-preview tile, honestly labeled) */
.sellp-track{background:var(--surface); padding:64px 0; border-top:1px solid var(--border)}
.sellp-track-in{display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(32px,5vw,56px); align-items:center}
.sellp-track-copy h2{font-size:clamp(26px,3.2vw,32px); font-weight:600; letter-spacing:-.01em; margin:10px 0 12px}
.sellp-track-copy p{color:var(--ink-soft); font-size:16px; line-height:1.62; max-width:52ch; margin:0 0 20px}
.sellp-track-form{max-width:460px}
.sellp-track-side{justify-self:center; width:100%; max-width:400px}
.sellp-track-tile{background:var(--card); border:1px solid var(--border); border-radius:var(--r-xl); box-shadow:var(--shadow-lift); padding:22px 24px}
.sellp-track-tile-lbl{display:flex; align-items:center; gap:8px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding-bottom:14px; border-bottom:1px solid var(--border)}
.sellp-track-tile-lbl i{color:var(--accent); font-size:16px}
.sellp-track-tile-row{display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-bottom:1px solid var(--border); font-size:15px; color:var(--ink-soft)}
.sellp-track-tile-row b{font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--ink); font-variant-numeric:tabular-nums}
.sellp-track-tile-row:last-of-type b{color:var(--accent)}
.sellp-track-tile-foot{font-size:12px; color:var(--muted); line-height:1.45; margin-top:12px}

/* 7 — seller proof */
.sellp-proof{background:var(--ground); padding:60px 0; border-top:1px solid var(--border)}
.sellp-proof-in{display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,5vw,60px); align-items:center; max-width:1160px; margin:0 auto; padding:0 28px}
.sellp-proof-quote p{font-family:var(--font-display); font-weight:500; font-size:clamp(20px,2.5vw,26px); line-height:1.4; color:var(--ink); margin:12px 0 12px; max-width:22ch}
.sellp-proof-points{display:flex; flex-direction:column; gap:17px}
.sellp-pp{display:flex; gap:13px; align-items:flex-start; font-size:15px; color:var(--ink-soft); line-height:1.5}
.sellp-pp i{color:var(--accent); font-size:23px; flex:none; margin-top:1px}
.sellp-pp b{color:var(--ink); font-weight:700}

/* 8 — closing (default off-white, closes the alternation) */
.sellp-closing{background:var(--surface)}

@media(max-width:900px){ .sellp-opt-grid{grid-template-columns:1fr} }
@media(max-width:820px){
  .sellp-honest-in, .sellp-track-in, .sellp-proof-in, .sellp-portal-in{grid-template-columns:1fr; gap:30px}
  .sellp-honest-art{order:-1}
  .sellp-honest-art img{max-width:360px}
  .sellp-track-side{max-width:440px}
  .sellp-portal-viz{order:-1; max-width:420px}
}
/* roadmap → vertical timeline on smaller screens */
@media(max-width:760px){
  .sellp-road{grid-template-columns:1fr; gap:0; padding-left:4px}
  .sellp-road-line{top:24px; bottom:44px; left:31px; right:auto; width:2px; height:auto; background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 32%,var(--border)))}
  .sellp-road-step{flex-direction:row; align-items:flex-start; text-align:left; gap:18px; padding:12px 0}
  .sellp-road-txt{margin-top:2px}
  .sellp-road-step p{margin:0; max-width:none}
  .sellp-road-into{align-items:flex-start; padding-left:19px; margin-top:8px}
}
/* Sell page — mobile fixes. Stacked-grid items default to min-width:auto, so the track tile's wide rows
   ("Est. net if you sold … $248,000") pushed the 1fr column past the viewport → 6px horizontal overflow + a
   cut-off form. Let them shrink; tighten the section rhythm for phones. (Desktop untouched.) */
@media(max-width:820px){
  .sellp-track-in > *, .sellp-honest-in > *, .sellp-proof-in > *, .sellp-portal-in > *{min-width:0}
  .sellp-honest, .sellp-portal, .sellp-sold, .sellp-track, .sellp-proof, .sellp-steps, .sellp-options{padding-top:48px; padding-bottom:48px}
  .sellp-sec-head{margin-bottom:28px}
  .sellp-track-side{justify-self:stretch; max-width:none}   /* value tile fills the column on mobile */
}
@media(max-width:560px){ .sellp-hero-chips{gap:14px} }

/* ============================================================
   SAVED SEARCH + ACCOUNT UI (mock) — /search save flow, /saved, auth
   ============================================================ */
[hidden]{display:none !important}   /* normalize: the hidden attribute must always hide, even over .btn / .ss-active display rules */
/* save area — button state machine + popover */
.ss-savewrap{position:relative; display:flex; align-items:center; gap:10px}
.ss-active{display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ink-soft); max-width:150px}
/* dirty-state "Save as new" caret menu (keeps the bar to one button + a caret) */
.ss-more{position:relative}
.ss-more-btn{width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink-soft); cursor:pointer; font-size:15px}
.ss-more-btn:hover{border-color:var(--ink-soft); color:var(--ink)}
.ss-more-pop{position:absolute; top:calc(100% + 6px); right:0; z-index:70; min-width:190px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lift); padding:6px}
.ss-more-pop button{display:flex; align-items:center; gap:9px; width:100%; padding:10px 11px; border:none; background:none; border-radius:var(--r-sm); font-family:var(--font-body); font-size:14px; font-weight:600; color:var(--ink); text-align:left; cursor:pointer; white-space:nowrap}
.ss-more-pop button:hover{background:var(--surface)}
.ss-more-pop button i{font-size:16px; color:var(--ink-soft)}
/* Single-row filter bar: pin the save actions; the chip cluster SCROLLS horizontally as the fallback
   on tight widths (never wraps). Safe because the filter dropdowns are portaled to FIXED positioning
   in JS (positionFiltPop, shell.js) so overflow-x:auto can't clip them. */
@media(min-width:901px){
  .srp-bar{flex-wrap:nowrap}
  .srp-searchbar{min-width:190px}
  .srp-chips{flex-wrap:nowrap; min-width:0; overflow-x:auto; scrollbar-width:none}
  .srp-chips::-webkit-scrollbar{display:none}
  .srp-baractions{flex:none}
}
.ss-active i{color:var(--accent); font-size:16px; flex:none}
.ss-active-name{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ss-btns{display:flex; gap:8px}
.ss-btn-save{gap:0}   /* no icon — kill the inherited .btn flex gap so "Save search" reads as one space (the &nbsp; in .ss-save-more is the separator) */
.ss-btn-saved{background:var(--card); color:var(--ink); border:1px solid var(--border)}
.ss-btn-saved i{color:var(--accent)}
.ss-btn-saved:hover{border-color:var(--ink-soft)}
.ss-pop{position:absolute; top:calc(100% + 10px); right:0; z-index:70; width:340px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lift); padding:20px}
.ss-pop-h{font-weight:700; font-size:16px; color:var(--ink); margin-bottom:14px}
.ss-pop-lbl{display:block; font-size:13px; font-weight:700; color:var(--ink-soft); margin-bottom:7px}
.ss-pop-lbl span{font-weight:500; color:var(--muted)}
.ss-name{width:100%; box-sizing:border-box; padding:11px 13px; font-size:15px; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink); font-family:var(--font-body); outline:none}
.ss-name:focus{border-color:var(--accent)}
.ss-pop .ss-cad{margin-top:18px}
.ss-pop-foot{display:flex; align-items:center; justify-content:space-between; margin-top:18px; padding-top:16px; border-top:1px solid var(--border)}
.ss-pop-cancel{background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:14px; cursor:pointer; font-family:inherit; padding:6px 2px}
.ss-pop-cancel:hover{color:var(--ink)}
.ss-pop-save{padding:10px 20px}
/* cadence picker */
.ss-cad-h{font-size:13px; font-weight:700; color:var(--ink-soft); margin-bottom:9px}
.ss-cad-detail{margin-top:12px}
.ss-cad-lbl{display:block; font-size:12px; font-weight:700; color:var(--muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:.05em}
.ss-cad-note{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); background:var(--surface); border-radius:var(--r); padding:11px 12px}
.ss-cad-note i{color:var(--accent); font-size:16px; flex:none}
.ss-cad-period button{flex-direction:column; line-height:1.15; padding-top:8px; padding-bottom:8px}
.ss-cad-period button span{font-size:11px; font-weight:600; color:var(--muted)}
.ss-cad-period button.on span{color:color-mix(in srgb,var(--accent) 65%, var(--ink-soft))}
.ss-days{display:flex; gap:6px; flex-wrap:wrap}
.ss-day{flex:1; min-width:38px; padding:8px 0; border:1px solid var(--border); border-radius:var(--r); background:var(--card); font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--ink-soft); cursor:pointer; text-align:center; transition:.14s}
.ss-day:hover{border-color:var(--ink-soft)}
.ss-day.on{background:var(--accent); border-color:var(--accent); color:#fff}
/* anon claim banner (bottom) */
.ss-claim{position:fixed; left:0; right:0; bottom:0; z-index:120; padding:0 16px calc(16px + env(safe-area-inset-bottom))}
.ss-claim-in{position:relative; max-width:760px; margin:0 auto; display:flex; align-items:center; gap:16px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-lift); padding:16px 44px 16px 20px}
.ss-claim-ic{width:40px; height:40px; border-radius:50%; background:var(--surface); color:var(--accent); display:grid; place-items:center; flex:none; font-size:20px}
.ss-claim-copy{flex:1; font-size:14px; color:var(--ink-soft); line-height:1.4}
.ss-claim-copy b{color:var(--ink); font-weight:700}
.ss-claim-actions{display:flex; gap:8px; flex:none}
.ss-claim-x{position:absolute; top:8px; right:9px; background:none; border:none; color:var(--muted); cursor:pointer; font-size:15px; padding:4px; line-height:1}
.ss-claim-x:hover{color:var(--ink)}
/* toast */
.ss-toast{position:fixed; left:50%; bottom:26px; transform:translate(-50%,14px); z-index:130; display:flex; align-items:center; gap:8px; background:var(--ink); color:var(--ground); font-size:14px; font-weight:600; padding:11px 18px; border-radius:var(--r-pill); box-shadow:var(--shadow-lift); opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; max-width:calc(100vw - 32px)}
.ss-toast.show{opacity:1; transform:translate(-50%,0)}
.ss-toast i{color:var(--accent); flex:none}
@media(max-width:820px){ .ss-toast{bottom:calc(66px + env(safe-area-inset-bottom))} }   /* clear the floating bottom-nav pill */
/* auth modal */
.auth-panel{width:min(440px,100%)}
.auth-body{padding:24px 26px 26px}
.auth-tabs{margin-bottom:18px}
.auth-why{font-size:13px; color:var(--ink-soft); line-height:1.5; margin-bottom:18px}
.auth-names{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.auth-names label{display:block; font-size:12px; font-weight:600; color:var(--ink-soft); margin-bottom:5px}
.auth-forgot{display:inline-block; font-size:13px; color:var(--accent); font-weight:600; margin:2px 0 16px; cursor:pointer}
.auth-legal{font-size:11px; color:var(--muted); line-height:1.45; margin-top:12px}
.auth-switch{font-size:13px; color:var(--ink-soft); text-align:center; margin-top:16px}
.auth-switch a{color:var(--accent); font-weight:600; cursor:pointer}
.auth-fix{color:var(--accent); font-weight:600; cursor:pointer; text-decoration:underline}
.auth-pass-wrap{position:relative}
.auth-pass-wrap input{width:100%; box-sizing:border-box; padding-right:42px}
.auth-show{position:absolute; right:4px; top:50%; transform:translateY(-50%); background:none; border:0; color:var(--ink-soft); cursor:pointer; padding:8px; font-size:16px; line-height:1; display:flex; align-items:center; border-radius:8px}
.auth-show:hover{color:var(--ink)}
.auth-meter{margin:9px 0 2px}
.auth-meter-bar{height:5px; border-radius:999px; background:var(--border); overflow:hidden}
.auth-meter-bar span{display:block; height:100%; width:0; border-radius:999px; transition:width .2s, background .2s; background:var(--err)}
.auth-meter-bar span.s2{background:#E0A23C} .auth-meter-bar span.s3{background:#5FA574} .auth-meter-bar span.s4{background:var(--ok)}
.auth-meter-lbl{font-size:11.5px; font-weight:600; color:var(--ink-soft); margin-top:5px; min-height:14px}
.em-hint.ok{display:flex; align-items:center; gap:5px; color:var(--ok)}
.em-hint.ok a{color:var(--accent)}
@media(max-width:560px){ .ss-pop{position:fixed; left:12px; right:12px; top:auto; bottom:12px; width:auto} .ss-claim-in{flex-wrap:wrap; padding-right:20px} .ss-claim-actions{width:100%} .ss-claim-actions .btn{flex:1} }

/* My dwello · saved searches page (/saved) */
.sv-page{padding:44px 0 72px}
.sv-head{display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; flex-wrap:wrap}
.sv-head .eyebrow{color:var(--accent)}
.sv-head h1{font-size:clamp(28px,4vw,36px); font-weight:600; letter-spacing:-.01em; margin:8px 0 0}
.sv-sub{color:var(--ink-soft); font-size:15px; margin-top:8px; max-width:52ch}
.sv-new{white-space:nowrap} .sv-new i{font-size:16px; margin-right:2px}
.acct-nav{display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:24px; overflow-x:auto}
.acct-nav a{padding:11px 16px; font-size:14px; font-weight:600; color:var(--ink-soft); border-bottom:2px solid transparent; margin-bottom:-1px; text-decoration:none; white-space:nowrap}
.acct-nav a:hover{color:var(--ink)}
.acct-nav a.on{color:var(--accent); border-bottom-color:var(--accent)}
.acct-nav a i, .acct-nav .acct-nav-lbl-m{display:none}   /* desktop = text underline tabs; icon + short label are mobile-only */
/* Account tab — profile + delete (right-to-erasure) */
.acct-card{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:22px 24px; margin-bottom:18px; max-width:620px}
.acct-card h2{font-size:17px; margin:0 0 14px}
.acct-row{display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--border); font-size:15px}
.acct-row:last-child{border-bottom:none}
.acct-lbl{color:var(--ink-soft)} .acct-val{font-weight:600; text-align:right; word-break:break-word}
.acct-danger{border-color:rgba(200,40,40,.28)}
.acct-danger h2{color:#b42318}
.acct-danger p{color:var(--ink-soft); font-size:14px; line-height:1.6; margin:0 0 16px}
.acct-danger a{color:var(--ink-soft); text-decoration:underline}
.btn-danger{background:#b42318; color:#fff; border:1px solid #b42318}
.btn-danger:hover{background:#9a1c12}
.btn-danger:disabled{opacity:.5; cursor:not-allowed}
.acct-del-btn{color:#b42318; border-color:rgba(200,40,40,.4)}
.acct-del-confirm{margin-top:16px; padding-top:16px; border-top:1px solid var(--border)}
.acct-del-confirm label{display:block; font-size:14px; color:var(--ink-soft); margin-bottom:8px}
.acct-del-confirm input{width:180px; max-width:100%; padding:9px 12px; border:1px solid var(--border); border-radius:10px; font-size:15px; letter-spacing:.05em}
.acct-del-actions{display:flex; gap:10px; margin-top:14px}
.sv-list{display:flex; flex-direction:column; gap:12px}
.sv-row{background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--shadow-card); padding:18px 20px; transition:box-shadow .18s}
.sv-row:hover{box-shadow:var(--shadow-lift)}
.sv-row-top{display:flex; align-items:center; justify-content:space-between; gap:18px}
.sv-main{min-width:0}
.sv-name{font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--ink); outline:none}
.sv-name.editing{border-bottom:1.5px solid var(--accent); display:inline-block; min-width:120px}
.sv-crit{font-size:14px; color:var(--ink-soft); margin-top:3px}
.sv-meta{display:flex; align-items:center; gap:10px; margin-top:9px; font-size:13px; color:var(--ink-soft)}
/* ⭐ Canonical highlight pill — solid accent, uppercase, --r-sm. The one pill style for count/status/
   highlight badges (locked; matches .lc-hl card badge + .det-hl detail badge). NO tints. */
.pill-accent{display:inline-flex; align-items:center; background:var(--accent); color:var(--accent-ink); font-weight:800; font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:4px 8px; border-radius:var(--r-sm); line-height:1; font-variant-numeric:tabular-nums}
.sv-dot{width:3px; height:3px; border-radius:50%; background:var(--ink-soft); opacity:.5}
.sv-cad{display:inline-flex; align-items:center; gap:5px} .sv-cad i{font-size:14px; color:var(--muted)}
.sv-actions{display:flex; align-items:center; gap:8px; flex:none}
.sv-actions .sv-edit i{font-size:15px}
.sv-menu{position:relative}
.sv-kebab{width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:var(--r); background:var(--card); color:var(--ink-soft); cursor:pointer; font-size:17px}
.sv-kebab:hover{border-color:var(--ink-soft); color:var(--ink)}
.sv-menu-pop{position:absolute; top:calc(100% + 6px); right:0; z-index:20; min-width:150px; background:var(--card); border:1px solid var(--border); border-radius:var(--r-md); box-shadow:var(--shadow-lift); padding:6px}
.sv-menu-pop button{display:flex; align-items:center; gap:9px; width:100%; padding:9px 11px; border:none; background:none; border-radius:var(--r-sm); font-family:var(--font-body); font-size:14px; color:var(--ink); text-align:left; cursor:pointer}
.sv-menu-pop button:hover{background:var(--surface)}
.sv-menu-pop button i{font-size:16px; color:var(--ink-soft)}
.sv-menu-pop .sv-del:hover{color:var(--err)} .sv-menu-pop .sv-del:hover i{color:var(--err)}
.sv-edit-panel{margin-top:16px; padding-top:16px; border-top:1px solid var(--border)}
.sv-edit-foot{display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:16px}
.sv-edit-cancel{background:none; border:none; color:var(--ink-soft); font-weight:600; font-size:14px; cursor:pointer; font-family:inherit; padding:6px 4px}
.sv-edit-cancel:hover{color:var(--ink)}
.sv-empty{text-align:center; padding:64px 20px; border:1px dashed var(--border); border-radius:var(--r-lg); background:var(--surface)}
.sv-empty-ic{width:56px; height:56px; border-radius:50%; background:var(--card); border:1px solid var(--border); display:grid; place-items:center; margin:0 auto 16px; color:var(--muted); font-size:26px}
.sv-empty h2{font-size:20px; font-weight:600; color:var(--ink); margin-bottom:6px}
.sv-empty p{font-size:14px; color:var(--ink-soft); max-width:40ch; margin:0 auto 20px}
/* ═══════════ My dwello portal — MOBILE MAKEOVER (≤820px) ═══════════
   iOS-style large title + a sticky, evenly-split icon tab bar (the persistent portal nav), edge-to-edge content
   that clears the bottom nav. The .hdr brand strip stays sticky at the very top (32px); the tab bar docks below it.
   Desktop is untouched (icons/short labels hidden above; underline text tabs preserved). */
@media(max-width:820px){
  .sv-page{padding:0 0 calc(92px + env(safe-area-inset-bottom))}
  .sv-page .wrap{max-width:none; padding:0 16px}
  /* header — large title left, one compact action right; scrolls away (only the tab bar sticks) */
  .sv-head{margin:0; padding:16px 0 12px; align-items:center; gap:10px; flex-wrap:nowrap}
  .sv-head .eyebrow{display:none}
  .sv-head > div:first-child{flex:1; min-width:0}
  .sv-head h1{font-size:25px; line-height:1.08; margin:0; letter-spacing:-.02em}
  .sv-new{flex:none; padding:9px 14px; font-size:13px; border-radius:var(--r-pill); box-shadow:0 2px 8px rgba(20,15,10,.12)}
  .sv-new i{font-size:15px; margin-right:1px}
  /* tab bar — sticky (below the 32px brand strip), full-bleed, evenly split icon + short label */
  .acct-nav{position:sticky; top:32px; z-index:30; margin:0 -16px 4px; padding:0 4px; gap:0; overflow:visible;
    background:color-mix(in srgb,var(--ground) 90%,transparent); backdrop-filter:saturate(1.5) blur(10px);
    border-bottom:1px solid var(--border)}
  .acct-nav a{flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 2px 7px;
    font-size:11px; font-weight:600; color:var(--ink-soft); border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap}
  .acct-nav a i{display:block; font-size:21px; line-height:1}
  .acct-nav .acct-nav-lbl{display:none}
  .acct-nav .acct-nav-lbl-m{display:block}
  .acct-nav a.on{color:var(--accent); border-bottom-color:var(--accent)}
  /* saved-search rows → full-width cards, actions in one row */
  .sv-list{gap:12px; margin-top:16px}
  .sv-row{padding:15px 16px; border-radius:16px}
  .sv-row-top{flex-direction:column; align-items:stretch; gap:14px}
  .sv-name{font-size:16.5px}
  .sv-actions{width:100%; gap:8px}
  .sv-actions > .btn-sm{flex:1; justify-content:center}
  .sv-menu{flex:none}
  .sv-menu .sv-kebab{width:40px; height:38px; display:grid; place-items:center; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--card)}
  .sv-menu-pop{right:0; left:auto}
  /* saved homes → full-width vertical list (matches the search results feel) */
  .sh-sec .srp-grid{grid-template-columns:1fr !important; justify-content:stretch !important; gap:14px !important; margin-top:12px}
  .sh-collapsible{margin-top:18px}
  /* account cards → full width, tighter */
  .acct-card{max-width:none; padding:18px; border-radius:16px; margin-top:16px}
  /* empty / sign-in states → clean & centered (no dashed placeholder box) */
  .sv-empty{border:0; background:none; padding:52px 8px 28px}
  .sv-empty-ic{width:64px; height:64px; font-size:29px; margin-bottom:18px}
  .sv-empty h2{font-size:21px}
  #sv-loading, #sh-loading{padding:56px 0 !important}
}
@media(max-width:400px){ .acct-nav a{font-size:10px} .sv-head h1{font-size:23px} }

/* /search empty state (0 live results) */
.srp-empty{grid-column:1 / -1; text-align:center; padding:56px 20px; border:1px dashed var(--border); border-radius:var(--r-lg); background:var(--surface)}
.srp-empty-ic{width:54px; height:54px; border-radius:50%; background:var(--card); border:1px solid var(--border); display:grid; place-items:center; margin:0 auto 14px; color:var(--muted); font-size:25px}
.srp-empty h2{font-size:19px; font-weight:600; color:var(--ink); margin-bottom:6px}
.srp-empty p{font-size:14px; color:var(--ink-soft); max-width:44ch; margin:0 auto; line-height:1.5}
