/* Bobs Listings — custom stylesheet, no framework, no build step.
   ===================================================================
   DESIGN DIRECTION (2026 "Charlotte Harbor" overhaul)
   -------------------------------------------------------------------
   The previous version used the warm-cream + high-contrast-serif + gold
   combination that reads as a generic template. This pass replaces it
   with a palette sampled directly out of Bob's OWN photographs of
   Charlotte Harbor — so the site's color is literally the color of the
   place he sells:

     deep harbor water at dusk .... #04161B / #08272F   (--navy-darker/-deep)
     canal + Gulf turquoise ....... #17A2A0             (--turquoise)
     the sunset in hero-sunset-2 .. #EA652D / #FA8A4F   (--gold/--gold-light)
     dusk plum in that same sky ... #582E43             (--dusk)
     sun-bleached shell ........... #F1F4F3             (--cream)

   Legacy variable NAMES (--navy, --gold, --cream) are intentionally kept
   so every existing component re-colors coherently in one move; only
   their VALUES changed. Read "--navy" as "deep harbor" and "--gold" as
   "sunset" throughout.

   Accent-on-light text uses --accent-ink / --turquoise-ink, which are
   darkened specifically to clear WCAG AA 4.5:1 on --cream (the old gold
   on cream was only ~2.6:1 and failed).
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

:root {
  /* -- Deep harbor (was navy) -- */
  --navy: #0A2E38;
  --navy-deep: #08272F;
  --navy-darker: #04161B;
  --harbor-mid: #0F3F4A;

  /* -- Sunset (was gold). Fills/borders/dark-bg text only. -- */
  --gold: #EA652D;
  --gold-light: #FA8A4F;
  --dusk: #582E43;

  /* -- Gulf water -- */
  --turquoise: #17A2A0;
  --turquoise-light: #4FC9C2;

  /* -- Accessible accent text on LIGHT surfaces (AA verified) -- */
  --accent-ink: #A3461F;     /* 5.49:1 on --cream */
  --turquoise-ink: #0E6968;  /* 5.86:1 on --cream */

  /* -- Shell / paper -- */
  --cream: #F1F4F3;
  --cream-deep: #E2EAE8;
  --ink: #0A1F24;
  --ink-soft: #4A6169;
  --white: #ffffff;
  --line: #D3DEDC;

  /* -- Type -- */
  --font-display: 'Fraunces', 'Charter', 'Bitstream Charter', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Carlito', Roboto, 'DejaVu Sans', Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(4, 22, 27, 0.09);
  --shadow-lg: 0 30px 70px rgba(4, 22, 27, 0.18);
  --shadow-soft: 0 4px 16px rgba(4, 22, 27, 0.07);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; top: -3rem; left: 0; z-index: 1000;
  background: var(--navy-darker); color: #fff;
  padding: 0.75rem 1.25rem; font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* Fraunces is a variable serif with optical-size, SOFT and WONK axes.
   Large display text gets a high optical size (tighter, more refined
   letterforms) plus a touch of WONK for the characterful splayed leg on
   the 'g'/'y' — that quirk is what keeps the type from reading as a
   default Georgia/Playfair substitution. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  font-variation-settings: 'opsz' 96, 'SOFT' 24, 'WONK' 1;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.008em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

/* Display numerals (stats, prices) — lining, tabular, tight. */
.display-num {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Kicker / section-title pattern ----------
   THE SIGNATURE MOTIF: the "horizon rule". Every kicker is preceded by a
   thin two-tone rule — turquoise fading into sunset — echoing the waterline
   in the hero. It is the one element repeated site-wide, so the page reads
   as a single place rather than a stack of unrelated sections. */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 46px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
  border-radius: 2px;
  opacity: 0.9;
}
.kicker-center { justify-content: center; }
/* On dark surfaces the kicker switches to the light sunset tone (6.5:1). */
.on-dark .kicker, .trust-card .kicker, .page-header .kicker,
.cta-band .kicker, .stat-strip .kicker, .hood-band .kicker, .market-stats-bar .kicker { color: var(--gold-light); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  text-transform: none;
  letter-spacing: -0.015em;
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.section-heading-row .section-title { margin-bottom: 0; }
.section-lede { max-width: 640px; font-size: 1.02rem; }
.text-center { text-align: center; }
.center-col { max-width: 720px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-darker); border-color: var(--gold); box-shadow: 0 8px 20px rgba(234,101,45,0.28); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(234,101,45,0.38); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy-darker);
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* --- Overlay header (homepage only) ---
   The header floats over the video hero with no background until the
   visitor scrolls past the hero, at which point .is-stuck is added by
   scroll-effects.js and it settles into a frosted dark bar. */
.site-header--overlay {
  background: linear-gradient(180deg, rgba(4,22,27,0.55) 0%, rgba(4,22,27,0.15) 60%, transparent 100%);
  border-bottom-color: transparent;
}
.site-header--overlay.is-stuck {
  background: rgba(4,22,27,0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(255,255,255,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.1rem;
}
/* The header row needs more breathing room than the page's normal 1200px
   .container cap once all 9 nav links (Home through Contact) plus the
   brand mark and icon/phone-CTA cluster are all present — at exactly
   1200px that combination overflows by roughly 90px. This more specific
   selector overrides just the header's own max-width without touching
   .container everywhere else on the site. See the 1199px breakpoint below,
   which keeps the viewport itself from being narrower than this needs. */
.site-header .header-inner { max-width: 1400px; }
.brand { display: flex; align-items: center; gap: 1rem; }
.brand-mark {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(234,101,45,0.16);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--white);
  white-space: nowrap;
}
.brand-rule {
  display: block;
  width: 100%; max-width: 210px; height: 1px;
  margin: 0.32rem 0;
  background: linear-gradient(90deg, var(--gold-light) 0%, rgba(250,138,79,0) 100%);
}
.brand-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; flex: 1; justify-content: center; }
.site-nav a {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.78);
  padding: 0.4rem 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-light); border-color: var(--gold); }

/* ---------- Nav dropdown (Sellers) ----------
   The parent link and the caret are separate controls: the link navigates
   to /sellers, the caret opens the submenu. Desktop opens on hover and on
   keyboard focus; the caret's own click still works for touch users, who
   get no hover. */
.nav-item { position: relative; display: flex; align-items: center; gap: 0.28rem; }
.nav-caret {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0.35rem 0.15rem; margin: 0;
  color: rgba(255,255,255,0.7); cursor: pointer; line-height: 0;
  transition: color 0.15s ease, transform 0.25s var(--ease);
}
.nav-caret svg { width: 10px; height: 7px; }
.nav-item:hover .nav-caret, .nav-caret[aria-expanded="true"] { color: var(--gold-light); }
.nav-caret[aria-expanded="true"] { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 0.85rem); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 262px; z-index: 60;
  background: var(--navy-darker);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
/* A small bridge so the pointer can travel from the link down into the
   panel across the 0.85rem gap without the menu closing underneath it. */
.nav-menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -0.85rem; height: 0.85rem;
}
/* Scoped to the desktop nav on purpose. Below 1200px the nav collapses to a
   column and the submenu becomes an inline accordion — leaving these
   hover/focus rules unscoped meant `:focus-within` (0,3,0) out-specified
   `.nav-menu.open` (0,2,0) and kept re-applying the centering transform,
   which threw the open accordion halfway off the left edge of the screen. */
@media (min-width: 1200px) {
  .nav-item:hover > .nav-menu,
  .nav-item:focus-within > .nav-menu,
  .nav-menu.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}
.site-nav .nav-menu a {
  display: block; white-space: normal;
  font-size: 0.72rem; letter-spacing: 0.04em;
  padding: 0.6rem 0.75rem; border-bottom: none;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.82);
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav .nav-menu a:hover, .site-nav .nav-menu a.active {
  background: rgba(255,255,255,0.07); color: var(--gold-light); border-color: transparent;
}
.phone-cta {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--gold);
  color: var(--gold-light) !important;
  padding: 0.6rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.phone-cta-icon { display: none; width: 16px; height: 16px; flex-shrink: 0; }
.phone-cta:hover { background: var(--gold); color: var(--navy-darker) !important; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234,101,45,0.34); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; order: 3;
  width: 44px; height: 44px; margin-right: -0.4rem; padding: 0;
  background: none; border: none; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
/* Text button: a labelled pill, so it can't be mistaken for the chat bubble. */
.text-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.32); border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.text-cta svg { width: 17px; height: 17px; flex-shrink: 0; }
.text-cta:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(234,101,45,0.16); }
/* Search / Contact beside the menu button while the full nav is folded away
   (1199px and below, on screens wider than a phone). */
.header-quick {
  display: none; align-items: center; min-height: 44px; padding: 0 0.4rem;
  color: rgba(255,255,255,0.85); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.header-quick:hover { color: var(--gold-light); }
/* 1200–1320px: the full nav now shows here too (it used to fold away below
   1321px, so most laptops got only a menu button). Tighter spacing makes it fit. */
@media (min-width: 1200px) and (max-width: 1320px) {
  .site-nav { gap: 0.85rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.04em; }
  .brand { gap: 0.7rem; }
  .brand-name { font-size: 1.18rem; }
  .brand-rule, .brand-sub { display: none; }
  .text-cta span { display: none; }
  .text-cta { width: 40px; padding: 0; justify-content: center; }
  .phone-cta { padding: 0.6rem 1rem; }
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.icon-link {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.28); border-radius: 50%;
  color: rgba(255,255,255,0.85); flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.icon-link svg { width: 17px; height: 17px; }
.icon-link:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(234,101,45,0.16); }

/* ====================================================================
   CINEMATIC HERO — full-viewport ambient video of Charlotte Harbor.
   The video (public/video/harbor-loop.*) is a silent 22s loop built from
   Bob's own aerial + sunset photography with slow ken-burns moves and
   crossfades. It is decorative: a poster image carries the same meaning
   for anyone on reduced-motion, save-data, or a failed video load.
   Content is LEFT-aligned (not centered) — the deliberate break from the
   centered-hero template the old site used.
   ==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for browsers without small-viewport units */
  min-height: 100svh;  /* avoids the mobile URL-bar jump */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-darker);
  /* pull the overlay header down over the top of the video */
  margin-top: calc(-1 * var(--header-h, 84px));
  padding-top: var(--header-h, 84px);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }

/* ---------- Hero rotation: Bob's drone clip + five stills ----------
   JS (public/scroll-effects.js) toggles .is-active; CSS owns the fade and
   the ken-burns drift. The drift is a CSS transform on purpose — it is
   composited on the GPU and interpolated sub-pixel, so it glides. Baking
   the same move into a video with ffmpeg's zoompan produces whole-pixel
   steps that read as shake. translateZ(0) keeps each slide on its own
   layer so the browser never re-rasterises mid-move. */
.hero-slides {
  position: absolute; inset: 0;
  /* Scroll choreography scales the whole stack; per-slide drift rides on top. */
  transform: scale(var(--hero-scale, 1)) translateZ(0);
  will-change: transform;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02) translateZ(0);
  backface-visibility: hidden;
  will-change: opacity, transform;
  /* Long, soft crossfade so no cut is ever abrupt. */
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }

/* Ken-burns only runs on the slide currently showing, so five hidden
   photos aren't animating off-screen. */
.hero-slide.is-active { animation: heroKen 19s linear forwards; }
.hero-slide:nth-child(even).is-active { animation-name: heroKenOut; }

@keyframes heroKen    { from { transform: scale(1.02) translateZ(0); } to { transform: scale(1.13) translateZ(0); } }
@keyframes heroKenOut { from { transform: scale(1.13) translateZ(0); } to { transform: scale(1.02) translateZ(0); } }

/* The video slide holds its own framing — no CSS zoom on top of real
   camera movement, which would fight the drone's motion. */
.hero-slide--video, .hero-slide--video.is-active { animation: none; transform: translateZ(0); }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Flips the picture (and its poster frame) left to right. */
.hero-video--mirror { transform: scaleX(-1); }

/* Scrim: dark at the bottom (where the type sits) and along the left,
   clear through the upper right so the sunset stays vivid. */
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(4,22,27,0.92) 0%, rgba(4,22,27,0.55) 32%, rgba(4,22,27,0.12) 62%, rgba(4,22,27,0.38) 100%),
    linear-gradient(90deg, rgba(4,22,27,0.68) 0%, rgba(4,22,27,0.18) 45%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 6.5rem;
  text-align: left;
}
.hero-inner { max-width: 940px; }
.hero .eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem; font-weight: 600;
  color: var(--white); margin: 0 0 1.6rem; opacity: 0.92;
}
.hero .eyebrow::before {
  content: ''; width: 54px; height: 2px; border-radius: 2px; flex-shrink: 0;
  background: var(--gold-light);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  text-transform: none;
  letter-spacing: -0.028em;
  line-height: 0.97;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(4,22,27,0.4);
}
/* The one italic in the headline — the emotional word gets the treatment. */
.hero h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
  color: var(--gold-light);
}
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 545px;
  margin: 0 0 2.6rem;
  line-height: 1.65;
}
.hero-search {
  display: flex; gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  max-width: 580px; margin: 0 0 1.5rem;
  box-shadow: 0 20px 50px rgba(4,22,27,0.35);
}
.hero-search input {
  flex: 1; border: none; padding: 0.8rem 1.35rem; font-size: 0.95rem;
  font-family: inherit; outline: none; background: transparent; color: var(--white);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.72); }
.hero-search input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; border-radius: var(--radius-pill); }
.hero-search .btn { padding: 0.85rem 1.75rem; }
.hero-ctas { display: flex; gap: 0.85rem; justify-content: flex-start; flex-wrap: wrap; }

/* Scroll cue — a slow travelling line, not a bouncing arrow. */
/* Kept on the right (clear of the left-aligned headline column at every
   width) but raised to 7.5rem so it clears the fixed chat launcher, which
   occupies the bottom-right corner at 60px + 1.5rem inset. */
.hero-cue {
  position: absolute; right: 2.25rem; bottom: 7.5rem; z-index: 3;
  display: flex; align-items: center; gap: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 600;
}
.hero-cue-rail { position: relative; width: 1px; height: 62px; background: rgba(255,255,255,0.25); overflow: hidden; }
.hero-cue-rail::after {
  content: ''; position: absolute; left: 0; top: -60%;
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  animation: cue-travel 2.6s var(--ease) infinite;
}
@keyframes cue-travel { 0% { top: -60%; } 100% { top: 100%; } }
.hero-cue-label { writing-mode: vertical-rl; }

@media (max-width: 900px) {
  .hero { min-height: 92svh; }
  .hero-content { padding-bottom: 4.5rem; }
  .hero-cue { display: none; }
}

/* ---------- Three-tile quick links ---------- */
.quick-links { padding: 6rem 0 1rem; }
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.quick-tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quick-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,26,46,0.85) 0%, rgba(13,26,46,0.15) 60%); }
.quick-tile-icon {
  position: absolute; right: -0.75rem; bottom: -0.75rem; z-index: 1;
  width: 130px; height: 130px;
  background-color: rgba(255,255,255,0.07);
  transition: transform 0.5s var(--ease), background-color 0.35s ease;
}
.quick-tile:hover .quick-tile-icon { transform: scale(1.12) rotate(-4deg); background-color: rgba(227,200,113,0.14); }
.quick-tile-icon--search { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.quick-tile-icon--value { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 15.5c0 1.1 1.1 2 2.5 2s2.5-.7 2.5-1.8c0-2.4-5-1.2-5-3.6 0-1.1 1.1-1.8 2.5-1.8s2.5.6 2.5 1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9.5 15.5c0 1.1 1.1 2 2.5 2s2.5-.7 2.5-1.8c0-2.4-5-1.2-5-3.6 0-1.1 1.1-1.8 2.5-1.8s2.5.6 2.5 1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.quick-tile-icon--connect { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-8.9 8.4c-1.3 0-2.6-.3-3.7-.9L3 21l1.9-5.7A8.4 8.4 0 1 1 21 11.5Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-8.9 8.4c-1.3 0-2.6-.3-3.7-.9L3 21l1.9-5.7A8.4 8.4 0 1 1 21 11.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.quick-tile-label {
  position: relative; z-index: 2; padding: 1.5rem; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-display); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.quick-tile-label .arrow { color: var(--gold-light); font-size: 1.3rem; transition: transform 0.3s var(--ease); }
.quick-tile:hover .arrow { transform: translateX(6px); }

/* ---------- Stats bar ---------- */
.stats-bar { background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 100%); padding: 4rem 0; margin-top: 5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--gold-light); margin-bottom: 0.35rem; }
.stat-label { color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.76rem; font-weight: 600; }

/* ---------- "Our Local Market by the Numbers" stat bar (Sellers page) ---------- */
.market-stats-bar { background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 100%); padding: 4rem 0 3rem; margin: 1rem 0; }
.market-stats-bar .section-title { color: var(--white); margin-bottom: 2.5rem; }
.market-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.market-stats-grid--4 { grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 0 auto; }
.market-stat-value { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--gold-light); margin-bottom: 0.35rem; }
.market-stat-value sup { font-size: 0.6em; color: rgba(255,255,255,0.5); margin-left: 0.1em; }
.market-stat-label { color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 600; }
.market-stat-note { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 0.15rem; }
.market-stats-footnotes { max-width: 920px; margin: 2rem auto 0; text-align: center; }
.market-stats-footnotes p { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.6; margin: 0 0 0.4rem; }
.market-stats-footnotes sup { font-size: 0.85em; }

/* ---------- Trust card / agent bio ---------- */
.bio-intro { padding: 7rem 0; }
.bio-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 0; align-items: stretch; }
.bio-photo-wrap { position: relative; }
.placeholder-headshot {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.85rem; min-height: 420px; border-radius: var(--radius) 0 0 var(--radius);
}
.headshot-photo {
  display: block; width: 100%; min-height: 420px; object-fit: cover; object-position: center 18%;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
}
.headshot-photo-large { min-height: 460px; border-radius: var(--radius); object-position: center 12%; }
.trust-card {
  position: relative; margin: -3.5rem 2.5rem 0 -1px;
  background: var(--navy-darker); color: var(--white);
  padding: 2rem 2.25rem; max-width: 300px; z-index: 2;
  border-radius: 0 var(--radius-sm) 0 0;
  box-shadow: var(--shadow-lg);
}
.trust-card .kicker { color: var(--gold-light); }
.trust-card h3 { color: var(--white); text-transform: none; letter-spacing: 0.04em; font-size: 1.4rem; margin-bottom: 0.6rem; }
.trust-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }
.bio-copy { padding: 1.5rem 0 1.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.bio-copy p { font-size: 1.02rem; }
.credential-list li { padding-left: 1.4rem; position: relative; margin-bottom: 0.6rem; color: var(--ink-soft); }
.credential-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--gold); }

.designation-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 1rem; }
.designation-badge {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0.4rem; filter: grayscale(15%);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.designation-badge:hover { filter: none; transform: translateY(-2px); }
.designation-badge img { height: 100%; width: auto; max-width: 110px; object-fit: contain; }
.designation-badge-wide img { max-width: 200px; }

/* ---------- Brokerage logo (Five Star Realty) ---------- */
.brokerage-badge {
  display: flex; align-items: center; gap: 1.1rem; margin-top: 1rem;
}
.brokerage-badge img { height: 72px; width: auto; flex-shrink: 0; }
.brokerage-badge p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Password show/hide eye (sign-in and register; pw-eye.js flips the type) ---------- */
.pwbox { position: relative; }
.pwbox input { padding-right: 2.7rem; }
.pweye {
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; background: none; border: 0;
  padding: 0.4rem; cursor: pointer; color: var(--ink-soft); border-radius: 8px;
}
.pweye:hover { color: var(--ink); }
.pweye svg { width: 20px; height: 20px; }
.pweye .i-off { display: none; }
.pweye.on .i-on { display: none; }
.pweye.on .i-off { display: block; }

/* ---------- Office photo (Bob's own shots of 1203 W Marion Ave) ---------- */
.office-photo { margin: 1.25rem 0 0; }
.office-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 42, 67, 0.14);
}
.office-photo figcaption { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.85rem; }
.bld-campus-photo { margin-top: 1.75rem; }
.footer-brokerage { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.4rem; }
.footer-brokerage-logo { height: 54px; width: auto; flex-shrink: 0; overflow: hidden; }
/* Text may wrap; never push the phone page sideways (e.g. while the logo is still loading). */
.footer-brokerage > div { min-width: 0; overflow-wrap: anywhere; }
.footer-brokerage p { margin: 0; }
.footer-brokerage p + p { margin-top: 0.5rem; }

/* ---------- Property cards ---------- */
.featured-listings { padding: 6rem 0; }
/* grid-auto-rows:1fr equalises every ROW, not just the cards within one row.
   Without it a two-line address anywhere makes that row taller than the rest
   and the grid goes ragged as you scroll. */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; grid-auto-rows: 1fr; }
/* The wrap is what the grid stretches; the card has to be told to fill it, or
   the white box stops at its own content and short cards float above the row. */
.property-card-wrap { height: 100%; }
.property-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.property-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.property-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.placeholder-photo {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(115deg, rgba(10,47,56,0.05) 0px, rgba(10,47,56,0.05) 1px, transparent 1px, transparent 30px),
    linear-gradient(150deg, #DDE7E4 0%, var(--cream-deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.placeholder-photo::before, .placeholder-photo-large::before {
  content: '';
  width: 34px; height: 34px; flex-shrink: 0;
  background-color: rgba(10,47,56,0.34);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 9.5V19a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 9.5V19a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.property-card-photo, .listing-detail-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.property-card:hover .property-card-photo { transform: scale(1.07); }
.property-badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: var(--gold); color: var(--navy-darker);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
}
.property-card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.property-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.3rem; display: flex; align-items: baseline; gap: 0.6rem; }
/* Reserve two lines whatever the address length. "19 WINDWARD ROAD" fits on
   one line and "24343 PIRATE HARBOR BOULEVARD" needs two — without a reserved
   height the two cards sit at different depths even when the boxes match.
   Clamped at two lines so one unusually long street name can't stretch every
   row on the page; the full address is on the card's image alt text, in the
   title tooltip, and on the listing page itself. */
.property-address {
  font-weight: 600; color: var(--ink);
  /* line-height and min-height are BOTH declared, and min-height is exactly
     two of these lines. Inheriting the leading and guessing the reserve is how
     the earlier version ended up 6px short: the body's 1.7 leading rendered
     27.2px lines while the reserve assumed 24px, so a one-line address sat
     6px higher than a two-line one. Change one of these and change the other. */
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden;
}
.property-city { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.5rem; }
/* Pinned to the bottom so the spec row lines up across every card. */
.property-specs { margin-top: auto; font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.6rem; }

/* ---------- Recently sold ---------- */
.sold-ribbon {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: var(--navy); color: #fff;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
}
.property-card-sold .property-card-media { filter: saturate(0.85); }
.sold-label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft); background: var(--cream-deep);
  padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
}
.recently-sold { padding: 1rem 0 5rem; }

/* ---------- Reviews / "find us on" row ---------- */
.reviews-band { background: var(--white); padding: 4.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.review-badge-link {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--cream);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.review-badge-link:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.review-badge-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 0.9rem; flex-shrink: 0;
  border-radius: 50%; background: var(--navy-darker); color: var(--gold-light);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
}
.review-badge-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.3rem; }
.review-badge-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 6.5rem 0; background: var(--cream-deep); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.testimonial {
  background: var(--white); padding: 2.25rem; border-left: 3px solid var(--gold); margin: 0;
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial p { color: var(--ink); font-style: italic; font-size: 1rem; }
.testimonial footer { margin-top: 1rem; font-weight: 600; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; padding: 6.5rem 0; text-align: center; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8,39,47,0.86) 0%, rgba(13,26,46,0.9) 100%),
    url('/images/aerial-charlotte-county.jpg') center 60% / cover no-repeat;
}
.cta-band-inner { position: relative; z-index: 2; }
.cta-band-inner h2 { color: var(--white); text-transform: none; margin-bottom: 0.75rem; }
.cta-band-inner p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-darker); color: rgba(255,255,255,0.7); padding: 4.5rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-inner .brand-name { color: var(--white); margin-bottom: 0.8rem; display: block; }
.footer-inner p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-inner a:hover { color: var(--gold-light); }
.footer-heading { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--gold-light); margin-bottom: 1.1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
/* .fine-print defaults to a LIGHT-surface color. It was previously
   translucent white, which was correct in the footer but rendered the
   same class invisible everywhere else it is used (the disclosure under
   the contact form, the mortgage-estimate caveat on listing pages, the
   blog empty state, the LeadingRE figures note). The white treatment is
   now scoped to the dark footer, where it belongs. */
.fine-print { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; }
.site-footer .fine-print { color: rgba(255,255,255,0.62); }

/* ---------- Inner page header band ---------- */
.page-header { background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 100%); padding: 2.75rem 0 2.25rem; }
/* Slightly tighter than the global h1 scale — inner-page banners don't need
   the full hero-sized display type, and capping it keeps the band shallow. */
.page-header h1 {
  color: var(--white); text-transform: none; margin-bottom: 0.4rem;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
}
.page-header p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Listings page ---------- */
.listings-page { padding: 3.5rem 0 5rem; }
.listings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.search-filters {
  background: var(--white); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 104px;
}
.search-filters label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); }
.search-filters select, .search-filters input { font-family: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; background: var(--cream); }

/* ---------- Listing detail ---------- */
.listing-detail { padding: 3rem 0 5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.listing-detail-media {
  width: 100%; aspect-ratio: 16/7; overflow: hidden;
  border-radius: var(--radius); margin-bottom: 2.5rem;
}
.placeholder-photo-large {
  width: 100%; height: 100%; aspect-ratio: 16/7;
  background:
    repeating-linear-gradient(115deg, rgba(10,47,56,0.05) 0px, rgba(10,47,56,0.05) 1px, transparent 1px, transparent 30px),
    linear-gradient(150deg, #DDE7E4 0%, var(--cream-deep) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--ink-soft); border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem;
}
.placeholder-photo-large::before { width: 52px; height: 52px; }
.listing-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.listing-detail h1 { text-transform: none; font-size: 1.9rem; }
.listing-detail-location { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; color: var(--accent-ink); font-weight: 600; margin-bottom: 1.5rem; }
.fact-table { border-top: 1px solid var(--line); }
.fact-row { display: flex; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.fact-row span:first-child { color: var(--ink-soft); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em; font-weight: 600; }
.fact-row span:last-child { color: var(--navy); font-weight: 600; }

.mortgage-calc { margin-top: 2rem; padding: 1.5rem; background: var(--cream-deep); border-radius: var(--radius); }
.mortgage-calc h3 { text-transform: none; font-size: 1rem; margin-bottom: 1rem; }
.mortgage-calc label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin-bottom: 1rem; }
.mortgage-calc input, .mortgage-calc select { font-family: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; background: var(--white); }
.mortgage-result { font-size: 1.15rem; color: var(--navy); padding-top: 0.5rem; border-top: 1px solid var(--line); margin-top: 0.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mortgage-result strong { font-family: var(--font-display); color: var(--gold-light); background: var(--navy); padding: 0.2rem 0.6rem; border-radius: 3px; white-space: nowrap; }

/* ---------- Lead form ---------- */
.lead-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-form h3 { text-transform: none; font-size: 1.15rem; margin-bottom: 1.25rem; }
.lead-form button[type="submit"] + .fine-print { margin-top: 0.85rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.lead-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin-bottom: 1rem; }
.lead-form input, .lead-form textarea, .lead-form select { min-width: 0; font-family: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; background: var(--cream); }

/* Spam honeypot — invisible to real visitors, catches simple bots that
   auto-fill every field. Not display:none (some bots skip that), just
   moved off-screen. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Lifestyle strip (About page) ---------- */
.lifestyle-section { padding: 4.5rem 0 5rem; background: var(--cream-deep); }
.lifestyle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.lifestyle-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 720px) { .lifestyle-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About page ---------- */
.about-page { padding: 4rem 0 5rem; }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 3rem; align-items: start; }
.placeholder-headshot-large { min-height: 460px; border-radius: var(--radius); }
.about-page h3 { text-transform: none; margin-top: 2rem; }
.about-page .fine-print, .listing-detail .fine-print, .neighborhood-detail .fine-print {
  color: var(--ink-soft); background: var(--cream-deep); border: 1px dashed var(--gold);
  padding: 0.85rem 1rem; border-radius: var(--radius); display: block;
}
.office-map-wrap {
  margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.office-map-wrap iframe { display: block; }

/* ---------- Neighborhoods ---------- */
.neighborhoods-grid-section { padding: 3.5rem 0 0; }
.statewide-note { padding: 3rem 0 5rem; }
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.neighborhood-card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.neighborhood-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.neighborhood-card .placeholder-photo { aspect-ratio: 4/3; }
.neighborhood-card-photo { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; overflow: hidden; transition: transform 0.6s var(--ease); }
.neighborhood-card:hover .neighborhood-card-photo { transform: scale(1.06); }
.neighborhood-card h3, .neighborhood-card p { padding: 0 1.4rem; }
.neighborhood-card h3 { padding-top: 1.2rem; text-transform: none; font-size: 1.05rem; }
.neighborhood-card p { padding-bottom: 1.4rem; font-size: 0.9rem; }
.neighborhood-detail { padding: 3rem 0 5rem; }
.neighborhood-detail .placeholder-photo-large { margin-bottom: 1.5rem; }
.neighborhood-detail-photo {
  display: block; width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}

/* ---------- Footer site preferences (currency + language) ----------
   Previously a separate bar pinned above the header. That strip put a hard
   dark band across the top of every page and cut the full-bleed video hero
   off from the top of the window, so both controls moved down here. */
/* No border-top here: .footer-inner already closes with a bottom rule, and
   two hairlines a few rem apart read as a mistake. */
.footer-prefs {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2.25rem;
  margin-top: 2.25rem;
}
.footer-pref { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-pref-label {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: var(--gold-light);
}
#currency-select, #language-select {
  font-family: var(--font-body);
  font-size: 0.84rem;
  /* Comfortable hit area now that there is room for one. */
  padding: 0.55rem 0.8rem;
  min-width: 150px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
#currency-select:hover, #language-select:hover {
  border-color: var(--gold); background: rgba(255,255,255,0.09);
}
#currency-select option, #language-select option { background: var(--navy-darker); color: var(--white); }
#currency-select:focus-visible, #language-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-pref-note {
  flex: 1 1 260px; min-width: 240px; margin: 0;
  font-size: 0.74rem; line-height: 1.6; color: rgba(255,255,255,0.5);
}
/* Google's own translate widget renders into #google_translate_element with
   its own styling/branding (a "Powered by Google Translate" row, a logo
   image, extra chrome) that's genuinely hard to override cleanly with CSS.
   Rather than fight it, it's kept in the DOM (Google needs it there to
   function) but visually hidden — the real, on-brand control visitors see
   and use is the plain #language-select above, which drives this hidden
   widget programmatically (see public/google-translate-init.js). */
.goog-te-gadget-wrap {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Google also injects a page-pushing banner iframe once translation is
   active — suppressed so switching languages never shifts the layout. */
body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }

/* ---------- Guide pages (Buyers / Sellers) ---------- */
.guide-intro { padding: 3.5rem 0 1rem; }
.guide-intro p { max-width: 760px; font-size: 1.05rem; color: var(--ink-soft); }

.step-list { padding: 1rem 0 4.5rem; }
.step-item { display: flex; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.step-item:first-child { padding-top: 0; }
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); font-family: var(--font-display);
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.step-content h3 { margin: 0.1rem 0 0.4rem; text-transform: none; font-size: 1.05rem; color: var(--navy); }
.step-content p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.step-content a { color: var(--accent-ink); font-weight: 600; }

.resource-cards { padding: 1rem 0 5rem; }
.resource-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; margin-top: 1.5rem; }
.resource-card {
  display: block; background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.resource-card h3 { text-transform: none; color: var(--navy); margin: 0 0 0.5rem; font-size: 1.05rem; }
.resource-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1rem; }
.resource-card .arrow-link { color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Services page ---------- */
.services-section { padding: 1rem 0 4.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.service-panel {
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-panel h3 { text-transform: none; color: var(--navy); margin: 0 0 0.75rem; font-size: 1.1rem; }
.service-panel p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 1rem; }
.service-panel .arrow-link,
.service-panel-links .arrow-link {
  color: var(--accent-ink); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-block; margin-top: 0.15rem;
}
.service-panel-links { display: flex; flex-direction: column; gap: 0.4rem; }

/* ---------- Mortgage pre-approval page ---------- */
.panels-section { padding: 1rem 0 1rem; }
.panels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 1rem 0 4rem; }
.panel { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h3 { text-transform: none; color: var(--navy); margin: 0 0 1rem; font-size: 1.05rem; }
.panel p { color: var(--ink-soft); font-size: 0.94rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.75rem; color: var(--ink-soft); font-size: 0.94rem; }
.checklist li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

/* ---------- Buyer calculators (Buying Power / Mortgage toggle) ---------- */
.calc-section { padding: 3rem 0 5rem; }
.calc-toggle { display: inline-flex; background: var(--cream-deep); border-radius: 999px; padding: 0.3rem; margin-bottom: 2.5rem; gap: 0.25rem; }
.calc-toggle-btn {
  border: none; background: transparent; padding: 0.65rem 1.4rem; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.calc-toggle-btn.active { background: var(--navy); color: var(--white); }
.calc-panel { display: none; }
.calc-panel.active { display: block; animation: calc-fade-in 0.3s ease; }
@keyframes calc-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.calc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.calc-inputs { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.afford-calc label, .calc-inputs .mortgage-calc label {
  display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin-bottom: 1rem;
}
.afford-calc input, .afford-calc select {
  font-family: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.92rem; background: var(--cream);
}
.calc-results {
  background: var(--navy); border-radius: var(--radius); padding: 2rem; color: var(--white);
  position: sticky; top: 1.5rem;
}
.calc-result-card { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.calc-result-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: rgba(255,255,255,0.55); margin: 0 0 0.4rem; }
.calc-result-value { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-light); margin: 0; word-break: break-word; }
.calc-result-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.calc-result-value-sm { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin: 0; }
.calc-results .btn-primary { display: block; width: 100%; text-align: center; margin-top: 1.25rem; }
.calc-inputs .field-hint { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.8rem; line-height: 1.4; }
.calc-breakdown { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.calc-breakdown strong { color: var(--white); font-weight: 700; white-space: nowrap; }
.calc-breakdown-loan { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 0.6rem; margin-top: 0.2rem; font-size: 0.85rem !important; }

/* ---------- Net Proceeds Calculator (Sellers) ---------- */
.proceeds-calc { padding-top: 0.5rem; }
.proceeds-assumptions {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; margin-bottom: 2.5rem;
}
.proceeds-assumptions label {
  display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin-bottom: 1rem;
}
.proceeds-assumptions input {
  font-family: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.92rem; background: var(--cream);
}
.proceeds-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proceeds-scn-col {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem; display: flex; flex-direction: column;
}
.proceeds-scn-head {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 0.6rem; margin-bottom: 1.25rem;
}
.proceeds-scn-head span { display: block; font-family: inherit; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 0.2rem; }
.proceeds-scn-col label {
  display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); margin-bottom: 0.85rem;
}
.proceeds-scn-col input {
  font-family: inherit; padding: 0.55rem 0.65rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.88rem; background: var(--cream);
}
.proceeds-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0; font-size: 0.85rem;
}
.proceeds-line span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem; font-weight: 600; }
.proceeds-line-sub {
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin-bottom: 0.85rem;
}
.proceeds-line-sub strong { color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.proceeds-line-total {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-top: auto;
}
.proceeds-line-total span { color: rgba(255,255,255,0.6); }
.proceeds-line-total strong { color: var(--gold-light); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* ---------- Financial terms glossary ---------- */
.glossary-page { padding: 3rem 0 5rem; }
.glossary-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1rem; background: var(--cream-deep); border-radius: var(--radius); margin-bottom: 2.5rem; }
.glossary-nav a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--navy); border-radius: 3px;
}
.glossary-nav a:hover { background: var(--navy); color: var(--white); }
.glossary-letter { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-ink); border-bottom: 2px solid var(--gold); padding-bottom: 0.3rem; margin: 2.5rem 0 1.25rem; scroll-margin-top: 1rem; }
.glossary-letter:first-of-type { margin-top: 0; }
.glossary-term { margin: 0 0 1.4rem; }
.glossary-term dt { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 0.25rem; }
.glossary-term dd { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Home Value landing page ---------- */
.homevalue-hero { background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 100%); padding: 4.5rem 0 3.5rem; text-align: center; }
.homevalue-hero .container { max-width: 720px; }
.homevalue-hero h1 { color: var(--white); text-transform: none; margin-bottom: 0.75rem; }
.homevalue-hero > .container > p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0 auto 1.75rem; max-width: 560px; }
.homevalue-benefits { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.benefit-pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(227,200,113,0.4);
  color: var(--gold-light); font-size: 0.76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.5rem 1rem; border-radius: 999px;
}
.homevalue-body { padding: 4rem 0 5rem; }
.homevalue-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.usecase-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.usecase-card h3 { font-size: 1rem; color: var(--navy); text-transform: none; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.usecase-card p { font-size: 0.88rem; margin: 0; }
.faq-list { margin-top: 1.5rem; }
.faq-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem; margin-bottom: 0.85rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent-ink); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.85rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.homevalue-form-col { position: sticky; top: 1.5rem; }
.homevalue-form .form-section-label {
  text-transform: uppercase; font-size: 0.8rem; font-weight: 700; color: var(--accent-ink);
  letter-spacing: 0.05em; margin: 0 0 1rem;
}

/* ---------- Blog ---------- */
.blog-section { padding: 1rem 0 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.blog-card {
  display: block; background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-category {
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 0.6rem;
}
.blog-card h3 { color: var(--navy); font-size: 1.15rem; margin: 0 0 0.6rem; line-height: 1.3; }
.blog-card-excerpt { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1rem; }
.blog-card-date { color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; border-top: 1px solid var(--line); padding-top: 0.85rem; }

.blog-post { padding: 2.5rem 0 4rem; }
.blog-post-container { max-width: 720px; margin: 0 auto; }
.blog-post-container p { font-size: 1.02rem; line-height: 1.75; color: var(--ink); margin: 0 0 1.4rem; }
.blog-post-container p strong { color: var(--navy); }
.blog-post-container p a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }

/* Long-form article structure. H2s are the document outline Google reads, so
   they get a rule above them and real breathing room; H3s stay quieter so a
   scan of the page still reads as sections, not as one flat list. */
.blog-post-container h2 {
  font-size: 1.55rem; line-height: 1.25; color: var(--navy);
  margin: 2.9rem 0 1.1rem; padding-top: 1.6rem; border-top: 2px solid var(--line);
  text-transform: none; letter-spacing: -0.01em;
}
.blog-post-container h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.blog-post-container h3 {
  font-size: 1.13rem; line-height: 1.35; color: var(--navy);
  margin: 2rem 0 0.7rem; text-transform: none; letter-spacing: 0;
}
.blog-list { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.blog-list li {
  font-size: 1.02rem; line-height: 1.7; color: var(--ink);
  margin-bottom: 0.65rem; padding-left: 0.25rem;
}
.blog-list li::marker { color: var(--accent-ink); }
.blog-list li strong { color: var(--navy); }
.blog-list li a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; }

/* FAQ block — visible on the page, which is what makes the FAQPage schema
   legitimate. Never mark up an answer the reader cannot see. */
.blog-faq {
  border-left: 3px solid var(--gold); background: var(--cream);
  padding: 1.1rem 1.3rem; border-radius: 0 6px 6px 0; margin: 0 0 1rem;
}
.blog-faq h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.blog-faq p { margin: 0; font-size: 0.97rem; }

/* ---------- Contact page ---------- */
.contact-page { padding: 3.5rem 0 5rem; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
.contact-page h3 { text-transform: none; margin-bottom: 1rem; }
.contact-page p strong { color: var(--navy); }

/* ---------- Scroll-reveal (see public/scroll-effects.js) ---------- */
.reveal-target { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-target.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-target { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
/* Header nav collapses to the hamburger menu earlier (1199px) than the rest
   of the layout (900px) -- with the text/Facebook/WhatsApp icons plus the
   phone button in the header, and 9 nav links (Home through Contact,
   including "Services"), the full inline nav needs about 1290px of room.
   .header-inner's own max-width is widened to 1400px above so it isn't
   capped by the page's normal 1200px .container, but the row still can't
   be wider than the viewport itself -- so this breakpoint has to stay
   comfortably above that ~1290px requirement too, or the nav would
   overflow right at the edge between "hamburger" and "not." */
@media (max-width: 1199px) {
  .site-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy-darker); flex-direction: column; align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-quick { display: inline-flex; }
  /* Menu button at the far right, where people look for it (it used to sit
     in the middle of the bar, between the logo and the call buttons). */
  .header-actions { margin-left: auto; order: 2; }

  /* In the collapsed (hamburger) nav the submenu becomes an inline
     accordion instead of a floating panel — a panel positioned over a
     column menu would cover the links beneath it. Hover no longer opens
     it here; only the caret button does, so a tap on "Sellers" still
     goes straight to the Sellers page. */
  .site-nav { max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav-item { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .nav-caret { padding: 0.35rem 0.5rem; }
  .nav-menu {
    position: static; transform: none; min-width: 0; width: 100%;
    background: none; border: none; box-shadow: none;
    padding: 0.25rem 0 0.25rem 0.9rem;
    margin-top: 0.35rem;
    border-left: 1px solid rgba(255,255,255,0.16);
    border-radius: 0;
    display: none; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-menu::before { display: none; }
  .nav-menu.open { display: flex; transform: none; }
  .site-nav .nav-menu a { padding: 0.5rem 0; font-size: 0.7rem; }
  .site-nav .nav-menu a:hover, .site-nav .nav-menu a.active { background: none; }
}
@media (max-width: 900px) {
  .bio-grid, .about-grid, .listing-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .trust-card { margin: 1.5rem 0 0; max-width: none; }
  .bio-copy { padding: 1.5rem 0 0; }
  .property-grid, .quick-links-grid, .stats-grid, .testimonial-grid, .neighborhood-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .market-stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .market-stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .panels-grid, .resource-card-grid, .services-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { position: static; }
  .proceeds-scenarios { grid-template-columns: 1fr; }
  .homevalue-grid { grid-template-columns: 1fr; }
  .homevalue-form-col { position: static; }
  .usecase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { height: 64px; gap: 0.6rem; }
  .header-quick { display: none; }
  .brand-sub { display: none; }
  .brand-rule { display: none; }
  .phone-cta { padding: 0.5rem 0.85rem; font-size: 0.72rem; }
  .property-grid, .quick-links-grid, .stats-grid, .testimonial-grid, .neighborhood-grid, .reviews-grid { grid-template-columns: 1fr; }
  .market-stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Stacked input + button reads better in a soft rectangle than in a
     pill, which leaves awkward crescents of space at the corners. */
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { padding: 0.7rem 1rem; }
  .hero-content { padding: 0 1.25rem 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .step-item { gap: 1rem; }
  .step-num { width: 38px; height: 38px; font-size: 1rem; }
  /* Keep currency + language on ONE row at every width — they share the
     line evenly and the explanatory note drops beneath them, rather than
     each select stretching full-width and stacking. */
  .footer-prefs { gap: 1rem 1rem; }
  .footer-pref { flex: 1 1 0; min-width: 0; }
  #currency-select, #language-select { width: 100%; min-width: 0; padding: 0.55rem 0.6rem; }
  .footer-pref-note { flex: 1 1 100%; min-width: 0; }
  /* Long button labels (e.g. "See Listings in Burnt Store Marina" on a
     neighborhood detail page) can run wider than a narrow phone viewport
     with the default nowrap — let buttons wrap onto a second line instead
     of causing horizontal page overflow. */
  .btn { white-space: normal; text-align: center; }
  .office-map-wrap iframe { height: 280px; }
}
/* The logo name, Text button, phone number and menu button need about 560px
   side by side. Below 600px the phone number folds to a round call icon, and
   below 520px the logo name goes too, so the header never runs wider than
   the screen (it used to overflow between 481px and 560px). */
/* Search / Contact beside the menu button need about 735px with everything
   else, so they wait until 761px (they used to appear at 641px and push the
   menu button off the screen). */
@media (max-width: 760px) {
  .header-quick { display: none; }
}
@media (max-width: 600px) {
  .header-actions { gap: 0.4rem; margin-left: auto; }
  .text-cta { min-height: 44px; padding: 0 0.85rem; }
  .phone-cta {
    width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%;
  }
  .phone-cta-text { display: none; }
  .phone-cta-icon { display: block; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
}

/* ---------------------------------------------------------------------
   Chat widget — self-hosted, rule-based FAQ + lead capture (public/chat-widget.js).
   No third-party script, no API cost. See public/chat-widget.js for logic.
--------------------------------------------------------------------- */
.chat-launcher {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy-deep); border: 1px solid var(--gold);
  box-shadow: var(--shadow-lg);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.chat-launcher:hover { transform: scale(1.06); background: var(--navy); }
/* Phones: a slightly smaller chat button, tucked closer to the corner, and
   room under the footer so the last lines of the page can scroll clear of it. */
@media (max-width: 640px) {
  .chat-launcher { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
  .site-footer { padding-bottom: calc(2rem + 70px); }
}
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .chat-launcher-close-icon { display: none; }
.chat-launcher[aria-expanded="true"] .chat-launcher-chat-icon { display: none; }
.chat-launcher[aria-expanded="true"] .chat-launcher-close-icon { display: block; }
.chat-launcher-badge {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream);
}

.chat-panel {
  position: fixed; right: 1.5rem; bottom: 5.75rem; z-index: 399;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 520px; max-height: calc(100vh - 8rem);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  background: var(--navy-deep); color: var(--white);
  padding: 1rem 1.15rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.chat-panel-header-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.chat-panel-header-sub { font-size: 0.74rem; color: var(--gold-light); margin-top: 0.1rem; }
.chat-panel-close {
  background: none; border: none; color: var(--white); opacity: 0.75;
  cursor: pointer; padding: 0.25rem; line-height: 1; flex-shrink: 0;
}
.chat-panel-close:hover { opacity: 1; }
.chat-panel-close svg { width: 18px; height: 18px; }

.chat-panel-body {
  flex: 1; overflow-y: auto; padding: 1rem 1rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  background: var(--cream);
}
.chat-msg { max-width: 86%; font-size: 0.86rem; line-height: 1.45; padding: 0.6rem 0.8rem; border-radius: 12px; }
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 3px; color: var(--ink); }
.chat-msg-user { align-self: flex-end; background: var(--navy-deep); color: var(--white); border-bottom-right-radius: 3px; }

.chat-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.15rem 0 0.6rem; }
.chat-chip {
  font-size: 0.76rem; padding: 0.4rem 0.7rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--navy-deep);
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease;
}
.chat-chip:hover { border-color: var(--gold); color: var(--navy); }

.chat-panel-footer { flex-shrink: 0; border-top: 1px solid var(--line); background: var(--white); padding: 0.75rem; }
.chat-talk-human {
  display: block; width: 100%; text-align: center; background: none;
  border: none; color: var(--navy-deep); font-size: 0.76rem; text-decoration: underline;
  cursor: pointer; padding: 0 0 0.6rem; opacity: 0.8;
}
.chat-talk-human:hover { opacity: 1; }
.chat-input-row { display: flex; gap: 0.5rem; }
.chat-input-row input[type="text"] {
  flex: 1; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.86rem;
}
.chat-input-row input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-send-btn {
  background: var(--navy-deep); color: var(--white); border: none; border-radius: 8px;
  width: 40px; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { background: var(--navy); }
.chat-send-btn svg { width: 17px; height: 17px; }

.chat-lead-form { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.15rem 0 0.6rem; }
.chat-lead-form label { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 0.25rem; }
.chat-lead-form input, .chat-lead-form textarea {
  width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.85rem;
}
.chat-lead-form textarea { resize: vertical; min-height: 60px; }
.chat-lead-form .chat-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat-lead-submit {
  background: var(--gold); color: var(--navy-darker); border: none; border-radius: 999px;
  font-weight: 600; font-size: 0.82rem; padding: 0.65rem 1rem; cursor: pointer;
}
.chat-lead-submit:hover { background: var(--gold-light); }
.chat-lead-submit:disabled { opacity: 0.6; cursor: default; }
.chat-lead-error { color: #b3261e; font-size: 0.78rem; }

@media (max-width: 480px) {
  .chat-panel { right: 1rem; bottom: 5.25rem; width: calc(100vw - 2rem); }
  .chat-launcher { right: 1rem; bottom: 1rem; width: 54px; height: 54px; }
}

/* ---------------------------------------------------------------------
   Resources / documents page (pages/resources.js)
--------------------------------------------------------------------- */
.doc-audience-tag {
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem;
  color: var(--accent-ink); font-weight: 600; margin: 0 0 0.5rem;
}
.doc-body { padding: 3rem 0 1rem; }
.doc-disclaimer {
  color: var(--ink-soft); font-size: 0.85rem; font-style: italic;
  max-width: 820px; margin: 0 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.doc-group-header { margin: 3rem 0 0.5rem; padding-top: 1.5rem; border-top: 2px solid var(--gold); }
.doc-group-header h2 { text-transform: none; color: var(--navy); font-size: 1.3rem; margin: 0; }
.doc-category { margin-bottom: 2.25rem; }
.doc-category h3 {
  color: var(--navy); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em;
  margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.doc-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.9rem; }
.doc-item {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
}
.doc-item-name { font-weight: 600; color: var(--ink); font-size: 0.94rem; margin-bottom: 0.3rem; }
.doc-item-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.84rem; }
.doc-item-phone { color: var(--navy-deep); font-weight: 500; }
.doc-item-link { color: var(--accent-ink); }
.doc-item-note { color: var(--ink-soft); font-size: 0.78rem; margin: 0.4rem 0 0; line-height: 1.4; }

@media (max-width: 640px) {
  .doc-item-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   MLS Search map view (pages/listings.js, public/listings-map.js) —
   self-hosted Leaflet + OpenStreetMap tiles, split list/map layout.
--------------------------------------------------------------------- */
/* =====================================================================
   MLS SEARCH PLATFORM (pages/listings.js)
   ---------------------------------------------------------------------
   Three zones: a search hero that makes starting a search obvious, a
   sticky filter toolbar, and a results area with a Gallery / Split / Map
   view toggle. Filter popovers are native <details> elements, so the
   whole thing degrades to a working plain form without JavaScript.
   ===================================================================== */

/* ---------- Search hero ---------- */
.search-hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(4,22,27,0.93) 0%, rgba(10,46,56,0.88) 55%, rgba(15,63,74,0.82) 100%),
    url('/images/aerial-charlotte-county.jpg') center 60% / cover no-repeat;
  padding: 3.5rem 0 2.5rem;
}
.search-hero-inner { max-width: 860px; }
.search-hero h1 {
  color: var(--white); margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
.search-hero-sub { color: rgba(255,255,255,0.78); margin: 0 0 1.75rem; max-width: 60ch; }
/* After a search: just the bar and the quick picks, so results start high up. */
.search-hero--compact { padding: 1.25rem 0 1rem; }
.search-hero--compact .kicker, .search-hero--compact .search-hero-sub { display: none; }
.search-hero--compact h1 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.search-hero--compact .quick-searches { margin-top: 0.75rem; }

.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.45rem 0.45rem 1.1rem;
  box-shadow: 0 18px 44px rgba(4,22,27,0.34);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.search-bar:focus-within { border-color: var(--gold); background: rgba(255,255,255,0.14); }
.search-bar-icon { display: flex; color: rgba(255,255,255,0.75); flex-shrink: 0; }
.search-bar-icon svg { width: 19px; height: 19px; }
.search-bar input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  color: var(--white); font-family: inherit; font-size: 1rem; padding: 0.75rem 0.5rem;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.62); }
.search-bar .btn { flex-shrink: 0; }

.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.quick-searches-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55); font-weight: 600; margin-right: 0.2rem;
}
.quick-chip {
  display: inline-block; padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem; font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.quick-chip:hover {
  background: var(--gold); border-color: var(--gold); color: var(--navy-darker);
  transform: translateY(-2px);
}

/* ---------- Sticky filter toolbar ---------- */
.search-toolbar {
  position: sticky; top: 84px; z-index: 40;
  background: rgba(241,244,243,0.94);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

.filter { position: relative; }
.filter > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink);
  font-size: 0.82rem; font-weight: 500; white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.filter > summary::-webkit-details-marker { display: none; }
.filter > summary::after {
  content: ''; width: 8px; height: 8px; flex-shrink: 0; margin-left: 0.15rem;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s var(--ease);
  opacity: 0.55;
}
.filter[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.filter > summary b { font-weight: 700; color: var(--turquoise-ink); }
.filter > summary:hover { border-color: var(--turquoise); }
.filter[open] > summary {
  border-color: var(--turquoise); box-shadow: 0 0 0 3px rgba(23,162,160,0.14);
}
.filter > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.filter-panel {
  position: absolute; top: calc(100% + 0.6rem); left: 0; z-index: 60;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  animation: filter-in 0.18s var(--ease);
}
.filter--wide .filter-panel { min-width: 420px; }
/* Closed filters must not take up room: newer Chrome still lays out a closed
   <details>' content, so the wide panels pushed the phone page sideways. */
.filter:not([open]) > .filter-panel { display: none; }
@keyframes filter-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.filter-panel label, .filter-panel .field {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-soft);
}
.filter-panel input[type="number"], .filter-panel select {
  font-family: inherit; font-size: 0.92rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
}
.filter-panel input:focus-visible, .filter-panel select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 1px;
}
.filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.filter-panel-actions { display: flex; gap: 0.6rem; justify-content: space-between; align-items: center; margin-top: 0.2rem; }
.filter-panel-actions .btn { flex: 1; justify-content: center; }
.filter-apply { justify-content: center; }
.field-note { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--accent-ink); font-style: normal; }
.field-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* Segmented pill choices (beds / baths / waterfront) */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pill { position: relative; margin: 0; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: inline-block; padding: 0.48rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--cream); color: var(--ink);
  font-size: 0.82rem; font-weight: 500; text-transform: none; letter-spacing: 0;
  cursor: pointer; transition: all 0.18s ease;
}
.pill:hover span { border-color: var(--turquoise); }
.pill.is-on span, .pill input:checked + span {
  background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white);
}
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pill.is-disabled span { opacity: 0.42; cursor: not-allowed; }

.sort-control { margin-left: auto; }
.sort-control select {
  font-family: inherit; font-size: 0.82rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.sort-control select:hover { border-color: var(--turquoise); }

/* Applied-filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--navy-deep); color: var(--white);
  font-size: 0.76rem; font-weight: 500;
  transition: background 0.2s ease;
}
.chip:hover { background: var(--accent-ink); }
.chip-x { font-size: 1rem; line-height: 1; opacity: 0.7; }
.chip-clear { background: none; color: var(--accent-ink); border: 1px dashed var(--accent-ink); }
.chip-clear:hover { background: var(--accent-ink); color: var(--white); }

/* ---------- Results ---------- */
.results { padding: 2rem 0 5rem; }
.results-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.results-count { font-size: 0.95rem; color: var(--ink-soft); }
.results-note { display: block; font-size: 0.82rem; margin-top: 0.2rem; max-width: 46rem; }
.results-count strong { font-size: 1.25rem; color: var(--navy); font-family: var(--font-display); }

/* Three-way view toggle */
.view-toggle {
  display: inline-flex; padding: 0.25rem;
  background: var(--cream-deep); border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.view-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1.05rem; border: none; border-radius: var(--radius-pill);
  background: none; color: var(--ink-soft); cursor: pointer;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.25s var(--ease), color 0.2s ease;
}
.view-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.view-btn:hover { color: var(--navy); }
.view-btn.is-on { background: var(--navy-deep); color: var(--white); box-shadow: var(--shadow-soft); }
.view-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.results-split { display: grid; gap: 1.75rem; align-items: start; }
.listings-list-pane { min-width: 0; }
.listings-map-pane {
  position: sticky; top: 10.5rem; height: calc(100vh - 12rem); min-height: 460px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  /* Leaflet's internal panes carry z-index values in the hundreds, which let
     the map float OVER the sticky header when the page scrolls. Isolating the
     map pane caps every internal z-index inside its own stacking context, so
     the header (z-index 50) wins again. (Kept HERE, on the sticky rule — a
     separate `position: relative` rule for this used to override the sticky
     positioning entirely, which is why the map scrolled off screen.) */
  z-index: 0; isolation: isolate;
}
.listings-map { width: 100%; height: 100%; background: var(--cream-deep); }

/* View states */
.results-split[data-active-view="gallery"] { grid-template-columns: 1fr; }
.results-split[data-active-view="gallery"] .listings-map-pane { display: none; }
.results-split[data-active-view="gallery"] .property-grid { grid-template-columns: repeat(3, 1fr); }

.results-split[data-active-view="split"] { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.results-split[data-active-view="split"] .property-grid { grid-template-columns: repeat(2, 1fr); }

.results-split[data-active-view="map"] { grid-template-columns: 1fr; }
.results-split[data-active-view="map"] .listings-list-pane { display: none; }
.results-split[data-active-view="map"] .listings-map-pane {
  position: static; height: calc(100vh - 14rem); min-height: 520px;
}

.empty-state {
  text-align: center; padding: 4rem 1.5rem;
  background: var(--white); border-radius: var(--radius);
  border: 1px dashed var(--line);
}
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { max-width: 46ch; margin: 0 auto 1.5rem; }

@media (max-width: 1100px) {
  .results-split[data-active-view="gallery"] .property-grid { grid-template-columns: repeat(2, 1fr); }
  .results-split[data-active-view="split"] .property-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .search-toolbar { top: 0; }
  /* Split needs two readable columns; below this it collapses to Gallery. */
  .results-split[data-active-view="split"] { grid-template-columns: 1fr; }
  .results-split[data-active-view="split"] .listings-map-pane {
    position: static; height: 60vh; min-height: 340px;
  }
  .filter--wide .filter-panel { min-width: 0; width: min(92vw, 420px); }
}
@media (max-width: 640px) {
  .search-hero { padding: 2.5rem 0 2rem; }
  .search-hero--compact { padding: 1rem 0 0.85rem; }
  /* Quick picks: one row that scrolls sideways instead of five wrapped rows. */
  .quick-searches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1.25rem; padding-right: 1.25rem; -webkit-overflow-scrolling: touch; }
  .quick-searches::-webkit-scrollbar { display: none; }
  .quick-chip { flex-shrink: 0; white-space: nowrap; padding: 0.6rem 0.95rem; }
  .quick-searches-label { flex-shrink: 0; }
  /* Icon + input share the first row; the button takes the full width
     beneath them (a stranded magnifier on its own line looks broken). */
  .search-bar { flex-wrap: wrap; border-radius: var(--radius); padding: 0.6rem 0.9rem; }
  .search-bar-icon { order: 1; }
  .search-bar input { flex: 1 1 0; min-width: 0; order: 2; }
  .search-bar .btn { flex: 1 1 100%; order: 3; justify-content: center; margin-top: 0.15rem; }
  .toolbar-row { gap: 0.45rem; }
  .filter > summary { padding: 0.55rem 0.85rem; font-size: 0.78rem; }
  .filter-panel { position: fixed; left: 1rem; right: 1rem; top: auto; min-width: 0; width: auto; }
  .sort-control { margin-left: 0; width: 100%; }
  .sort-control select { width: 100%; }
  .results-split[data-active-view="gallery"] .property-grid,
  .results-split[data-active-view="split"] .property-grid { grid-template-columns: 1fr; }
  .view-btn { padding: 0.5rem 0.75rem; font-size: 0.7rem; }
  .view-btn svg { display: none; }
}
.property-card-active { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }

/* Custom Leaflet price-bubble markers (no default marker-icon.png needed) */
/* Leaflet places the marker element itself (an inline translate3d) and its
   stylesheet loads after this one, so a transform or display set on that
   element is lost. The element is a zero-size anchor on the map point; the
   visible pill/bubble is the inner <span>, centered on it. */
.map-price-marker, .map-group-marker { width: 0; height: 0; }
.map-price-marker > span, .map-group-marker > span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font-family: var(--font-body); white-space: nowrap; box-shadow: var(--shadow);
}
.map-price-marker > span {
  display: block; background: var(--navy-deep); color: var(--white); border: 1.5px solid var(--gold);
  border-radius: 999px; padding: 0.3rem 0.65rem; font-weight: 700; font-size: 0.78rem; line-height: 1.2;
}
.map-price-marker-active { z-index: 1000 !important; }
.map-price-marker-active > span { background: var(--gold); color: var(--navy-darker); border-color: var(--navy-deep); }
/* Several homes too close to show separately (public/listings-map.js). */
.map-group-marker > span {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 40px; height: 40px; padding: 0 0.5rem; border-radius: 999px;
  background: var(--gold); color: var(--navy-darker); border: 3px solid rgba(255,255,255,0.9);
  font-weight: 800; font-size: 0.9rem; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px rgba(234,101,45,0.28), var(--shadow); cursor: pointer;
}

.map-popup { display: block; text-decoration: none; color: inherit; min-width: 200px; }
.map-popup-photo { width: 100%; height: 110px; object-fit: cover; border-radius: 6px 6px 0 0; margin: -1px -1px 0; display: block; }
.map-popup-body { padding: 0.6rem 0.2rem 0.2rem; }
.map-popup-price { font-weight: 700; color: var(--navy-deep); font-size: 0.95rem; }
.map-popup-price span { color: #b3261e; font-size: 0.72rem; text-transform: uppercase; margin-left: 0.35rem; }
.map-popup-address { font-size: 0.85rem; color: var(--ink); margin-top: 0.15rem; }
.map-popup-city { font-size: 0.8rem; color: var(--ink-soft); }
.map-popup-specs { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; }
.leaflet-popup-content { margin: 8px 10px; }
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; }

@media (max-width: 900px) {
  .listings-view-toggle { display: flex; }
  .listings-split { display: block; }
  .listings-split[data-active-view="list"] .listings-map-pane { display: none; }
  .listings-split[data-active-view="map"] .listings-list-pane { display: none; }
  .listings-map-pane { position: static; height: 70vh; }
  .listings-split .property-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .listings-split .property-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Wellen Park (and similar) sub-communities section (pages/neighborhoods.js)
--------------------------------------------------------------------- */
.subcommunities-section { padding: 1rem 0 5rem; background: var(--cream); }
.subcommunities-note { max-width: 760px; color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.75rem; }
.subcommunity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
a.cm-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.cm-card:hover h3 { color: var(--accent-ink); }
.cm-card-go { margin-top: auto; padding-top: 0.6rem; font-weight: 700; font-size: 0.88rem; color: var(--accent-ink); }
.cm-crumbs a { color: inherit; }
.am-grid.cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .am-grid.cm-grid { grid-template-columns: 1fr; } }
.cm-draft { background: #FFF4E5; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; line-height: 1.6; color: var(--ink); }
.cm-draft p { margin: 0 0 0.5rem; }
.cm-draft ul { margin: 0; padding-left: 1.2rem; }
.cm-draft li { margin-bottom: 0.3rem; }
.cm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; margin: 0 0 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cm-facts div { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin: 0 -1px -1px 0; }
.cm-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-ink); margin-bottom: 0.25rem; }
.cm-facts dd { margin: 0; line-height: 1.5; color: var(--ink); font-size: 0.95rem; }
.cm-sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 74ch; }
.cm-sources h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.cm-sources p, .cm-sources li { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.cm-sources ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.subcommunity-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
}
.subcommunity-card h3 { color: var(--navy); font-size: 1.05rem; margin: 0 0 0.35rem; }
.subcommunity-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 0.4rem; }
.subcommunity-price { font-weight: 700; color: var(--accent-ink); font-size: 0.95rem; margin: 0 0 0.5rem; }
.subcommunity-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ====================================================================
   2026 OVERHAUL — new homepage architecture.
   The old homepage was a stack of equal-weight centered sections. This
   replaces it with a paced composition: cinematic hero -> place marquee
   -> asymmetric statement -> full-bleed stat strip -> editorial listing
   mosaic -> overlapping bio -> immersive neighborhood band -> pull-quote
   -> sunset CTA. Sections deliberately alternate light/dark and
   contained/full-bleed so the page has rhythm rather than uniformity.
   ==================================================================== */

/* ---------- Place-name marquee (signature) ----------
   Bob's actual service area, moving continuously. It encodes real
   information (where he works) rather than being decoration. */
.place-marquee {
  background: var(--navy-darker);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.15rem 0;
  overflow: hidden;
  position: relative;
}
.place-marquee::before, .place-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.place-marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-darker), transparent); }
.place-marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-darker), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 1;
}
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; opacity: 0.85; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.place-marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Asymmetric statement band ---------- */
.statement {
  padding: 4rem 0 3.5rem;
  background: var(--cream);
}
.statement-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 4.5rem;
  align-items: start;
}
.statement-aside p {
  font-size: 0.94rem; line-height: 1.75; color: var(--ink-soft);
}
.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
  font-variation-settings: 'opsz' 120, 'SOFT' 20, 'WONK' 1;
}
.statement-lead em {
  font-style: italic; color: var(--accent-ink);
  font-variation-settings: 'opsz' 120, 'SOFT' 60, 'WONK' 1;
}
.statement-meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.statement-meta-item strong {
  display: block; font-family: var(--font-display); font-size: 1.65rem;
  color: var(--navy); line-height: 1; margin-bottom: 0.3rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.statement-meta-item span {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-soft); font-weight: 600;
}

/* ---------- Full-bleed stat strip (replaces the boxed stats bar) ---------- */
.stat-strip {
  position: relative;
  padding: 7rem 0;
  background: var(--navy-darker);
  overflow: hidden;
}
.stat-strip-media {
  position: absolute; inset: 0;
  background: url('/images/aerial-charlotte-county.jpg') center 55% / cover no-repeat;
  transform: scale(1.06);
}
.stat-strip::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,22,27,0.90) 0%, rgba(8,39,47,0.82) 50%, rgba(4,22,27,0.92) 100%);
}
.stat-strip > .container { position: relative; z-index: 2; }
.stat-strip .section-title { color: var(--white); max-width: 22ch; }
.stat-strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
}
.stat-strip-item {
  padding: 0 2rem;
  border-left: 1px solid rgba(255,255,255,0.16);
}
.stat-strip-item:first-child { padding-left: 0; border-left: none; }
.stat-strip-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.35rem);
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-strip-value .unit { color: var(--gold-light); }
.stat-strip-label {
  color: rgba(255,255,255,0.72);
  text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.68rem; font-weight: 600; line-height: 1.6;
}

/* ---------- Editorial listing mosaic (replaces uniform 3-col grid) ---------- */
.mosaic { padding: 7.5rem 0; background: var(--cream); }
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
  align-items: stretch;
}
/* The lead listing is a single tall card on the left — a clear focal
   point instead of a row of identical cards. Its media flexes to fill
   whatever height the 2x2 block on the right ends up being, so the two
   columns always bottom out together. */
/* These target .property-card-wrap, not .property-card. The wrapper div was
   introduced so the favourite star and share button could sit as siblings of
   the anchor (a <button> inside an <a> is invalid HTML) — which quietly made
   the old `> .property-card:first-child` selectors match nothing, so the lead
   listing lost its larger price and roomier padding without anyone noticing. */
.mosaic-grid > .property-card-wrap:first-child .property-card-media {
  flex: 1 1 auto; aspect-ratio: auto; min-height: 340px;
}
.mosaic-grid > .property-card-wrap:first-child .property-price { font-size: 2rem; }
.mosaic-grid > .property-card-wrap:first-child .property-card-body { padding: 2rem 2.15rem 2.25rem; }
.mosaic-secondary {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem; align-content: start; grid-auto-rows: 1fr;
}
.mosaic-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.mosaic-footer p { margin: 0; font-size: 0.9rem; }

/* ---------- Immersive neighborhood band ---------- */
.hood-band { padding: 7.5rem 0; background: var(--navy-deep); }
.hood-band .section-title, .hood-band .section-lede { color: var(--white); }
.hood-band .section-lede { color: rgba(255,255,255,0.72); }
.hood-strip {
  display: grid; grid-auto-flow: column;
  /* 250px means roughly 4.6 tiles fit a 1200px container — the partial
     fifth tile at the right edge is what tells the visitor the row
     scrolls. A width that fit exactly 4 would read as "only 4 areas". */
  grid-auto-columns: minmax(250px, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.hood-strip::-webkit-scrollbar { height: 6px; }
.hood-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 3px; }
.hood-tile {
  position: relative; display: block;
  aspect-ratio: 3/4.1;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}
.hood-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hood-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,22,27,0.92) 0%, rgba(4,22,27,0.35) 45%, rgba(4,22,27,0.05) 100%);
  transition: opacity 0.5s var(--ease);
}
.hood-tile:hover img { transform: scale(1.08); }
.hood-tile-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.6rem 1.5rem;
}
.hood-tile-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.5rem; line-height: 1.05; margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 120, 'SOFT' 20, 'WONK' 1;
}
.hood-tile-county {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold-light); font-weight: 600;
}
.hood-tile-go {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.9rem; color: var(--white);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.hood-tile:hover .hood-tile-go, .hood-tile:focus-visible .hood-tile-go { opacity: 1; transform: translateY(0); }

/* ---------- Overlapping bio (replaces the flat 2-col split) ---------- */
.bio-feature { position: relative; padding: 8rem 0; background: var(--cream); overflow: hidden; }
.bio-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: center;
}
.bio-feature-photo { position: relative; }
/* object-position is anchored to the TOP, not to a percentage. The source
   headshot has only ~2% of empty space above Bob's hair, so any downward
   offset here crops the top of his head off — which is exactly what
   "center 15%" was doing at every viewport width. Anchoring to the top
   spends the crop on the bottom of the frame (torso), where there is
   something to spare. */
.bio-feature-photo img {
  width: 100%; aspect-ratio: 4/4.6; object-fit: cover; object-position: center top;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
/* Turquoise frame offset behind the portrait — depth without a drop shadow. */
.bio-feature-photo::before {
  content: ''; position: absolute;
  left: -1.5rem; top: -1.5rem; right: 3rem; bottom: 3rem;
  border: 1px solid var(--turquoise);
  border-radius: var(--radius);
  opacity: 0.5;
}
.bio-feature-card {
  position: relative; z-index: 2;
  margin-left: -5rem;
  background: var(--navy-darker);
  color: var(--white);
  padding: 3.5rem 3.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.bio-feature-card h2 { color: var(--white); margin-bottom: 1.25rem; }
.bio-feature-card p { color: rgba(255,255,255,0.78); }
.bio-feature-sig {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.45rem; color: var(--gold-light);
  margin: 1.75rem 0 0.15rem;
  font-variation-settings: 'opsz' 96, 'SOFT' 70, 'WONK' 1;
}
.bio-feature-sig-role {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55); font-weight: 600;
}

/* ---------- Single large pull-quote ---------- */
.quote-band { padding: 8rem 0; background: var(--cream-deep); }
.quote-figure { max-width: 940px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-family: var(--font-display); font-size: 5rem; line-height: 0.6;
  color: var(--turquoise); opacity: 0.35; display: block; margin-bottom: 1rem;
}
.quote-figure blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-weight: 400;
  font-variation-settings: 'opsz' 120, 'SOFT' 30, 'WONK' 1;
  text-wrap: pretty;
}
.quote-figure figcaption {
  margin-top: 2rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--ink-soft); font-weight: 600;
}
.quote-nav { display: flex; gap: 0; justify-content: center; margin-top: 1.75rem; }
.quote-google { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 2.25rem; }
/* The dot is 7px; the button around it is 40px so it can be tapped. */
.quote-dot {
  width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; border: none; padding: 16.5px;
  background: var(--line); background-clip: content-box; cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.quote-dot[aria-selected="true"] { background: var(--accent-ink); transform: scale(1.35); }

/* ---------- Responsive: new sections ---------- */
@media (max-width: 1080px) {
  .statement-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-grid > .property-card:first-child .property-card-media { min-height: 0; aspect-ratio: 4/3; }
  .mosaic-secondary { grid-template-columns: repeat(2, 1fr); }
  .bio-feature-grid { grid-template-columns: 1fr; gap: 0; }
  .bio-feature-card { margin-left: 0; margin-top: -4rem; margin-right: 1rem; }
  .bio-feature-photo::before { right: 1.5rem; }
}
@media (max-width: 900px) {
  .stat-strip-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .stat-strip-item:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 640px) {
  .statement { padding: 5rem 0 4.5rem; }
  .stat-strip, .mosaic, .hood-band, .bio-feature, .quote-band { padding: 5rem 0; }
  .stat-strip-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .stat-strip-item { padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.75rem; }
  .stat-strip-item:first-child { border-top: none; padding-top: 0; }
  .mosaic-secondary { grid-template-columns: 1fr; }
  .bio-feature-card { padding: 2.25rem 1.75rem; margin-right: 0; }
  .bio-feature-photo::before { display: none; }
  .statement-meta { gap: 1.75rem; }
}

/* ---------- Reduced motion: kill all ambient movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-cue-rail::after { animation: none; }
  /* Hold one still frame — no cycling, no drift, no video playback.
     The video slide falls back to its poster image, which is a frame of
     the same footage, so the section still reads the same. */
  .hero-slide { animation: none !important; transform: none !important; transition: none; }
  .hero-slides { transform: none !important; }
  .hood-tile img, .hood-tile-go, .property-card-photo { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =====================================================================
   NEIGHBORHOOD GUIDE — long-form area pages (pages/neighborhoods.js)
   Built for guides with headings, lists, a photo gallery, and a repeated
   "search properties here" link at the top and bottom.
   ===================================================================== */
.area-search-link { margin: 1.75rem 0 0.5rem; }
.area-search-link-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .area-search-link-arrow { transform: translateX(4px); }

.area-copy { max-width: 74ch; }
.area-lede { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.area-section { margin-top: 2.75rem; }
.area-section h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  margin-bottom: 0.85rem;
}
.area-section p { line-height: 1.78; }

.area-list { margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.area-list li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding-left: 1.15rem; position: relative;
  color: var(--ink-soft); line-height: 1.7;
}
.area-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.area-list strong { color: var(--navy); font-weight: 700; }

.area-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin: 3rem 0 0;
}
.area-gallery-item { margin: 0; }
.area-gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}
.area-gallery-item:hover img { transform: scale(1.02); }
.area-gallery-item figcaption {
  margin-top: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.55;
}

.area-closing {
  margin: 2.75rem 0 0; padding: 1.5rem 1.75rem;
  background: var(--cream-deep); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink); font-size: 1.02rem; line-height: 1.7;
  max-width: 74ch;
}
.area-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

@media (max-width: 640px) {
  .area-cta .btn { width: 100%; justify-content: center; }
  .area-search-link { width: 100%; justify-content: center; text-align: center; }
  .area-closing { padding: 1.25rem 1.25rem; }
}

/* ---------- Leave a Review page ----------
   Three equal cards, one per platform. A platform with no live URL yet
   (Google, while verification is pending) renders as .is-pending: same
   card, muted, with a plain-language note instead of a dead button.
   Deliberately NO ranking, NO badges, NO "5 stars" imagery — Google's
   rating-manipulation policy treats visual nudging toward a positive
   review the same as telling someone what to write. See pages/reviews.js. */
/* 3rem top matches the 3rem below .review-intro, so the intro paragraph sits
   with equal air above and below it. It was 1rem, which read as 16px above
   against 48px below — the intro looked stuck to the header band. */
.reviews-page { padding: 3rem 0 4.5rem; background: var(--cream); }

.review-intro {
  max-width: 66ch; margin: 0 auto 3rem; text-align: center;
}
.review-intro p {
  color: var(--ink-soft); font-size: 1.04rem; line-height: 1.75; margin: 0 0 1rem;
}
.review-intro p:last-child { margin-bottom: 0; }
.review-intro strong { color: var(--navy); font-weight: 700; }
.review-signoff {
  margin: 2rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.3;
  color: var(--ink-soft); font-variation-settings: 'opsz' 96, 'SOFT' 70, 'WONK' 1;
}
.review-signoff span { font-size: 1.6rem; color: var(--accent-ink); }
.rvs-google { margin-top: 1.1rem; }

.review-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem;
  align-items: stretch;
}
/* Four platforms need their own track count, otherwise the fourth card
   orphans onto a second row on its own. Driven off data-count so adding or
   removing a platform in pages/reviews.js needs no CSS change. */
.review-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; }
.review-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
@media (max-width: 1180px) {
  .review-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.review-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid var(--turquoise);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.review-card h3 {
  text-transform: none; color: var(--navy); font-size: 1.15rem; margin: 0 0 0.6rem;
}
.review-card p {
  color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; margin: 0 0 1.5rem;
}
/* Push the button/note to the bottom so all three cards line up. */
.review-card .btn, .review-card .review-pending-note { margin-top: auto; }
.review-card .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }

/* The platform mark.
   One consistent container for all four: a white tile with a hairline
   border. That works whatever sits inside it — Google's four-colour G needs
   a white ground to read correctly, and Facebook's blue disc would fight any
   coloured background. Cards where the real logo file isn't present fall
   back to a letter set in that company's own brand colour, so the row still
   reads as one deliberate system rather than a half-finished one.
   See logoFor() in pages/reviews.js. */
.review-mark {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(4, 22, 27, 0.07);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  line-height: 1; color: var(--navy);
  overflow: hidden;
}
.review-mark img { width: 28px; height: 28px; display: block; }

/* Brand colours for the letterform fallback only. These are each company's
   published brand colour; they are NOT applied to the real logo files, which
   must never be recoloured. */
.review-card[data-platform="zillow"]  .review-mark { color: #006AFF; }
.review-card[data-platform="realtor"] .review-mark { color: #D92228; }

.review-card.is-pending .review-mark { background: var(--cream); border-color: var(--line); }

.review-card.is-pending { border-top-color: var(--line); background: var(--cream-deep); box-shadow: var(--shadow-soft); }
.review-card.is-pending:hover { transform: none; box-shadow: var(--shadow-soft); }
.review-pending-note {
  display: block; width: 100%; padding: 0.85rem 1rem;
  background: rgba(10, 46, 56, 0.05); border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft);
}

.review-foot {
  max-width: 68ch; margin: 3rem auto 0; text-align: center;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.review-foot .fine-print { color: var(--ink-soft); }
.review-foot .arrow-link { color: var(--accent-ink); font-weight: 600; }

@media (max-width: 900px) {
  .review-grid,
  .review-grid[data-count="4"],
  .review-grid[data-count="2"] { grid-template-columns: 1fr; gap: 1.25rem; max-width: 520px; margin: 0 auto; }
  .review-card { padding: 1.6rem; }
  .review-intro { margin-bottom: 2.25rem; }
}

/* ===================================================================
   ACCOUNTS, FAVORITES, REGISTRATION WALL, FOOTER WEATHER
   =================================================================== */

/* ---------- Favorite star ----------
   The star overlays the card photo. It is a sibling of the card anchor, not
   a child, because a <button> inside an <a> is invalid HTML — see
   propertyCard() in lib/components.js. */
.property-card-wrap { position: relative; display: block; }
/* height:100% for this is set with the card rules above. */

.card-actions {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3;
  display: flex; align-items: center; gap: 0.4rem;
}

.fav-btn {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(4, 22, 27, 0.22);
  color: var(--ink-soft);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.fav-btn svg { width: 20px; height: 20px; display: block; }
.fav-btn:hover { transform: scale(1.1); background: #fff; color: var(--gold); }
.fav-btn:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.fav-btn.is-on { background: var(--gold); color: #fff; }
.fav-btn.is-on:hover { background: var(--gold-light); color: #fff; }
.fav-btn[disabled] { opacity: 0.6; cursor: default; }
/* Inside .card-actions the flex row does the positioning. */
.card-actions .fav-btn { position: static; top: auto; right: auto; }

/* Detail-page star sits inline beside the address rather than over a photo. */
.fav-btn-lg {
  position: static; width: 46px; height: 46px; flex: 0 0 auto;
  background: var(--cream-deep); box-shadow: none;
}
.fav-btn-lg svg { width: 24px; height: 24px; }
.listing-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
}
.listing-title-row h1 { margin: 0; }

/* ---------- Registration wall ---------- */
.reg-wall { padding: 3.5rem 0 5rem; background: var(--cream); }
.reg-wall-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem; align-items: center;
}
.reg-wall-preview {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--white);
}
.reg-wall-photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  /* Softened, not hidden: the visitor should still recognise the home they
     clicked, without getting the full detail view for free. */
  filter: saturate(0.92);
}
.reg-wall-caption { padding: 1.25rem 1.5rem 1.5rem; }
.reg-wall-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.reg-wall-address { margin-top: 0.35rem; font-weight: 600; color: var(--ink); }
.reg-wall-city { color: var(--ink-soft); font-size: 0.92rem; }

.reg-wall-copy h1 { margin: 0.35rem 0 1rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.reg-wall-copy > p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 52ch; }
.reg-wall-list { list-style: none; margin: 1.75rem 0; padding: 0; }
.reg-wall-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem;
  color: var(--ink); line-height: 1.6;
}
.reg-wall-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise);
}
.reg-wall-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.reg-wall-alt { font-size: 0.88rem; color: var(--ink-soft); }
.reg-wall-alt a { color: var(--accent-ink); font-weight: 600; }

/* ---------- Auth pages ---------- */
.page-header-compact { padding-bottom: 2rem; }
.auth-section { padding: 2.5rem 0 5rem; background: var(--cream); }
.auth-container { max-width: 560px; }
.auth-card {
  background: var(--white); padding: 2.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-form .form-group { margin-bottom: 1.15rem; }
.auth-form label { display: block; font-weight: 600; font-size: 0.86rem; color: var(--navy); margin-bottom: 0.4rem; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.auth-form input:focus { outline: 2px solid var(--turquoise); outline-offset: 1px; border-color: var(--turquoise); }
.field-optional { font-weight: 400; color: var(--ink-soft); }
.field-hint { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--ink-soft); }

.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* The Florida mini-TCPA consent row. The "not required" sentence must stay
   visually adjacent to the checkbox — see pages/account.js. */
.consent-row {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: 0.5rem 0 1.25rem; padding: 0.9rem 1rem;
  background: var(--cream); border-radius: var(--radius-sm);
  font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft);
  font-weight: 400;
}
.consent-row input[type="checkbox"] { margin-top: 0.2rem; flex: 0 0 auto; width: 16px; height: 16px; }
.consent-row strong { color: var(--ink); }

/* FREC 61J2-10.025: brokerage name adjacent to point-of-contact info. */
.auth-brokerage {
  margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.76rem; line-height: 1.6; color: var(--ink-soft); text-align: center;
}
.auth-alt { margin-top: 1.5rem; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.auth-alt a { color: var(--accent-ink); font-weight: 600; }
.auth-alt-quiet { font-size: 0.8rem; margin-top: 0.75rem; }

.form-error {
  margin: 0 0 1.25rem; padding: 0.8rem 1rem;
  background: rgba(234, 101, 45, 0.1); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--accent-ink); font-size: 0.88rem; line-height: 1.5;
}
.form-notice {
  margin: 0 0 1.5rem; padding: 0.8rem 1rem;
  background: rgba(23, 162, 160, 0.1); border-left: 3px solid var(--turquoise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--turquoise-ink); font-size: 0.88rem;
}
/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are explicitly hidden. */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Account area ---------- */
.account-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0 0; border-bottom: 1px solid var(--line); }
.account-tab {
  padding: 0.8rem 1.25rem; font-weight: 600; font-size: 0.9rem;
  color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.account-tab:hover { color: var(--navy); }
.account-tab.is-active { color: var(--navy); border-bottom-color: var(--gold); }

.account-section { padding: 2.5rem 0 5rem; background: var(--cream); }
.account-count { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.account-empty {
  max-width: 52ch; margin: 2rem auto; padding: 3rem 2rem; text-align: center;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.account-empty h2 { text-transform: none; font-size: 1.3rem; color: var(--navy); margin: 0 0 0.75rem; }
.account-empty p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.75rem; }

.account-details {
  background: var(--white); padding: 2.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 640px;
}
.account-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0.85rem 1.5rem; margin: 0; }
.account-dl dt { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.account-dl dd { margin: 0; color: var(--ink); font-size: 0.94rem; }
.account-dl .muted { color: var(--ink-soft); }
.account-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.account-actions .fine-print { margin-bottom: 1.25rem; }
.logout-form { margin: 0; }

/* ---------- Footer live weather ---------- */
.footer-baseline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.5rem;
}
.footer-baseline .fine-print { margin: 0; }
/* Reads as one line: Punta Gorda · 4:12 PM · [icon] 88°F Partly Cloudy
   Place and time are the constant part and sit quietly; the temperature is
   the thing the eye should land on, so it's the only element at full white. */
.footer-weather {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; margin: 0;
  padding: 0.45rem 1rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.015em; line-height: 1.4;
}
.footer-weather[hidden] { display: none; }
.fw-weather[hidden] { display: none; }
.fw-weather { display: inline-flex; align-items: center; gap: 0.45rem; }

.fw-place { font-weight: 600; color: rgba(255, 255, 255, 0.9); }
/* Tabular figures stop the whole strip shifting sideways as the minute
   ticks over from, say, 4:11 to 4:12. */
.fw-time { font-variant-numeric: tabular-nums; }
.fw-sep { opacity: 0.32; }
.fw-icon { width: 15px; height: 15px; color: var(--gold-light); flex: 0 0 auto; }
.fw-temp { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.fw-cond { opacity: 0.82; }

@media (max-width: 900px) {
  .reg-wall-inner { grid-template-columns: 1fr; gap: 2rem; }
  .reg-wall-preview { max-width: 460px; }
}
/* The chat widget is position:fixed at the bottom-right of the viewport, so
   when a visitor scrolls to the very bottom it lands on top of whatever the
   footer's last line is. On a phone that was covering the end of the
   conditions strip. Stack the baseline and reserve room below it. */
@media (max-width: 760px) {
  .footer-baseline { flex-direction: column-reverse; align-items: flex-start; gap: 0.9rem; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 640px) {
  .auth-card { padding: 1.6rem; }
  .auth-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .account-dl { grid-template-columns: 1fr; gap: 0.25rem 0; }
  .account-dl dd { margin-bottom: 0.85rem; }
  .account-details { padding: 1.5rem; }
  .reg-wall-actions .btn { width: 100%; justify-content: center; }
  .account-tabs { overflow-x: auto; }
  .footer-baseline { justify-content: flex-start; }
  .listing-title-row { gap: 0.75rem; }
}

/* ---------- Area Information ---------- */
.area-jump {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2rem 0 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.area-jump a {
  padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  background: var(--cream-deep); color: var(--navy);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.area-jump a:hover { background: var(--navy); color: #fff; }

.area-info-block { padding: 3.5rem 0; }
.area-info-block:nth-of-type(even) { background: var(--cream); }
/* scroll-margin so the sticky header doesn't cover the heading on jump. */
.area-info-block { scroll-margin-top: 96px; }

.area-info-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.75rem; }
.area-info-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 300;
  line-height: 1; color: var(--turquoise); flex: 0 0 auto; opacity: 0.55;
}
.area-info-head h2 { margin: 0 0 0.4rem; text-transform: none; color: var(--navy); }
.area-info-lede { margin: 0; color: var(--accent-ink); font-size: 0.95rem; font-weight: 600; }

.area-info-body { max-width: 72ch; }
.area-info-body p { color: var(--ink-soft); line-height: 1.8; margin: 0 0 1.15rem; font-size: 1.02rem; }

.area-link-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.area-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.area-info-block:nth-of-type(even) .area-link { background: var(--white); }
.area-link:hover { border-color: var(--turquoise); transform: translateX(3px); }
.external-mark { color: var(--turquoise-ink); font-size: 0.85em; }
.area-link-note { color: var(--ink-soft); font-weight: 400; font-size: 0.82rem; }

.area-link-groups {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.area-link-group h3 {
  text-transform: none; font-size: 1rem; color: var(--navy);
  margin: 0 0 0.85rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.area-link-group .area-link-list { margin-top: 0; }
/* A long group (the campground list) takes the full width, in two columns. */
.area-link-group.is-wide { grid-column: 1 / -1; }
.area-link-group.is-wide .area-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-link-group.is-wide .area-link-list > li { display: flex; }
.area-link-group.is-wide .area-link-list > li > a { flex: 1; }

.area-info-credit { padding: 2.5rem 0 3.5rem; background: var(--cream-deep); }
.area-info-credit .fine-print { max-width: 80ch; }
.area-info-credit a { color: var(--accent-ink); font-weight: 600; }

@media (max-width: 900px) {
  .area-link-groups { grid-template-columns: 1fr; gap: 1.75rem; }
  .area-link-group.is-wide .area-link-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .area-info-head { gap: 1rem; }
  .area-info-num { font-size: 1.8rem; }
  .area-jump { gap: 0.4rem; }
  .area-jump a { font-size: 0.76rem; padding: 0.45rem 0.8rem; }
}

/* ===================================================================
   GLOBAL CONNECTIONS (/sellers/global-connections)
   The page was previously flat cream end to end. It now alternates
   image-backed dark bands with light content sections so the eye has
   somewhere to land. Reuses the site's existing photography rather than
   pulling any imagery from leadingre.com — the only LeadingRE asset used
   is their official logo lockup, unmodified.
   =================================================================== */

.gc-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 5rem 0 4rem; color: var(--white);
}
.gc-hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(4,22,27,0.90) 0%, rgba(10,46,56,0.86) 55%, rgba(88,46,67,0.82) 100%),
    url('/images/lifestyle-travel1.jpg') center 40% / cover no-repeat;
  transform: scale(1.05);
}
.gc-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.gc-hero .kicker { color: var(--gold-light); }
.gc-hero .kicker a { color: inherit; }
.gc-hero h1 { color: var(--white); margin: 0.4rem 0 1.25rem; }
.gc-hero-sub {
  color: rgba(255,255,255,0.85); font-size: 1.08rem; line-height: 1.75;
  max-width: 62ch; margin: 0 auto;
}
/* White card behind the logo: the LeadingRE mark is a single navy blue and
   would disappear against this band. A white ground is also what their
   brand guide expects — never recolour the mark to suit a background. */
.gc-hero-logo {
  margin: 2.5rem auto 0; padding: 1.5rem 2rem; max-width: 460px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.gc-hero-logo img { width: 100%; height: auto; display: block; }

/* ---------- Stat band ---------- */
.gc-stats { position: relative; overflow: hidden; padding: 5rem 0; color: var(--white); }
.gc-stats-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,22,27,0.93) 0%, rgba(8,39,47,0.9) 100%),
    url('/images/aerial-charlotte-county.jpg') center 55% / cover no-repeat;
}
.gc-stats-inner { position: relative; z-index: 2; text-align: center; }
.gc-stats .kicker { color: var(--gold-light); }
.gc-stats .section-title { color: var(--white); }
.gc-stat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.gc-stat { padding: 0 0.5rem; }
.gc-stat-value {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1; color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.gc-stat-label {
  margin-top: 0.6rem; font-size: 0.86rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
}
.gc-stat-note { margin-top: 0.35rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.gc-stats-source { margin-top: 2.5rem; font-size: 0.74rem; color: rgba(255,255,255,0.45); }

/* ---------- Why it matters + third-party proof ---------- */
.gc-why { padding: 5rem 0; background: var(--cream); }
.gc-why-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem; align-items: center;
}
.gc-why-copy h2 { text-transform: none; color: var(--navy); margin: 0.4rem 0 1.25rem; }
.gc-why-copy p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.1rem; max-width: 56ch; }
.gc-why-copy strong { color: var(--navy); }

.gc-proof-card {
  background: var(--navy); color: var(--white); padding: 2.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.gc-proof-kicker {
  margin: 0 0 1.5rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light);
}
.gc-proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.gc-proof-stat {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  line-height: 1; color: var(--white); font-variant-numeric: tabular-nums;
}
.gc-proof-label { margin-top: 0.4rem; font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.72); }
.gc-proof-source { margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.5); }

/* ---------- Regions ----------
   Was a flat 3x2 grid of six near-identical cards, which read as filler.
   Now an asymmetric split: a sticky statement column with a decorative
   globe on the left, a numbered list on the right. A list beats a grid
   here because each entry carries a sentence, not a label — rows give the
   text room and create an obvious reading order the grid never had. */
.gc-regions {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 5rem; background: var(--navy-deep); color: var(--white);
}
/* Soft turquoise bloom behind the globe so the band isn't flat navy. */
.gc-regions-glow {
  position: absolute; top: -18%; left: -12%; width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(23,162,160,0.22) 0%, rgba(23,162,160,0) 68%);
  pointer-events: none;
}
.gc-regions-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem; align-items: start;
}

/* NOT sticky: this section needs overflow:hidden to clip the globe and the
   glow, and an ancestor with overflow:hidden silently disables
   position:sticky. The dead space under this column is filled by the globe
   instead, which is positioned against the section rather than this cell. */
.gc-regions-aside { position: relative; padding-top: 0.5rem; }
.gc-regions-aside .kicker { color: var(--gold-light); position: relative; z-index: 2; }
.gc-regions-aside h2 {
  position: relative; z-index: 2;
  color: var(--white); text-transform: none; margin: 0.5rem 0 1.25rem;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12;
}
.gc-regions-lede {
  position: relative; z-index: 2;
  color: rgba(255,255,255,0.72); line-height: 1.75; max-width: 42ch; margin: 0 0 2rem;
}
.gc-regions-btn { position: relative; z-index: 2; border-color: rgba(255,255,255,0.35); color: var(--white); }
.gc-regions-btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Decorative globe. Anchored to the SECTION, not the aside — the aside is a
   short grid cell, so a globe inside it could only ever sit at the top and
   left the lower half of that column empty. Placed here it fills the column
   for the full height of the six-region list. */
.gc-globe {
  position: absolute; left: -70px; top: 50%; transform: translateY(-46%);
  width: 620px; height: 620px;
  color: rgba(79, 201, 194, 0.22); z-index: 1; pointer-events: none;
}

/* The six regions as a numbered list. */
.gc-region-list { list-style: none; margin: 0; padding: 0; counter-reset: region; }
.gc-region {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.11);
  transition: border-color 0.3s var(--ease);
}
.gc-region:last-child { border-bottom: 1px solid rgba(255,255,255,0.11); }
.gc-region:hover { border-top-color: var(--turquoise); }
.gc-region-num {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--turquoise-light); opacity: 0.85; font-variant-numeric: tabular-nums;
}
/* Both selectors on purpose. .gc-region-body is the current markup; the
   bare .gc-region h3 is a safety net. This section sits on a dark band, and
   the site-wide h3 rule sets a dark navy colour — so if the markup and the
   stylesheet ever fall out of step (a server running stale page code against
   a fresh CSS file, which has happened), the headings would render navy on
   navy and be invisible. Failing to a readable state costs one selector. */
.gc-region-body h3,
.gc-region h3 {
  text-transform: none; font-size: 1.15rem; color: var(--white);
  margin: 0 0 0.4rem; letter-spacing: 0.005em;
}
.gc-regions h2 { color: var(--white); }
.gc-region-body p {
  margin: 0; font-size: 0.93rem; line-height: 1.7; color: rgba(255,255,255,0.68);
  max-width: 56ch;
}

/* ---------- "Still growing" strip ---------- */
.gc-growth {
  position: relative; z-index: 2; margin-top: 3.5rem;
  padding: 2rem 2.25rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12);
}
.gc-growth-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.gc-growth-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--navy-darker);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
}
.gc-growth-head h3 { text-transform: none; font-size: 1.1rem; color: var(--white); margin: 0 0 0.35rem; }
.gc-growth-head p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.7); max-width: 68ch; }

.gc-chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.gc-chip {
  padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  background: rgba(79,201,194,0.12); border: 1px solid rgba(79,201,194,0.28);
  color: rgba(255,255,255,0.88); font-size: 0.8rem; letter-spacing: 0.01em;
}

/* ---------- Moving in / moving out ---------- */
.gc-flow { padding: 5rem 0; background: var(--cream); }
.gc-flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.gc-flow-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.gc-flow-media { height: 200px; background-size: cover; background-position: center; }
.gc-flow-media-in { background-image: url('/images/hero-sunset-2.jpg'); }
.gc-flow-media-out { background-image: url('/images/lifestyle-travel2.jpg'); }
.gc-flow-body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.gc-flow-body h3 { text-transform: none; font-size: 1.2rem; color: var(--navy); margin: 0 0 0.75rem; }
.gc-flow-body p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.75rem; font-size: 0.95rem; }
.gc-flow-body .btn { margin-top: auto; align-self: flex-start; }
.gc-flow-note {
  margin: 2.5rem auto 0; max-width: 76ch; text-align: center;
  font-size: 0.85rem; line-height: 1.7; color: var(--ink-soft);
}

/* ---------- Global search link-back ---------- */
.gc-search { padding: 4rem 0; background: var(--navy); color: var(--white); }
.gc-search-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.gc-search h2 { text-transform: none; color: var(--white); margin: 0 0 0.6rem; font-size: 1.5rem; }
.gc-search p { margin: 0; color: rgba(255,255,255,0.72); max-width: 56ch; font-size: 0.95rem; }

@media (max-width: 1024px) {
  .gc-why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .gc-regions-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .gc-globe { width: 420px; height: 420px; left: -140px; top: 8%; transform: none; opacity: 0.7; }
}
@media (max-width: 760px) {
  .gc-flow-grid { grid-template-columns: 1fr; }
  .gc-growth { padding: 1.5rem; }
  .gc-growth-head { flex-direction: column; gap: 0.85rem; }
  .gc-region { grid-template-columns: 1fr; gap: 0.35rem; }
  .gc-regions { padding: 4rem 0 3.5rem; }
  .gc-proof-grid { gap: 1.5rem 1rem; }
  .gc-proof-card { padding: 1.75rem; }
  .gc-hero { padding: 3.5rem 0 3rem; }
  .gc-hero-logo { padding: 1.1rem 1.25rem; }
  .gc-search-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gc-stat-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Market band additions — a note line under each figure and a source line
   under the row. The old band was four bare numbers; these stats need units
   and a date to mean anything. */
.stat-strip-note {
  margin-top: 0.4rem; font-size: 0.76rem; line-height: 1.5;
  color: rgba(255,255,255,0.55);
}
.stat-strip-source {
  margin: 2.5rem 0 0; font-size: 0.74rem; line-height: 1.6;
  color: rgba(255,255,255,0.42); max-width: 70ch;
}

/* ---------- Net Proceeds Calculator ----------
   One table: line items down, three scenarios across, mirroring the
   spreadsheet Bob already uses at listing appointments. The previous
   three-card layout forced a reader to compare figures that were in
   different boxes; a row lets the eye travel straight across. */
.np-options {
  display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem;
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
  background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.np-option { display: flex; flex-direction: column; gap: 0.6rem; }
.np-option-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.np-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); overflow: hidden; }
/* The pill stretches to the width of its label, so the choices share that
   width equally (three short buttons used to leave an empty tail on the right). */
.np-seg label { position: relative; flex: 1 1 0; }
.np-seg input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.np-seg span {
  display: block; padding: 0.5rem 1.1rem; font-size: 0.85rem; font-weight: 600; text-align: center;
  color: var(--ink-soft); white-space: nowrap; transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.np-seg label:hover span { color: var(--navy); }
.np-seg input:checked + span { background: var(--navy); color: var(--white); }
.np-seg input:focus-visible + span { outline: 3px solid var(--turquoise); outline-offset: -3px; }

/* Horizontal scroll rather than a squeezed table on small screens. A
   five-column table cannot honestly fit a phone; scrolling keeps every
   figure legible and keeps the row structure intact. */
.np-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }

/* min-width is what forces the horizontal scroll on narrow screens. With a
   single estimate column instead of three, the table fits most phones
   outright and the scroll only kicks in on the smallest. */
.np-table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 0.92rem; }
/* "i" help bubble on a row label (pages/sellersNetProceeds.js). */
.np-help { position: relative; display: inline-block; vertical-align: middle; margin-left: 0.25rem; }
.np-help-btn {
  width: 32px; height: 32px; padding: 6px; box-sizing: border-box; border: 0; border-radius: 50%;
  background: var(--turquoise); background-clip: content-box; color: var(--white);
  font: italic 700 0.8rem/20px Georgia, serif; text-align: center; cursor: pointer;
}
.np-help-btn:hover, .np-help.open .np-help-btn { background-color: var(--navy); }
.np-help-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.np-help-tip {
  position: absolute; z-index: 5; left: -0.5rem; top: calc(100% + 4px); width: min(300px, 80vw);
  padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); background: var(--navy); color: var(--white);
  font-size: 0.86rem; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s;
}
.np-help-tip b { color: var(--gold-light); }
.np-help:hover .np-help-tip, .np-help-btn:focus-visible + .np-help-tip, .np-help.open .np-help-tip { opacity: 1; visibility: visible; }
.np-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--navy); color: var(--white);
  padding: 0.85rem 1rem; text-align: right;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.np-table thead th.np-item-col { text-align: left; }
.np-table thead th.np-rate-col { text-align: center; }
.np-table tbody th {
  text-align: left; font-weight: 500; color: var(--ink);
  padding: 0.7rem 1rem; line-height: 1.45;
}
.np-table td { padding: 0.5rem 1rem; vertical-align: middle; }
.np-table tbody tr { border-top: 1px solid var(--line); }
.np-table tbody tr:first-child { border-top: none; }
.np-table tr[hidden] { display: none; }

.np-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.np-num { color: var(--ink); font-weight: 600; }
.np-rate { text-align: center; white-space: nowrap; }
.np-fixed { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }

/* Inputs sit inside cells and should read as part of the table, not as a
   separate form. */
.np-table input[type="number"] {
  width: 100%; max-width: 170px; padding: 0.45rem 0.6rem;
  font: inherit; font-size: 0.88rem; text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.np-table input[type="number"]:focus {
  outline: 2px solid var(--turquoise); outline-offset: 1px;
  border-color: var(--turquoise); background: var(--white);
}
.np-inline { display: inline-flex; align-items: center; gap: 0.35rem; justify-content: center; }
.np-inline input.np-mini { max-width: 68px; }
.np-unit, .np-x { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* Section + summary rows */
.np-section th {
  background: var(--cream-deep); color: var(--navy);
  font-size: 0.72rem !important; font-weight: 700 !important;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.6rem 1rem !important;
}
.np-subtotal { background: var(--cream); }
.np-subtotal th, .np-subtotal td { font-weight: 700 !important; color: var(--navy) !important; }
.np-total { background: var(--navy); }
.np-total th { color: var(--white) !important; font-weight: 700 !important; }
.np-total td.np-num { color: var(--gold-light) !important; font-size: 1.15rem; font-weight: 700; }

.np-notes { margin-top: 1.75rem; display: grid; gap: 0.85rem; }
.np-notes p { margin: 0; font-size: 0.86rem; line-height: 1.7; color: var(--ink-soft); }
.np-notes strong { color: var(--navy); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 760px) {
  .np-options { gap: 1.25rem; padding: 1rem; }
  .np-seg span { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .np-table { font-size: 0.86rem; }
}

/* Optional "Cell" / "Office" prefix on a vendor phone number, for the few
   entries that list more than one line. */
.doc-item-phone-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft); margin-right: 0.15rem;
}

/* WhatsApp line on the contact page. The note sits on its own line so the
   number stays visually grouped with the phone number above it. */
.contact-whatsapp .contact-note {
  display: block; margin-top: 0.2rem;
  font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   Sales History (/about/sales-history)
   Stat band on deep navy, meaning-cards on cream, then the year-by-year
   ledger. The ledger is a bounded scroll region (~8 rows visible) so 500+
   closings never turn the page into a mile of scrolling — sticky year
   headers keep context while the visitor scrolls inside it.
--------------------------------------------------------------------------- */
.sh-stats {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--harbor-mid) 100%);
  padding: 4.5rem 0 3.5rem;
  color: var(--white);
}
.sh-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  text-align: center;
}
.sh-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sh-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.sh-source {
  margin: 2.5rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.sh-meaning { padding: 5rem 0 3rem; }
/* The sub-hero sentence ("One closing every 8 days, for 12 straight
   years.") reads as a single line by design — a 720px cap forced a wrap at
   desktop sizes. No cap, nowrap on wide screens, natural wrap on phones. */
.sh-meaning h2 { max-width: none; white-space: nowrap; }
@media (max-width: 860px) { .sh-meaning h2 { white-space: normal; } }
.sh-meaning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.sh-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(10, 46, 56, 0.05);
}
.sh-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.sh-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

.sh-history { padding: 3rem 0 4rem; }
.sh-ledger {
  margin-top: 2rem;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  scrollbar-gutter: stable;
}
.sh-ledger:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.sh-year-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: var(--navy);
  color: var(--white);
}
.sh-year-head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin: 0;
}
.sh-year-head span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.sh-sales { list-style: none; margin: 0; padding: 0; }
.sh-sale {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.sh-sale:nth-child(even) { background: var(--cream); }
.sh-sale-addr { font-weight: 600; color: var(--ink); }
.sh-sale-city {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.sh-sale-type, .sh-sale-side { font-size: 0.85rem; color: var(--ink-soft); }
.sh-sale-price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sh-ledger-note { margin-top: 1rem; }

.sh-pending {
  margin-top: 2rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 2.5rem;
  max-width: 680px;
}
.sh-pending p { color: var(--ink-soft); }
.sh-pending .btn { margin-top: 0.5rem; }

.sh-quotes { padding: 4rem 0; background: var(--cream-deep); }
.sh-quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.sh-quote {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.75rem 2rem;
  margin: 0;
}
.sh-quote p { font-size: 0.95rem; color: var(--ink); font-style: italic; }
.sh-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .sh-stats-grid { gap: 1rem; }
  .sh-meaning-grid, .sh-quotes-grid { grid-template-columns: 1fr; }
  .sh-sale { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .sh-sale-type, .sh-sale-side { display: none; }
}

/* ---------------------------------------------------------------------------
   Chat first-visit nudge — small speech bubble beside the launcher.
   Shown once per browser; dismissable; clicking it opens the chat.
--------------------------------------------------------------------------- */
.chat-nudge {
  position: fixed;
  right: calc(1.5rem + 72px);
  bottom: 2rem;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  box-shadow: 0 10px 30px rgba(10, 46, 56, 0.22);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-nudge.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
/* little tail pointing at the launcher */
.chat-nudge::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px; height: 10px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.chat-nudge-text strong { color: var(--accent-ink); }
.chat-nudge-close {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--cream-deep); color: var(--ink-soft);
  border-radius: 50%; cursor: pointer; padding: 0;
}
.chat-nudge-close:hover { background: var(--line); color: var(--ink); }
.chat-nudge-close svg { width: 12px; height: 12px; }

@media (max-width: 640px) {
  .chat-nudge { right: calc(1rem + 62px); bottom: 1.45rem; font-size: 0.85rem; }
}

/* ---------------------------------------------------------------------------
   Area market modules (neighborhood pages) — Listings Summary,
   Town vs. County comparison, Market Health. Bar palette #EA652D/#17A2A0
   validated for CVD separation; values always printed as text beside bars.
--------------------------------------------------------------------------- */
.area-market { margin: 2.5rem 0 1rem; }
.area-market > h2 { margin-bottom: 1.5rem; }
.am-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.am-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(10, 46, 56, 0.05);
}
.am-card h3 { font-size: 1.02rem; margin-bottom: 1.1rem; }
.am-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
}
.am-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.am-tile span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.am-tile em { display: block; font-style: normal; font-size: 0.7rem; color: var(--ink-soft); opacity: 0.8; }
.am-range { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }

.am-legend { display: flex; gap: 1.25rem; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1rem; }
.am-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.am-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.am-swatch-city { background: #EA652D; }
.am-swatch-county { background: #17A2A0; }

.am-compare-row { margin-bottom: 1rem; }
.am-compare-row:last-child { margin-bottom: 0; }
.am-compare-label { font-size: 0.8rem; color: var(--ink); margin-bottom: 0.35rem; font-weight: 600; }
.am-bar-line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2px; }
.am-bar {
  display: block;
  height: 12px;
  border-radius: 0 4px 4px 0;
  min-width: 6px;
  flex: 0 0 auto;
  max-width: calc(100% - 5.5rem);
}
.am-bar-city { background: #EA652D; }
.am-bar-county { background: #17A2A0; }
.am-bar-value { font-size: 0.8rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.am-foot { margin-top: 1rem; }

@media (max-width: 980px) {
  .am-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Buyers journey (/buyers) — alternating illustrated steps with big
   numerals and "Bob's Local Tip" callouts. Illustrations are inline SVG
   scenes in the site palette; they're decorative (aria-hidden), so all
   information also lives in the text.
--------------------------------------------------------------------------- */
.bj-journey { padding: 1.5rem 0 4rem; }
.bj-step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.bj-step:last-child { border-bottom: none; }
.bj-step--flip .bj-art { order: 2; }
.bj-step--flip .bj-copy { order: 1; }

.bj-art {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 14px 40px rgba(10, 46, 56, 0.07);
}
.bj-art svg { display: block; width: 100%; height: auto; }
.bj-num {
  position: absolute;
  top: -1.4rem;
  left: -0.6rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.95;
  text-shadow: 0 2px 0 var(--cream);
  z-index: 2;
}
.bj-step--flip .bj-num { left: auto; right: -0.6rem; }

.bj-count {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-ink);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.bj-copy h2 { margin-bottom: 0.9rem; }
.bj-copy p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.bj-copy a { color: var(--accent-ink); }

.bj-tip {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
}
.bj-tip-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.35rem;
}
.bj-tip p { margin: 0; font-size: 0.92rem; color: var(--ink); }

@media (max-width: 860px) {
  .bj-step, .bj-step--flip { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.25rem 0; }
  .bj-step--flip .bj-art { order: 0; }
  .bj-step--flip .bj-copy { order: 1; }
  .bj-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .bj-num { top: -1.2rem; }
}

/* ===========================================================================
   /sellers/firpta — FIRPTA guide for foreign sellers
   =========================================================================== */

/* --- Hero. Light type on the dark gradient; the global h1 colour is navy,
   so it must be overridden explicitly or the heading vanishes. --- */
.fp-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(148deg, #04161B 0%, #0A2E38 52%, #0F3F4A 100%);
  color: var(--white);
  overflow: hidden;
}
.fp-hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 16%, rgba(23, 162, 160, 0.28), transparent 55%),
    radial-gradient(circle at 8% 92%, rgba(234, 101, 45, 0.20), transparent 58%);
  pointer-events: none;
}
.fp-hero-inner { position: relative; max-width: 900px; }
.fp-hero h1 { color: var(--white); margin: 0.4rem 0 1.2rem; line-height: 1.06; }
.fp-hero-sub {
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.93);
  margin: 0 0 1.4rem;
  max-width: 68ch;
}
.fp-hero-note {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.86);
  border-left: 3px solid var(--gold);
  padding-left: 0.95rem;
  margin: 0;
}

/* --- What it is --- */
.fp-what { padding: 4.5rem 0; background: var(--cream); }
.fp-what-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.fp-what-copy h2 { margin: 0.3rem 0 1.1rem; }
.fp-what-copy p { line-height: 1.75; margin: 0 0 1rem; }
.fp-callout {
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 1.9rem 1.7rem;
  border-top: 4px solid var(--gold);
  position: sticky;
  top: 6rem;
}
.fp-callout-kicker {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin: 0 0 0.7rem;
}
.fp-callout-body { font-size: 1.1rem; line-height: 1.6; margin: 0; color: rgba(255,255,255,0.95); }

/* --- Money flow visual --- */
.fp-flow { padding: 4.5rem 0; background: var(--white); }
.fp-lede { max-width: 72ch; line-height: 1.7; margin: 0 0 2.2rem; color: var(--ink-soft); }
.fp-flow-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.fp-flow-step {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.5rem 1.3rem 1.6rem;
  text-align: center;
  border-bottom: 4px solid var(--cream-deep);
}
.fp-flow-step--end { border-bottom-color: var(--turquoise); }
.fp-flow-art { height: 84px; display: flex; align-items: center; justify-content: center; }
.fp-flow-art svg { width: 100%; max-width: 120px; height: 100%; }
.fp-flow-num {
  width: 26px; height: 26px; margin: 0.7rem auto 0.6rem;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-size: 0.8rem; font-weight: 700; line-height: 26px;
}
.fp-flow-step h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.fp-flow-step p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.fp-flow-arrow {
  align-self: center; font-size: 1.6rem; color: var(--gold);
  padding-top: 2rem; font-weight: 700;
}

/* --- Rate tiers --- */
.fp-rates { padding: 4.5rem 0; background: var(--cream-deep); }
.fp-tier-grid { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.fp-tier {
  background: var(--white); border-radius: 12px; padding: 1.5rem 1.6rem;
  border-left: 6px solid var(--ink-soft);
  box-shadow: 0 2px 10px rgba(10, 46, 56, 0.07);
}
.fp-tier--good { border-left-color: var(--turquoise-ink); }
.fp-tier--mid  { border-left-color: var(--gold); }
.fp-tier--high { border-left-color: var(--accent-ink); }
.fp-tier-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.fp-tier-rate { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--ink); }
.fp-tier-band {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.fp-tier-bar {
  height: 7px; background: var(--cream-deep); border-radius: 4px;
  margin: 0.9rem 0 1rem; overflow: hidden;
}
.fp-tier-bar span { display: block; height: 100%; border-radius: 4px; }
.fp-tier--good .fp-tier-bar span { background: var(--turquoise-ink); }
.fp-tier--mid  .fp-tier-bar span { background: var(--gold); }
.fp-tier--high .fp-tier-bar span { background: var(--accent-ink); }
.fp-tier-price { font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.fp-tier-cond { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* --- Warning blocks (buyer affidavit, vacant land) --- */
.fp-warn {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem;
  background: var(--white); border-radius: 14px; padding: 1.7rem 1.8rem;
  margin-bottom: 1.1rem; border-left: 6px solid var(--gold);
  box-shadow: 0 3px 14px rgba(10, 46, 56, 0.09);
}
.fp-warn--land { border-left-color: var(--accent-ink); }
.fp-warn-icon { width: 48px; }
.fp-warn-icon svg { width: 48px; height: 48px; }
.fp-warn-body h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.fp-warn-body p { margin: 0 0 0.7rem; line-height: 1.72; color: var(--ink-soft); }
.fp-warn-body p:last-child { margin: 0; }

.fp-rates-fine {
  background: var(--white); border-radius: 12px; padding: 1.4rem 1.6rem;
  border: 1px solid rgba(10, 46, 56, 0.12); margin-top: 1.6rem;
}
.fp-rates-fine p { margin: 0 0 0.8rem; font-size: 0.94rem; line-height: 1.68; color: var(--ink-soft); }
.fp-rates-fine p:last-child { margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* --- Worked examples --- */
.fp-examples { padding: 4.5rem 0; background: var(--white); }
.fp-ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.fp-ex {
  background: var(--cream); border-radius: 14px; padding: 1.7rem 1.8rem;
  border-top: 5px solid var(--ink-soft);
}
.fp-ex--good { border-top-color: var(--turquoise-ink); }
.fp-ex--mid  { border-top-color: var(--gold); }
.fp-ex--high { border-top-color: var(--accent-ink); }
.fp-ex-tag {
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-ink); margin: 0 0 0.5rem;
}
.fp-ex-price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0 0 1rem; line-height: 1; }
.fp-ex-price span { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); margin-left: 0.5rem; }
.fp-ex-bar {
  height: 12px; background: var(--white); border-radius: 6px;
  overflow: hidden; margin-bottom: 1rem; border: 1px solid rgba(10,46,56,0.1);
}
.fp-ex-bar-held { display: block; height: 100%; background: var(--accent-ink); }
.fp-ex--mid .fp-ex-bar-held { background: var(--gold); }
.fp-ex-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.fp-ex-num { display: flex; flex-direction: column; }
.fp-ex-num-label {
  font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 0.25rem;
}
.fp-ex-num-value { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.fp-ex-num-value--held { color: var(--accent-ink); }
.fp-ex-note { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--ink-soft); }
.fp-ex-disclaimer {
  margin: 1.6rem 0 0; font-size: 0.88rem; line-height: 1.65;
  color: var(--ink-soft); background: var(--cream); border-radius: 10px;
  padding: 1rem 1.3rem; border-left: 4px solid var(--turquoise);
}

/* --- Selling at a loss --- */
.fp-loss { padding: 4.5rem 0; background: var(--cream-deep); }
.fp-loss-inner { display: grid; grid-template-columns: 1fr 1.7fr; gap: 3rem; align-items: start; }
.fp-loss-art {
  background: var(--white); border-radius: 16px; padding: 1.8rem;
  box-shadow: 0 3px 16px rgba(10,46,56,0.09); position: sticky; top: 6rem;
}
.fp-loss-art svg { width: 100%; height: auto; display: block; }
.fp-loss-copy h2 { margin: 0.3rem 0 1.1rem; }
.fp-loss-copy p { line-height: 1.75; margin: 0 0 1rem; }
.fp-loss-catch {
  background: var(--white); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 1.2rem 1.4rem;
}
.fp-loss-bottom { font-weight: 600; color: var(--ink); }

/* --- Myths. Light cards on a light surface, per Bob's note that the dark
   boxes on the dark band were hard to read. --- */
.fp-myths { padding: 4.5rem 0; background: var(--white); }
.fp-myth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.fp-myth {
  background: var(--cream); border: 1px solid rgba(10, 46, 56, 0.1);
  border-radius: 14px; padding: 1.7rem;
}
.fp-myth-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin: 0 0 0.4rem;
}
.fp-myth-label--truth { color: var(--accent-ink); margin-top: 1.2rem; }
.fp-myth-claim {
  font-size: 1.06rem; font-style: italic; margin: 0;
  color: var(--ink-soft); line-height: 1.55;
  padding-left: 0.9rem; border-left: 3px solid var(--cream-deep);
}
.fp-myth-truth { margin: 0; line-height: 1.72; color: var(--ink); }

/* --- Process steps --- */
.fp-process { padding: 4.5rem 0; background: var(--cream); }
.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.fp-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: var(--white); border-radius: 12px; padding: 1.5rem 1.7rem;
  box-shadow: 0 2px 10px rgba(10, 46, 56, 0.06);
}
.fp-step-num {
  font-size: 1.7rem; font-weight: 800; color: var(--gold);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.fp-step-body h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }
.fp-step-body p { margin: 0; line-height: 1.72; color: var(--ink-soft); }

/* --- Exceptions --- */
.fp-exceptions { padding: 4.5rem 0; background: var(--cream-deep); }
.fp-exc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.fp-exc {
  background: var(--white); border-radius: 12px; padding: 1.5rem 1.6rem;
  border-top: 3px solid var(--turquoise);
}
.fp-exc h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.fp-exc p { margin: 0; line-height: 1.7; color: var(--ink-soft); font-size: 0.96rem; }
.fp-exc-more { margin: 1.6rem 0 0; font-size: 0.95rem; }

/* --- Accountant band. Deliberately the loudest block on the page. --- */
.fp-accountant-band {
  padding: 3.5rem 0;
  background: linear-gradient(140deg, #04161B 0%, #0A2E38 60%, #0F3F4A 100%);
}
.fp-accountant {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
  background: var(--white); border-radius: 18px; padding: 2.4rem 2.6rem;
  border-top: 7px solid var(--gold);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}
.fp-accountant-icon { width: 64px; }
.fp-accountant-icon svg { width: 64px; height: 64px; }
.fp-accountant-kicker {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--accent-ink); margin: 0 0 0.4rem;
}
.fp-accountant h2 { margin: 0 0 0.9rem; font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.fp-accountant p { margin: 0 0 0.9rem; line-height: 1.75; font-size: 1.04rem; }
.fp-accountant p:last-child { margin: 0; }

/* --- Specialists --- */
.fp-help { padding: 4.5rem 0; background: var(--cream); }
.fp-partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.fp-partner {
  background: var(--white); border-radius: 14px; padding: 1.8rem;
  box-shadow: 0 3px 14px rgba(10, 46, 56, 0.08);
  display: flex; flex-direction: column;
}
.fp-partner h3 { margin: 0 0 0.35rem; font-size: 1.3rem; }
.fp-partner-meta { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--accent-ink); font-weight: 600; }
.fp-partner-note { margin: 0 0 1.4rem; line-height: 1.7; color: var(--ink-soft); flex: 1; }

/* --- FAQ --- */
.fp-faq { padding: 4.5rem 0; background: var(--cream-deep); }
.fp-faq-list { display: grid; gap: 0.7rem; }
.fp-faq-item {
  background: var(--white); border-radius: 10px;
  border: 1px solid rgba(10, 46, 56, 0.1); overflow: hidden;
}
.fp-faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 3rem; color: var(--ink);
}
.fp-faq-item summary::-webkit-details-marker { display: none; }
.fp-faq-item summary::after {
  content: '+'; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400;
  color: var(--gold); line-height: 1;
}
.fp-faq-item[open] summary::after { content: '\2212'; }
.fp-faq-item summary:hover { background: var(--cream); }
.fp-faq-item summary:focus-visible { outline: 3px solid var(--turquoise); outline-offset: -3px; }
.fp-faq-answer { padding: 0 1.4rem 1.3rem; }
.fp-faq-answer p { margin: 0; line-height: 1.75; color: var(--ink-soft); }

/* --- Official IRS links --- */
.fp-official { padding: 4rem 0; background: var(--navy-deep); color: var(--white); }
.fp-official-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
.fp-official h2 { margin: 0.3rem 0 0.8rem; color: var(--white); }
.fp-official p { margin: 0; line-height: 1.7; color: rgba(255,255,255,0.88); }
.fp-official-links { display: grid; gap: 0.7rem; }
.fp-official-link {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px; padding: 1rem 1.3rem; text-decoration: none; color: var(--white);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.fp-official-link:hover { background: rgba(255, 255, 255, 0.13); border-color: var(--gold); }
.fp-official-title { font-weight: 600; }
.fp-official-url { font-size: 0.85rem; color: rgba(255,255,255,0.7); white-space: nowrap; }

/* --- Disclaimer --- */
.fp-disclaimer { padding: 2.5rem 0; background: var(--cream); }
.fp-disclaimer .fine-print {
  max-width: 92ch; line-height: 1.72; background: var(--white);
  border-left: 4px solid var(--accent-ink); border-radius: 8px;
  padding: 1.3rem 1.5rem; margin: 0;
}

@media (max-width: 1000px) {
  .fp-flow-track { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fp-flow-arrow { display: none; }
}
@media (max-width: 860px) {
  .fp-what-inner,
  .fp-myth-grid,
  .fp-exc-grid,
  .fp-partner-grid,
  .fp-ex-grid,
  .fp-loss-inner,
  .fp-official-inner { grid-template-columns: 1fr; }
  .fp-callout, .fp-loss-art { position: static; }
  .fp-hero { padding: 4rem 0 3rem; }
  .fp-step { grid-template-columns: 1fr; gap: 0.5rem; }
  .fp-flow-track { grid-template-columns: 1fr; }
  .fp-accountant { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.9rem; }
  .fp-warn { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ===========================================================================
   /sellers/tax-deed-properties
   =========================================================================== */

.td-hero {
  position: relative; padding: 5.5rem 0 4.5rem;
  background: linear-gradient(148deg, #04161B 0%, #0A2E38 55%, #582E43 100%);
  color: var(--white); overflow: hidden;
}
.td-hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(234, 101, 45, 0.26), transparent 56%),
    radial-gradient(circle at 6% 88%, rgba(23, 162, 160, 0.20), transparent 58%);
  pointer-events: none;
}
.td-hero-inner { position: relative; max-width: 900px; }
.td-hero h1 { color: var(--white); margin: 0.4rem 0 1.2rem; line-height: 1.06; }
.td-hero-sub {
  font-size: 1.18rem; line-height: 1.7; color: rgba(255,255,255,0.93);
  margin: 0; max-width: 68ch;
}

.td-problem { padding: 4.5rem 0; background: var(--cream); }
.td-problem-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.td-problem-copy h2 { margin: 0.3rem 0 1.1rem; }
.td-problem-copy p { line-height: 1.75; margin: 0 0 1rem; }
.td-problem-punch {
  background: var(--navy); color: var(--white); border-radius: 12px;
  padding: 1.2rem 1.4rem; border-left: 5px solid var(--gold);
  font-weight: 500; margin-top: 1.4rem !important;
}
.td-compare {
  background: var(--white); border-radius: 14px; padding: 1.6rem;
  box-shadow: 0 3px 14px rgba(10,46,56,0.09); position: sticky; top: 6rem;
}
.td-compare-kicker {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin: 0 0 1rem;
}
.td-compare-row { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; margin-bottom: 1rem; align-items: start; }
.td-compare-tag {
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 800; padding: 0.28rem 0.6rem; border-radius: 5px; white-space: nowrap;
}
.td-compare-tag--bad { background: #F6E2DA; color: var(--accent-ink); }
.td-compare-tag--good { background: #D6EFEE; color: var(--turquoise-ink); }
.td-compare-row p { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); }
.td-compare-note {
  margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--cream-deep);
  font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft);
}

.td-paths { padding: 4.5rem 0; background: var(--white); }
.td-lede { max-width: 72ch; line-height: 1.7; margin: 0 0 2.2rem; color: var(--ink-soft); }
.td-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.td-path {
  background: var(--cream); border-radius: 14px; padding: 1.7rem 1.6rem;
  border-top: 5px solid var(--ink-soft); display: flex; flex-direction: column;
}
.td-path--good { border-top-color: var(--turquoise-ink); }
.td-path--mid  { border-top-color: var(--gold); }
.td-path--warn { border-top-color: var(--accent-ink); }
.td-path h3 { margin: 0 0 1rem; font-size: 1.2rem; }
.td-path-meta {
  display: grid; gap: 0.7rem; margin-bottom: 1.1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--cream-deep);
}
.td-path-meta > div { display: flex; flex-direction: column; }
.td-path-meta-label {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 0.15rem;
}
.td-path-meta-value { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.td-path-what { margin: 0 0 0.9rem; line-height: 1.68; color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.td-path-catch {
  margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink);
  background: var(--white); border-radius: 8px; padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold);
}
.td-path-fine { margin: 1.6rem 0 0; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.6; }

.td-land { padding: 3.5rem 0; background: linear-gradient(140deg, #04161B 0%, #0A2E38 100%); }
.td-land-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start;
  background: var(--white); border-radius: 18px; padding: 2.4rem 2.6rem;
  border-top: 7px solid var(--gold); box-shadow: 0 18px 46px rgba(0,0,0,0.34);
}
.td-land-icon { width: 64px; }
.td-land-icon svg { width: 64px; height: 64px; }
.td-land-kicker {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--accent-ink); margin: 0 0 0.4rem;
}
.td-land-body h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.td-land-body p { margin: 0 0 0.9rem; line-height: 1.75; }
.td-land-do {
  background: var(--cream); border-left: 5px solid var(--turquoise);
  border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.2rem 0 0 !important;
}

.td-survives { padding: 4.5rem 0; background: var(--cream-deep); }
.td-survives-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.td-survive {
  background: var(--white); border-radius: 12px; padding: 1.5rem 1.6rem;
  border-left: 5px solid var(--ink-soft);
}
.td-survive--bad { border-left-color: var(--accent-ink); }
.td-survive--good { border-left-color: var(--turquoise-ink); }
.td-survive h3 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.td-survive p { margin: 0; line-height: 1.7; color: var(--ink-soft); font-size: 0.96rem; }

.td-help { padding: 4.5rem 0; background: var(--cream); }
.td-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.td-help-card {
  background: var(--white); border-radius: 14px; padding: 1.9rem;
  box-shadow: 0 3px 14px rgba(10,46,56,0.08); display: flex; flex-direction: column;
}
.td-help-card--primary { border-top: 5px solid var(--gold); }
.td-help-tag {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 800; color: var(--accent-ink); margin: 0 0 0.4rem;
}
.td-help-card h3 { margin: 0 0 0.8rem; font-size: 1.25rem; }
.td-help-card p { margin: 0 0 0.9rem; line-height: 1.72; color: var(--ink-soft); }
.td-help-ask {
  background: var(--cream); border-radius: 10px; padding: 1rem 1.2rem;
  border-left: 4px solid var(--turquoise); color: var(--ink) !important;
  margin: auto 0 0 !important;
}
.td-help-warn {
  background: #FBF0EA; border-radius: 10px; padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent-ink); color: var(--ink) !important;
  font-size: 0.94rem;
}

.td-faq { padding: 4.5rem 0; background: var(--white); }
.td-faq-list { display: grid; gap: 0.7rem; }
.td-faq-item {
  background: var(--cream); border-radius: 10px;
  border: 1px solid rgba(10,46,56,0.1); overflow: hidden;
}
.td-faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 3rem; color: var(--ink);
}
.td-faq-item summary::-webkit-details-marker { display: none; }
.td-faq-item summary::after {
  content: '+'; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); line-height: 1;
}
.td-faq-item[open] summary::after { content: '\2212'; }
.td-faq-item summary:hover { background: var(--cream-deep); }
.td-faq-item summary:focus-visible { outline: 3px solid var(--turquoise); outline-offset: -3px; }
.td-faq-answer { padding: 0 1.4rem 1.3rem; }
.td-faq-answer p { margin: 0; line-height: 1.75; color: var(--ink-soft); }

.td-official { padding: 4rem 0; background: var(--navy-deep); color: var(--white); }
.td-official-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; }
.td-official h2 { margin: 0.3rem 0 0.8rem; color: var(--white); }
.td-official p { margin: 0; line-height: 1.7; color: rgba(255,255,255,0.88); }
.td-official-links { display: grid; gap: 0.7rem; }
.td-official-link {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 0.95rem 1.3rem; text-decoration: none; color: var(--white);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.td-official-link:hover { background: rgba(255,255,255,0.13); border-color: var(--gold); }
.td-official-title { font-weight: 600; font-size: 0.97rem; }
.td-official-url { font-size: 0.82rem; color: rgba(255,255,255,0.7); white-space: nowrap; }

.td-disclaimer { padding: 2.5rem 0; background: var(--cream); }
.td-disclaimer .fine-print {
  max-width: 92ch; line-height: 1.72; background: var(--white);
  border-left: 4px solid var(--accent-ink); border-radius: 8px;
  padding: 1.3rem 1.5rem; margin: 0;
}

@media (max-width: 1000px) {
  .td-path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .td-problem-inner, .td-survives-grid, .td-help-grid, .td-official-inner { grid-template-columns: 1fr; }
  .td-compare { position: static; }
  .td-hero { padding: 4rem 0 3rem; }
  .td-land-inner { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.9rem; }
}

/* --- Tax deed: help-section additions --- */
.td-help-list { margin: 0 0 1rem; padding-left: 1.1rem; }
.td-help-list li { margin-bottom: 0.8rem; line-height: 1.68; color: var(--ink-soft); font-size: 0.95rem; }
.td-help-list li:last-child { margin-bottom: 0; }
.td-help-list strong { color: var(--ink); }
.td-help-fine {
  margin: 1.5rem 0 0; font-size: 0.87rem; line-height: 1.65;
  color: var(--ink-soft); background: var(--white); border-radius: 10px;
  padding: 1rem 1.3rem; border-left: 4px solid var(--ink-soft);
}

/* ===========================================================================
   Footer redesign: prefs left, live conditions right, baseline below
   =========================================================================== */
.footer-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-prefs { display: flex; gap: 1.2rem; align-items: flex-end; margin: 0; }
.footer-conditions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.footer-tides {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  font-size: 0.86rem; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 0.4rem 0.95rem;
}
.footer-tides .ft-label { font-weight: 600; }
.footer-tides .ft-vals { color: var(--turquoise-light); font-weight: 600; }
.footer-pref-note { margin: 0.8rem 0 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-baseline { margin-top: 1.2rem; }
@media (max-width: 700px) {
  .footer-meta { flex-direction: column; align-items: flex-start; }
  .footer-conditions { align-items: flex-start; }
}

/* --- Saved-search UI --- */
.ss-save-btn { margin-left: auto; }
.ss-save-btn.ss-saved { border-color: var(--turquoise-ink); color: var(--turquoise-ink); }
.account-searches { margin: 2rem 0; padding-top: 1.6rem; border-top: 1px solid var(--cream-deep); }
.account-searches h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.ss-list { display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.ss-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid rgba(10,46,56,0.12);
  border-radius: 10px; padding: 0.8rem 1.1rem;
}
.ss-name { font-weight: 600; color: var(--ink); }
.ss-del { padding: 0.35rem 0.9rem; font-size: 0.85rem; }

/* --- True monthly cost module --- */
.true-cost {
  margin-top: 2rem; background: var(--cream); border-radius: 14px;
  padding: 1.6rem 1.7rem; border-top: 5px solid var(--gold);
}
.true-cost h3 { margin: 0 0 0.4rem; }
.tc-lede { margin: 0 0 1.1rem; font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); }
.tc-quote-links { margin: -0.4rem 0 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.tc-quote-links a { display: inline-block; padding: 0.6rem 0; text-decoration: underline; text-underline-offset: 2px; }
.tc-lines { margin-top: 1rem; background: var(--white); border-radius: 10px; overflow: hidden; }
.tc-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--cream-deep);
  font-size: 0.95rem;
}
.tc-line em { color: var(--ink-soft); font-size: 0.82rem; font-style: normal; }
.tc-total { background: var(--navy); color: var(--white); font-weight: 700; border: none; }
.tc-total strong { color: var(--gold-light); font-size: 1.15rem; }

/* --- Vacant-land due diligence --- */
.land-dd {
  margin-top: 2rem; background: var(--cream); border-radius: 14px;
  padding: 1.6rem 1.7rem; border-top: 5px solid var(--turquoise);
}
.land-dd h3 { margin: 0 0 0.4rem; }
.land-dd-lede { margin: 0 0 0.8rem; font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; }
.land-dd-copy { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.land-dd-copy code {
  background: var(--white); border: 1px dashed rgba(10,46,56,0.25);
  border-radius: 6px; padding: 0.35rem 0.7rem; font-size: 0.85rem; user-select: all;
}
.land-dd-grid { display: grid; gap: 0.8rem; }
.land-dd-card {
  display: block; background: var(--white); border-radius: 10px;
  padding: 1rem 1.2rem; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(10,46,56,0.12); transition: border-color .15s ease;
}
.land-dd-card:hover { border-color: var(--gold); }
.land-dd-tag {
  display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 800; color: var(--accent-ink); margin-bottom: 0.2rem;
}
.land-dd-card strong { display: block; margin-bottom: 0.3rem; }
.land-dd-card span:last-child { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

/* --- Boating guide --- */
.bo-hero {
  padding: 5rem 0 3.5rem; color: var(--white);
  background: linear-gradient(150deg, #04161B 0%, #0A2E38 55%, #0E6968 130%);
}
.bo-hero h1 { color: var(--white); margin: 0.4rem 0 1rem; line-height: 1.08; }
.bo-hero-sub { max-width: 68ch; font-size: 1.14rem; line-height: 1.7; color: rgba(255,255,255,0.92); margin: 0 0 1.4rem; }
.bo-defs { padding: 3rem 0; background: var(--cream); }
.bo-defs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bo-def { background: var(--white); border-radius: 12px; padding: 1.4rem 1.5rem; border-top: 4px solid var(--turquoise); }
.bo-def h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.bo-def p { margin: 0; font-size: 0.94rem; line-height: 1.65; color: var(--ink-soft); }
.bo-table-sec { padding: 4rem 0; background: var(--white); }
.bo-table-wrap { overflow-x: auto; border: 1px solid rgba(10,46,56,0.12); border-radius: 12px; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
.bo-table th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 0.8rem 1rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.bo-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--cream-deep); vertical-align: top; }
.bo-table tr:nth-child(even) td { background: var(--cream); }
.bo-num { white-space: nowrap; font-weight: 600; }
.bo-notes { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }
.bo-access { font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.6rem; border-radius: 5px; white-space: nowrap; }
.bo-access--sail { background: #D6EFEE; color: var(--turquoise-ink); }
.bo-access--power { background: #F6E2DA; color: var(--accent-ink); }
.bo-access--check { background: var(--cream-deep); color: var(--ink-soft); }
.bo-caveat {
  margin-top: 1.6rem; background: var(--cream); border-left: 5px solid var(--gold);
  border-radius: 10px; padding: 1.2rem 1.4rem;
}
.bo-caveat p { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); }
.bo-search { padding: 3rem 0; background: var(--white); border-bottom: 1px solid var(--cream-deep); }
.bo-search-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.bo-search-links { display: flex; flex-direction: column; gap: 0.8rem; }
@media print {
  .site-header, .site-footer, .bo-search, .bo-print, .chat-launcher, .chat-nudge { display: none !important; }
  .bo-hero { background: none; color: #000; padding: 1rem 0; }
  .bo-hero h1, .bo-hero-sub { color: #000; }
}
@media (max-width: 860px) {
  .bo-defs-grid, .bo-search-inner { grid-template-columns: 1fr; }
}
/* Phones: each table row becomes a compact card (name on top, the short
   facts two-up with their column name as a small label, notes below), so
   nothing sits off to the right behind a sideways scroll. Labels come from
   data-label on each cell in pages/boating.js. Print keeps the real table. */
@media screen and (max-width: 760px) {
  .bo-table-sec { padding: 2.5rem 0; }
  .bo-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .bo-table { min-width: 0; font-size: 0.9rem; }
  .bo-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bo-table tbody { display: block; }
  .bo-table tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem;
    padding: 0.85rem 1rem; margin-bottom: 0.6rem;
    border: 1px solid rgba(10,46,56,0.12); border-radius: 10px; background: var(--white);
  }
  .bo-table tr:nth-child(even) { background: var(--cream); }
  .bo-table td, .bo-table tr:nth-child(even) td {
    display: block; padding: 0; border: 0; background: none; min-width: 0;
    line-height: 1.4; overflow-wrap: anywhere;
  }
  .bo-table td:first-child, .bo-table td.bo-notes:not([data-label]) { grid-column: 1 / -1; }
  .bo-table td:first-child { font-size: 1rem; line-height: 1.3; color: var(--navy); }
  .bo-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.15rem;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft);
  }
  .bo-num { white-space: normal; }
  .bo-access { display: inline-block; white-space: normal; line-height: 1.35; }
  .bo-notes { font-size: 0.85rem; }
  .bo-table td.bo-notes[data-label] { font-size: inherit; color: inherit; }
}

/* --- Social links moved out of the masthead into the footer --- */
.footer-social { display: flex; gap: 0.6rem; margin: 0.9rem 0 1.1rem; }
.footer-social .icon-link {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.85);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.footer-social .icon-link:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(255,255,255,0.06); }
.footer-social .icon-link svg { width: 17px; height: 17px; }

/* --- Contact page: full contact + social block --- */
.contact-socials { margin: 1.6rem 0; padding-top: 1.3rem; border-top: 1px solid var(--cream-deep); }
.contact-socials h4 {
  margin: 0 0 0.8rem; font-size: 0.76rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 800;
}
/* Four tiles across. The old full-width rows left most of each row empty;
   stacking the label under the icon uses the column properly. Falls back to
   a 2x2 grid when the column gets narrow. */
.contact-social-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.contact-social {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 0.85rem 0.4rem; border-radius: 10px; text-decoration: none;
  background: var(--white); border: 1px solid rgba(10,46,56,0.12);
  color: var(--ink); font-weight: 600; font-size: 0.78rem; text-align: center;
  line-height: 1.25;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.contact-social:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
@media (max-width: 1180px) and (min-width: 901px) {
  .contact-social-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .contact-social-list { grid-template-columns: repeat(2, 1fr); }
}
.contact-social-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand, var(--navy)); color: var(--white);
}
.contact-social-ico svg { width: 19px; height: 19px; }

/* Each platform carries its own colour so the row is scannable. Before this,
   every tile was navy and the Zillow / Realtor.com marks were both generic
   house outlines — visually identical to each other. */
.contact-social--facebook { --brand: #1877F2; }
.contact-social--linkedin { --brand: #0A66C2; }
.contact-social--zillow   { --brand: #006AFF; }
.contact-social--realtor  { --brand: #D92228; }
.contact-social--facebook:hover { border-color: #1877F2; }
.contact-social--linkedin:hover { border-color: #0A66C2; }
.contact-social--zillow:hover   { border-color: #006AFF; }
.contact-social--realtor:hover  { border-color: #D92228; }

/* --- Direct contact lines (icon + label + value) --- */
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.contact-line {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--cream-deep);
}
.contact-line:last-child { border-bottom: none; }
.contact-line-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px; margin-top: 0.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chan, var(--navy)); color: var(--white);
}
.contact-line-ico svg { width: 18px; height: 18px; }
/* Five distinct colours, four of them straight from the site palette so the
   list still reads as one family rather than a bag of skittles. WhatsApp is
   the exception — it uses its real brand green, because it is a brand. */
.contact-line-ico--phone    { --chan: #17A2A0; }  /* gulf turquoise */
.contact-line-ico--text     { --chan: #EA652D; }  /* sunset  */
.contact-line-ico--whatsapp { --chan: #25D366; }  /* WhatsApp brand */
.contact-line-ico--email    { --chan: #1F6FB2; }  /* harbor blue */
.contact-line-ico--web      { --chan: #582E43; }  /* dusk */
.contact-line-body { display: flex; flex-direction: column; min-width: 0; }
.contact-line-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; line-height: 1.4;
}
.contact-line-value {
  font-size: 1.02rem; font-weight: 600; color: var(--navy);
  text-decoration: none; line-height: 1.45; word-break: break-word;
}
.contact-line-value:hover { color: var(--accent-ink); text-decoration: underline; }
.contact-line .contact-note {
  display: block; margin-top: 0.15rem;
  font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft);
}

/* ---------- Buyers: Flood Zones & Insurance (/buyers/flood-zones-and-insurance) ----------
   Reuses the fp-* system from the FIRPTA page for the hero, callout, official
   links, FAQ and disclaimer. Only the sections unique to this page are new. */

/* Time-sensitive NFIP authorisation banner. Deliberately loud — it is the one
   thing on the page that can stall a closing, and it has a real expiry date. */
.flood-alert { background: var(--navy-darker); padding: 2.4rem 0; }
.flood-alert-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  border-left: 4px solid var(--gold); padding-left: 1.5rem;
}
.flood-alert-mark { flex: none; line-height: 0; padding-top: 0.15rem; }
.flood-alert-kicker {
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin: 0 0 0.6rem;
}
.flood-alert-body { color: rgba(255,255,255,0.93); line-height: 1.7; margin: 0; font-size: 1.02rem; }
.flood-alert-body strong { color: var(--white); }

/* Then / Now comparison cards */
.flood-changed { padding: 4.5rem 0; background: var(--white); }
.flood-changed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.flood-changed-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; border-top: 4px solid var(--turquoise);
}
.flood-changed-label {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--turquoise-ink); font-weight: 700; margin: 0 0 0.9rem;
}
.flood-changed-then, .flood-changed-now { font-size: 0.94rem; line-height: 1.62; margin: 0 0 0.85rem; }
.flood-changed-then { color: var(--ink-soft); }
.flood-changed-now { color: var(--ink); margin-bottom: 0; }
.flood-changed-then span, .flood-changed-now span {
  display: inline-block; font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 4px; margin-right: 0.45rem; vertical-align: 1px;
}
.flood-changed-then span { background: var(--cream-deep); color: var(--ink-soft); }
.flood-changed-now span { background: var(--navy); color: var(--white); }

/* Three-source due diligence */
.flood-check { padding: 4.5rem 0; background: var(--cream); }
.flood-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.flood-check-item {
  background: var(--white); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-soft);
}
.flood-check-num {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 0.6rem;
}
.flood-check-item h3 { text-transform: none; font-size: 1.1rem; margin: 0 0 0.6rem; color: var(--navy); }
.flood-check-item p { font-size: 0.95rem; line-height: 1.66; margin: 0; color: var(--ink); }
.flood-check-item a { color: var(--accent-ink); font-weight: 600; }
.flood-quote {
  margin-top: 1.75rem; background: var(--white);
  border-left: 4px solid var(--accent-ink); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
}
.flood-quote p { margin: 0; line-height: 1.72; }
.flood-quote-tool {
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center;
}
.flood-quote-tool .btn { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: center; }
.flood-quote-tool p { flex: 1 1 22rem; min-width: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* CRS discount band */
.flood-crs { padding: 4.5rem 0; background: var(--white); }
.flood-crs-inner { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.flood-crs-figure {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 2.2rem 2.4rem; text-align: center; border-top: 5px solid var(--turquoise);
}
.flood-crs-num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--turquoise-light); }
.flood-crs-cap {
  font-size: 0.7rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); margin: 0.7rem 0 0; max-width: 12ch; margin-inline: auto; line-height: 1.5;
}
.flood-crs h2 { margin: 0.3rem 0 1rem; }
.flood-crs p { line-height: 1.75; margin: 0 0 1rem; }

/* City handout download */
.flood-download { padding: 4.5rem 0; background: var(--cream-deep); }
.flood-download-inner { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; }
.flood-download-doc { flex: none; line-height: 0; }
.flood-download-copy h2 { margin: 0.3rem 0 1rem; }
.flood-download-copy > p { line-height: 1.75; margin: 0 0 1.1rem; max-width: 70ch; }
.flood-download-note {
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem; margin: 0 0 1.4rem; max-width: 70ch;
}
.flood-download-note p { margin: 0; font-size: 0.95rem; line-height: 1.68; }

@media (max-width: 980px) {
  .flood-changed-grid, .flood-check-grid { grid-template-columns: 1fr; }
  .flood-crs-inner, .flood-download-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .flood-crs-figure { justify-self: start; }
}
@media (max-width: 620px) {
  .flood-alert-inner { grid-template-columns: 1fr; gap: 0.9rem; padding-left: 1.1rem; }
  .flood-download-doc { display: none; }
}
.bj-tip-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.flood-alert-note {
  margin: 0.9rem 0 0; font-size: 0.82rem; line-height: 1.6;
  color: rgba(255,255,255,0.62); font-style: italic;
}

/* Lead-form optional field affordances. The hint is what makes the address
   ask land — people give a property address when they can see what it buys
   them, and skip a bare "Address" field that looks like data harvesting. */
.lead-form .label-row { display: flex; align-items: center; }
.lead-form .label-optional {
  font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-left: 0.4rem;
  background: var(--cream-deep); padding: 0.14rem 0.45rem; border-radius: 4px;
  flex: none;
}
.lead-form .field-hint {
  display: block; margin-top: 0.4rem; font-weight: 400;
  font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); text-transform: none; letter-spacing: 0;
}

/* ---------- Boaters guide: clubs & organisations ---------- */
.bo-club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bo-club {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; display: flex; flex-direction: column;
}
.bo-club-head { display: flex; align-items: flex-start; gap: 0.6rem; justify-content: space-between; }
.bo-club-head h3 { font-size: 1.02rem; color: var(--navy); margin: 0; text-transform: none; line-height: 1.3; }
/* The "no boat needed" flag is the single most useful thing on these cards for
   a relocating buyer, so it gets colour rather than sitting in the body text. */
.bo-club-flag {
  flex: none; font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase;
  font-weight: 800; color: var(--turquoise-ink); background: #DCEFEE;
  padding: 0.2rem 0.45rem; border-radius: 4px; white-space: nowrap; margin-top: 0.15rem;
}
.bo-club-meta {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 700; margin: 0.5rem 0 0.6rem;
}
.bo-club-notes { font-size: 0.9rem; line-height: 1.6; color: var(--ink); margin: 0 0 0.7rem; }
.bo-club-addr { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.7rem; line-height: 1.5; }
.bo-club-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.bo-club-links a { font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.bo-club-links a:hover { text-decoration: underline; }
@media (max-width: 1080px) { .bo-club-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .bo-club-grid { grid-template-columns: 1fr; } }

/* ---------- Buyers: Waterfront Ownership (/buyers/waterfront-ownership) ----------
   Reuses the fp-* system (hero, official links, FAQ, disclaimer) from the
   FIRPTA/flood pages. Only the waterfront-specific sections are new. */

/* Ian repair-zone alert — the one thing on the page that changes a buyer's
   questions this week, so it gets the loud treatment. */
.wf-alert { background: var(--navy-darker); padding: 2.4rem 0; }
.wf-alert-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  border-left: 4px solid var(--gold); padding-left: 1.5rem;
}
.wf-alert-mark { flex: none; line-height: 0; padding-top: 0.2rem; }
.wf-alert-kicker {
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 700; margin: 0 0 0.6rem;
}
.wf-alert-body { color: rgba(255,255,255,0.93); line-height: 1.7; margin: 0; font-size: 1.02rem; }
.wf-alert-body strong { color: var(--white); }
.wf-alert-note { margin: 0.9rem 0 0; font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.62); font-style: italic; }

/* Lot shapes — the bar makes the frontage gap visible rather than merely stated */
.wf-shapes { padding: 4.5rem 0; background: var(--white); }
.wf-shape-list { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; }
.wf-shape { background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.wf-shape-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wf-shape-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy); text-transform: none; }
.wf-shape-ft { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.wf-shape-track { height: 9px; background: var(--cream-deep); border-radius: 999px; margin: 0.7rem 0 0.7rem; overflow: hidden; }
.wf-shape-fill { height: 100%; border-radius: 999px; background: var(--turquoise); }
.wf-shape-fill--tip { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.wf-shape-fill--key { background: var(--brass, #C9922F); }
.wf-shape-fill--culdesac { background: var(--turquoise); }
.wf-shape-fill--standard { background: var(--turquoise-ink); }
.wf-shape-fill--end, .wf-shape-fill--butt { background: #6E8A8F; }
.wf-shape-fill--corner { background: #9AA9AC; }
.wf-shape-blurb { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.wf-diagram-wrap { background: var(--cream); border-radius: var(--radius); padding: 1.6rem; }
.wf-diagram { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.wf-diagram-link { display: block; border-radius: var(--radius-sm); cursor: zoom-in; }
.wf-diagram-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wf-diagram-hint { display: none; margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 760px) { .wf-diagram-hint { display: block; } }

.wf-callout {
  margin-top: 2rem; background: var(--cream-deep);
  border-left: 4px solid var(--accent-ink); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
}
.wf-callout p { margin: 0; line-height: 1.72; }
.wf-callout--tight { margin-top: 1.6rem; background: var(--white); }

/* Assessment band */
.wf-assessment { padding: 4.5rem 0; background: var(--cream); }
.wf-assessment-inner { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
.wf-assessment-figure {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 2rem 2.2rem; text-align: center; border-top: 5px solid var(--gold); min-width: 190px;
}
.wf-assessment-num { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--gold-light); }
.wf-assessment-num span { font-size: 1.4rem; margin-left: 0.15rem; }
.wf-assessment-cap {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.84); margin: 0.8rem 0 0; line-height: 1.5;
}
.wf-assessment h2 { margin: 0.3rem 0 1rem; }
.wf-assessment p { line-height: 1.75; margin: 0 0 1rem; }

/* Anatomy */
.wf-anatomy { padding: 4.5rem 0; background: var(--white); }
.wf-anatomy-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
.wf-anatomy-art svg { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.wf-anatomy-copy dl { margin: 0; }
.wf-anatomy-copy dt {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  color: var(--navy); margin-top: 1.1rem;
}
.wf-anatomy-copy dt:first-child { margin-top: 0; }
.wf-anatomy-copy dd { margin: 0.3rem 0 0; font-size: 0.94rem; line-height: 1.62; color: var(--ink-soft); }

/* Failure modes */
.wf-failures { padding: 4.5rem 0; background: var(--cream); }
.wf-fail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.wf-fail { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.35rem; border-top: 4px solid var(--gold); }
.wf-fail-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.wf-fail h3 { font-size: 1.02rem; color: var(--navy); margin: 0.5rem 0 0.8rem; text-transform: none; line-height: 1.3; }
.wf-fail-cause, .wf-fail-symptom { font-size: 0.88rem; line-height: 1.58; margin: 0 0 0.7rem; color: var(--ink); }
.wf-fail-symptom { margin-bottom: 0; }
.wf-fail-cause span, .wf-fail-symptom span {
  display: block; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-soft); margin-bottom: 0.2rem;
}
.wf-fail-symptom span { color: var(--accent-ink); }

/* Dock rules */
.wf-rules { padding: 4.5rem 0; background: var(--white); }
.wf-rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.wf-rule-card { border-radius: var(--radius); padding: 1.7rem 1.7rem; border: 1px solid var(--line); }
.wf-rule-card h3 { font-size: 1.12rem; color: var(--navy); margin: 0 0 1rem; text-transform: none; }
.wf-rule-card ul { margin: 0; padding-left: 1.15rem; }
.wf-rule-card li { font-size: 0.95rem; line-height: 1.62; margin-bottom: 0.6rem; color: var(--ink); }
.wf-rule-card--yes { background: #F1F7F0; border-color: #C8DFC2; }
.wf-rule-card--yes li::marker { color: #3F6B2E; }
.wf-rule-card--no { background: #FBF1EC; border-color: #EDCDBC; }
.wf-rule-card--no li::marker { color: var(--accent-ink); }
.wf-rule-foot { font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); margin: 1rem 0 0; }
.wf-rule-foot a { color: var(--accent-ink); font-weight: 600; }

.wf-tips { margin-top: 1.8rem; background: var(--cream); border-radius: var(--radius); padding: 1.7rem 1.8rem; }
.wf-tips h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 1rem; text-transform: none; }
.wf-tips ol { margin: 0; padding-left: 1.3rem; }
.wf-tips li { font-size: 0.96rem; line-height: 1.68; margin-bottom: 0.7rem; color: var(--ink); }
.wf-tips li::marker { color: var(--accent-ink); font-weight: 700; }

/* Seasonal canal turn */
.wf-seasonal { padding: 4.5rem 0; background: var(--cream); }
.wf-seasonal-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.wf-seasonal h2 { margin: 0.3rem 0 1rem; }
.wf-seasonal p { line-height: 1.75; margin: 0 0 1rem; }
.wf-seasonal-art svg { width: 100%; height: auto; border-radius: var(--radius); }

@media (max-width: 1080px) {
  .wf-fail-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-anatomy-grid, .wf-rules-grid, .wf-seasonal-inner { grid-template-columns: 1fr; }
  .wf-assessment-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .wf-assessment-figure { justify-self: start; }
}
@media (max-width: 640px) {
  .wf-fail-grid { grid-template-columns: 1fr; }
  .wf-alert-inner { grid-template-columns: 1fr; gap: 0.9rem; padding-left: 1.1rem; }
}

/* ---------- Seller closing checklist (/sellers/closing-checklist) ---------- */
.ck-intro { padding: 2.5rem 0 0; }
.ck-intro-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--cream); border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.ck-intro p { margin: 0; line-height: 1.7; max-width: 60ch; }
.ck-progress-wrap { display: flex; align-items: center; gap: 1.1rem; }
/* Conic-gradient ring — no JS redraw, just a CSS custom property the script sets. */
.ck-progress-ring {
  --ck-pct: 0%;
  width: 78px; height: 78px; border-radius: 50%; flex: none;
  display: flex; align-items: baseline; justify-content: center;
  background: conic-gradient(var(--turquoise) var(--ck-pct), var(--cream-deep) 0);
  position: relative; font-family: var(--font-display); font-weight: 700;
  transition: background 0.3s var(--ease);
}
.ck-progress-ring::before {
  content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--cream);
}
.ck-progress-ring > span { position: relative; z-index: 1; }
.ck-progress-ring [data-ck-count] { font-size: 1.5rem; color: var(--navy); }
.ck-progress-of { font-size: 0.85rem; color: var(--ink-soft); }
.ck-progress-ring.is-complete { background: conic-gradient(#3F6B2E 100%, #3F6B2E 0); }
.ck-progress-actions { display: flex; flex-direction: column; gap: 0.45rem; }
.ck-btn {
  font-family: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--white); border: 1px solid var(--line); color: var(--navy);
}
.ck-btn:hover { border-color: var(--gold); }

.ck-body { padding: 2.5rem 0 4.5rem; }
.ck-container { max-width: 820px; }
.ck-section { margin-bottom: 2.6rem; }
.ck-section-head { border-bottom: 2px solid var(--cream-deep); padding-bottom: 0.8rem; margin-bottom: 1rem; }
.ck-section-head h2 { font-size: 1.45rem; color: var(--navy); margin: 0 0 0.35rem; text-transform: none; }
.ck-section-head p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-item { border-bottom: 1px solid var(--cream-deep); }
.ck-item:last-child { border-bottom: none; }
.ck-item label {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem;
  align-items: start; padding: 0.85rem 0.2rem; cursor: pointer;
}
.ck-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line);
  background: var(--white); flex: none; margin-top: 0.15rem; position: relative;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.ck-item input:checked + .ck-check { background: var(--turquoise); border-color: var(--turquoise); }
.ck-item input:checked + .ck-check::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.ck-item input:focus-visible + .ck-check { outline: 3px solid var(--gold); outline-offset: 2px; }
.ck-title { display: block; font-weight: 600; color: var(--navy); line-height: 1.45; }
.ck-desc { display: block; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); margin-top: 0.25rem; }
.ck-item.is-done .ck-title { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line); }
.ck-item.is-done .ck-desc { opacity: 0.6; }
.ck-linkout { margin: 0.9rem 0 0; font-size: 0.92rem; }
.ck-linkout a { color: var(--accent-ink); font-weight: 600; }
.ck-note {
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.3rem 1.5rem;
}
.ck-note p { margin: 0; line-height: 1.72; }

@media (max-width: 720px) {
  .ck-intro-inner { grid-template-columns: 1fr; }
  .ck-progress-wrap { justify-content: flex-start; }
}
/* Printed, it should look like a checklist you carry around. */
@media print {
  .ck-intro, .cta-band, .site-header, .site-footer, .chat-widget-root { display: none !important; }
  .ck-check { border-color: #333 !important; }
  .ck-item.is-done .ck-title { text-decoration: none; }
}

/* ---------- Guides & Documents: jump-to directory ----------
   Only renders on long documents (8+ categories) — see pages/resources.js.
   scroll-margin-top on the targets keeps the sticky header from covering the
   heading you just jumped to, which is the classic anchor-link annoyance. */
.doc-jump {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 0 0 2.2rem;
}
.doc-jump-title {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 800; margin: 0 0 0.9rem;
}
.doc-jump-group {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); font-weight: 800; margin: 1.3rem 0 0.75rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.doc-jump-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.doc-jump-grid a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.42rem 0.85rem;
  font-size: 0.86rem; font-weight: 600; color: var(--navy); text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.doc-jump-grid a:hover { border-color: var(--gold); background: var(--white); transform: translateY(-1px); }
.doc-jump-grid a:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.doc-jump-grid a span {
  font-size: 0.7rem; font-weight: 700; color: var(--ink-soft);
  background: var(--cream-deep); border-radius: 999px; padding: 0.05rem 0.4rem;
}
.doc-category { scroll-margin-top: 6.5rem; }
/* Brief highlight so it is obvious which section you landed on. */
.doc-category:target h3 { color: var(--accent-ink); }
.doc-category:target { animation: docTargetGlow 1.6s var(--ease); }
@keyframes docTargetGlow {
  0% { background: rgba(234, 101, 45, 0.10); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .doc-category:target { animation: none; } }
@media print { .doc-jump { display: none; } }

/* =========================================================================
   PROPERTY INSIGHTS  (listing detail)
   The panel that answers "what is this, what does it cost relative to
   everything else, and what is it like to live here." Built by
   lib/propertyInsights.js and rendered by pages/listingDetail.js.
   Sits in the same column as the fact table and the true-cost calculator,
   so it inherits that column's width and must not assume a full container.
   ========================================================================= */
.pi {
  margin-top: 2.5rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.pi-head { margin-bottom: 1.5rem; }
.pi-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.36rem 0.8rem 0.36rem 0.62rem; border-radius: var(--radius-pill);
}
.pi-badge .pi-icon { width: 15px; height: 15px; color: var(--gold-light); }
.pi-head h2 { margin: 0.7rem 0 0.35rem; font-size: 1.5rem; line-height: 1.2; }
.pi-lede { margin: 0; font-size: 0.94rem; line-height: 1.65; color: var(--ink-soft); }

.pi-block + .pi-block { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pi-h {
  margin: 0 0 0.9rem; font-family: var(--font-body); font-size: 0.76rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--turquoise-ink);
}
.pi-h-note {
  display: inline-block; margin-left: 0.5rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Market + local insights fold behind one tap (pages/listingDetail.js). */
.pi-more { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pi-more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.98rem;
}
.pi-more > summary::-webkit-details-marker { display: none; }
.pi-more > summary::before { content: 'Show'; }
.pi-more[open] > summary::before { content: 'Hide'; }
.pi-more > summary::after { content: '\2193'; }
.pi-more[open] > summary::after { content: '\2191'; }
.pi-more > summary:hover { border-color: var(--turquoise); }
.pi-more[open] > .pi-block:first-of-type { margin-top: 1.5rem; padding-top: 0; border-top: 0; }

/* --- Key details --- */
.pi-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.9rem; }
.pi-fact {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.85rem 0.95rem;
}
.pi-fact-k {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.pi-fact-v { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.pi-fact-why { font-size: 0.85rem; line-height: 1.55; color: var(--ink-soft); margin-top: 0.15rem; }

/* --- Features & upgrades --- */
.pi-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pi-feature {
  display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 0.3rem 1rem;
  align-items: baseline;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
}
.pi-feature-label { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.pi-feature-why { font-size: 0.87rem; line-height: 1.55; color: var(--ink-soft); }

/* --- Market context --- */
.pi-market-lede { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; color: var(--ink); }
.pi-market-lede strong { color: var(--accent-ink); }
.pi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.8rem; margin-bottom: 0.9rem; }
.pi-stat {
  background: var(--navy); color: var(--white); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.pi-stat-v { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--gold-light); line-height: 1.1; }
.pi-stat-k { font-size: 0.76rem; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }

/* --- Local insights --- */
.pi-local { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 0.9rem; }
.pi-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.pi-card-head { display: flex; align-items: flex-start; gap: 0.55rem; }
.pi-card-head h4 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.pi-card .pi-icon { width: 20px; height: 20px; flex: none; color: var(--turquoise-ink); margin-top: 0.12rem; }
.pi-card p { margin: 0; font-size: 0.89rem; line-height: 1.62; color: var(--ink-soft); }
.pi-card .arrow-link { margin-top: auto; padding-top: 0.3rem; font-size: 0.85rem; }

.pi > .fine-print { margin-top: 1.4rem; }

@media (max-width: 560px) {
  .pi { padding: 1.4rem 1.15rem 1.2rem; }
  .pi-feature { grid-template-columns: 1fr; }
}
@media print {
  .pi { break-inside: avoid; background: none; box-shadow: none; }
  .pi-stat { background: none; color: var(--ink); border: 1px solid var(--line); }
  .pi-stat-v { color: var(--ink); }
  .pi-stat-k { color: var(--ink-soft); }
}

/* =========================================================================
   SHARING
   A share control on every listing card and detail page, plus the single
   share sheet (lib/share.js) that all of them open. Also covers the
   /account/favorites share panel and the public /shared/<token> page.
   ========================================================================= */

/* ---------- the button ---------- */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(4, 22, 27, 0.22);
  color: var(--ink-soft);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.share-btn svg { width: 19px; height: 19px; display: block; }
.share-btn:hover { transform: scale(1.1); background: #fff; color: var(--turquoise-ink); }
.share-btn:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }

/* Detail page: inline beside the address, matching .fav-btn-lg. */
.share-btn-lg {
  width: 46px; height: 46px; flex: 0 0 auto;
  background: var(--cream-deep); box-shadow: none;
}
.share-btn-lg svg { width: 23px; height: 23px; }
.listing-title-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

/* ---------- the sheet ---------- */
.share-sheet {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.share-sheet[hidden] { display: none; }
body.share-open { overflow: hidden; }
.share-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 22, 27, 0.55);
  backdrop-filter: blur(2px);
}
.share-sheet-panel {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.5rem 1.3rem;
  animation: shareIn 0.22s var(--ease);
}
@keyframes shareIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .share-sheet-panel { animation: none; } }

.share-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.share-sheet-head h2 { margin: 0; font-size: 1.3rem; }
.share-sheet-close {
  width: 34px; height: 34px; flex: none; padding: 0; cursor: pointer;
  border: none; border-radius: 50%; background: var(--cream); color: var(--ink-soft);
}
.share-sheet-close svg { width: 17px; height: 17px; display: block; margin: 0 auto; }
.share-sheet-close:hover { background: var(--cream-deep); color: var(--ink); }
.share-sheet-close:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }

.share-sheet-what {
  margin: 0.35rem 0 1.1rem; font-size: 0.92rem; line-height: 1.5;
  color: var(--ink-soft); word-break: break-word;
}
.share-sheet-what:empty { display: none; }

/* ---------- copy row ---------- */
.share-copy { display: flex; gap: 0.5rem; }
.share-copy input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: 0.88rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink-soft);
}
.share-copy-btn { flex: none; padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.share-copied {
  margin: 0.5rem 0 0; min-height: 1.1rem;
  font-size: 0.82rem; font-weight: 600; color: var(--turquoise-ink);
}

/* ---------- channel tiles ---------- */
.share-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.55rem; margin-top: 1rem;
}
.share-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); cursor: pointer;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
  color: var(--ink); text-align: center; text-decoration: none; line-height: 1.25;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.share-tile:hover { border-color: var(--turquoise); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.share-tile:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.share-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand, var(--navy)); color: #fff;
}
.share-tile-icon svg { width: 20px; height: 20px; display: block; }
/* X's mark is already near-black; a black disc would disappear on white. */
.share-tile-x .share-tile-icon { background: #0F1419; }

.share-sheet-foot {
  margin: 1.1rem 0 0; font-size: 0.78rem; line-height: 1.55; color: var(--ink-soft);
}
.share-sheet-foot:empty { display: none; }

/* ---------- share-my-list panel on /account/favorites ---------- */
.share-list-panel {
  background: var(--cream); border: 1px solid var(--line);
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 2rem;
}
.share-list-panel h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.share-list-panel > p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.share-list-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.share-list-result { margin-top: 1rem; }
.share-list-result[hidden] { display: none; }
.share-list-note { margin-top: 0.9rem; }
.share-list-note label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.share-list-note textarea,
.share-list-email input {
  width: 100%; font-family: var(--font-body); font-size: 0.9rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.share-list-note textarea { min-height: 68px; resize: vertical; }
.share-list-email { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.share-list-email input { flex: 1 1 220px; }
.share-list-email button { flex: none; }
.share-list-msg { margin: 0.6rem 0 0; font-size: 0.85rem; font-weight: 600; }
.share-list-msg.is-ok { color: var(--turquoise-ink); }
.share-list-msg.is-err { color: var(--accent-ink); }

/* ---------- the public /shared/<token> page ---------- */
.shared-header { padding: 3rem 0 2rem; background: var(--navy); color: var(--white); }
.shared-header .kicker { color: var(--gold-light); }
.shared-header h1 { margin: 0.5rem 0 0.6rem; color: var(--white); }
.shared-header p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 62ch; line-height: 1.65; }
.shared-note {
  margin-top: 1.3rem; padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; line-height: 1.6; max-width: 62ch;
}
.shared-body { padding: 2.5rem 0 1rem; }
.shared-expiry { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .share-sheet { align-items: flex-end; padding: 0; }
  .share-sheet-panel {
    width: 100%; max-height: 88vh;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.25rem 1.1rem 1.6rem;
  }
  @keyframes shareIn { from { opacity: 0; transform: translateY(100%); } }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}
@media print { .share-btn, .card-actions, .share-sheet, .share-list-panel { display: none !important; } }

/* ---------- About page sign-off ----------
   A letter closing under the bio. Set apart from the body paragraphs by a rule
   and tighter leading so it reads as a signature rather than another
   paragraph, with the email and phone live. */
.about-signoff { margin: 2rem 0 2.5rem; }
.about-signoff p { margin: 0; }
.about-signoff-close { color: var(--ink-soft); margin-bottom: 0.9rem !important; }
.about-signoff-name {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.about-signoff-desig {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--turquoise-ink);
  margin-top: 0.2rem;
}
.about-signoff-id {
  display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap;
}
.about-signoff-contact {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
  margin-top: 0.7rem !important; font-size: 0.94rem;
}
.about-signoff-contact a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.about-signoff-contact a:hover { text-decoration: underline; }
.about-signoff-office {
  margin-top: 0.85rem !important;
  font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft);
}

/* ---------- Signature mark ----------
   Sits between the sign-off and the printed name. Width is capped rather than
   set as a percentage so it stays a plausible pen size instead of scaling up
   to the column width on a wide screen. */
.about-signature {
  margin: 0.5rem 0 0.7rem;
  color: #1B2A4A;              /* blue-black ballpoint */
  max-width: 300px;
}
.about-signature svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 560px) { .about-signature { max-width: 240px; } }
@media print { .about-signature { color: #1B2A4A; } }

/* ---------- "Contact Now!" annotation ----------
   Hand-drawn loop and arrow pointing at the email and phone links, so a reader
   registers they are clickable rather than printed text.

   Sits BESIDE the name in the flex row rather than absolutely positioned, so
   it travels with the block when the column narrows or the name wraps. The
   negative margins line the arrow tip (viewBox 10,94) up with the end of the
   phone number — measured, not guessed. If the name block's width or the row
   gap changes, re-measure rather than nudging these by eye.

   The label is HTML text laid over the SVG rather than <svg><text>: screen
   readers handle it more predictably and the site's translate widget can
   reach it, which it cannot do inside SVG. */
.about-cta {
  position: relative;
  width: 240px; height: 132px; flex: none;
  margin: -1.6rem 0 0 -1.7rem;
  color: var(--gold);
  pointer-events: none;              /* never sits between a finger and a link */
}
.about-cta .cta-mark { width: 100%; height: 100%; display: block; overflow: visible; }
.about-cta-text {
  position: absolute;
  /* Centred on the loop, at roughly (166, 32) of the 240x132 box. */
  left: 69%; top: 24%;
  transform: translate(-50%, -50%) rotate(-3deg);
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--accent-ink); white-space: nowrap;
}

/* Once the row wraps there is nothing to the left to point at, so the mark
   flips vertically and the arrow points UP at the contact line above it.
   Flipping the drawing beats shipping a second one — and the label is a
   separate HTML element, so it simply moves to the loop's new position
   instead of being mirrored with it. */
@media (max-width: 780px) {
  /* Pulled up so the flipped arrow's tip sits just under the contact line
     rather than trailing 60px below it. Measured, like the desktop case. */
  .about-cta { margin: -2.9rem 0 0 1.5rem; width: 214px; height: 118px; }
  .about-cta .cta-mark { transform: scaleY(-1); }
  .about-cta-text { top: 76%; left: 69%; font-size: 0.8rem; }
}
@media print { .about-cta { display: none; } }

/* ---------- Property tax: county estimator link ---------- */
.tax-estimator {
  margin-top: 2rem; background: var(--cream); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; border-top: 5px solid var(--gold);
}
.tax-estimator h3 { margin: 0 0 0.4rem; }
.tax-estimator > p { margin: 0 0 1rem; font-size: 0.93rem; line-height: 1.6; color: var(--ink-soft); }
.tax-estimator-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.tc-basis {
  margin: 0.9rem 0 0; padding: 0.75rem 0.9rem;
  background: var(--white); border-left: 3px solid var(--turquoise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.83rem; line-height: 1.6; color: var(--ink-soft);
}
.tc-hs select {
  width: 100%; font-family: var(--font-body); font-size: 0.92rem;
  padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}

/* =========================================================================
   PROPERTY TAX GUIDE  (/buyers/property-taxes)
   ========================================================================= */
.ptx-alert { padding: 3rem 0 0; }
.ptx-alert-inner {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 2rem 2.2rem;
  border-left: 6px solid var(--gold);
}
.ptx-alert-inner h2 { color: var(--white); margin: 0 0 0.8rem; font-size: 1.5rem; }
.ptx-alert-inner p { margin: 0 0 0.8rem; color: rgba(255,255,255,0.88); line-height: 1.7; max-width: 68ch; }
.ptx-alert-inner p:last-child { margin-bottom: 0; }
.ptx-alert-inner strong { color: var(--gold-light); }

.ptx-timeline { padding: 3.5rem 0 1rem; }
.ptx-lede { max-width: 68ch; color: var(--ink-soft); line-height: 1.7; margin: 0 0 2rem; }
.ptx-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.ptx-steps::before {
  content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px;
  width: 2px; background: var(--line);
}
.ptx-step { display: flex; gap: 1.2rem; margin-bottom: 1.8rem; position: relative; }
.ptx-step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-deep); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--white); z-index: 1;
}
.ptx-step-key .ptx-step-num { background: var(--gold); color: var(--navy-darker); }
.ptx-step-when {
  margin: 0.2rem 0 0.15rem; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--turquoise-ink);
}
.ptx-step h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.ptx-step p { margin: 0; color: var(--ink-soft); line-height: 1.65; max-width: 66ch; }

.ptx-example { padding: 3rem 0; background: var(--cream); }
.ptx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.ptx-col {
  background: var(--white); border: 1px solid var(--line);
  border-top: 5px solid var(--ink-soft);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.ptx-col-good { border-top-color: var(--turquoise); }
.ptx-col h3 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.ptx-figure {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600;
  color: var(--navy); margin: 0 0 0.9rem; line-height: 1.1;
}
.ptx-figure span {
  display: block; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.2rem;
}
.ptx-col ul { margin: 0; padding-left: 1.1rem; }
.ptx-col li { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 0.35rem; }
.ptx-saving {
  margin: 1.4rem 0 0.6rem; font-size: 1.02rem; line-height: 1.65;
  padding: 0.9rem 1.1rem; background: var(--white);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ptx-cards { padding: 3.5rem 0 1rem; }
.ptx-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.ptx-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-soft);
}
.ptx-card h3 { margin: 0 0 0.7rem; font-size: 1.12rem; }
.ptx-card p { margin: 0 0 0.8rem; font-size: 0.92rem; line-height: 1.68; color: var(--ink-soft); }
.ptx-card p:last-child { margin-bottom: 0; }
.ptx-card-watch { border-top: 5px solid var(--gold); }

.ptx-official { padding: 3rem 0 3.5rem; background: var(--cream); }
.ptx-official-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem; margin-bottom: 1.5rem;
}
/* Once the cards stack, the gap is the only thing separating one county's
   button from the next county's heading — 1.4rem is too tight for that. */
@media (max-width: 820px) {
  .ptx-official-grid { gap: 2rem; }
}
.ptx-official-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem 1.5rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s ease;
}
.ptx-official-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.ptx-official-card h3 { margin: 0; font-size: 1.15rem; }
.ptx-official-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--ink-soft); }
/* The estimator link used to be a plain .arrow-link, which read as body text
   and blended into the paragraph above it — people did not realise the card was
   clickable. It is now an obvious button. The card itself is the <a>, so this is
   a styled <span> rather than a nested link, which would be invalid markup. */
.ptx-official-card .ptx-official-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--gold); color: var(--navy-darker);
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 700;
  letter-spacing: 0.03em; white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.ptx-official-card:hover .ptx-official-btn { background: var(--gold-light); transform: translateX(2px); }
.ptx-official-card:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
.ptx-warn {
  background: #FFF3DC; border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.95rem 1.2rem; margin-bottom: 0.9rem;
}
.ptx-warn p { margin: 0; font-size: 0.9rem; line-height: 1.65; }

.ptx-disclosure { padding: 2.5rem 0 3.5rem; }
.ptx-statute {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  line-height: 1.75; letter-spacing: 0.01em; color: var(--ink);
  background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 0 0 1rem;
  max-width: 78ch;
}
@media (max-width: 560px) {
  .ptx-alert-inner { padding: 1.4rem 1.3rem; }
  .ptx-steps::before { left: 15px; }
  .ptx-step-num { width: 32px; height: 32px; font-size: 0.85rem; }
}

/* =========================================================================
   VACANT LAND GUIDE  (/buyers/vacant-land)
   ========================================================================= */
.vl-alert { padding: 3rem 0 0; }
.vl-alert-inner {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 2rem 2.2rem; border-left: 6px solid var(--gold);
}
.vl-alert-inner h2 { color: var(--white); margin: 0 0 0.8rem; font-size: 1.45rem; }
.vl-alert-inner > p { margin: 0 0 1.1rem; color: rgba(255,255,255,0.88); line-height: 1.7; max-width: 70ch; }
.vl-alert-inner a { color: var(--gold-light); }
.vl-checks { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.vl-checks li { color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 0.7rem; max-width: 70ch; }
.vl-checks strong { color: var(--gold-light); }
.vl-alert-foot { font-size: 0.92rem; margin-bottom: 0 !important; }

.vl-section { padding: 3.5rem 0; }
.vl-section-alt { background: var(--cream); }
.vl-lede { max-width: 70ch; color: var(--ink-soft); line-height: 1.75; margin: 0 0 2rem; }

.vl-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.9rem; margin-bottom: 1.6rem;
  box-shadow: var(--shadow-soft); border-top: 5px solid var(--ink-soft);
}
.vl-card-gold { border-top-color: var(--gold); }
.vl-card-red { border-top-color: #C0392B; }
.vl-card-teal { border-top-color: var(--turquoise); }
.vl-card-navy { border-top-color: var(--navy); }
.vl-card h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.vl-card h4 { margin: 1.4rem 0 0.8rem; font-size: 1.02rem; color: var(--navy); }
.vl-card p { line-height: 1.72; color: var(--ink-soft); margin: 0 0 0.9rem; max-width: 72ch; }
.vl-status {
  font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--turquoise-ink) !important; margin-bottom: 1rem !important;
}
.vl-timing { font-size: 0.9rem !important; padding-top: 0.8rem; border-top: 1px solid var(--line); margin-bottom: 0 !important; }

.vl-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.vl-split-col { background: var(--cream); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; border-left: 4px solid var(--turquoise); }
.vl-split-col-warn { border-left-color: #C0392B; }
.vl-split-head { font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft) !important; margin-bottom: 0.3rem !important; }
.vl-split-fig { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; color: var(--navy) !important; margin: 0 0 0.7rem !important; line-height: 1.1; }
.vl-split-col p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.vl-split-note { font-size: 0.84rem !important; font-style: italic; margin-bottom: 0 !important; }

.vl-warn {
  background: #FFF3DC; border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; margin: 0 0 1.2rem;
}
.vl-warn-hot { background: #FDEDEA; border-left-color: #C0392B; }
.vl-warn p { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--ink); max-width: 74ch; }
.vl-warn-inline { font-size: 0.92rem; line-height: 1.7; padding: 0.8rem 1rem; background: var(--cream-deep); border-radius: var(--radius-sm); margin: 0 0 1.2rem; }

.vl-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.vl-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.vl-table th {
  text-align: left; padding: 0.6rem 0.7rem; background: var(--navy); color: #fff;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.vl-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.vl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink) !important; font-weight: 600; }
.vl-num-old { color: var(--ink-soft) !important; font-weight: 400; text-decoration: line-through; }
.vl-row-hi { background: #FFF3DC; }
.vl-row-hi td { color: var(--ink); font-weight: 600; }
.vl-row-note { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-soft); }
.vl-row-total td { border-top: 2px solid var(--navy); border-bottom: none; padding-top: 0.8rem; }

.vl-calendar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.9rem; }
.vl-calendar h3 { margin: 0 0 0.5rem; }
.vl-calendar > p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 1.2rem; max-width: 70ch; }
.vl-cal-bar { display: flex; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.9rem; }
.vl-cal-seg { padding: 0.9rem 1.1rem; color: #fff; }
.vl-cal-seg span { display: block; font-weight: 700; font-size: 0.95rem; }
.vl-cal-seg small { display: block; font-size: 0.78rem; opacity: 0.9; margin-top: 0.15rem; }
.vl-cal-ok { background: var(--turquoise-ink); flex: 7; }
.vl-cal-no { background: #C0392B; flex: 5; }
.vl-cal-note { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

.vl-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 1.6rem; }
.vl-three-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.vl-three-tag { font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--turquoise-ink) !important; margin: 0 0 0.4rem !important; }
.vl-three-col h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.vl-three-col p { font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 0.7rem; }
.vl-three-cost { margin-top: auto !important; margin-bottom: 0 !important; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--navy) !important; }

.vl-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.vl-steps li { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.vl-step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy-darker); font-weight: 700; font-size: 0.9rem;
  font-family: var(--font-body);
}
.vl-steps h3 { margin: 0.2rem 0 0.35rem; font-size: 1.05rem; }
.vl-steps p { margin: 0; color: var(--ink-soft); line-height: 1.7; max-width: 70ch; }
.vl-steps-wide li { margin-bottom: 1.5rem; }

.vl-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.vl-agency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 1.2rem; }
.vl-agency { background: var(--cream); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.vl-agency h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.vl-agency p { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.vl-agency p:last-child { margin-bottom: 0; }
.vl-agency a { color: var(--accent-ink); font-weight: 600; }

.vl-disclosure { padding: 2rem 0 3rem; }
@media (max-width: 560px) {
  .vl-alert-inner, .vl-card { padding: 1.4rem 1.2rem; }
  .vl-cal-seg { padding: 0.7rem 0.6rem; }
  .vl-cal-seg span { font-size: 0.8rem; }
  .vl-cal-seg small { font-size: 0.68rem; }
}

/* A single dated headline figure, used where a component breakdown would read
   as more authoritative than it deserves and go stale faster. */
.vl-figure-block {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 0 0 1.2rem;
  border-left: 6px solid var(--gold);
}
.vl-figure-big {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 600;
  color: var(--gold-light) !important; margin: 0 0 0.5rem !important; line-height: 1.1;
}
.vl-figure-cap {
  margin: 0 !important; font-size: 0.93rem; line-height: 1.7;
  color: rgba(255,255,255,0.88) !important; max-width: 62ch;
}
.vl-figure-cap strong { color: var(--white); }

/* ---------- Privacy policy ---------- */
.pp-body { padding: 3rem 0 4rem; }
.pp-summary {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 1.8rem 2rem; margin-bottom: 2.5rem; border-left: 6px solid var(--gold);
}
.pp-summary h2 { color: var(--white); margin: 0 0 0.9rem; font-size: 1.3rem; }
.pp-summary ul { margin: 0; padding-left: 1.2rem; }
.pp-summary li { color: rgba(255,255,255,0.9); line-height: 1.75; margin-bottom: 0.6rem; max-width: 72ch; }
.pp-summary li:last-child { margin-bottom: 0; }
.pp-summary strong { color: var(--gold-light); }
.pp-summary a { color: var(--gold-light); }
.pp-block { margin-bottom: 2.2rem; max-width: 74ch; }
.pp-block h2 {
  font-size: 1.3rem; margin: 0 0 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.pp-block h3 { font-size: 1.02rem; margin: 1.4rem 0 0.5rem; color: var(--navy); }
.pp-block p { line-height: 1.75; color: var(--ink-soft); margin: 0 0 0.9rem; }
.pp-block ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.pp-block li { line-height: 1.75; color: var(--ink-soft); margin-bottom: 0.5rem; }
.pp-block a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) { .pp-summary { padding: 1.3rem 1.2rem; } }

/* ====================================================================
   Listing page v2 (pages/listingDetail.js): photo grid hero + viewer,
   header with price, quick stats, coloured fact tiles, insights moved up.
   ==================================================================== */
.ld { padding-top: 2rem; }
.ld .back-link { margin-bottom: 1rem; }

/* --- Photo grid (wide screens): one large + four --- */
.ld-gallery { position: relative; margin-bottom: 1.6rem; }
.ldg-grid {
  display: grid; gap: 8px; height: clamp(320px, 46vw, 560px);
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
  border-radius: var(--radius); overflow: hidden;
}
.ldg-cell { position: relative; display: block; overflow: hidden; background: var(--cream-deep); }
.ldg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease, ease), filter 0.2s; }
.ldg-cell:hover img { transform: scale(1.03); filter: brightness(0.94); }
.ldg-cell:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.ldg-main { grid-row: 1 / span 2; }
.ldg-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ldg-n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.ldg-n3 { grid-template-columns: 2fr 1fr; }
.ldg-n4 { grid-template-columns: 2fr 1fr 1fr; }
.ldg-n4 .ldg-cell:nth-child(4) { grid-column: 2 / span 2; }
.ldg-all {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95); color: var(--navy); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.55rem 1rem; font: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-soft);
}
.ldg-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ldg-all:hover { background: var(--white); border-color: var(--turquoise); }
.ldg-strip, .ldg-count { display: none; }
.ld-gallery-empty { aspect-ratio: 16/7; margin-bottom: 1.6rem; }

/* --- Phones: a swipeable strip of every photo --- */
@media (max-width: 720px) {
  .ldg-grid { display: none; }
  .ldg-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius); scrollbar-width: none; aspect-ratio: 4/3; background: var(--cream-deep);
  }
  .ldg-strip::-webkit-scrollbar { display: none; }
  .ldg-slide { flex: 0 0 100%; scroll-snap-align: center; display: block; }
  .ldg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ldg-count {
    display: block; position: absolute; right: 0.7rem; bottom: 0.7rem; pointer-events: none;
    background: rgba(4, 22, 27, 0.72); color: #fff; font-size: 0.78rem; font-weight: 700;
    padding: 0.25rem 0.6rem; border-radius: var(--radius-pill);
  }
}

/* --- Full-screen viewer --- */
html.lbx-lock { overflow: hidden; }
.lbx {
  position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column;
  background: rgba(4, 22, 27, 0.985); color: #fff;
}
.lbx.open { display: flex; }
.lbx-top { display: flex; justify-content: space-between; align-items: center; padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.6rem; }
.lbx-count { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; }
.lbx-btn { background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-weight: 700; }
.lbx-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lbx-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.lbx-btn svg { width: 20px; height: 20px; }
.lbx-close { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.lbx-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem; }
.lbx-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lbx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lbx-prev { left: 1rem; } .lbx-next { right: 1rem; }
.lbx-nav svg { width: 26px; height: 26px; }
.lbx-rail { display: flex; gap: 6px; overflow-x: auto; padding: 0.7rem 1rem max(0.8rem, env(safe-area-inset-bottom)); scrollbar-width: thin; }
.lbx-thumb { flex: 0 0 auto; width: 84px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #0F3F4A; cursor: pointer; opacity: 0.6; }
.lbx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbx-thumb.on, .lbx-thumb:hover { opacity: 1; border-color: var(--gold-light); }
@media (max-width: 720px) {
  .lbx-stage { padding: 0; }
  .lbx-nav { width: 42px; height: 42px; background: rgba(4, 22, 27, 0.55); }
  .lbx-prev { left: 0.4rem; } .lbx-next { right: 0.4rem; }
  .lbx-thumb { width: 64px; height: 46px; }
}

/* --- Header: status, address, price --- */
.ld-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ld-head-main { min-width: 0; flex: 1 1 380px; }
.ld-head h1 { text-transform: none; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.45rem 0 0.25rem; line-height: 1.15; }
.ld-loc { margin: 0; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); }
.ld-tour { margin: 0.45rem 0 0; font-size: 0.88rem; }
.ld-tour a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.ld-tour a:hover { color: var(--accent-ink); }
.ld-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ld-status, .ld-type, .ld-new {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 0.3rem 0.75rem;
}
.ld-status { background: #DCF0E4; color: #1F6B45; }
.ld-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 0.4rem; }
.ld-status-pending, .ld-status-under-contract { background: #FBECC9; color: #7A5200; }
.ld-status-sold, .ld-status-closed { background: #F8DEDA; color: #9E2B2B; }
.ld-type { background: #D6F0EE; color: var(--turquoise-ink); }
.ld-new { background: var(--gold); color: var(--navy-darker); }
.ld-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.ld-price { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--navy); line-height: 1; }
.ld-ppsf { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.ld-head-side .listing-title-actions { margin-top: 0.35rem; }

/* --- Quick stats bar --- */
.ld-quick { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ld-q {
  display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.6rem 1rem 0.6rem 0.8rem;
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.ld-q svg { width: 19px; height: 19px; align-self: center; margin-right: 0.15rem; }
.ld-q strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.ld-q span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.ld-q-beds svg { color: var(--turquoise); } .ld-q-baths svg { color: #3B82B0; } .ld-q-sqft svg { color: var(--gold); }
.ld-q-lot svg { color: #2E8B57; } .ld-q-year svg { color: var(--dusk); }
.ld-ask-jump { display: none; }

/* --- Layout: content + sticky enquiry column --- */
.ld-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 2.5rem; align-items: start; }
.ld-main { min-width: 0; }
.ld-aside { align-self: stretch; } /* full height, so the form inside can stay in view while scrolling */
/* The agent card + form follow you down the page only on screens tall enough to
   show all of it (about 1,050px). On a laptop it stays in place at the top of
   the column, so the bottom of the form is never cut off. */
.ld-aside-inner { position: static; }
@media (min-height: 1050px) and (min-width: 901px) {
  .ld-aside-inner { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 0.5rem 0.75rem; margin: 0 -0.5rem; }
}
.ld-agent {
  display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--harbor-mid) 100%); color: #fff; border-radius: var(--radius);
}
.ld-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light); flex-shrink: 0; }
.ld-agent div { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ld-agent strong { font-size: 0.95rem; }
.ld-agent span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); }
.ld-agent a { color: var(--gold-light); font-weight: 700; font-size: 0.95rem; text-decoration: none; margin-top: 0.15rem; min-height: 40px; display: inline-flex; align-items: center; }
.ld-aside .lead-form { border-top: 5px solid var(--gold); }
.ld-ask-mini { display: none; }
@media (max-height: 1049px) and (min-width: 901px) {
  .ld-ask-mini {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 0.8rem; position: sticky; top: 6rem; margin-top: 1.5rem;
    padding: 1rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
  }
  .ld-ask-mini img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .ld-ask-mini-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .ld-ask-mini-text strong { font-size: 0.98rem; color: var(--navy); }
  .ld-ask-mini-text span { font-size: 0.85rem; color: var(--ink-soft); }
  .ld-ask-mini-actions { display: flex; gap: 0.5rem; width: 100%; }
  .ld-ask-mini-actions .btn { flex: 1; justify-content: center; min-height: 44px; padding: 0.6rem 1rem; }
}

/* --- Cards --- */
.ld-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-soft); margin-bottom: 1.5rem; }
.ld-card-h { font-size: 1.3rem; margin: 0 0 1rem; text-transform: none; }
.ld-facts { border-top: 5px solid var(--navy); }
.ld-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.ld-factlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; margin: 0; }
.ld-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ld-fact dt { color: var(--ink-soft); font-size: 0.92rem; }
.ld-fact dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.ld-tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.85rem 0.95rem; border-radius: var(--radius-sm); border-left: 4px solid; }
.ld-tile-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.ld-tile-v { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.ld-tone-sun { background: #FDEFE7; border-color: var(--gold); } .ld-tone-sun .ld-tile-k { color: var(--accent-ink); }
.ld-tone-sea { background: #E3F4F2; border-color: var(--turquoise); } .ld-tone-sea .ld-tile-k { color: var(--turquoise-ink); }
.ld-tone-harbor { background: #E6EEF1; border-color: var(--navy); } .ld-tone-harbor .ld-tile-k { color: var(--navy); }
.ld-tone-dusk { background: #F3E9EE; border-color: var(--dusk); } .ld-tone-dusk .ld-tile-k { color: var(--dusk); }
.ld-courtesy { margin: -0.6rem 0 1.5rem !important; }
.ld-about { border-top: 5px solid var(--turquoise); }
.ld-about-text p { margin: 0 0 0.9rem; line-height: 1.7; color: var(--ink); }
.ld-more > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--turquoise-ink); display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.1rem; }
.ld-more > summary::-webkit-details-marker { display: none; }
.ld-more > summary::after { content: ' \2193'; }
.ld-more[open] > summary::after { content: ' \2191'; }
.ld-more .ld-more-close, .ld-more[open] .ld-more-open { display: none; }
.ld-more[open] .ld-more-close { display: inline; }
.ld-more[open] > summary { order: 2; }
.ld-more[open] { display: flex; flex-direction: column; }

/* Property insights, now straight under the facts: colour per section */
.ld .pi { margin-top: 0; margin-bottom: 1.5rem; }
.ld .pi-block { border-radius: var(--radius-sm); padding: 1.1rem 1.15rem; border-left: 4px solid; }
.ld .pi-block + .pi-block { margin-top: 1rem; border-top: 0; padding-top: 1.1rem; }
.ld .pi-tone-sea { background: #E3F4F2; border-left-color: var(--turquoise); }
.ld .pi-tone-sun { background: #FDEFE7; border-left-color: var(--gold); }
.ld .pi-tone-sun .pi-h { color: var(--accent-ink); }
.ld .pi-tone-harbor { background: #E6EEF1; border-left-color: var(--navy); }
.ld .pi-tone-harbor .pi-h { color: var(--navy); }
.ld .pi-tone-dusk { background: #F3E9EE; border-left-color: var(--dusk); }
.ld .pi-tone-dusk .pi-h { color: var(--dusk); }
.ld .true-cost { margin-top: 0; margin-bottom: 1.5rem; box-shadow: var(--shadow-soft); }

@media (max-width: 900px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-aside-inner { position: static; }
  .ld-ask-jump {
    display: block; text-align: center; margin: -0.8rem 0 1.5rem; padding: 0.85rem; min-height: 48px; border-radius: var(--radius-pill);
    background: var(--gold); color: var(--navy-darker); font-weight: 700; text-decoration: none;
  }
}
@media (max-width: 720px) {
  .ld-head { align-items: flex-start; }
  .ld-head-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
  .ld-head-side .listing-title-actions { margin-top: 0; margin-left: auto; }
  .ld-card { padding: 1.2rem 1.1rem; }
  .ld-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-factlist { grid-template-columns: minmax(0, 1fr); }
  .ld-q { padding: 0.5rem 0.75rem 0.5rem 0.6rem; }
  .ld-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .ld-quick .ld-q { flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.55rem 0.65rem; }
  .ld-quick .ld-q svg { display: none; }
  .ld-quick .ld-q-lot { grid-column: span 2; }
}

/* Breadcrumbs (listing pages) */
.ld-crumbs { margin: 0 0 1rem; font-size: 0.82rem; }
.ld-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.ld-crumbs li { display: inline-flex; align-items: center; color: var(--ink-soft); min-width: 0; }
.ld-crumbs li + li::before { content: '\203A'; margin: 0 0.5rem; color: var(--line); font-weight: 700; color: var(--ink-soft); }
.ld-crumbs a { color: var(--navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.ld-crumbs { margin-top: -0.5rem; margin-bottom: 0.5rem; }
.ld-crumbs a:hover { text-decoration: underline; }
.ld-crumbs li[aria-current] { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 40px; }
/* Off-market / not found */
.ld-gone-card { border-top: 5px solid var(--gold); padding: 2rem 2.2rem; }
.ld-gone-card h1 { text-transform: none; margin: 0.3rem 0 0.6rem; }
.ld-gone-lede { max-width: 46rem; line-height: 1.7; color: var(--ink-soft); }
.ld-gone-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }


/* =====================================================================
   READABILITY FLOOR (design critique, 10 Oct 2026)
   Bob's buyers and sellers skew 55+, and 11px light-gray capitals were the
   hardest text on the site to read. Two rules:
   1. Labels that carry information (stat labels, form labels, fact names,
      phone/email labels) are set in normal case at 13-14px.
   2. Decorative kickers and tags keep their small capitals but never go
      below 12px.
   Kept at the end of the file so it wins over the original rules.
   ===================================================================== */
.stat-strip-label, .am-tile span, .calc-result-label, .proceeds-scn-head span,
.proceeds-scn-col label, .proceeds-line span, .filter-panel label, .filter-panel .field,
.field-label, .pi-fact-k, .ld-tile-k, .contact-line-label, .bio-feature-sig-role,
.statement-meta-item span, .td-path-meta-label, .doc-item-phone-label, .np-option-label,
.flood-changed-label, .flood-changed-then span, .flood-changed-now span,
.wf-fail-cause span, .wf-fail-symptom span, .bj-tip-label, .fp-myth-label {
  text-transform: none; letter-spacing: 0.01em; font-size: 0.85rem;
}
.kicker, .hero .eyebrow, .hero-cue, .property-badge, .sold-ribbon, .sold-label,
.footer-pref-label, .blog-card-category, .doc-audience-tag, .quick-searches-label,
.map-popup-price span, .hood-tile-county, .hood-tile-go, .quote-figure figcaption,
.gc-proof-kicker, .np-table thead th, .np-section th, .bj-count, .fp-callout-kicker,
.fp-tier-band, .fp-ex-tag, .td-compare-kicker, .td-compare-tag, .td-help-tag,
.land-dd-tag, .flood-alert-kicker, .flood-crs-cap, .lead-form .label-optional,
.bo-club-flag, .bo-club-meta, .wf-alert-kicker, .wf-assessment-cap, .doc-jump-title,
.doc-jump-group, .pi-badge, .ptx-step-when, .vl-three-tag, .ld-status, .ld-type, .ld-new {
  font-size: 0.75rem; /* every one of these was set between 0.6rem and 0.74rem */
}
.pi-card .arrow-link { display: inline-flex; align-items: center; min-height: 40px; }

/* =====================================================================
   BOB'S TRUSTED VENDOR LIST (pages/resources.js, vendorBody)
   Home services in turquoise, closing services in sunset orange, so the
   two halves of the list read as two different kinds of help.
   ===================================================================== */
.vend { padding: 2.5rem 0 1rem; --vc: var(--turquoise); --vc-ink: var(--turquoise-ink); --vc-soft: rgba(23,162,160,0.10); }
.vend [hidden] { display: none !important; }

/* Summary strip + search */
.vend-intro {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center;
  padding: 1.4rem 1.6rem; margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--harbor-mid) 100%); border-radius: var(--radius); box-shadow: var(--shadow);
}
.vend-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.vend-stat { display: flex; flex-direction: column; gap: 0.15rem; color: rgba(255,255,255,0.78); font-size: 0.85rem; }
.vend-stat b { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--gold-light); }
.vend-stat:last-child b { font-size: 1.15rem; padding-top: 0.45rem; }
.vend-search {
  display: flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 0 1rem;
  background: var(--white); border-radius: var(--radius-pill); border: 2px solid transparent; transition: border-color 0.2s ease;
}
.vend-search:focus-within { border-color: var(--gold); }
.vend-search svg { width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
.vend-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 0.75rem 0; }
.vend-status { margin: 0.45rem 0 0 1rem; min-height: 1.2em; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Disclaimer callout */
.vend-note {
  display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 2rem;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
}
.vend-note svg { width: 24px; height: 24px; color: var(--accent-ink); flex-shrink: 0; margin-top: 0.1rem; }
.vend-note p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.vend-note strong { color: var(--ink); }
.vend-note-more { margin-top: 0.4rem; }
.vend-note-more > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; font-size: 0.88rem; font-weight: 600; color: var(--accent-ink); }
.vend-note-more > p { margin-top: 0.2rem; }

/* Service tiles */
.vtiles-nav { margin-bottom: 2.5rem; }
.vtiles-h { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--navy); margin: 0 0 0.75rem; text-transform: none; letter-spacing: 0; }
.vtiles-h:not(:first-child) { margin-top: 1.5rem; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.65rem; }
.vtile {
  --tc: var(--turquoise); --tc-ink: var(--turquoise-ink); --tc-soft: rgba(23,162,160,0.10);
  display: flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.6rem 0.85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.vtile--closing { --tc: var(--gold); --tc-ink: var(--accent-ink); --tc-soft: rgba(234,101,45,0.10); }
.vtile:hover { border-color: var(--tc); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.vtile:focus-visible { outline: 3px solid var(--tc); outline-offset: 2px; }
.vtile-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tc-soft); color: var(--tc-ink); flex-shrink: 0; }
.vtile-icon svg { width: 22px; height: 22px; }
.vtile-name { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.vtile-count { font-size: 0.8rem; font-weight: 700; color: var(--tc-ink); background: var(--tc-soft); border-radius: var(--radius-pill); padding: 0.15rem 0.55rem; }

/* Category sections */
.vgroup-head { margin: 3rem 0 1.25rem; padding-top: 1.5rem; border-top: 2px solid var(--gold); }
.vgroup-head h2 { text-transform: none; color: var(--navy); font-size: 1.5rem; margin: 0; }
.vcat { margin-bottom: 2.5rem; scroll-margin-top: 6.5rem; }
.vcat--closing { --vc: var(--gold); --vc-ink: var(--accent-ink); --vc-soft: rgba(234,101,45,0.10); }
.vcat-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.vcat-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--vc); color: var(--white); flex-shrink: 0; }
.vcat-icon svg { width: 24px; height: 24px; }
.vcat-head h3 { margin: 0; font-size: 1.45rem; text-transform: none; letter-spacing: -0.01em; color: var(--navy); }
.vcat-count { font-size: 0.85rem; font-weight: 600; color: var(--vc-ink); background: var(--vc-soft); border-radius: var(--radius-pill); padding: 0.2rem 0.65rem; }
.vcat-top { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.vcat-top:hover { color: var(--vc-ink); }
.vcat:target .vcat-head h3 { color: var(--vc-ink); }

/* Vendor cards */
.vcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.9rem; }
.vcard {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem 1.15rem 1.05rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(4,22,27,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.vcard::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vc); opacity: 0; transition: opacity 0.2s ease; }
.vcard:hover { border-color: var(--vc); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.vcard:hover::before { opacity: 1; }
.vcard-top { display: flex; align-items: center; gap: 0.8rem; }
.vcard-mono {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--vc-soft); color: var(--vc-ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
}
.vcard-name { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); text-transform: none; letter-spacing: 0; }
.vcard-note { margin: -0.2rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.vcard-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.vcard-call {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.95rem;
  border-radius: var(--radius-pill); background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: background 0.2s ease;
}
.vcard-call svg { width: 15px; height: 15px; flex-shrink: 0; }
.vcard-call small { font-size: 0.78rem; font-weight: 500; opacity: 0.8; }
.vcard-call:hover { background: var(--vc-ink); }
.vcard-call--alt { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.vcard-call--alt:hover { background: var(--navy); color: var(--white); }
.vcard-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 40px; max-width: 100%; padding: 0 0.85rem;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--cream); color: var(--vc-ink);
  font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease;
}
.vcard-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15rem; }
.vcard-chip:hover { border-color: var(--vc); background: var(--white); }
.vcard-call:focus-visible, .vcard-chip:focus-visible, .vcat-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.vend-empty { padding: 1.5rem; margin-bottom: 2rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.vend-empty p { margin: 0; color: var(--ink-soft); }
.vend-empty strong { color: var(--ink); }

@media (max-width: 900px) {
  .vend-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vend { padding-top: 1.75rem; }
  .vend-intro { padding: 1.1rem; }
  .vend-stat b { font-size: 1.45rem; }
  .vend-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vend-stat:last-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 0.4rem; }
  .vend-stat:last-child b { font-size: 1rem; padding-top: 0; }
  .vtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .vtile { padding: 0.55rem 0.6rem; gap: 0.5rem; }
  .vtile-icon { width: 32px; height: 32px; }
  .vtile-icon svg { width: 19px; height: 19px; }
  .vtile-name { font-size: 0.86rem; }
  .vcat-head h3 { font-size: 1.25rem; }
  .vcat-top { margin-left: 0; width: 100%; min-height: 32px; }
  .vcard-grid { grid-template-columns: minmax(0, 1fr); }
  .vcard-call { flex: 1 1 100%; justify-content: center; min-height: 46px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .vcard, .vtile { transition: none; } .vcard:hover, .vtile:hover { transform: none; } }
@media print {
  .vend-search-wrap, .vtiles-nav, .vcat-top { display: none; }
  .vend-intro { background: none; box-shadow: none; padding: 0; }
  .vend-stat, .vend-stat b { color: var(--ink); }
  .vcard { break-inside: avoid; box-shadow: none; }
  .vcard-call { background: none; color: var(--ink); padding: 0; }
}

/* =====================================================================
   RESOURCES HUB (/resources, pages/resources.js): five groups by what the
   visitor wants to do. Same icon language as the vendor list; buying and
   tools in turquoise, selling in sunset orange, living here in harbor navy.
   ===================================================================== */
.rjump {
  display: flex; gap: 0.6rem; margin: 2rem 0 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.2rem;
}
.rjump::-webkit-scrollbar { display: none; }
.rjump a {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--navy); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rjump a svg { width: 20px; height: 20px; color: var(--turquoise-ink); }
.rjump a:hover { border-color: var(--turquoise); box-shadow: var(--shadow-soft); }
.rjump a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.rgroup { --gc: var(--turquoise); --gc-ink: var(--turquoise-ink); --gc-soft: rgba(23,162,160,0.10); padding: 2.25rem 0 0.5rem; scroll-margin-top: 5.5rem; }
.rgroup--sell { --gc: var(--gold); --gc-ink: var(--accent-ink); --gc-soft: rgba(234,101,45,0.10); }
.rgroup--live { --gc: var(--harbor-mid); --gc-ink: var(--navy); --gc-soft: rgba(15,63,74,0.09); }
.rgroup-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.rgroup-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--gc); color: var(--white); flex-shrink: 0; }
.rgroup-icon svg { width: 26px; height: 26px; }
.rgroup-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: none; color: var(--navy); }
.rgroup-head p { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.8rem; }
.rgrid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rcard {
  display: flex; align-items: center; gap: 0.85rem; min-height: 84px; padding: 0.9rem 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.rcard:hover { border-color: var(--gc); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.rcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rcard-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gc-soft); color: var(--gc-ink); flex-shrink: 0; }
.rcard-icon svg { width: 24px; height: 24px; }
.rcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.rcard-title { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--navy); }
.rcard-text { font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }
.rcard-go { color: var(--gc-ink); font-weight: 700; transition: transform 0.2s var(--ease); }
.rcard:hover .rcard-go { transform: translateX(3px); }

.rliving { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.rfeature { display: flex; gap: 0.85rem; padding: 1.1rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gc); border-radius: var(--radius); }
.rfeature p { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); }
.rfeature .rfeature-title { margin: 0; display: inline-block; font-weight: 700; font-size: 1.08rem; color: var(--navy); text-decoration: none; }
a.rfeature-title:hover { color: var(--accent-ink); }
.rchips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.rchips a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.85rem; border-radius: var(--radius-pill);
  background: var(--cream); border: 1px solid var(--line); color: var(--navy); font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rchips a:hover { border-color: var(--gc); background: var(--white); }
.rchips a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.rgroup--pros { padding-top: 2.5rem; }
.rpros {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--harbor-mid) 100%); color: var(--white); text-decoration: none; box-shadow: var(--shadow);
  scroll-margin-top: 5.5rem; transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.rpros:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rpros:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.rpros-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: var(--gold); color: var(--navy-darker); flex-shrink: 0; }
.rpros-icon svg { width: 32px; height: 32px; }
.rpros-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.rpros-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.rpros-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.2; }
.rpros-text { color: rgba(255,255,255,0.82); font-size: 0.98rem; line-height: 1.5; }
.rpros-btn { flex-shrink: 0; }

@media (max-width: 900px) { .rliving { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .rjump { margin: 1.5rem -1.5rem 0.25rem 0; padding-right: 1.5rem; }
  .rjump a { flex: 0 0 auto; }
  .rgroup { padding-top: 1.75rem; }
  .rgroup-icon { width: 42px; height: 42px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rpros { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .rpros-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .rcard, .rpros { transition: none; } .rcard:hover, .rpros:hover { transform: none; } }

/* =====================================================================
   REVIEWS (/reviews, pages/reviews.js) and pull quotes (lib/components.js
   pullQuote) placed on the Sellers, Buyers, Home value, Area information
   and listing pages. Every quote is the client's own words.
   ===================================================================== */
.rvs { padding: 2.5rem 0 3rem; }
.rvs [hidden] { display: none !important; }
.rvs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.rvs-count { margin: 0; font-size: 1rem; color: var(--ink); }
.rvs-count strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-ink); margin-right: 0.15rem; }
.rvs-count span { color: var(--ink-soft); }
.rvs-filter { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.rvs-filter button {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 42px; padding: 0 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.rvs-filter button span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }
.rvs-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.rvs-filter button[aria-pressed="true"] span { color: rgba(255,255,255,0.75); }
.rvs-filter button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.rv {
  position: relative; margin: 0 0 1rem; padding: 1.4rem 1.4rem 1.2rem; break-inside: avoid;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(4,22,27,0.04);
}
.rv-mark { position: absolute; top: 0.2rem; right: 1rem; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--gold); opacity: 0.25; }
.rv blockquote { margin: 0; }
.rv blockquote p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--ink); }
.rv figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.rv-avatar {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: rgba(23,162,160,0.12); color: var(--turquoise-ink); font-family: var(--font-display); font-weight: 600;
}
.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-who strong { color: var(--navy); font-size: 0.98rem; }
.rv-who span { color: var(--ink-soft); font-size: 0.86rem; }
.rv-source { margin: 0.7rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.rv-source a { color: var(--accent-ink); }
.rv-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.rv--featured { margin: 0; border-top: 4px solid var(--gold); padding: 1.7rem 1.7rem 1.4rem; }
.rv--featured blockquote p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.65; }
.rv-wall { columns: 3 300px; column-gap: 1rem; }

/* Pull quote: a band on guide pages, a compact card in the listing sidebar */
.pq { padding: 1rem 0 3rem; }
.pq-card {
  position: relative; max-width: 820px; margin: 0 auto; padding: 2rem 2.25rem 1.6rem; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.pq-mark { display: block; font-family: var(--font-display); font-size: 4rem; line-height: 0.6; height: 1.6rem; color: var(--gold); }
.pq-card blockquote { margin: 0.4rem 0 0; }
.pq-card blockquote p { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.6; color: var(--navy); }
.pq-card figcaption { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.pq-card figcaption strong { color: var(--ink); }
.pq-card figcaption span { color: var(--ink-soft); font-size: 0.88rem; }
.pq-more { display: inline-flex; align-items: center; min-height: 40px; margin-top: 0.5rem; }
.pq-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.pq-foot .pq-more { margin-top: 0; }

/* Bob's Google rating (googleRatingBadge in lib/components.js). The bordered
   pill keeps Google's figures visibly separate from the site's own content,
   and .g-attrib is the "Google Maps" attribution Google's terms require:
   Roboto or the system sans-serif, weight 400, 12-16px, #5E5E5E on a light
   background, one line, untranslated. Don't restyle it past those limits. */
.g-rating {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem;
  padding: 0.5rem 0.95rem; min-height: 44px; box-sizing: border-box;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-size: 0.95rem; line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.g-rating:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.g-rating:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.g-stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 0.04em; color: #CBD5D3; }
.g-stars::before { content: '\2605\2605\2605\2605\2605'; }
.g-stars span { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; white-space: nowrap; color: #F2A71B; }
.g-stars span::before { content: '\2605\2605\2605\2605\2605'; }
.g-rating-score { font-weight: 700; color: var(--navy); }
.g-rating-count { color: var(--ink-soft); }
.g-attrib {
  font-family: Roboto, var(--font-body); font-weight: 400; font-style: normal; font-size: 13px;
  letter-spacing: normal; text-transform: none; color: #5E5E5E; white-space: nowrap;
}
.g-rating--compact { padding: 0.35rem 0.75rem; min-height: 40px; font-size: 0.88rem; }
.g-star { color: #F2A71B; font-size: 1rem; line-height: 1; }
.g-rating--compact .g-attrib { font-size: 12px; }
.g-rating--link { font-weight: 600; color: var(--accent-ink); }
.pq-card--compact { margin-top: 1rem; padding: 1.2rem 1.2rem 1rem; text-align: left; box-shadow: none; }
.pq-card--compact .pq-mark { font-size: 3rem; height: 1.1rem; }
.pq-card--compact blockquote p { font-size: 1rem; line-height: 1.55; }

@media (max-width: 900px) { .rv-featured { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .rvs { padding-top: 1.75rem; }
  .rvs-filter { width: 100%; }
  .rvs-filter button { flex: 1; justify-content: center; }
  .rv-wall { columns: 1; }
  .rv--featured blockquote p { font-size: 1.04rem; }
  .pq-card { padding: 1.6rem 1.25rem 1.3rem; }
  .pq-card blockquote p { font-size: 1.06rem; }
}
@media print { .rvs-filter { display: none; } .rv { box-shadow: none; } }

/* ---------- Bob's listings (/listed-by-bob, pages/bobsListings.js) ---------- */
.bl { padding: 2.25rem 0 3.5rem; }
.bl-filters { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.bl-search { display: flex; gap: 0.5rem; max-width: 520px; }
.bl-search input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 0.95rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.bl-search .btn { flex: 0 0 auto; }
.bl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.bl-row-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-right: 0.3rem; }
.bl-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 42px; padding: 0 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.92rem; text-decoration: none;
}
.bl-chip span { font-size: 0.8rem; color: var(--ink-soft); }
.bl-chip:hover { border-color: var(--navy); }
.bl-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.bl-chip.is-on span { color: rgba(255,255,255,0.75); }
.bl-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.bl-row-sort .bl-chip { min-height: 40px; font-size: 0.85rem; font-weight: 500; }
.bl-count { margin: 0 0 1.25rem; color: var(--ink-soft); }
.bl-count strong { color: var(--navy); }
.bl-count a { margin-left: 0.5rem; font-weight: 600; }
.bl ~ .cta-band .btn + .btn { margin-left: 0.6rem; }
@media (max-width: 600px) {
  .bl-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bl-row::-webkit-scrollbar { display: none; }
  .bl-chip { flex: 0 0 auto; }
  .bl ~ .cta-band .btn { display: flex; justify-content: center; }
  .bl ~ .cta-band .btn + .btn { margin: 0.6rem 0 0; }
}

/* =====================  Anywhere You're Headed  =====================
   /anywhere-youre-headed (pages/anywhere.js) plus the coverage line in the
   MLS Search hero and the referral line in its empty state. */
.search-hero-coverage { margin: 1.4rem 0 0; font-size: 0.95rem; color: rgba(255,255,255,0.72); }
.search-hero-coverage a { color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.search-hero-coverage a:hover { color: var(--white); }
.search-hero--compact .search-hero-coverage { display: none; }

.empty-state-referral { font-size: 0.92rem; color: var(--ink-soft); margin: 1.25rem auto 0; }
.empty-state-referral a { color: var(--turquoise-ink); font-weight: 600; }

.awh-hero { background: linear-gradient(160deg, var(--navy-darker), var(--navy) 55%, var(--harbor-mid)); padding: 4.5rem 0 3.75rem; color: var(--white); }
.awh-hero .kicker a { color: inherit; }
.awh-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 0.6rem; }
.awh-hero-sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 56ch; margin: 0 0 1.75rem; }
.awh-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.awh-coverage { padding: 4rem 0 3.5rem; }
.awh-lede { max-width: 70ch; color: var(--ink-soft); margin: 0 0 2.25rem; }
.awh-region-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.awh-region { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.awh-region h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }
.awh-city-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.awh-chip { display: inline-block; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--cream); color: var(--navy); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.awh-chip:hover { background: var(--turquoise-ink); border-color: var(--turquoise-ink); color: var(--white); }
.awh-coverage-note { max-width: 75ch; margin-top: 1.75rem; }

.awh-florida { background: var(--cream-deep); padding: 4rem 0; }
.awh-florida-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.awh-florida-grid h2 { margin-bottom: 1rem; }
.awh-florida-grid p { color: var(--ink-soft); max-width: 62ch; }
.awh-florida-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.75rem; }
.awh-florida-card h3 { color: var(--white); margin: 0 0 0.6rem; }
.awh-florida-card p { color: rgba(255,255,255,0.78); margin: 0 0 1.25rem; max-width: none; }

.awh-world { background: linear-gradient(170deg, var(--navy-deep), var(--navy-darker)); color: var(--white); padding: 4.25rem 0; }
.awh-world .section-title { color: var(--white); }
.awh-world .awh-lede { color: rgba(255,255,255,0.78); }
.awh-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 1.75rem; }
.awh-stat { border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.awh-stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--gold-light); }
.awh-stat-label { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 0.2rem; }
.awh-world-link { color: rgba(255,255,255,0.78); }
.awh-world-link a { color: var(--turquoise-light); font-weight: 600; }

.awh-steps { padding: 4rem 0; }
.awh-step-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.awh-step { display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.awh-step-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--turquoise-ink); line-height: 1; }
.awh-step h3 { margin: 0.1rem 0 0.5rem; font-size: 1.05rem; }
.awh-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.awh-fine { padding: 0 0 2.5rem; }

@media (max-width: 900px) {
  .awh-region-grid, .awh-step-list { grid-template-columns: 1fr; }
  .awh-florida-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .awh-stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* =====================  Build On Your Lot  =====================
   /build-on-your-lot (pages/buildOnYourLot.js). Hero uses Bob's OWN estate
   aerial (hero-gulf-estate-poster.jpg); swap in SandStar model photos when
   Jim's team supplies them with written permission. */
.bld-hero { position: relative; padding: 5.5rem 0 4.5rem; color: var(--white); overflow: hidden; }
.bld-hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(150deg, rgba(4,22,27,0.92) 0%, rgba(10,46,56,0.82) 55%, rgba(14,105,104,0.55) 100%),
    url('/images/hero-gulf-estate-poster.jpg') center 55% / cover no-repeat;
  transform: scale(1.04);
}
.bld-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.bld-hero .kicker { color: var(--gold-light); }
.bld-hero .kicker a { color: inherit; }
.bld-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; margin-bottom: 0.8rem; }
.bld-hero-sub { color: rgba(255,255,255,0.84); font-size: 1.12rem; max-width: 58ch; margin: 0 0 1.9rem; }
.bld-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.bld-pillars { padding: 3.5rem 0 1rem; }
.bld-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bld-pillar { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--turquoise); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem; }
.bld-pillar h2 { font-size: 1.12rem; margin: 0 0 0.6rem; }
.bld-pillar p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.bld-family { padding: 4rem 0; }
.bld-family-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.bld-family-grid h2 { margin: 0.25rem 0 1rem; }
.bld-family-grid p { color: var(--ink-soft); max-width: 62ch; }
.bld-awards { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.bld-awards h3 { color: var(--gold-light); margin: 0 0 0.9rem; font-size: 1.02rem; }
.bld-awards ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.75rem; }
.bld-awards li { display: grid; gap: 0.1rem; border-left: 3px solid var(--turquoise-light); padding-left: 0.8rem; }
.bld-awards li span { color: rgba(255,255,255,0.72); font-size: 0.86rem; }
.bld-awards-note { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 0; }
.bld-awards-note a { color: var(--turquoise-light); font-weight: 600; }

.bld-steps { background: var(--cream-deep); padding: 4rem 0; }
.bld-step-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.bld-step { display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.bld-step-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--turquoise-ink); line-height: 1; }
.bld-step h3 { margin: 0.1rem 0 0.5rem; font-size: 1.05rem; }
.bld-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.bld-land { padding: 4rem 0 3.5rem; }
.bld-land-lede { color: var(--ink-soft); max-width: 62ch; margin: 0 0 1.4rem; }
.bld-land-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.4rem; }
.bld-chip { display: inline-block; padding: 0.5rem 1.05rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.bld-chip:hover { background: var(--turquoise-ink); border-color: var(--turquoise-ink); color: var(--white); }

.bld-faq { padding: 0 0 4rem; }
.bld-faq-list { display: grid; gap: 0.7rem; margin-top: 1.5rem; max-width: 820px; }
.bld-faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.bld-faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; }
.bld-faq-item[open] summary { border-bottom: 1px solid var(--line); }
.bld-faq-item p { margin: 0; padding: 1rem 1.25rem; color: var(--ink-soft); }

.bld-fine { padding: 0 0 2.5rem; }

@media (max-width: 900px) {
  .bld-pillar-grid, .bld-step-list { grid-template-columns: 1fr; }
  .bld-family-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---- Search landing pages (lib/searchLandings.js) ---- */
.landing-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: -0.75rem 0 1.5rem; font-size: 0.95rem; }
.landing-links a { color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.landing-links a:hover { color: var(--white); }
.landing-more { text-align: center; margin: 2rem 0 0; }
.popular-searches { padding: 3.5rem 0 4rem; background: var(--cream); border-top: 1px solid var(--line); }
.popular-searches .section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 1.5rem; }
.ps-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.75rem 2rem; }
.ps-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 0.7rem; }
.ps-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.ps-group a { color: var(--turquoise-ink); font-weight: 500; font-size: 0.95rem; }
.ps-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-group [aria-current="page"] { color: var(--ink-soft); font-size: 0.95rem; }
.area-more-searches { display: flex; flex-wrap: wrap; gap: 0.45rem 0.6rem; align-items: center; margin: 0.75rem 0 0; font-size: 0.9rem; }
.area-more-searches span { color: var(--ink-soft); font-weight: 600; margin-right: 0.2rem; }
.area-more-searches a { padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--turquoise-ink); font-weight: 500; background: var(--white); }
.area-more-searches a:hover { border-color: var(--turquoise-ink); }
@media (max-width: 900px) { .ps-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ps-groups { grid-template-columns: 1fr; } }

/* ---- Monthly market update (pages/marketUpdates.js) ---- */
.mu-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.mu-form { display: grid; gap: 1rem; }
.mu-towns { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.45rem 1rem; }
.mu-towns legend { padding: 0; margin-bottom: 0.6rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.lead-form .mu-town { flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.lead-form .mu-town input { width: 18px; height: 18px; padding: 0; flex: 0 0 auto; }
.mu-side h2 { font-size: 1.3rem; margin: 0 0 0.75rem; }
.mu-side ul { margin: 0 0 1rem; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.mu-link { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; }
.mu-link h3 { font-size: 1.05rem; margin: 0; text-transform: none; }
.mu-link label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.mu-link input[type="email"] { font-family: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); font-size: 1rem; text-transform: none; letter-spacing: 0; }
.mu-invite { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.9rem; margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.mu-invite a { color: var(--turquoise-ink); }
.mu-invite a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mu-invite span:last-child { font-size: 0.88rem; color: var(--ink-soft); }
.mu-band { padding: 0 0 2.5rem; }
@media (max-width: 860px) { .mu-wrap { grid-template-columns: 1fr; } }
