/* Atrium — CLEAR design system. One style layer themes every page.
   Brand palette: navy / blue / red, as tinted glass on a white background.
   Surfaces are brand-blue tinted glass with a bevel; REAL frosted blur only on
   nav + hero (mobile speed), repeating cards use translucent tint (no backdrop-filter).
   --grey is darkened to keep body text >=4.5:1 (WCAG AA) on the tinted cards. */
/* Self-hosted Inter (variable, latin) — served from our own edge, zero third-party round-trips. */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/fonts/inter-latin-var.woff2') format('woff2');
}
:root{
  --navy:#1a2e6e; --ink:#1a2e6e; --blue:#2e6cd4; --red:#cc0000; --grey:#4b5563;
  --text:#2a2f3c; --surface:#eef0f5; --line:#dfe3ec; --radius:22px;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;
  /* bright WHITE background; the brand colour lives in the tinted glass bevels, not here */
  background:#fff; min-height:100vh;
}
img{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1080px; margin:0 auto; padding:0 20px;}

/* a11y */
:focus-visible{outline:3px solid var(--blue); outline-offset:2px; border-radius:4px;}
.skip{position:absolute; left:-9999px; top:0; z-index:100; background:#fff; color:var(--navy); font-weight:800; padding:12px 18px; border-radius:0 0 10px 0; box-shadow:0 6px 18px rgba(20,40,90,.25); text-decoration:none;}
.skip:focus{left:0;}

/* ---- tinted glass surfaces (brand-blue glass on white) ---- */
.real-glass{background:linear-gradient(180deg, rgba(46,108,212,.30), rgba(26,46,110,.20)); -webkit-backdrop-filter:blur(22px) saturate(1.6); backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid rgba(46,108,212,.36);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.85), 0 20px 48px -24px rgba(20,40,90,.34), 0 2px 8px rgba(20,40,90,.12);}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .real-glass{background:linear-gradient(180deg,#e7f0fc,#dce8fa);} }
/* fake-glass: brand-blue-tinted bevel on white (NO blur) — colour lives here, not the bg */
.fake-glass{position:relative; background:linear-gradient(180deg, rgba(46,108,212,.24), rgba(26,46,110,.16)); border:1px solid rgba(46,108,212,.30); border-radius:var(--radius);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.8), inset 0 -10px 20px -12px rgba(26,46,110,.16), 0 22px 46px -22px rgba(20,40,90,.26), 0 2px 6px rgba(20,40,90,.09);}
.fake-glass-navy{background:linear-gradient(180deg, rgba(26,46,110,.94), rgba(18,34,86,.92)); color:#fff; border:1px solid rgba(255,255,255,.16); border-radius:var(--radius);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 22px 50px -24px rgba(20,40,90,.5);}

/* ---- nav ---- */
.nav{position:sticky; top:14px; z-index:50; margin:14px auto 0; max-width:1040px; border-radius:18px;
  display:flex; align-items:center; justify-content:space-between; padding:11px 12px 11px 20px;}
.nav img{height:28px;}
.nav .links{display:flex; gap:20px; align-items:center;}
.nav .links a{color:var(--ink); font-weight:600; font-size:14px;}
.nav .links a.call{background:var(--red); color:#fff; padding:10px 17px; border-radius:12px; font-weight:700;
  box-shadow:0 4px 12px -6px rgba(204,0,0,.32), inset 0 1px 0 rgba(255,255,255,.25);}
@media(max-width:680px){ .nav .links a:not(.call){display:none;} }

/* ---- buttons ---- */
.btn{display:inline-flex; align-items:center; justify-content:center; min-height:50px; font-weight:700; font-size:15px; padding:0 24px; border-radius:14px;
  text-decoration:none; transition:transform .12s, box-shadow .12s, filter .12s;}
.btn:hover{transform:translateY(-2px);} .btn:active{transform:translateY(0); filter:brightness(.98);}
.btn-red{background:var(--red); color:#fff; box-shadow:0 6px 16px -8px rgba(204,0,0,.4), inset 0 1px 0 rgba(255,255,255,.22);}
.btn-ghost{color:var(--navy); margin-left:10px; background:rgba(255,255,255,.6); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.85); box-shadow:inset 0 1px 0 #fff, 0 10px 24px -16px rgba(20,40,90,.4);}

/* ---- type ---- */
.eyebrow{color:var(--blue); font-weight:700; font-size:12px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:8px;}
.h2{font-size:clamp(1.7rem,5.5vw,2.4rem); font-weight:800; letter-spacing:-.025em; color:var(--navy); margin:6px 0 22px;}

/* ---- hero (text) ---- */
.hero{padding:48px 0 26px;}
.hero-panel{border-radius:26px; padding:42px 38px; max-width:840px;}
.hero-panel.real-glass{background:linear-gradient(180deg, rgba(46,108,212,.17), rgba(26,46,110,.11)); -webkit-backdrop-filter:blur(18px) saturate(1.5); backdrop-filter:blur(18px) saturate(1.5); border:1px solid rgba(46,108,212,.26);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.8), 0 24px 54px -26px rgba(20,40,90,.32), 0 2px 8px rgba(20,40,90,.10);}
.hero h1{font-size:clamp(2.4rem,8.5vw,4rem); line-height:1.02; letter-spacing:-.03em; color:var(--navy); font-weight:800;}
.hero p{font-size:18px; color:var(--grey); margin:18px 0 26px; max-width:40ch;}
.btn-red, .btn-ghost{margin-top:4px;}
.speed{margin-top:24px; display:flex; gap:22px; flex-wrap:wrap; font-size:14px; color:var(--grey);}
.speed b{color:var(--blue);}

/* ---- hero (photo) — framed clean, not full-bleed ---- */
.hero-photo{padding:40px 0 14px;}
.hero-img{border-radius:20px; overflow:hidden; aspect-ratio:16/10; box-shadow:0 28px 60px -28px rgba(20,40,90,.45), inset 0 0 0 1px rgba(255,255,255,.4);}
.hero-img img{width:100%; height:100%; object-fit:cover;}
.hero-copy{padding-top:18px;}
.hero-copy h1{font-size:clamp(2.1rem,8vw,3.2rem); line-height:1.04; color:var(--navy); font-weight:800; letter-spacing:-.025em; margin:8px 0 10px;}
.hero-copy .lede{font-size:17px; color:var(--grey); margin-bottom:18px;}
.hero-ctas{display:flex; flex-direction:column; gap:10px;}
.hero-ctas .btn{width:100%;} .hero-ctas .btn-ghost{margin-left:0;}
@media(min-width:760px){
  .hero-photo{display:grid; grid-template-columns:1fr 1fr; gap:26px; align-items:center;}
  .hero-copy{order:2; padding-top:0;} .hero-img{order:1;}
  .hero-copy h1{font-size:3rem;}
  .hero-ctas{flex-direction:row;} .hero-ctas .btn{width:auto;}
}

/* ---- answer-first block ---- */
.answer{padding:18px 22px; border-left:4px solid var(--blue);}
.answer-tag{display:inline-block; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--blue); margin-bottom:6px;}
.answer p{color:var(--grey); font-size:16px; line-height:1.55; margin:0;}

/* ---- community grid ---- */
section{padding:46px 0;}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px;}
.card{border-radius:var(--radius); padding:22px; text-decoration:none; display:block; transition:transform .14s, box-shadow .14s;}
.card:hover{transform:translateY(-4px); box-shadow:inset 0 1px 0 #fff, 0 30px 58px -26px rgba(20,40,90,.5);}
.card .tag{display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#fff; background:linear-gradient(120deg,var(--blue),var(--navy)); padding:4px 10px; border-radius:999px; margin-bottom:12px;}
.card h3{font-size:20px; color:var(--navy); font-weight:800; letter-spacing:-.02em; margin-bottom:6px;}
.card p{color:var(--grey); font-size:14px; margin-bottom:12px;}
.card .go{color:var(--red); font-weight:700; font-size:13px;}

/* ---- at a glance ---- */
.atglance{display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
@media(min-width:720px){ .atglance{grid-template-columns:repeat(4,1fr);} }
.atglance .g{border-radius:16px; padding:18px 20px;}
.atglance .g .gi{display:inline-flex; color:var(--blue); margin-bottom:9px;}
.atglance .g .gi svg{width:26px; height:26px;}
.atglance .g .v{font-size:20px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.atglance .g .k{font-size:12px; color:var(--grey); text-transform:uppercase; letter-spacing:.04em; margin-top:2px;}

/* ---- homes for sale: live listing card grid ---- */
.lcount{font-size:15px; color:var(--grey); margin-bottom:16px;} .lcount b{color:var(--navy); font-weight:800;}
.lgrid{display:grid; grid-template-columns:1fr; gap:16px;}
@media(min-width:560px){ .lgrid{grid-template-columns:repeat(2,1fr);} }
@media(min-width:860px){ .lgrid{grid-template-columns:repeat(3,1fr);} }
.lcard{border-radius:16px; overflow:hidden; display:flex; flex-direction:column; text-decoration:none; transition:transform .14s, box-shadow .14s;}
.lcard:hover{transform:translateY(-3px); box-shadow:inset 0 1px 0 #fff, 0 24px 48px -24px rgba(20,40,90,.5);}
.lcard .lcimg{aspect-ratio:4/3; background:linear-gradient(135deg,#dce7f6,#cdddf0); overflow:hidden;}
.lcard .lcimg img{width:100%; height:100%; object-fit:cover;}
.lcard .lcbody{padding:14px 16px;}
.lcard .lcprice{font-size:20px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.lcard .lcaddr{font-size:14px; color:var(--ink); margin-top:2px;}
.lcard .lcfacts{font-size:13px; color:var(--grey); margin-top:6px;}
.lcard .lccourtesy{font-size:10.5px; color:#9aa3b2; margin-top:9px; line-height:1.4;}

/* ---- browse-all filter bar ---- */
.lf-bar{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:8px 0 20px;}
.lf-bar select{font-family:var(--font); font-size:14px; padding:10px 14px; border-radius:11px; border:1.5px solid var(--line); background:#fff; min-height:44px; color:var(--ink); cursor:pointer;}
.lf-bar input.lf-q{font-family:var(--font); font-size:14px; padding:10px 14px; border-radius:11px; border:1.5px solid var(--line); background:#fff; min-height:44px; color:var(--ink); flex:1 1 240px; min-width:200px;}
.lf-bar select:focus, .lf-bar input.lf-q:focus{border-color:var(--blue); outline:none; box-shadow:0 0 0 3px rgba(46,108,212,.14);}
.lf-count{font-size:14px; color:var(--grey); margin-left:auto;} .lf-count b{color:var(--navy); font-weight:800; font-variant-numeric:tabular-nums;}
.lf-none{color:var(--grey); margin-top:18px; font-size:15px;}
.lf-more{display:block; width:fit-content; margin:22px auto 0;}

/* ---- listing detail page (photo gallery + two-column body, Sierra-style) ---- */
.ldwrap{max-width:1100px; margin:0 auto; padding:0 16px 50px;}
.ld-back{display:inline-block; margin:16px 0 14px; color:var(--blue); font-weight:700; font-size:14px;}
.ld-gallery{display:grid; grid-template-columns:1fr; gap:8px;}
.ld-g-hero{aspect-ratio:16/10; border-radius:16px; overflow:hidden; box-shadow:0 22px 50px -28px rgba(20,40,90,.45);}
.ld-g-hero img{width:100%; height:100%; object-fit:cover;}
.ld-g-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:8px;}
.ld-g-cell{position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden;}
.ld-g-cell img{width:100%; height:100%; object-fit:cover;}
.ld-g-more{position:absolute; inset:0; background:rgba(18,30,78,.55); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:15px;}
@media(min-width:760px){ .ld-gallery{grid-template-columns:1.7fr 1fr; align-items:stretch;} .ld-g-hero{aspect-ratio:auto; height:100%;} .ld-g-grid{grid-auto-rows:1fr;} }
.ld-addr{font-size:clamp(1.4rem,4vw,1.9rem); color:var(--navy); font-weight:800; letter-spacing:-.02em; margin:20px 0 0;}
.ld-cols{display:grid; grid-template-columns:1fr; gap:24px; margin-top:14px; align-items:start;}
@media(min-width:880px){ .ld-cols{grid-template-columns:1fr 320px;} .ld-side{position:sticky; top:18px;} }
@media(max-width:879px){ .ld-side{order:-1;} }
.ld-pricecard{padding:22px; border-radius:18px;}
.ld-pc-status{font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#1a7a3c;}
.ld-pc-price{font-size:30px; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin:2px 0;}
.ld-pc-facts{font-size:14px; color:var(--grey); margin-bottom:16px;}
.ld-pc-btn{display:flex; width:100%; margin:0 0 10px; margin-left:0;}
.ld-pc-broker{font-size:11.5px; color:var(--grey); line-height:1.5; margin-top:10px;}
.ld-pc-broker b{color:var(--navy);}
.ld-sec{margin-bottom:26px;}
.ld-h{font-size:18px; font-weight:800; color:var(--navy); letter-spacing:-.01em; margin-bottom:12px;}
.ld-desc p{color:var(--grey); font-size:15px; line-height:1.75; white-space:pre-line;}
.ld-details{display:grid; grid-template-columns:1fr;}
@media(min-width:560px){ .ld-details{grid-template-columns:1fr 1fr; column-gap:26px;} }
.ld-drow{display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:14px;}
.ld-drow span{color:var(--grey);} .ld-drow b{color:var(--navy); font-weight:600; text-align:right;}

/* ---- homes for sale (legacy CTA tile) ---- */
.listingcta{padding:24px 26px; display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px;}
.listingcta .lc-main{flex:0 0 auto;}
.listingcta .lc-num{font-size:42px; font-weight:800; color:var(--navy); line-height:1; letter-spacing:-.02em;}
.listingcta .lc-lab{font-size:12px; color:var(--grey); text-transform:uppercase; letter-spacing:.05em; margin-top:5px;}
.listingcta .lc-actions{display:flex; gap:10px; flex-wrap:wrap; margin-left:auto;}
.listingcta .lc-note{flex:1 1 100%; font-size:13px; color:var(--grey); margin:0; line-height:1.5;}
@media(max-width:560px){ .listingcta .lc-actions{margin-left:0; width:100%;} .listingcta .lc-actions .btn{flex:1; margin-top:0;} }

/* ---- what's nearby (local amenities, Google Places) ---- */
.nearby{display:grid; grid-template-columns:1fr; gap:16px; align-items:start;}
@media(min-width:640px){ .nearby{grid-template-columns:repeat(2,1fr);} }
.ngroup{border-radius:18px; padding:20px 22px;}
.nhead{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.nhead svg{width:22px; height:22px; color:var(--blue); flex:0 0 auto;}
.nhead h3{font-size:16px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.nlist{list-style:none; display:flex; flex-direction:column;}
.nlist li{padding:9px 0; border-bottom:1px solid var(--line);}
.nlist li:last-child{border-bottom:none;}
.nlist .ni{display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
.nlist .nm{font-size:14px; font-weight:600; color:var(--navy);}
.nlist .rate{font-size:12px; font-weight:700; color:var(--blue); white-space:nowrap;}
.nlist small{display:block; color:var(--grey); font-size:12px; margin-top:1px;}
.nearby-src{font-size:11px; color:var(--grey); margin-top:14px;}

/* ---- plain AI-quotable stat sentence (above the navy card) ---- */
.stat-summary{font-size:15px; color:var(--grey); line-height:1.6; margin:-8px 0 16px; max-width:68ch;}

/* ---- compare / internal links to sibling communities ---- */
.compare{display:grid; grid-template-columns:1fr; gap:12px;}
@media(min-width:560px){ .compare{grid-template-columns:repeat(2,1fr);} }
@media(min-width:860px){ .compare{grid-template-columns:repeat(4,1fr);} }
.ccard{display:flex; flex-direction:column; gap:3px; padding:16px 18px; border-radius:14px; text-decoration:none; transition:transform .14s, box-shadow .14s;}
.ccard:hover{transform:translateY(-3px); box-shadow:inset 0 1px 0 #fff, 0 22px 44px -24px rgba(20,40,90,.45);}
.ccard .cn{font-size:16px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.ccard .cs{font-size:12px; color:var(--grey);}
.ccard .cv{font-size:13px; color:var(--blue); font-weight:700; margin-top:6px;}
.ccard .cgo{font-size:12px; color:var(--red); font-weight:700; margin-top:8px;}

/* ---- market stats (navy) ---- */
.stats{border-radius:var(--radius); padding:26px 24px;}
.stats h3{font-size:18px; font-weight:800;}
.stats .asof{opacity:.85; font-size:12px; margin:4px 0 18px;}
.sgrid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px;}
@media(min-width:560px){ .sgrid{grid-template-columns:repeat(3,1fr);} }
.s{background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); border-radius:12px; padding:15px; box-shadow:inset 0 1px 0 rgba(255,255,255,.18);}
.s .n{font-size:24px; font-weight:800; font-variant-numeric:tabular-nums;}
.s .l{font-size:12px; opacity:.9;}
.disclosure{margin-top:14px; font-size:11px; opacity:.78; line-height:1.5;}

/* ---- honest take ---- */
.take{border-radius:var(--radius); padding:30px 28px; border-left:5px solid var(--red); max-width:840px;}
.take h3{color:var(--navy); font-size:22px; font-weight:800; margin-bottom:10px; letter-spacing:-.02em;}
.take p{color:var(--grey); font-size:16px; margin-bottom:10px;}
.take .go{color:var(--red); font-weight:800;}

/* ---- lake-life scorecard ---- */
.score{padding:20px 22px;}
.score .row{display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line);}
.score .row:last-child{border-bottom:none;}
.score .lab{flex:1; font-size:15px; color:var(--navy); font-weight:700;}
.score .lab small{display:block; font-weight:400; color:var(--grey); font-size:12.5px;}
.score .bar{width:110px; height:9px; border-radius:99px; background:rgba(20,40,90,.13); overflow:hidden; flex:0 0 auto; box-shadow:inset 0 1px 2px rgba(20,40,90,.14);}
.score .bar i{display:block; height:100%; background:linear-gradient(90deg,var(--blue),#5e9bea); border-radius:99px;}
@media(min-width:560px){ .score .bar{width:150px;} }
.score-scale{font-size:13px; color:var(--grey); margin:-12px 0 14px;}
.score .meter{display:flex; align-items:center; gap:12px; flex:0 0 auto;}
.score .sc{font-size:15px; font-weight:800; color:var(--navy); width:30px; text-align:right; font-variant-numeric:tabular-nums;}

/* ---- key facts ---- */
.keyfacts{list-style:none; padding:20px 22px; display:flex; flex-direction:column; gap:13px;}
.keyfacts li{position:relative; padding-left:26px; color:var(--grey); font-size:15px; line-height:1.5;}
.keyfacts li::before{content:""; position:absolute; left:2px; top:8px; width:9px; height:9px; border-radius:50%; background:var(--blue); box-shadow:0 1px 3px rgba(46,108,212,.4);}

/* ---- affordability ---- */
.afford{padding:22px;}
.afford-lead{color:var(--grey); font-size:15px; margin-bottom:16px;}
.afford-grid{display:grid; gap:12px; margin-bottom:16px;}
.afford-grid label{display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:700; color:var(--grey);}
.afford-grid input{font-family:var(--font); font-size:16px; padding:13px 14px; border-radius:11px; border:1.5px solid var(--line); background:#fff; min-height:48px;}
.afford-grid input:focus{border-color:var(--blue); outline:none; box-shadow:0 0 0 3px rgba(46,108,212,.14);}
.afford-out{background:rgba(46,108,212,.07); border:1px solid rgba(46,108,212,.16); border-radius:14px; padding:16px 18px; margin-bottom:16px;}
.afford-big{font-size:18px; color:var(--navy); font-weight:700;}
.afford-big b{color:var(--blue); font-size:22px; font-weight:800;}
.afford-sub{font-size:13px; color:var(--grey); margin-top:6px; line-height:1.5;}
.afford-disc{font-size:12px; color:#9ca3af; margin-top:12px; line-height:1.5;}
@media(min-width:740px){ .afford-grid{grid-template-columns:repeat(3,1fr);} }

/* ---- content pages: prose + steps ---- */
.prose{padding:24px 26px; max-width:760px;}
.prose p{color:var(--ink); font-size:16px; line-height:1.75; margin-bottom:14px;}
.prose p:last-child{margin-bottom:0;}
.steps{list-style:none; display:flex; flex-direction:column; gap:12px; max-width:760px;}
.steps .step{display:flex; gap:16px; padding:18px 20px; align-items:flex-start;}
.steps .stepn{flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--navy)); color:#fff; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px -4px rgba(46,108,212,.5);}
.steps .step b{color:var(--navy); font-size:16px; display:block; margin-bottom:3px;}
.steps .step p{color:var(--grey); font-size:14.5px; line-height:1.6; margin:0;}

/* ---- faq accordions ---- */
.faq{max-width:840px;}
.faq details{border-radius:16px; padding:4px 20px; margin-bottom:10px;}
.faq summary{font-weight:700; color:var(--navy); font-size:16px; cursor:pointer; list-style:none; padding:14px 0; display:flex; justify-content:space-between; align-items:center; gap:10px;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+"; font-size:22px; color:var(--blue); font-weight:700; flex:0 0 auto;}
.faq details[open] summary::after{content:"\2013";}
.faq details p{color:var(--grey); padding-bottom:14px;}

/* ---- cta ---- */
.cta{border-radius:var(--radius); padding:36px 30px; text-align:center; max-width:840px; margin:0 auto;}
.cta h3{color:var(--navy); font-size:26px; font-weight:800; margin-bottom:10px; letter-spacing:-.02em;}
.cta p{color:var(--grey); margin-bottom:20px;}

/* ---- lead form ---- */
.leadform{border-radius:var(--radius); padding:28px 24px; max-width:680px; display:flex; flex-direction:column; gap:14px;}
.leadform label{display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:700; color:var(--grey);}
.lf-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.leadform input, .leadform textarea, .leadform select{font-family:var(--font); font-size:16px; color:var(--ink); padding:13px 15px; border-radius:12px;
  border:1.5px solid var(--line); background:#fff; font-weight:400; outline:none; transition:border-color .12s, box-shadow .12s; min-height:48px;}
.leadform input:focus, .leadform textarea:focus, .leadform select:focus{border-color:var(--blue); box-shadow:0 0 0 3px rgba(46,108,212,.14);}
.leadform textarea{resize:vertical; min-height:84px;}
.leadform .btn{align-self:flex-start;}
.lf-consent{font-size:12px; color:#9ca3af; font-weight:400; margin:0;}
.lf-msg{font-size:14px; font-weight:700; margin:0; min-height:1px;}
.lf-msg.ok{color:#1a7a3c;} .lf-msg.err{color:var(--red);}
.cf-turnstile:empty{display:none;}
@media(max-width:680px){ .leadform{padding:24px 20px;} .lf-row{grid-template-columns:1fr;} .leadform .btn{align-self:stretch;} }

/* ---- welcome-back ---- */
.welcomeback{display:none; border-radius:16px; padding:16px 22px; margin-top:18px; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.welcomeback.show{display:flex;}
.welcomeback p{margin:0; color:var(--navy); font-weight:700;}
.welcomeback a{color:var(--red); font-weight:800; white-space:nowrap;}

/* ---- featured-agent profile ---- */
.profile{border-radius:var(--radius); padding:32px 28px; max-width:880px;}
.ap-head{display:flex; gap:22px; align-items:center; margin-bottom:22px;}
.ap-photo, .ap-mono{width:96px; height:96px; border-radius:22px; flex:0 0 auto;}
.ap-photo{object-fit:cover; box-shadow:0 8px 22px rgba(20,40,90,.25);}
.ap-mono{display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--blue),var(--navy)); box-shadow:0 8px 22px rgba(20,40,90,.3);}
.profile h3{font-size:26px; color:var(--navy); font-weight:800; letter-spacing:-.02em;}
.ap-title{color:var(--red); font-weight:700; font-size:14px; margin-top:3px;}
.ap-tagline{color:var(--grey); font-size:16px; margin-top:6px;}
.ap-bio p{color:var(--grey); font-size:16px; margin-bottom:12px;}
.ap-chips{display:flex; flex-wrap:wrap; gap:9px; margin:6px 0 24px;}
.chip{background:rgba(46,108,212,.10); color:var(--navy); border:1px solid rgba(46,108,212,.18); border-radius:999px; padding:7px 14px; font-size:13px; font-weight:700;}
.ap-cols{display:grid; grid-template-columns:1fr 1fr; gap:26px; margin-bottom:26px;}
.ap-cols h4{font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--grey); margin-bottom:12px;}
.ap-cred{display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:15px; color:var(--grey);}
.ap-cred b{color:var(--navy);}
.ap-areas{list-style:none; display:flex; flex-wrap:wrap; gap:8px;}
.ap-areas li{background:rgba(255,255,255,.7); border:1px solid var(--line); border-radius:10px; padding:7px 12px; font-size:14px; color:var(--grey);}
@media(max-width:680px){ .profile{padding:26px 22px;} .ap-head{flex-direction:column; align-items:flex-start; gap:14px;} .ap-cols{grid-template-columns:1fr; gap:20px;} .profile .btn{display:block; width:100%; text-align:center;} }

/* ---- footer ---- */
.foot{margin-top:50px; background:rgba(16,28,72,.97); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#e6ebf8; padding:36px 0;}
.foot .row{display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;}
.foot .legal{font-size:13px; line-height:1.6; opacity:.92; margin-top:14px;}
.foot .pill{background:#fff; padding:6px 11px; border-radius:7px;}
.foot .pill img{height:30px;}

/* ---- lake-communities hub grid ---- */
.hubgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px;}
.hubcard{display:flex; flex-direction:column; gap:6px; padding:20px 22px; border-radius:16px; text-decoration:none;
  transition:transform .15s, box-shadow .15s;}
.hubcard:hover{transform:translateY(-4px); box-shadow:inset 0 1px 0 #fff, 0 24px 48px -24px rgba(20,40,90,.4);}
.hc-name{font-size:18px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.hc-price{font-size:13px; font-weight:700; color:var(--blue); margin-top:2px;}
.hc-lake{font-size:12px; color:var(--grey);}
.hc-tag{font-size:14px; color:var(--text); margin-top:6px; line-height:1.45; flex:1;}
.hc-link{font-size:13px; font-weight:700; color:var(--red); margin-top:10px;}
@media(max-width:900px){.hubgrid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.hubgrid{grid-template-columns:1fr;}}

/* ---- contextual cross-links (stat + compare sections) ---- */
.stat-cta, .compare-more{font-size:15px; color:var(--grey); margin-top:16px; line-height:1.5;}
.stat-cta a, .compare-more a{color:var(--blue); font-weight:700; text-decoration:none;}
.stat-cta a:hover, .compare-more a:hover{text-decoration:underline;}

/* ---- home grid intro ---- */
.grid-intro{font-size:16px; color:var(--text); max-width:640px; margin:-6px 0 22px; line-height:1.6;}
.grid-intro a{color:var(--blue); font-weight:700; text-decoration:none;}
.grid-intro a:hover{text-decoration:underline;}

/* ---- price-band browser ---- */
.pbands{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:6px;}
.pband{display:flex; flex-direction:column; gap:5px; padding:18px 20px; border-radius:14px; text-decoration:none; transition:transform .14s, box-shadow .14s;}
.pband:hover{transform:translateY(-3px); box-shadow:inset 0 1px 0 #fff, 0 20px 40px -24px rgba(20,40,90,.4);}
.pb-label{font-size:16px; font-weight:800; color:var(--navy); letter-spacing:-.01em;}
.pb-count{font-size:13px; font-weight:600; color:var(--blue);}
@media(max-width:760px){.pbands{grid-template-columns:repeat(2,1fr);}}
@media(max-width:420px){.pbands{grid-template-columns:1fr;}}

/* ---- market comparison table ---- */
.mt-intro{font-size:17px; color:var(--text); max-width:760px; margin:0 0 22px; line-height:1.6;}
.mt-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:16px; box-shadow:inset 0 1px 0 #fff, 0 18px 40px -28px rgba(20,40,90,.35);}
.mtable{width:100%; border-collapse:collapse; background:rgba(255,255,255,.7); font-size:14px; min-width:680px;}
.mtable thead th{background:var(--navy); color:#fff; font-weight:700; text-align:right; padding:14px 16px; white-space:nowrap; font-size:13px; letter-spacing:.01em;}
.mtable thead th.mt-name{text-align:left; position:sticky; left:0; z-index:2;}
.mtable tbody td{padding:13px 16px; text-align:right; border-bottom:1px solid rgba(20,40,90,.08); white-space:nowrap; color:var(--text); font-variant-numeric:tabular-nums;}
.mtable tbody td.mt-name{text-align:left; position:sticky; left:0; background:rgba(248,250,253,.96); z-index:1;}
.mtable tbody td.mt-name a{color:var(--navy); font-weight:800; text-decoration:none;}
.mtable tbody td.mt-name a:hover{color:var(--blue);}
.mtable tbody tr:hover td{background:rgba(46,108,212,.06);}
.mtable tbody tr:hover td.mt-name{background:rgba(46,108,212,.1);}
.mt-temp{display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700;}
.mt-hot{background:rgba(204,0,0,.1); color:var(--red);}
.mt-warm{background:rgba(46,108,212,.12); color:var(--blue);}
.mt-bal{background:rgba(107,114,128,.14); color:var(--grey);}
.mt-src{font-size:12.5px; color:var(--grey); margin-top:14px; line-height:1.5;}

/* ---- sticky thumb bar (phones) ---- */
.thumbbar{position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.85);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-top:1px solid rgba(20,40,90,.1); box-shadow:0 -6px 20px rgba(20,40,90,.1);}
.thumbbar a{flex:1; display:flex; align-items:center; justify-content:center; gap:8px; min-height:50px; border-radius:13px; font-weight:800; font-size:16px; text-decoration:none;}
.tb-call{color:#fff; background:var(--red); box-shadow:0 4px 12px -6px rgba(204,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25);}
.tb-text{color:var(--navy); background:rgba(255,255,255,.85); border:1px solid var(--line); box-shadow:inset 0 1px 0 #fff;}
@media(min-width:740px){ .thumbbar{display:none;} }
@media(max-width:739px){ body.has-thumbbar{padding-bottom:74px;} }

/* ---- mobile-first polish ---- */
@media(max-width:680px){
  .wrap{padding:0 16px;} section{padding:34px 0;}
  .nav{top:10px; margin-top:10px;} .nav img{height:26px;}
  .hero{padding:34px 0 12px;} .hero-panel{padding:30px 22px; border-radius:22px;}
  .hero h1{font-size:32px;} .hero p{font-size:17px;}
  .hero-panel .btn{display:block; width:100%; text-align:center; margin:0 0 12px;} .hero-panel .btn-ghost{margin-left:0;}
  .stats{padding:22px 18px;} .take{padding:26px 20px;} .cta{padding:30px 20px;}
}
@media(prefers-reduced-motion:reduce){ *{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;} }
