/* Chad Wobshall | Creston Valley Real Estate */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --tint: #f2eee6;
  --ink: #1b2321;
  --muted: #5b6662;
  --line: #e4ded3;
  --brand: #1d3b34;
  --brand-2: #2d5a4e;
  --accent: #b5853a;
  --accent-ink: #8a6222;
  --danger: #a33a2c;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(20 30 28 / .06), 0 8px 24px rgb(20 30 28 / .07);
  --shadow-lg: 0 20px 50px rgb(20 30 28 / .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6em; }
.icon { flex: none; }
.hp { position: absolute; left: -9999px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--brand); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .6); }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-small { padding: .55em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.btn-row-center { justify-content: center; }
.link-arrow { display: inline-block; padding-block: 10px; font-weight: 600; text-decoration: none; color: var(--brand-2); background: none; border: 0; padding-inline: 0; cursor: pointer; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgb(250 248 244 / .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgb(20 30 28 / .08); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: var(--header-h); gap: 24px; transition: min-height .35s; }
.scrolled .header-inner { min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand-mark { width: 44px; height: 44px; flex: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1), width .35s, height .35s; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.scrolled .brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
@media (max-width: 400px) { .brand-mark { width: 38px; height: 38px; } .brand-name { font-size: 1.25rem; } }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { display: flex; align-self: stretch; }
.nav-link {
  position: relative; display: flex; align-items: center; padding: 0 14px; color: var(--ink);
  text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: calc(50% - 1.05em); height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after, .nav-link[aria-current]::after, .nav-item:focus-within > .nav-link::after, .nav-item.open > .nav-link::after { transform: scaleX(1); }
.nav-link:hover { color: var(--ink); }
.has-panel > .nav-link { padding-right: 26px; }
.has-panel > .nav-link::before {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; opacity: .6; transition: rotate .3s, margin .3s;
}
.nav-item.open > .nav-link::before { rotate: 225deg; margin-top: -1px; }
.nav-cta { margin-left: 12px; align-self: center; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(29 59 52 / .25); }
.nav-mobile-foot { display: none; }

/* Drop-down panels (desktop) */
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgb(20 30 28 / .14); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility 0s .25s; pointer-events: none;
}
.nav-item.open > .nav-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); pointer-events: auto; }
.nav-panel-inner { padding-block: 28px 32px; }
.np-head { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.np-muted { color: var(--muted); font-size: .88rem; }
.panel-listings { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 40px; align-items: stretch; }
.np-links { list-style: none; margin: 0; padding: 0; }
.np-links a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; transition: padding .25s, color .25s; }
.np-links a span { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.np-links a:hover { padding-left: 8px; color: var(--brand-2); }
.np-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.np-feature-img { display: block; height: 100%; min-height: 170px; overflow: hidden; background: var(--tint); }
.np-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.np-feature:hover img { transform: scale(1.06); }
.np-feature-text { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 16px 0; }
.np-feature-text strong { font-family: var(--serif); font-size: 1.5rem; color: var(--brand); font-weight: 600; }
.np-cta { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--brand); color: #e9efec; text-decoration: none; }
.np-cta strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: #fff; line-height: 1.2; }
.np-cta .np-head { color: #e7c88f; }
.np-cta .np-muted { color: #c9d6d1; }
.np-cta .link-arrow { color: #fff; margin-top: auto; }
.np-cta:hover { background: var(--brand-2); color: #fff; }
.panel-communities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.np-tile { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--brand); color: #fff; text-decoration: none; }
.np-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, opacity .4s; opacity: .92; }
.np-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgb(0 0 0 / .7)); }
.np-tile span { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-family: var(--serif); font-size: 1.1rem; text-shadow: 0 1px 10px rgb(0 0 0 / .4); transition: transform .35s; }
.np-tile:hover img { transform: scale(1.08); opacity: 1; }
.np-tile:hover span { transform: translateX(4px); color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .6); }
.np-tile-all { display: grid; place-items: center; background: var(--tint); color: var(--brand); border: 1.5px dashed var(--line); }
.np-tile-all::after { display: none; }
.np-tile-all span { position: static; font-family: var(--sans); font-weight: 600; font-size: .95rem; text-shadow: none; }
.np-tile-all:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Home: header floats over the hero until scrolled */
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) { background: linear-gradient(rgb(10 20 18 / .35), transparent); }
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) .brand,
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) .brand-sub,
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) .nav-link,
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) .nav-toggle { color: #fff; }
.has-hero .site-header:not(.scrolled):not(.panel-open):not(.nav-open) .nav-cta { background: #fff; color: var(--brand); border-color: #fff; }
.has-hero .site-header.scrolled, .has-hero .site-header.panel-open { background: rgb(250 248 244 / .96); border-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }

/* Menu button */
.nav-toggle { display: none; align-self: center; background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; place-items: center; color: inherit; position: relative; z-index: 2; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Phones and tablets: full-screen menu */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-panel, .has-panel > .nav-link::before { display: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) clamp(20px, 6vw, 48px) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav-item { display: block; }
  .nav-link {
    padding: 14px 0; font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 500; letter-spacing: -.01em;
    border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px);
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current] { color: var(--brand-2); }
  .nav-open .nav-link { opacity: 1; transform: none; transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); }
  .nav-cta, .nav-mobile-foot { opacity: 0; transform: translateY(14px); }
  .nav-open .nav-cta, .nav-open .nav-mobile-foot { opacity: 1; transform: none; transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1); }
  /* site.js numbers the items (--i) so they slide in one after another */
  .nav-open .nav-link, .nav-open .nav-cta, .nav-open .nav-mobile-foot { transition-delay: calc(var(--i, 0) * 55ms + 60ms); }
  /* A blurred header would trap the full-screen menu inside it */
  .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); box-shadow: none; }
  .nav-cta { margin: 24px 0 0; align-self: stretch; padding-block: 1em; font-size: 1rem; }
  .nav-mobile-foot { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-top: auto; padding-top: 28px; }
  .nav-mobile-foot img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
  .nav-mobile-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: 0; }
  .nav-mobile-sub { color: var(--muted); font-size: .82rem; margin: 0; }
  .nav-mobile-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .nav-open .brand { position: relative; z-index: 2; }
  .has-hero .site-header.nav-open { background: transparent; }
  .has-hero .site-header.nav-open .brand, .has-hero .site-header.nav-open .brand-sub, .has-hero .site-header.nav-open .nav-toggle { color: var(--ink); }
  .has-hero .site-header.nav-open .nav-cta { background: var(--brand); color: #fff; border-color: var(--brand); }
  body.nav-locked { overflow: hidden; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #14231f; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); }
/* Slow "Ken Burns" drift, each slide from a different corner */
.hero-slide.is-active img, .hero-slide.is-leaving img { animation: kenburns 9s cubic-bezier(.25,.1,.25,1) both; }
.hero-slide:nth-child(2) img { --ox: 20%; --oy: 40%; }
.hero-slide:nth-child(3) img { --ox: 80%; --oy: 60%; }
.hero-slide:nth-child(4) img { --ox: 40%; --oy: 80%; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(10 20 18 / .55) 0%, rgb(10 20 18 / .25) 45%, transparent 70%),
  radial-gradient(120% 80% at 15% 100%, rgb(10 20 18 / .75), transparent 60%),
  linear-gradient(180deg, rgb(10 20 18 / .25) 0%, rgb(10 20 18 / 0) 30%, rgb(10 20 18 / .2) 60%, rgb(10 20 18 / .6) 100%); }
.hero-content { position: relative; padding-block: 150px clamp(96px, 13vh, 140px); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / .25); max-width: 13ch; font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.hero .eyebrow { color: #f1d9a8; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; color: rgb(255 255 255 / .94); text-shadow: 0 1px 14px rgb(0 0 0 / .35); }
.hero-subheading { font-size: clamp(.95rem, 1.2vw, 1.1rem); max-width: 40ch; color: #f1d9a8; text-shadow: 0 1px 14px rgb(0 0 0 / .35); margin-bottom: .4em; }

/* Entrance: headline words rise out of a mask, then the rest fades up */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .w > span { display: inline-block; animation: word-up 1s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--d) * 70ms + 150ms); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.hero .reveal { animation: fade-up .9s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--d) * 70ms + 200ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Slide caption, dots and pause */
.hero-meta { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 28px; display: flex; align-items: center; gap: 18px; animation: fade-up .9s 1.1s both; }
.hero-caption { display: inline-flex; align-items: center; gap: 8px; max-width: 46ch; color: #fff; font-size: .88rem; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: rgb(10 20 18 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .18); transition: background .3s, opacity .4s; }
.hero-caption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-caption[href]:not([href="#"]):hover { background: rgb(255 255 255 / .92); color: var(--brand); }
.hero-caption[href]:not([href="#"])::after { content: "→"; }
.hero-caption[href="#"] { pointer-events: none; }
.hero-caption.swap { opacity: 0; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.hero-dot span { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; position: relative; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: dot-fill var(--hero-interval, 7s) linear forwards; }
.hero.paused .hero-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-pause { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: rgb(10 20 18 / .3); color: #fff; display: grid; place-items: center; cursor: pointer; margin-left: 4px; }
.hero-pause .icon { width: 14px; height: 14px; }
.hero-pause .icon + .icon, .hero.paused .hero-pause .icon:first-child { display: none; }
.hero.paused .hero-pause .icon + .icon { display: block; }
.hero-pause:hover { background: rgb(255 255 255 / .2); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgb(255 255 255 / .6); border-radius: 14px; animation: fade-up .9s 1.3s both; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1100px) { .hero-scroll { display: none; } }
@media (max-width: 760px) {
  .hero-content { padding-bottom: 76px; }
  .hero-caption { display: none; }
  .hero-meta { left: 0; right: 0; justify-content: center; bottom: 18px; }
}
.hero-search {
  margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 4px;
  background: #fff; border-radius: 18px; padding: 6px; max-width: 920px; box-shadow: var(--shadow-lg);
}
.hs-field { display: flex; flex-direction: column; padding: 8px 16px 4px; cursor: pointer; border-radius: 12px; color: var(--ink); min-width: 0; }
.hs-field + .hs-field { border-left: 1px solid var(--line); }
.hs-field span { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hs-field select { border: 0; background: transparent; font: inherit; font-weight: 500; padding: 8px 0 4px; min-height: 40px; color: var(--ink); width: 100%; cursor: pointer; }
.hs-field select:focus { outline: none; }
.hs-field:focus-within { background: var(--tint); }
.hero-search .btn { border-radius: 14px; padding-inline: 1.8em; }
.hs-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.friday-btn {
  background: #d7263d; border-color: #d7263d; color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; font-size: .82rem; padding-inline: 1.3em;
}
.friday-btn:hover { background: #b81f33; border-color: #b81f33; color: #fff; }
@media (max-width: 760px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hs-field:first-child { grid-column: 1 / -1; }
  .hs-field + .hs-field { border-left: 0; }
  .hs-field:nth-child(2), .hs-field:nth-child(3) { border-top: 1px solid var(--line); }
  .hs-actions { grid-column: 1 / -1; flex-direction: column; align-items: stretch; }
  .hs-actions .btn { width: 100%; }
  .hide-sm { display: none; }
}
@media (max-width: 360px) {
  .hero-search { grid-template-columns: 1fr; }
  .hs-field:nth-child(3) { border-top: 1px solid var(--line); }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-flush { padding-bottom: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--brand); color: #e9efec; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #e7c88f; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head-tight { margin-bottom: 18px; align-items: baseline; }
.empty { color: var(--muted); }

.page-head { padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px); }
.page-head .lede { max-width: 62ch; }
.page-head-center { text-align: center; padding-block: 100px; }
.page-head-center .lede { margin-inline: auto; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs-light, .crumbs-light a { color: rgb(255 255 255 / .85); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-center { grid-template-columns: 1fr 1fr; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; box-shadow: var(--shadow); }
@media (max-width: 820px) { .split, .split-center { grid-template-columns: 1fr; } .split-media { max-width: 420px; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1.2em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--brand); font-family: var(--serif); font-weight: 600; display: grid; place-items: center; }

/* Cards ------------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 30 28 / .06), 0 18px 40px rgb(20 30 28 / .12); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--tint); overflow: hidden; }
.card-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.card-track::-webkit-scrollbar { display: none; }
.card-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; display: block; }
.card-slide img, .photo-missing { width: 100%; height: 100%; object-fit: cover; background-size: cover; background-color: var(--tint); }
.card-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgb(255 255 255 / .92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / .2); opacity: 0; transition: opacity .2s;
}
.card-arrow.prev { left: 10px; } .card-arrow.next { right: 10px; }
.card-media:hover .card-arrow, .card-arrow:focus-visible { opacity: 1; }
.card-arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.card-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .55); transition: .2s; }
.card-dots span.on { background: #fff; transform: scale(1.25); }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge-sold { background: var(--danger); color: #fff; }
.badge-pending { background: var(--accent-ink); color: #fff; }
.card-count { position: absolute; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 5px; background: rgb(0 0 0 / .55); color: #fff; font-size: .78rem; padding: 3px 8px; border-radius: 999px; }
.card-count .icon { width: 14px; height: 14px; }
.card-body { padding: 18px 20px 22px; }
.card-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 2px; color: var(--brand); }
.card-title { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin: 0 0 2px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable… */
.card { position: relative; }
.card-media { z-index: 1; } /* …except the photo strip, which swipes */
.card-place { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.card-specs { font-size: .9rem; font-weight: 500; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* Blurred placeholder under every listing photo while it loads */
img[style*="background-image"] { background-size: cover; background-position: center; }

/* Communities ------------------------------------------------------------ */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
.community-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: block; color: #fff; text-decoration: none; }
.community-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.community-tile:hover img { transform: scale(1.05); }
.community-tile:hover, .community-tile:hover .community-name { color: #fff; }
.community-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(0 0 0 / .7)); }
.community-name { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-family: var(--serif); font-size: 1.4rem; text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.community-list { display: grid; gap: 20px; }
.community-row { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.community-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.community-row > div { padding: 20px 28px 20px 0; }
.community-row p { color: var(--muted); }
@media (max-width: 700px) { .community-row { grid-template-columns: 1fr; } .community-row > div { padding: 0 20px 22px; } }
.community-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--brand); }
.community-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-hero-text { position: relative; padding-block: 120px 44px; }
.community-hero h1 { color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / .45); }
.community-hero .crumbs-light, .community-hero .crumbs-light a { text-shadow: 0 1px 10px rgb(0 0 0 / .5); }
.community-hero .hero-shade { background:
  linear-gradient(180deg, rgb(10 20 18 / .15) 0%, rgb(10 20 18 / .1) 35%, rgb(10 20 18 / .55) 70%, rgb(10 20 18 / .8) 100%),
  linear-gradient(90deg, rgb(10 20 18 / .5) 0%, transparent 55%); }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); padding-block: 48px; align-items: start; }
.community-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .community-layout { grid-template-columns: 1fr; } .community-aside { position: static; } }

/* FAQ -------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.4rem; font-weight: 400; color: var(--accent-ink); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-right: 36px; }

/* Forms ------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: .85rem; font-weight: 600; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgb(45 90 78 / .15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-status { margin: 10px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--brand-2); font-weight: 600; }
.form-status.err { color: var(--danger); }
.section-dark .field > span { color: #fff; }
.section-dark .form-status.ok { color: #cfe9de; }
.inline-form { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); padding: 24px; border-radius: var(--radius); }
.empty-state .inline-form, .contact-form { background: var(--surface); border: 1px solid var(--line); }
.contact-form { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state { max-width: 640px; margin: 24px auto 0; text-align: center; }
.empty-state form { text-align: left; margin-top: 24px; }

/* Listings page ---------------------------------------------------------- */
.tabs { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--accent); }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.filters .field { margin: 0; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 10px; }
  .filters select { padding-inline: 10px 4px; font-size: .95rem; }
}
.result-count { color: var(--muted); margin-bottom: 20px; }

/* Listing page: photo mosaic --------------------------------------------- */
.listing-top { padding-top: 20px; }
.gallery-wrap { margin-bottom: 8px; }
.mosaic { position: relative; display: grid; gap: 8px; height: min(68vh, 620px); border-radius: var(--radius); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic-item { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--tint); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.mosaic-item:hover img { transform: scale(1.03); filter: brightness(1.04); }
.mosaic-item:first-child { grid-row: 1 / 3; }
.mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.mosaic-2 .mosaic-item:first-child { grid-row: auto; }
.mosaic-3 { grid-template-columns: 2fr 1fr; }
.mosaic-4 { grid-template-columns: 2fr 1fr 1fr; }
.mosaic-4 .mosaic-item:nth-child(4) { grid-column: 2 / 4; }
.mosaic-actions { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: rgb(255 255 255 / .95); border: 0; padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .2); }
.pill:hover { background: #fff; }
.swiper { display: none; position: relative; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); }
.swiper-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.swiper-track::-webkit-scrollbar { display: none; }
.swiper-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0; border: 0; background: var(--tint); }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-count { position: absolute; right: 14px; bottom: 14px; background: rgb(0 0 0 / .6); color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 760px) {
  .mosaic { display: none; }
  .swiper { display: block; }
}

/* Listing page: body ----------------------------------------------------- */
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); padding-block: 32px 64px; align-items: start; }
.listing-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .listing-layout { grid-template-columns: 1fr; } .listing-aside { position: static; } }
.listing-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.listing-status { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 10px; }
.listing-status.status-sold { color: var(--danger); }
.listing-status.status-pending { color: var(--accent-ink); }
.listing-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 8px; }
.listing-city { display: block; font-family: var(--sans); font-size: 1.05rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 6px; }
.listing-price { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--brand); font-weight: 600; margin: 14px 0 18px; }
.spec-row { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.spec-row li { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.spec-row .icon { color: var(--accent-ink); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.listing-section { padding-block: 32px; border-bottom: 1px solid var(--line); }
.listing-section:last-child { border-bottom: 0; }
.listing-section h2 { font-size: 1.6rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.features { columns: 2; column-gap: 32px; padding: 0; list-style: none; margin: 0; }
.features li { break-inside: avoid; padding: 7px 0 7px 28px; position: relative; }
.features li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); rotate: -45deg; }
@media (max-width: 560px) { .features { columns: 1; } }
/* Photos run left to right in listing order; every sixth one goes wide. */
.photo-tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; grid-auto-flow: dense; }
.tour-item { margin: 0; min-width: 0; }
.tour-item:nth-child(6n+1) { grid-column: span 2; }
.tour-item button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; background: var(--tint); aspect-ratio: 3 / 2; }
.tour-item:nth-child(6n+1) button { aspect-ratio: 3 / 1; }
.tour-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
@media (max-width: 560px) { .photo-tour { grid-template-columns: 1fr 1fr; } }
.tour-item button:hover img { transform: scale(1.03); }
.tour-item figcaption { font-size: .85rem; color: var(--muted); padding: 6px 2px 0; }
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.video-lite img, .video-lite iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgb(255 255 255 / .92); display: grid; place-items: center; color: var(--brand); }
.video-play .icon { width: 34px; height: 34px; }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.calc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
.calc-result { grid-column: 1 / -1; display: block; background: var(--tint); border-radius: var(--radius); padding: 18px 22px; font-size: 1.05rem; }
.calc-result strong { font-family: var(--serif); font-size: 1.9rem; color: var(--brand); display: block; }
@media (max-width: 640px) { .calc { grid-template-columns: 1fr 1fr; } }
.listing-disclaimer { padding-block: 0 32px; }

.agent-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.agent-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.agent-card-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; background: var(--tint); }
.agent-card-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.agent-card-sub { font-size: .85rem; color: var(--muted); margin: 0; }
.agent-card-intro { color: var(--muted); }
.agent-card-links { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.agent-card-links a { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-weight: 600; }
.agent-card .btn + .btn { margin-top: 10px; }
.agent-card address { font-style: normal; color: var(--muted); margin-bottom: 8px; }
.credits li { margin-bottom: 8px; }

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: #0d1110; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  animation: lb-in .25s ease;
}
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.lb-counter { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; }
.lb-title { flex: 1; text-align: center; color: rgb(255 255 255 / .7); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tools { display: flex; gap: 4px; margin-left: auto; }
.lb-btn, .lb-nav { background: rgb(255 255 255 / .08); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover, .lb-nav:hover { background: rgb(255 255 255 / .2); }
.lb-btn .icon, .lb-nav .icon { width: 22px; height: 22px; }
.lb-btn.on { background: var(--accent); }
.lb-stage { position: relative; min-height: 0; display: flex; align-items: center; }
.lb-viewport { position: relative; flex: 1; height: 100%; overflow: hidden; touch-action: none; }
.lb-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px clamp(8px, 6vw, 80px); will-change: transform; }
.lb-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none;
  background-size: cover; border-radius: 4px; transition: transform .25s ease; cursor: zoom-in;
}
.lb-slide.zoomed img { cursor: grab; transition: none; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 52px; height: 52px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-caption { text-align: center; color: rgb(255 255 255 / .8); margin: 6px 16px 0; min-height: 1.4em; font-size: .95rem; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; scrollbar-color: #444 transparent; justify-content: safe center; }
.lb-thumb { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; background: #222; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb[aria-selected="true"] { opacity: 1; border-color: #fff; }
.lb-grid { position: absolute; inset: 68px 0 0; overflow-y: auto; background: #0d1110; padding: 8px clamp(12px, 4vw, 48px) 48px; columns: 3 260px; column-gap: 8px; z-index: 3; }
.lb-grid button { display: block; width: 100%; margin-bottom: 8px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: #222; }
.lb-grid img { width: 100%; transition: opacity .2s; }
.lb-grid button:hover img { opacity: .85; }
.lb-cta { position: absolute; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 2; }
.lb-progress { position: absolute; left: 0; top: 0; height: 2px; background: var(--accent); z-index: 4; }
@media (max-width: 760px) {
  .lb-nav { display: none; }
  .lb-title { display: none; }
  .lb-thumbs { justify-content: flex-start; }
  .lb-thumb { width: 64px; height: 44px; }
  .lb-slide { padding: 0; }
  .lb-cta { left: 50%; right: auto; translate: -50% 0; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); padding: .6em 1.2em; font-size: .88rem; }
}
body.lb-open { overflow: hidden; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #13231f; color: #c9d3cf; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: #e8eeeb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn { text-decoration: none; }
.site-footer .btn-light, .site-footer .btn-outline-light:hover { color: var(--brand); }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 56px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer-cta h2 { color: #fff; margin-bottom: .3em; }
.footer-cta p { margin: 0; max-width: 56ch; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px; font-size: .95rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .3em; }
.footer-heading { color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer address { font-style: normal; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-block: 28px; border-top: 1px solid rgb(255 255 255 / .1); }
.footer-logos img { height: 48px; width: auto; }
.footer-logos a { display: block; line-height: 0; }
.footer-legal { font-size: .78rem; color: #8fa19b; padding-block: 24px 40px; border-top: 1px solid rgb(255 255 255 / .1); }
.footer-legal p { max-width: 110ch; }

.mobile-call {
  display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; place-items: center; box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) { .mobile-call { display: grid; } .footer-legal { padding-bottom: 96px; } }
.listing-bar { display: none; }
@media (max-width: 760px) {
  .page-listing .mobile-call { display: none; }
  .listing-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(250 248 244 / .96);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(20 30 28 / .08);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: translate .25s;
  }
  .listing-bar .btn { flex: 1; padding-block: .8em; }
  .listing-bar.away { translate: 0 110%; }
  .lb-open .listing-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Reviews --------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: var(--shadow); }
.quote::before { content: "\201C"; position: absolute; top: 10px; right: 22px; font: 500 5rem/1 var(--serif); color: var(--tint); pointer-events: none; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--ink); position: relative; }
.quote blockquote p { margin: 0 0 .7em; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }
.stars { margin: 0; color: var(--accent-ink); letter-spacing: .1em; font-size: .95rem; }
.section-tint .quote { box-shadow: none; }
.page-reviews .quotes { margin-bottom: 40px; }

/* Blog ------------------------------------------------------------------ */
.tabs-wrap { flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-media img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-2); text-decoration: underline; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.post-topic { color: var(--accent-ink); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.post-subscribe { margin-top: 56px; padding: 28px; background: var(--brand); color: #e9efec; border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.post-subscribe p { margin: 0; }
.post-subscribe strong { color: #fff; }
.inline-form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 0; background: none; border: 0; }
.inline-form-row .field { margin: 0; }
.inline-form-row .form-status { grid-column: 1 / -1; margin: 0; }
.post-subscribe .field > span { color: #fff; }
.post-subscribe .btn { background: #fff; color: var(--brand); border-color: #fff; }
.post-subscribe .btn:hover { background: var(--tint); border-color: var(--tint); }
@media (max-width: 820px) { .post-subscribe, .inline-form-row { grid-template-columns: 1fr; } }
.post-head { padding-block: clamp(32px, 5vw, 56px) 8px; }
.post-head .lede { max-width: 72ch; }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-preview-note { display: inline-block; background: var(--accent-ink); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: .85rem; font-weight: 600; }
.post-author { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; margin-top: 18px; }
.post-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.post-cover { margin: 24px auto 0; }
.post-cover img { border-radius: var(--radius); aspect-ratio: 2 / 1; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.post-cover figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); padding-block: 32px 64px; align-items: start; }
.post-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.post-body { font-size: 1.08rem; }
.post-body h2 { margin-top: 1.8em; }
.post-body h3 { margin-top: 1.5em; }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-body code { background: var(--tint); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.post-foot { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); color: var(--muted); }
.post-share .link-arrow { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } }

/* Maps ------------------------------------------------------------------ */
.map { position: relative; height: clamp(320px, 50vw, 460px); border-radius: var(--radius); overflow: hidden; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e4ded3' stroke-width='1'/%3E%3C/svg%3E"); border: 1px solid var(--line); isolation: isolate; z-index: 0; }
.map-valley, .map-listings { height: clamp(360px, 55vw, 560px); }
.map-community { margin: 8px 0 20px; }
.map-noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.map-failed::after { content: "The map couldn't load. Try again later."; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.map .leaflet-container { font: inherit; }
.map .leaflet-control-attribution { font-size: .68rem; background: rgb(255 255 255 / .85); color: var(--muted); }
.map .leaflet-control-attribution a { color: var(--muted); }
.map .leaflet-bar a { color: var(--ink); }
.map-caption { margin: 12px 0 28px; }
.pin-wrap { background: none; border: 0; }
.pin { display: inline-block; translate: -50% -100%; margin-top: -6px; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .82rem/1.2 var(--sans); white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / .25); border: 2px solid #fff; position: relative; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; translate: -50% 0; border: 5px solid transparent; border-top-color: var(--brand); border-bottom: 0; }
.pin-sold { background: var(--danger); } .pin-sold::after { border-top-color: var(--danger); }
.pin-pending { background: var(--accent-ink); } .pin-pending::after { border-top-color: var(--accent-ink); }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon:focus .pin { background: var(--brand-2); z-index: 2; }
.pin-here { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(29 59 52 / .18); animation: pin-pulse 2.4s ease-out infinite; }
.pin-here span { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 6px rgb(0 0 0 / .3); }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgb(29 59 52 / .35); } 100% { box-shadow: 0 0 0 22px rgb(29 59 52 / 0); } }
@media (prefers-reduced-motion: reduce) { .pin-here { animation: none; } }
.pin-here-label { translate: -50% 0; margin-top: 0; }
.pin-here-label::after { display: none; }
.pin-place { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand); border: 2px solid currentColor; box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.pin-health { color: #a33a2c; } .pin-school { color: #2f5aa8; } .pin-shop { color: #8a6222; } .pin-recreation { color: #2d6a4f; } .pin-nature { color: #3f7a3a; } .pin-travel { color: #4b5563; } .pin-community { color: #6b3fa0; }
.pin-community.pin-place { color: #6b3fa0; }
.pin-community:not(.pin-place) { display: inline-flex; align-items: center; gap: 6px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--brand); font: 600 .85rem/1.2 var(--sans); white-space: nowrap; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgb(0 0 0 / .2); cursor: pointer; }
.pin-community:not(.pin-place) small { background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .72rem; }
.leaflet-marker-icon:hover .pin-community:not(.pin-place) { background: var(--brand); color: #fff; }
.leaflet-marker-icon:hover .pin-community:not(.pin-place) small { background: #fff; color: var(--brand); }
.map-pop .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; box-shadow: var(--shadow-lg); }
.map-pop .leaflet-popup-content { margin: 0; width: auto !important; line-height: 1.4; }
.map-pop .leaflet-popup-tip { box-shadow: none; }
.map-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; text-decoration: none; color: var(--ink); min-width: 240px; }
.map-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.map-card-body { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.map-card-body strong { color: var(--brand); font-size: 1rem; }
.map-card-body small { color: var(--muted); }
.map-card:hover span:nth-child(2) { text-decoration: underline; }
.map-place { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; font-size: .9rem; color: var(--ink); }
.map-place span, .map-place small { color: var(--muted); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.result-bar .result-count { margin: 0; }
.map-toggle { gap: .4em; }
.listings-map { margin-bottom: 28px; }
.nearby { list-style: none; padding: 0; margin: 20px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2px 32px; }
.nearby li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.nearby strong { font-weight: 600; }
.nearby .muted { font-size: .88rem; }
.nearby-km { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.nearby-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); justify-self: center; }
.nearby-health .nearby-icon { background: #a33a2c; } .nearby-school .nearby-icon { background: #2f5aa8; } .nearby-shop .nearby-icon { background: #8a6222; } .nearby-recreation .nearby-icon { background: #2d6a4f; } .nearby-nature .nearby-icon { background: #3f7a3a; } .nearby-travel .nearby-icon { background: #4b5563; } .nearby-community .nearby-icon { background: #6b3fa0; }
/* Community labels: a dot on the spot, the label offset to one side */
.pin-community:not(.pin-place) { position: relative; translate: 0 0; }
.pin-community:not(.pin-place)::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
.pin-community.pin-dir-top { translate: -50% calc(-100% - 12px); } .pin-community.pin-dir-top::before { left: 50%; bottom: -14px; translate: -50% 0; }
.pin-community.pin-dir-bottom { translate: -50% 12px; } .pin-community.pin-dir-bottom::before { left: 50%; top: -14px; translate: -50% 0; }
.pin-community.pin-dir-left { translate: calc(-100% - 12px) -50%; } .pin-community.pin-dir-left::before { right: -14px; top: 50%; translate: 0 -50%; }
.pin-community.pin-dir-right { translate: 12px -50%; } .pin-community.pin-dir-right::before { left: -14px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) { .pin-community:not(.pin-place) { font-size: .74rem; padding: 4px 9px; } .pin { font-size: .74rem; padding: 4px 8px; } }
.agent-card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--tint); }

/* Valley-wide MLS listings ---------------------------------------------- */
.tab-count { display: inline-block; min-width: 1.6em; padding: 0 .45em; margin-left: .25em; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .78rem; text-align: center; line-height: 1.6; }
.tabs a[aria-current] .tab-count { background: var(--brand); color: #fff; }
.tabs + .tabs { border-bottom: 0; margin-top: 8px; }
.card-broker { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.listing-broker { color: var(--muted); font-size: .95rem; margin: -8px 0 16px; }
.mls-attribution { max-width: 72ch; margin-top: 32px; }
.mls-crosslink { margin-top: 36px; padding: 18px 22px; background: var(--tint); border-radius: var(--radius-sm); }
.np-divider { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.buying-listings { padding-top: 8px; }
.buying-lede { margin: -16px 0 24px; max-width: 62ch; }

/* Listing extras: chips, monthly estimate, compare ------------------------ */
.chip { background: var(--brand); color: #fff; }
.chip-new { background: var(--brand-2); color: #fff; }
.chip-reduced { background: var(--accent-ink); color: #fff; }
.chip-open { background: #fff; color: var(--brand); }
.chip-second { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-was { color: var(--muted); font-size: .8em; font-weight: 400; margin-left: .4em; }
.card-monthly { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
.card-compare { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; color: var(--muted); cursor: pointer; width: fit-content; }
.card-compare input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.card-compare:hover { color: var(--brand); }
.card.is-active { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.compare-bar { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--brand); color: #fff; padding: 10px 12px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .92rem; max-width: calc(100% - 32px); margin-bottom: env(safe-area-inset-bottom, 0px); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn { padding: .55em 1.1em; font-size: .88rem; }
.compare-bar button.plain { background: none; border: 0; color: #d6e2dd; cursor: pointer; padding: 6px; }
.compare-bar button.plain:hover { color: #fff; }
.compare-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { vertical-align: bottom; }
.compare tbody th { color: var(--muted); font-weight: 500; width: 160px; }
.compare td { font-weight: 600; }
.compare-head { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); min-width: 180px; }
.compare-head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }
.compare-head span { font-size: .85rem; color: var(--muted); font-weight: 400; }
.compare-features { margin: 0; padding-left: 1.1em; font-weight: 400; font-size: .9rem; color: var(--muted); }
.compare-ask { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; padding: 28px; background: var(--tint); border-radius: var(--radius); }
.compare-ask .inline-form { background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 820px) { .compare-ask { grid-template-columns: 1fr; } }

/* Listings page: more filters, open houses, alerts, split map -------------- */
.filters-more { grid-column: 1 / -1; }
.filters-more summary { cursor: pointer; font-weight: 600; color: var(--brand-2); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.filters-more summary::-webkit-details-marker { display: none; }
.filters-more summary::before { content: "+"; font-size: 1.2em; line-height: 1; color: var(--accent-ink); }
.filters-more[open] summary::before { content: "−"; }
.filters-more-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 12px 16px; padding-top: 14px; align-items: start; }
.field-checks { display: flex; flex-direction: column; gap: 6px; }
.field-checks > span { font-weight: 600; font-size: .85rem; }
.field-checks label { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.field-checks input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
@media (max-width: 900px) { .filters-more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters-more-grid { grid-template-columns: 1fr; } }
.open-strip { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; display: grid; gap: 8px; }
.open-strip-head { margin: 0; font-size: .95rem; }
.open-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px 24px; }
.open-strip a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-size: .92rem; padding: 4px 0; }
.open-strip a:hover span:last-child { text-decoration: underline; }
.open-when { color: var(--accent-ink); font-weight: 600; font-size: .82rem; }
.result-bar { gap: 12px; }
.result-bar .btn-small { font-size: .85rem; padding: .55em 1em; }
.alerts-box { margin: 0 0 24px; }
.alerts-form { display: grid; grid-template-columns: 1.2fr 1.6fr; gap: 24px; align-items: center; padding: 22px 26px; background: var(--brand); color: #e9efec; border-radius: var(--radius); }
.alerts-title { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.alerts-desc { margin: 0; font-size: .92rem; }
.alerts-desc strong { color: #fff; }
.alerts-fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; align-items: end; }
.alerts-fields .field { margin: 0; }
.alerts-fields .field > span { color: #fff; }
.alerts-form .btn { background: #fff; color: var(--brand); border-color: #fff; white-space: nowrap; }
.alerts-form .btn:hover { background: var(--tint); border-color: var(--tint); }
.alerts-form .form-status { grid-column: 1 / -1; margin: 0; color: #fff; }
.alerts-form .form-status:empty { display: none; }
@media (max-width: 900px) { .alerts-form, .alerts-fields { grid-template-columns: 1fr; } }
.results-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); gap: 24px; align-items: start; }
.results-split .listings-map { position: sticky; top: calc(var(--header-h) + 16px); order: 2; margin: 0; }
.results-split .map-listings { height: calc(100vh - var(--header-h) - 32px); min-height: 420px; }
.results-split .results-list { order: 1; min-width: 0; }
.results-split .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
@media (max-width: 1099px) { .results-split { display: block; } .results-split .listings-map { position: static; margin-bottom: 28px; } .results-split .map-listings { height: clamp(320px, 50vw, 460px); } }
.leaflet-marker-icon.is-active { z-index: 1000 !important; }
.leaflet-marker-icon.is-active .pin { background: var(--accent-ink); scale: 1.12; }
.leaflet-marker-icon.is-active .pin::after { border-top-color: var(--accent-ink); }

/* Listing page: market line, open house, Chad's take ---------------------- */
.listing-market { color: var(--muted); font-size: .92rem; margin: -6px 0 18px; }
.listing-market strong { color: var(--ink); }
.open-house { background: var(--tint); border-radius: var(--radius-sm); padding: 20px 24px !important; border-bottom: 0 !important; margin-bottom: 8px; }
.open-house h2 { font-size: 1.2rem !important; margin-bottom: 8px; }
.open-list { list-style: none; margin: 0 0 8px; padding: 0; }
.open-list li { padding: 4px 0; }
.chads-take { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px !important; border-bottom-width: 1px !important; margin: 8px 0; }
.chads-take img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.chads-take-head { font-family: var(--serif); font-weight: 600; margin: 0 0 4px; }
.chads-take p { margin-bottom: .6em; }
.chads-take p:last-child { margin-bottom: 0; }
.btn-disabled { opacity: .5; pointer-events: none; }

/* Analytics consent banner -------------------------------------------------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-inline: auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.consent-banner p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 260px; }
.consent-banner-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 500px) { .consent-banner { flex-direction: column; align-items: stretch; } .consent-banner-actions { justify-content: flex-end; } }

/* Friday Listings button + popup (homepage, native <dialog>) -------------- */
.friday-cta { margin-top: 18px; }
.friday-btn { display: inline-flex; align-items: center; gap: 8px; }
.hero-search .friday-btn {
  flex-direction: column; justify-content: center; gap: 2px; line-height: 1.15;
  max-width: 190px; padding: .55em 1em; text-align: center; white-space: normal;
}
.friday-btn-main { font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.friday-btn-sub { font-size: .66rem; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .92; }
@media (max-width: 760px) { .hero-search .friday-btn { max-width: none; } }
#friday-dialog { border: none; border-radius: var(--radius-sm); padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
#friday-dialog::backdrop { background: rgba(10, 20, 18, .55); }
.friday-dialog-inner { position: relative; padding: 32px 28px; }
.friday-dialog-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px; }
.friday-dialog-close:hover { color: var(--ink); }
.friday-dialog-inner h2 { margin-top: 0; font-size: 1.3rem; }
.friday-dialog-inner .lede { margin-bottom: 18px; }
@media (max-width: 480px) { .friday-dialog-inner { padding: 26px 18px; } }
