/* ==========================================================================
   Bayline Realty Group — design system
   Bright, minimal, tech-forward: white surfaces, one electric blue, soft
   grey bands, rounded cards with hairline borders. Plus Jakarta Sans.
   Same class inventory as the other demo sites; the look is all here.
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #131c30;
  --text: #1c2333;
  --muted: #626b7d;
  --paper: #ffffff;
  --soft: #f4f6fb;
  --soft-2: #e9edf5;
  --line: #e3e7ef;
  --blue: #2b59ff;
  --blue-dark: #1d44d6;
  --blue-light: #e9eeff;
  --mint: #12b981;
  --danger: #e0443a;

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 6px 20px rgba(11, 18, 32, .05);
  --shadow: 0 4px 12px rgba(11, 18, 32, .06), 0 24px 48px rgba(11, 18, 32, .10);
  --shadow-lg: 0 12px 30px rgba(11, 18, 32, .12), 0 40px 80px rgba(11, 18, 32, .14);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 720px) { :root { --gutter: 16px; --header-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; color: var(--ink); letter-spacing: -.025em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1400px; }

.display-1 { font-size: clamp(42px, 6vw, 78px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.display-2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); line-height: 1.65; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--blue-light); }
.eyebrow--light { color: #fff; background: rgba(255,255,255,.14); }
.muted { color: var(--muted); }
.serif-i { font-weight: 800; color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 700 14px/1 var(--font-body); letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,18,32,.14); }
.btn:active { transform: translateY(0); }
.btn--tide { --bg: var(--blue); --bd: var(--blue); }
.btn--tide:hover { --bg: var(--blue-dark); --bd: var(--blue-dark); box-shadow: 0 8px 22px rgba(43,89,255,.35); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.4); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--lg { padding: 17px 30px; font-size: 15px; border-radius: 14px; }
.btn--sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--blue); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header (solid white bar, always) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: var(--ink); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-solid, .site-header.is-static { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11,18,32,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brand svg { width: 34px; height: 34px; flex: 0 0 34px; color: var(--blue); }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 13px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.active { color: var(--blue); background: var(--blue-light); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .phone { font-size: 14px; font-weight: 700; color: var(--ink); }
.header-actions .btn { --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; margin-right: -8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; margin: 5px auto; transition: transform .3s, opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) { .header-actions .phone { display: none; } .nav a { padding: 9px 10px; } }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 20px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); overflow: auto; }
  .nav a { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); padding: 10px 0; border-radius: 0; width: 100%; }
  .nav a:hover, .nav a.active { background: none; }
  .nav .nav-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
  .nav .nav-cta a { font: 700 14px/1 var(--font-body); }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 901px) { .nav .nav-cta { display: none; } }

/* ---------- hero: light page header with a rounded photo panel ---------- */
.hero { position: relative; background: var(--soft); color: var(--ink); overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 88px); }
.hero__media { position: absolute; top: calc(var(--header-h) + 28px); right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 28px; width: min(40%, 520px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__inner { width: 100%; min-width: 0; position: relative; }
.hero--short .hero__inner, .hero .hero__inner { padding-right: min(44%, 580px); }
.hero__title { color: var(--ink); max-width: 15ch; margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--blue); }
.hero__sub { font-size: clamp(16px, 1.3vw, 19px); max-width: 52ch; color: var(--muted); margin-bottom: 30px; }
.hero .eyebrow--light { color: var(--blue); background: var(--blue-light); }
.hero .btn--light { --bg: var(--blue); --fg: #fff; --bd: var(--blue); }
.hero .btn--ghost-light { --bg: #fff; --fg: var(--ink); --bd: var(--line); }
.hero__scroll { display: none; }
.hero--short { min-height: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: .5; }
/* A hero that carries the search card needs the full width: the photo becomes a banner above it. */
.hero:has(.search-card) .hero__media { position: relative; top: auto; right: auto; bottom: auto; width: auto; max-width: calc(var(--container) - var(--gutter) * 2); margin: 0 var(--gutter) 36px; padding: 0; aspect-ratio: 3 / 1; max-height: 380px; }
.hero:has(.search-card) .hero__media img { border-radius: var(--radius-lg); }
.hero:has(.search-card) .hero__inner { padding-right: 0; }
.hero:has(.search-card) { padding-top: calc(var(--header-h) + 28px); }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero__media { position: relative; top: auto; right: auto; bottom: auto; width: auto; margin: 0 var(--gutter) 28px; aspect-ratio: 16 / 9; border-radius: 20px; }
  .hero .hero__inner, .hero--short .hero__inner { padding-right: 0; }
}

/* ---------- search card ---------- */
.search-card { width: 100%; background: #fff; color: var(--text); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px; max-width: none; }
.search-card__tabs { display: flex; gap: 4px; padding: 4px 6px 2px; }
.search-card__tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; font: 700 13px/1 var(--font-body); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.search-card__tabs button.is-active { background: var(--ink); color: #fff; }
.search-card__row { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr .8fr auto; gap: 6px; padding: 6px; }
.field { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: 12px; background: var(--soft); border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.field:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.field select, .field input { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; margin: 0; font: 600 15px/1.3 var(--font-body); color: var(--ink); width: 100%; outline: none; }
.field select { padding-right: 18px; cursor: pointer; }
.field--select::after { content: ""; position: absolute; right: 14px; bottom: 16px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search-card__submit { align-self: stretch; border-radius: 12px; padding: 0 26px; --bg: var(--blue); --bd: var(--blue); }
.search-card__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 6px 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); background: #fff; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue-light); }
.chip svg { width: 14px; height: 14px; opacity: .7; }
@media (max-width: 1000px) { .search-card__row { grid-template-columns: 1fr 1fr 1fr; } .search-card__submit { grid-column: 1 / -1; padding: 16px; } }
@media (max-width: 600px) { .search-card__row { grid-template-columns: 1fr 1fr; } .search-card__row .field:first-child { grid-column: 1 / -1; } .search-card__chips { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--sand { background: var(--soft); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.85); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 12px; }
.section-head > a, .section-head > .scroller-nav { flex-shrink: 0; margin-bottom: 8px; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* stats band */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 36px 28px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__value { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stats__value sup { font-size: .5em; vertical-align: top; top: .3em; position: relative; color: var(--blue); }
.stats__label { margin-top: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stats__item { padding: 26px 20px; } .stats__item:nth-child(3) { border-left: 0; } .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- listing cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; gap: 18px; } }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; color: var(--text); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
.card__badge--new { background: var(--blue); color: #fff; }
.card__save { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.94); display: grid; place-items: center; color: var(--ink); transition: background .2s, color .2s; border: 0; cursor: pointer; }
.card__save svg { width: 17px; height: 17px; }
.card__save:hover { background: var(--danger); color: #fff; }
.card__photos { position: absolute; z-index: 2; bottom: 10px; right: 12px; color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(11,18,32,.55); }
.card__photos svg { width: 14px; height: 14px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 5px; }
.card__price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.card__price small { font: 600 13px var(--font-body); color: var(--muted); margin-left: 4px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.card__meta b { color: var(--text); font-weight: 700; }
.card__address { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__city { font-size: 13.5px; color: var(--muted); }
.card--skeleton .card__media { background: linear-gradient(90deg, var(--soft-2) 25%, #f7f9fc 50%, var(--soft-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.card--skeleton .card__body > span { display: block; height: 14px; border-radius: 6px; background: var(--soft-2); margin: 6px 0; }
.card--skeleton .card__body > span:first-child { height: 24px; width: 45%; }
.card--skeleton .card__body > span:nth-child(2) { width: 70%; }
.card--skeleton .card__body > span:nth-child(3) { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { grid-column: 1 / -1; padding: 60px 24px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }

/* horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: -8px calc(var(--gutter) * -1) 0; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1300px) { .scroller { grid-auto-columns: 340px; } }
.scroller-nav { display: flex; gap: 8px; }
.scroller-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.scroller-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.scroller-nav svg { width: 18px; height: 18px; }

/* ---------- community cards: photo on top, text below ---------- */
.community { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.community:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.community img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.community:hover img { transform: scale(1.04); }
.community::after { display: none; }
.community__body { position: relative; inset: auto; z-index: 2; padding: 18px 20px 20px; background: #fff; }
.community__name { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.community__tag { margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.community__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.community__cta svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.community:hover .community__cta svg { transform: translateX(3px); }
.community--wide img { aspect-ratio: 16 / 9; }

/* ---------- split editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--landscape { aspect-ratio: 5 / 4; }
.split__badge { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 260px; }
.split__badge b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--blue); line-height: 1; }
.split__badge span { font-size: 13px; color: var(--muted); }
.split__body .h2, .split__body .display-2 { margin-bottom: 20px; }
.split__body p { color: var(--muted); font-size: 17px; }
.split__body .btn { margin-top: 28px; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } .split__media { aspect-ratio: 4 / 3; } }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; color: var(--text); }
.feature-list li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b59ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; margin-top: 1px; }

/* ---------- map band ---------- */
.map-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; background: var(--ink); }
.map-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.map-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,18,32,.96) 0%, rgba(11,18,32,.8) 50%, rgba(43,89,255,.35) 100%); }
.map-band .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.map-band h2 { color: #fff; }
.map-band p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 52ch; }
.map-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.map-band__panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 26px; backdrop-filter: blur(10px); }
.map-band__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.map-band__panel li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.8); }
.map-band__panel li svg { flex: 0 0 22px; width: 22px; height: 22px; color: #8fa8ff; }
.map-band__panel li b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
@media (max-width: 860px) { .map-band .container { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.quote__mark { font-family: var(--font-display); font-size: 48px; line-height: .6; color: var(--blue); font-weight: 800; }
.quote p { font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--ink); flex: 1; letter-spacing: -.01em; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.quote footer b { display: block; color: var(--text); font-weight: 700; }
.quote__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; font: 800 13px var(--font-body); letter-spacing: .02em; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 13px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- lead form / CTA band (blue) ---------- */
.cta-band { background: linear-gradient(135deg, #2b59ff 0%, #1a3ed8 60%, #12266e 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); pointer-events: none; }
.cta-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 17px; }
.cta-band .eyebrow--light { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.form .field { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.form .field:focus-within { background: rgba(255,255,255,.16); border-color: #fff; box-shadow: none; }
.form .field label { color: rgba(255,255,255,.7); }
.form .field input, .form .field select, .form .field textarea { color: #fff; }
.form .field select option { color: var(--ink); }
.form .field textarea { border: 0; background: transparent; resize: vertical; min-height: 96px; font: 600 15px/1.5 var(--font-body); outline: none; width: 100%; padding: 0; }
.form .field input::placeholder, .form .field textarea::placeholder { color: rgba(255,255,255,.45); }
.form .span-2 { grid-column: 1 / -1; }
.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255,255,255,.6); }
.form--light .field { background: var(--soft); border-color: transparent; }
.form--light .field:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form--light .field label { color: var(--muted); }
.form--light .field input, .form--light .field select, .form--light .field textarea { color: var(--ink); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: #9aa3b5; }
.form--light .form__note { color: var(--muted); }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 14px; font-weight: 600; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.is-ok { display: block; background: rgba(255,255,255,.18); color: #fff; }
.form--light .form-status.is-ok { background: #e3f8ef; color: #0d7a55; }
.form-status.is-err { display: block; background: rgba(224,68,58,.25); color: #ffd9d6; }
.form--light .form-status.is-err { background: #fdeceb; color: var(--danger); }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer (light) ---------- */
.site-footer { background: #fff; color: var(--muted); padding: 64px 0 32px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .brand { margin-bottom: 18px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer__grid h4 { font: 700 12px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__grid a { font-weight: 500; }
.footer__grid a:hover { color: var(--blue); }
.footer__about { max-width: 38ch; line-height: 1.7; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--blue); }
.footer__legal { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding-top: 28px; font-size: 12.5px; line-height: 1.6; color: #8b93a5; }
.footer__legal svg { width: 44px; height: 44px; color: #b7bdcb; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 12.5px; color: #8b93a5; }
.footer__bottom a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__legal { grid-template-columns: 1fr; } }

.footer__sites { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: #a3aabb; }
.footer__sites a:hover { color: var(--blue); }
.footer__sites [aria-current] { color: var(--ink); }

/* ---------- page-specific helpers ---------- */
.page-intro { max-width: 760px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; background: #fff; border-radius: 16px; padding: 8px; border: 1px solid var(--line); margin-bottom: 32px; }
.filters .field { min-width: 150px; flex: 1; }
.filters .field--select::after { bottom: 15px; }
.filters .btn { align-self: center; }
.results-count { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.results-count b { color: var(--ink); font-weight: 800; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 24px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--blue); background: var(--blue-light); padding: 6px 10px; border-radius: 8px; line-height: 1; display: inline-block; margin-bottom: 18px; }
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-light); color: var(--blue); margin-bottom: 18px; }
.pillar h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.pillar p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; }
.stat-row div { padding: 20px; background: var(--soft); border-radius: 14px; }
.stat-row b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat-row span { font-size: 13px; color: var(--muted); }
.stat-row b.is-loading { color: var(--soft-2); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 20px; }
.contact-info div { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--blue-light); color: var(--blue); flex: 0 0 40px; }
.contact-info b { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.contact-info span { color: var(--muted); font-size: 15px; }
.notice { padding: 18px 22px; border-radius: 14px; background: var(--blue-light); color: var(--blue-dark); font-size: 14.5px; font-weight: 500; }
.prose p { font-size: 17px; color: var(--muted); line-height: 1.75; }
.prose p:first-of-type { color: var(--text); }

/* IDX hosted page wrapper */
body.idx-wrapper-page { background: var(--soft); }
.idx-shell { padding-top: calc(var(--header-h) + 24px); min-height: 50vh; }
.idx-shell .container { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; margin-bottom: 48px; }
@media (max-width: 720px) { .idx-shell .container { padding: 12px; border-radius: 12px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; } .reveal[data-delay="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

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

/* ---------- IDX hosted page overrides (styles.css loads after IDX's own CSS inside the wrapper) ---------- */
body.idx-wrapper-page #IDX-main, body.idx-wrapper-page .IDX-wrapper-standard { font-family: var(--font-body); color: var(--text); }
body.idx-wrapper-page #IDX-main a { color: var(--blue); }
body.idx-wrapper-page .IDX-btn-primary, body.idx-wrapper-page .IDX-btn-primary:hover, body.idx-wrapper-page .IDX-btn-primary:focus,
body.idx-wrapper-page #IDX-main input[type="submit"], body.idx-wrapper-page #IDX-main button[type="submit"],
body.idx-wrapper-page .IDX-btn__PL { background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important; border-radius: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; }
body.idx-wrapper-page .IDX-btn-primary:hover, body.idx-wrapper-page #IDX-main input[type="submit"]:hover { background: var(--blue-dark) !important; border-color: var(--blue-dark) !important; }
body.idx-wrapper-page .IDX-btn--link, body.idx-wrapper-page .IDX-btn-link { color: var(--ink) !important; border-color: var(--line) !important; border-radius: 12px !important; text-transform: none !important; }
body.idx-wrapper-page .IDX-btn--link:hover, body.idx-wrapper-page .IDX-btn-link:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
body.idx-wrapper-page #IDX-main h1, body.idx-wrapper-page #IDX-main h2, body.idx-wrapper-page #IDX-main h3,
body.idx-wrapper-page .IDX-detailsAddress, body.idx-wrapper-page #IDX-detailsAddress { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
body.idx-wrapper-page #IDX-main .IDX-panel-heading, body.idx-wrapper-page #IDX-main .IDX-panel-title { background: var(--soft) !important; color: var(--ink) !important; border-color: var(--line) !important; }
body.idx-wrapper-page #IDX-main .IDX-newSearchLink, body.idx-wrapper-page #IDX-detailsNewSearch, body.idx-wrapper-page .IDX-navHeader { background: var(--ink) !important; }
body.idx-wrapper-page #IDX-main .IDX-resultsPrice, body.idx-wrapper-page #IDX-main .IDX-price { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
body.idx-wrapper-page .IDX-resultsCell, body.idx-wrapper-page .IDX-panel { border-radius: 12px; }
body.idx-wrapper-page .idx-nav-button-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
body.idx-wrapper-page #IDX-main a.idx-nav-button { background: var(--soft) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; padding: 9px 16px !important; font: 700 13px/1 var(--font-body) !important; text-decoration: none !important; opacity: 1 !important; }
body.idx-wrapper-page #IDX-main a.idx-nav-button:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
body.idx-wrapper-page #IDX-main a.idx-nav-button__active { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
body.idx-wrapper-page .no-gap-hr { border: 0; border-top: 1px solid var(--line); }
body.idx-wrapper-page .idx-filter-button { border-radius: 10px !important; border-color: var(--line) !important; }

/* Map search: full-bleed, full-height. Other hosted pages stay in the contained card. */
body.idx-wrapper-page .idx-shell:has(.IDX-page-mapsearch) { padding-top: var(--header-h); }
body.idx-wrapper-page .idx-shell .container:has(.IDX-page-mapsearch) { max-width: none; padding: 0; border-radius: 0; border: 0; margin-bottom: 0; background: #fff; }
body.idx-wrapper-page .IDX-page-mapsearch #navigation-container, body.idx-wrapper-page .IDX-page-mapsearch #prime-map-search--filter-bar { padding-left: var(--gutter); padding-right: var(--gutter); }
body.idx-wrapper-page .IDX-page-mapsearch .idx-nav-button-container { margin-top: 14px; }
body.idx-wrapper-page #prime-map-search-page { min-height: calc(100vh - var(--header-h) - 60px); display: flex; flex-direction: column; }
body.idx-wrapper-page #prime-map-search-page > *:last-child { flex: 1; }
body.idx-wrapper-page .IDX-page-mapsearch .leaflet-container, body.idx-wrapper-page .IDX-page-mapsearch #prime-map-search--map, body.idx-wrapper-page .IDX-page-mapsearch [id*="map-container"] { min-height: calc(100vh - var(--header-h) - 150px); }

/* Search results with the map: full-bleed too, so the map and listing column use the whole screen. */
body.idx-wrapper-page .idx-shell:has(.IDX-page-listings.IDX-category-results) { padding-top: var(--header-h); }
body.idx-wrapper-page .idx-shell .container:has(.IDX-page-listings.IDX-category-results) { max-width: none; padding: 16px var(--gutter) 24px; border-radius: 0; border: 0; margin-bottom: 0; }
/* Results pages: give the map + listing grid an explicit height so the map fills the viewport and the listing column scrolls inside it. */
/* IDX caps the results wrapper at a fixed height and lets the grid shrink to fit; release both so the grid height below wins. */
body.idx-wrapper-page #IDX-main.IDX-page-listings, body.idx-wrapper-page #IDX-main.IDX-page-listings .idx-results { height: auto !important; max-height: none !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) { flex: 0 0 auto !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) { height: calc(100vh - var(--header-h) - 200px) !important; min-height: 560px !important; max-height: none !important; overflow: hidden !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) #IDX-map, body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) .idx-map { height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: none !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) .idx-results__listings { max-height: 100% !important; overflow-y: auto !important; scrollbar-width: thin; padding-right: 4px; }
body.idx-wrapper-page .IDX-page-listings .idx-results { padding-bottom: 28px; }
body.idx-wrapper-page .idx-listing-card { border-radius: 12px; }

@media (min-width: 1288px) { .hero:has(.search-card) .hero__media { margin-left: auto; margin-right: auto; } }
