/* ==========================================================================
   Public Property Sites — Design System v3
   --------------------------------------------------------------------------
   Rounded, warm, high-energy — pill controls, soft colored shadows, filled
   icon chips. One per-site accent (--brand-primary, from Publishing_Site__c)
   drives CTAs/price/links; a warm secondary (--brand-secondary) gives every
   accent a complementary partner instead of a single flat color. Neutrals,
   radii, and type are fixed across all 5 sites.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/lora-variable.woff2') format('woff2'); }

:root {
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px;
  --fs-sm: 0.875rem; --fs-base: 1rem; --fs-md: 1.25rem; --fs-lg: 1.625rem; --fs-xl: 2.125rem; --fs-2xl: 2.75rem;

  --ink: #17212b;
  --paper: #ffffff;
  --paper-soft: #f4f7f7;
  --c-text: #1c2530; --c-text-soft: #56606c; --c-text-faint: #6b7280;
  --c-bg: var(--paper); --c-bg-soft: var(--paper-soft); --c-border: #e6ebea;
  --c-success: #1f9d6f; --c-error: #e0523a;

  --radius: 22px; --radius-sm: 14px; --radius-pill: 999px;
  --shadow-rest: 0 2px 8px rgba(23,33,43,.06);
  --shadow-raised: 0 20px 40px -16px rgba(23,33,43,.22);
  --shadow-float: 0 28px 56px -18px rgba(23,33,43,.28);
  --shadow-glow: 0 14px 30px -10px color-mix(in srgb, var(--brand-primary, #4F46E5) 55%, transparent);

  /* Raw --brand-accent is tuned for fills/borders/icons on light backgrounds - as a vivid brand
     color it often can't clear 4.5:1 as running TEXT on white (confirmed: #10B981 measures only
     2.54:1 there). This darkened variant is for accent text on a light ground specifically. */
  --brand-accent-text: color-mix(in srgb, var(--brand-accent, var(--ink)) 65%, black);
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-stack);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-primary, #4F46E5); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-primary, #4F46E5); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
.mono, .tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-primary, #4F46E5) 14%, white);
  color: var(--brand-primary, #4F46E5);
}
.icon-chip .icon { width: 18px; height: 18px; }

/* ---------- Header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .2s ease-out;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0,0,0,.5); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 76px; gap: var(--s-2) var(--s-3); padding-top: var(--s-2); padding-bottom: var(--s-2); }
.brand { display: flex; align-items: center; gap: var(--s-2); min-width: 0; flex: 1 1 auto; font-weight: 800; font-size: clamp(1rem, 0.85rem + 0.6vw, 1.35rem); color: #fff; text-decoration: none; letter-spacing: -.02em; }
.brand img { height: 36px; width: auto; flex: 0 0 auto; }
.site-nav { display: none; align-items: center; gap: var(--s-4); }
.site-nav a { color: #a9b2bd; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: color .15s ease-out; }
.site-nav a:hover { color: var(--brand-accent, #F59E0B); }
@media (min-width: 640px) { .site-nav { display: flex; } }
.header-phone {
  font-weight: 700; text-decoration: none; white-space: nowrap; color: #fff;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-accent, #F59E0B), color-mix(in srgb, var(--brand-accent, #F59E0B) 70%, black));
  box-shadow: 3px 3px 0 0 color-mix(in srgb, var(--brand-accent, #F59E0B) 55%, black);
  transition: transform .15s ease-out, box-shadow .15s ease-out, filter .15s ease-out;
}
.header-phone:hover {
  transform: translate(-1px, -1px); filter: brightness(1.07);
  box-shadow: 5px 5px 0 0 color-mix(in srgb, var(--brand-accent, #F59E0B) 55%, black);
}
.header-phone:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 color-mix(in srgb, var(--brand-accent, #F59E0B) 55%, black); }

.site-footer { margin-top: var(--s-7); background: var(--ink); padding: var(--s-6) 0 0; font-size: var(--fs-sm); color: #a9b2bd; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1.6fr 1fr 1fr; padding-bottom: var(--s-6); }
.footer-brand-name { display: block; color: #fff; font-size: var(--fs-md); font-weight: 800; }
.footer-blurb { margin-top: var(--s-2); color: #9aa4b2; max-width: 42ch; }
.footer-col-title { color: #fff; font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--s-3); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-links a { color: #a9b2bd; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-nap { font-style: normal; line-height: 1.9; }
.footer-nap a { color: #a9b2bd; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: var(--s-4) 0 var(--s-5); color: #8590a0; }
.recaptcha-notice { font-size: 0.75rem; margin-top: var(--s-2); color: #6b7480; }
.recaptcha-notice a { color: #8590a0; text-decoration: underline; }
.recaptcha-notice a:hover { color: #a9b2bd; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Google's own documented method for hiding the badge - required to also show the equivalent
   attribution text elsewhere on the page (see .recaptcha-notice), per reCAPTCHA's terms of use. */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Hero (listing page) ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 77px); min-height: calc(100dvh - 77px);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0),
    linear-gradient(150deg, var(--brand-primary, #4F46E5) 0%, color-mix(in srgb, var(--brand-primary, #4F46E5) 55%, #0b0f2e) 100%);
  background-size: 24px 24px, auto;
  background-repeat: repeat, no-repeat;
  color: #fff; padding: var(--s-7) 0;
}
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: var(--s-4); transform: translateX(-50%); z-index: 1;
  width: 30px; height: 30px; border-radius: var(--radius-pill); border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; color: #fff;
  animation: heroScrollCueBounce 2s ease-in-out infinite;
}
.hero-scroll-cue .icon { width: 14px; height: 14px; }
@keyframes heroScrollCueBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-secondary, #F59E0B) 65%, transparent) 0%, transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -30% -10%; width: 45%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .04em; padding: 6px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.16); color: #fff; margin-bottom: var(--s-4);
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2.75rem, 2.1rem + 2.6vw, 4rem); font-weight: 700; line-height: 1.03; max-width: 16ch; letter-spacing: -.01em; text-wrap: balance; }
.hero-tagline { margin-top: var(--s-3); font-size: var(--fs-lg); font-weight: 700; color: #fff; max-width: 46ch; }
.hero p { margin-top: var(--s-2); font-size: var(--fs-md); color: rgba(255,255,255,.88); max-width: 48ch; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.cta-btn.cta-btn--hero {
  display: inline-flex; align-items: center; gap: 10px; width: auto; margin: 0; padding: 0 var(--s-5); min-height: 52px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: var(--fs-base);
  border-radius: var(--radius-pill); box-shadow: 0 12px 24px -10px rgba(0,0,0,.45);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.cta-btn--hero .cta-btn-arrow { width: 18px; height: 18px; transition: transform .15s ease-out; }
.cta-btn.cta-btn--hero:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(0,0,0,.5); filter: none; }
.cta-btn--hero:hover .cta-btn-arrow { transform: translateX(3px); }
.cta-btn.cta-btn--hero:active { transform: translateY(0); box-shadow: 0 8px 16px -10px rgba(0,0,0,.4); filter: none; }
.cta-btn.cta-btn--hero-ghost {
  display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0; padding: 0 var(--s-5); min-height: 52px;
  background: transparent; color: #fff; font-weight: 700; font-size: var(--fs-base); box-shadow: none;
  border-radius: var(--radius-pill); border: 1.5px solid rgba(255,255,255,.5);
  transition: transform .15s ease-out, background .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.cta-btn--hero-ghost .icon { width: 18px; height: 18px; }
.cta-btn.cta-btn--hero-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); box-shadow: none; }
.cta-btn.cta-btn--hero-ghost:active { transform: none; box-shadow: none; }

/* ---------- Hero visual (featured/newest listing photo) ---------- */
.hero-visual { position: relative; z-index: 1; display: none; }
@media (min-width: 960px) { .hero-visual { display: block; margin-right: var(--s-5); } }
.hero-visual-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-float);
  border: 6px solid rgba(255,255,255,.18); transform: rotate(1.5deg);
}
.hero-visual-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-card {
  position: relative; z-index: 2; margin: calc(-1 * var(--s-5)) 0 0 calc(-1 * var(--s-4)); width: max-content; max-width: 220px;
  background: var(--paper); color: var(--c-text); border-radius: var(--radius); padding: var(--s-3) var(--s-4);
  box-shadow: var(--shadow-float); transform: rotate(-1.5deg);
}
.hero-visual-eyebrow { display: block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-accent-text); }
.hero-visual-card p.hero-visual-price { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; color: var(--ink); margin-top: 2px; }
.hero-visual-card p.hero-visual-title { font-size: var(--fs-sm); color: var(--c-text-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper-soft); color: var(--c-text-soft); padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); font-weight: 600; text-align: center;
}
.trust-bar .icon { flex: 0 0 auto; width: 15px; height: 15px; color: var(--brand-primary, #4F46E5); }

/* ---------- Content bands (About / Local Market / FAQ / Why Invest / Testimonials) ----------
   Shared full-bleed section wrapper: consistent generous padding + a hairline top border so
   each named section reads as a clear, separate block regardless of which subset a given brand
   has actually configured. --tinted gives a couple of sections a subtle brand-colored wash
   instead of plain white, for variety without fragile DOM-order alternation logic (these
   sections render conditionally, so a simple odd/even rule would shift unpredictably depending
   on what's configured for a given site). */
.content-band { padding: var(--s-7) 0; border-top: 1px solid var(--c-border); }
.content-band--tinted { background: color-mix(in srgb, var(--brand-primary, #4F46E5) 6%, var(--paper)); border-top: none; }
.content-band--tinted-alt { background: color-mix(in srgb, var(--brand-accent, #F59E0B) 6%, var(--paper)); border-top: none; }
.section-kicker {
  display: block; width: 44px; height: 4px; border-radius: var(--radius-pill); margin-bottom: var(--s-3);
  background: linear-gradient(90deg, var(--brand-accent, #F59E0B), var(--brand-primary, #4F46E5));
}
.section-kicker--center { margin-left: auto; margin-right: auto; }

/* ---------- Value props (listing page) ---------- */
.value-props { background: var(--c-bg-soft); border-top: none; }
.value-props-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .value-props-grid { grid-template-columns: repeat(3, 1fr); } }
.value-prop {
  display: flex; align-items: flex-start; gap: var(--s-3); background: var(--paper);
  border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-rest);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.value-prop:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.value-prop-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--radius-pill); font-size: var(--fs-md); font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-primary, #4F46E5) 60%, black));
}
.value-prop p { font-weight: 700; color: var(--c-text); padding-top: 10px; }

/* ---------- How It Works page ---------- */
.how-it-works-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .how-it-works-grid { grid-template-columns: repeat(2, 1fr); } }
.how-it-works-step {
  background: var(--paper); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-rest);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.how-it-works-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.how-it-works-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: var(--radius-pill); margin-bottom: var(--s-3); color: #fff;
  background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-primary, #4F46E5) 60%, black));
}
.how-it-works-step h2 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--s-2); }
.how-it-works-step p { color: var(--c-text-soft); }

/* ---------- Filter bar (independent per-facet dropdown buttons) ----------
   Modeled on Zillow/Redfin: a row of small, independent pill buttons/selects that hug their own
   content (not one screen-wide bar) - "Price" and "Beds & Baths" open their own popover directly
   below themselves; "Type" and "Sort" are single-value fields so a plain compact select suffices,
   no popover needed. Progressive enhancement: popovers have no `hidden` attribute in the
   server-rendered markup (fully visible/usable with no JS, exactly like the original inline
   layout); main.js collapses them once script has run - see "Filter dropdowns" there. */
.filters-wrap { margin-top: var(--s-6); position: relative; z-index: 5; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

.filter-dd { position: relative; }
.filter-dd-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--c-text);
  background: var(--paper); border: 1px solid var(--c-border); border-radius: var(--radius-pill); padding: 10px 16px;
  cursor: pointer; white-space: nowrap; transition: border-color .15s ease-out, background .15s ease-out, box-shadow .15s ease-out;
}
.filter-dd-btn:hover { border-color: color-mix(in srgb, var(--brand-primary, #4F46E5) 35%, var(--c-border)); box-shadow: var(--shadow-rest); }
.filter-dd-btn .chevron { width: 13px; height: 13px; color: var(--c-text-faint); transition: transform .15s ease-out, color .15s ease-out; }
.filter-dd-btn[aria-expanded="true"] { border-color: var(--brand-primary, #4F46E5); box-shadow: var(--shadow-rest); }
.filter-dd-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.filter-dd-btn.is-active { border-color: var(--brand-primary, #4F46E5); color: var(--brand-primary, #4F46E5); background: color-mix(in srgb, var(--brand-primary, #4F46E5) 6%, white); }
.filter-dd-btn.is-active .chevron { color: var(--brand-primary, #4F46E5); }

.filter-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20;
  width: max-content; min-width: 240px; max-width: min(320px, calc(100vw - 32px));
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-float); padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  animation: filterDdOpen .15s ease-out both;
}
.filter-dd-panel[hidden] { display: none; }
.filter-dd-panel .field { display: flex; flex-direction: column; gap: 4px; }
.filter-dd-panel label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-faint); }
.filter-dd-panel select, .filter-dd-panel input {
  font: inherit; font-size: 0.92rem; font-weight: 600; min-height: 40px; padding: 8px 12px; color: var(--c-text);
  background: var(--paper-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.filter-dd-panel select:focus-visible, .filter-dd-panel input:focus-visible { outline: none; border-color: var(--brand-primary, #4F46E5); }

@keyframes filterDdOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.filter-pill-select {
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--c-text); background: var(--paper);
  border: 1px solid var(--c-border); border-radius: var(--radius-pill); padding: 10px 16px; cursor: pointer;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.filter-pill-select:hover { border-color: color-mix(in srgb, var(--brand-primary, #4F46E5) 35%, var(--c-border)); box-shadow: var(--shadow-rest); }
.filter-pill-select:focus-visible { outline: 2px solid var(--brand-primary, #4F46E5); outline-offset: 1px; }

.sort-field { margin-left: auto; }
.sort-select { max-width: 190px; text-overflow: ellipsis; }

.filters noscript .cta-btn { border-radius: var(--radius-pill) !important; width: auto; }

@media (max-width: 640px) {
  .sort-field { margin-left: 0; }
  .filter-dd-btn, .filter-pill-select { padding: 8px 12px; font-size: 0.8rem; }
  .sort-select { max-width: 150px; }
}

.result-count { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-soft); margin: var(--s-5) 0 var(--s-3); }
#active-filter-count { font-weight: 600; color: var(--brand-primary, #4F46E5); }

.result-count-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.result-count-row .result-count { margin: var(--s-5) 0 var(--s-3); }
.save-search-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--fs-sm); font-weight: 700;
  color: var(--brand-primary, #4F46E5); cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out;
}
.save-search-btn:hover { background: color-mix(in srgb, var(--brand-primary, #4F46E5) 6%, white); border-color: var(--brand-primary, #4F46E5); }
.save-search-btn[hidden] { display: none; }
.save-search-btn .icon { width: 16px; height: 16px; }

.save-search-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--s-4); }
.save-search-modal[hidden] { display: none; }
.save-search-modal-backdrop { position: absolute; inset: 0; background: rgba(23,33,43,.5); }
.save-search-modal-panel {
  position: relative; z-index: 1; background: var(--paper); border-radius: var(--radius); padding: var(--s-6) var(--s-5) var(--s-5);
  max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-float);
}
.save-search-modal-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-pill); margin-bottom: var(--s-3);
  background: color-mix(in srgb, var(--brand-primary, #4F46E5) 14%, white); color: var(--brand-primary, #4F46E5);
}
.save-search-modal-icon .icon { width: 22px; height: 22px; }
.save-search-modal-panel h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--s-1); }
.save-search-modal-panel > p { color: var(--c-text-soft); font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.save-search-modal-close {
  position: absolute; top: var(--s-3); right: var(--s-3); width: 32px; height: 32px; border-radius: var(--radius-pill);
  border: 0; background: var(--paper-soft); color: var(--c-text-soft); font-size: 1rem; cursor: pointer;
}
.save-search-modal-close:hover { background: var(--c-bg-soft); }
.save-search-criteria { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.save-search-criteria-chip {
  display: inline-flex; align-items: center; font-size: var(--fs-sm); font-weight: 700;
  color: var(--brand-primary, #4F46E5); background: color-mix(in srgb, var(--brand-primary, #4F46E5) 10%, white);
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4F46E5) 25%, white); border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.active-filters:empty { display: none; margin-top: 0; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: var(--fs-sm); font-weight: 700;
  color: var(--brand-primary, #4F46E5); background: color-mix(in srgb, var(--brand-primary, #4F46E5) 10%, white);
  border: 1px solid color-mix(in srgb, var(--brand-primary, #4F46E5) 25%, white); border-radius: var(--radius-pill);
  padding: 6px 14px; cursor: pointer; transition: background .15s ease-out, transform .1s ease-out;
}
.filter-chip:hover { background: color-mix(in srgb, var(--brand-primary, #4F46E5) 18%, white); transform: translateY(-1px); }
.filter-chip span { font-size: 0.7rem; opacity: .7; }
.filter-chip--clear { color: var(--c-text-soft); background: var(--paper-soft); border-color: var(--c-border); }
.filter-chip--clear:hover { background: var(--c-bg-soft); }

@media (max-width: 900px) {
  .filters { border-radius: var(--radius); }
  .filters-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .filters-bar { gap: var(--s-2); padding: 10px var(--s-3); }
  .filters-toggle-btn { margin-left: -8px; padding: 7px 8px; }
  /* Visually hidden, not display:none - keeps "Filters" in the accessible name alongside the
     count badge instead of leaving a screen reader announcing just a bare number. */
  .filters-toggle-btn .filters-toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .sort-select { max-width: 150px; }
  .filters-panel { grid-template-columns: 1fr 1fr; padding: var(--s-3); gap: var(--s-2) var(--s-3); }
}

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .grid { grid-template-columns: repeat(4, 1fr); } }
/* Sparse inventory (1-2 listings): a fixed multi-column grid leaves a stark empty gap beside a
   lone card. Below 3 items, collapse to auto-fit so cards keep a normal size and unused tracks
   simply don't exist, instead of stretching the grid across empty space. */
@media (min-width: 640px) {
  .grid:not(:has(> :nth-child(3))) { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); }
}

.card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-rest);
  transition: box-shadow .25s ease-out, transform .25s ease-out;
}
.card:hover { box-shadow: var(--shadow-raised); transform: translateY(-6px); }
.card-media { aspect-ratio: 4 / 3; background: var(--c-bg-soft); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 50%; pointer-events: none;
  background: linear-gradient(to top, rgba(23,33,43,.45), transparent);
}
.card-body { padding: var(--s-4); }
.card-price { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.card-persqft { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-faint); margin-left: var(--s-1); }
.card-title { margin-top: var(--s-1); font-size: var(--fs-base); font-weight: 500; color: var(--c-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; } /* stretched link: whole card clickable */
.card-dom { font-size: var(--fs-sm); color: var(--c-text-faint); margin-top: var(--s-1); font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; column-gap: var(--s-4); row-gap: var(--s-2); margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--c-text-soft); padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.specs span { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.specs span strong { color: var(--c-text); font-weight: 700; }
.specs .icon { color: var(--brand-primary, #4F46E5); width: 16px; height: 16px; }

.badge {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1;
  font-size: 0.72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill); color: #fff;
  background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-primary, #4F46E5) 65%, black));
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.badge--featured { background: linear-gradient(135deg, var(--brand-secondary, #F59E0B), color-mix(in srgb, var(--brand-secondary, #F59E0B) 65%, black)); }
.badge--sold { background: #6b7280; }
.card--sold .card-media img { filter: grayscale(70%); }

.empty-state { text-align: center; padding: var(--s-7) var(--s-3); color: var(--c-text-soft); }
.empty-state h2 { font-weight: 800; font-size: var(--fs-lg); color: var(--c-text); margin-bottom: var(--s-2); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin: var(--s-5) 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--s-2); border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; color: var(--c-text-soft);
}
.pagination .current { background: var(--brand-primary, #4F46E5); color: #fff; font-weight: 700; }

/* ---------- Detail page ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-faint); padding: var(--s-3) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.breadcrumb li + li::before { content: '›'; margin-right: var(--s-1); }

.detail-layout { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .detail-layout { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } }

.gallery-hero { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-soft); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip { display: flex; gap: var(--s-2); margin-top: var(--s-3); overflow-x: auto; padding-bottom: var(--s-1); }
.thumb-strip button { flex: 0 0 96px; aspect-ratio: 3 / 2; border: 3px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; background: none; cursor: pointer; }
.thumb-strip button[aria-current="true"] { border-color: var(--brand-primary, #4F46E5); }
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; }

.facts-panel { position: sticky; top: calc(76px + var(--s-3)); background: var(--paper); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-float); }
@media (max-width: 959px) { .facts-panel { order: -1; } }
.facts-panel .price { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--brand-accent-text); }
.facts-panel .persqft { font-size: var(--fs-base); font-weight: 600; color: var(--c-text-faint); margin-left: var(--s-1); }
.facts-panel .addr { margin-top: var(--s-2); color: var(--c-text-soft); font-weight: 600; }
.facts-panel .dom { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--c-text-faint); }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 700; }
.share-row { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); position: relative; }
.share-label { font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-soft); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-border); background: var(--paper); color: var(--c-text-soft); cursor: pointer;
  text-decoration: none; transition: border-color .15s ease-out, color .15s ease-out;
}
.share-btn:hover { border-color: var(--brand-primary, #4F46E5); color: var(--brand-primary, #4F46E5); }
.share-btn .icon { width: 16px; height: 16px; }
.share-copied {
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-success); background: #e4f7ee;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.facts-key { display: flex; gap: var(--s-2); margin: var(--s-4) 0; padding: var(--s-4) 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.facts-key div { text-align: center; flex: 1; }
.facts-key .icon-chip { margin: 0 auto 6px; }
.facts-key strong { display: block; font-size: var(--fs-md); font-weight: 800; }
.facts-key span { font-size: var(--fs-sm); color: var(--c-text-faint); }
.cta-btn {
  --btn-edge: color-mix(in srgb, var(--brand-primary, #4F46E5) 45%, black);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: var(--s-3);
  background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-primary, #4F46E5) 65%, black));
  color: #fff; font: inherit; font-weight: 800; font-size: var(--fs-base);
  border: 0; border-radius: var(--radius-pill); cursor: pointer; text-decoration: none;
  transition: transform .15s ease-out, box-shadow .15s ease-out, filter .15s ease-out;
  box-shadow: 4px 4px 0 0 var(--btn-edge), var(--shadow-glow);
}
.cta-btn::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.4), transparent 62%);
  transform: translateX(-120%);
}
.cta-btn:hover {
  transform: translate(-2px, -2px);
  filter: brightness(1.07);
  box-shadow: 7px 7px 0 0 var(--btn-edge), var(--shadow-glow);
}
.cta-btn:hover::before { animation: shineSweep .7s ease-out; }
.cta-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 var(--btn-edge); filter: none; }
.cta-btn--ghost {
  background: var(--paper-soft); color: var(--ink); box-shadow: none; border: 2px solid var(--c-border);
}
.cta-btn--ghost::before { display: none; }
.cta-btn--ghost:hover { background: var(--c-bg-soft); border-color: var(--brand-primary, #4F46E5); filter: none; transform: translateY(-2px); }
.cta-btn--ghost:active { transform: none; box-shadow: none; }

@keyframes shineSweep { from { transform: translateX(-120%); } to { transform: translateX(160%); } }
@keyframes ctaPulseRing {
  0%, to { box-shadow: 4px 4px 0 0 var(--btn-edge), 0 0 0 0 color-mix(in srgb, var(--brand-primary, #4F46E5) 45%, transparent); }
  50% { box-shadow: 4px 4px 0 0 var(--btn-edge), 0 0 0 9px color-mix(in srgb, var(--brand-primary, #4F46E5) 0%, transparent); }
}
.cta-btn--pulse { animation: ctaPulseRing 2.6s ease-in-out infinite; }
.cta-btn--pulse:hover, .cta-btn--pulse:active { animation: none; }

/* ---------- FAQ accordion ---------- */
.faq-section { margin-top: var(--s-3); }
.faq-item { border-bottom: 1px solid var(--c-border); border-radius: var(--radius-sm); transition: background .15s ease-out; }
.faq-item:hover { background: var(--paper-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-3); margin: 0 calc(-1 * var(--s-3)); font-weight: 700; font-size: var(--fs-md); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: 0 0 auto; width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: var(--radius-pill);
  color: var(--brand-primary, #4F46E5); background: color-mix(in srgb, var(--brand-primary, #4F46E5) 10%, white);
  transition: transform .25s ease-out, background .15s ease-out;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--brand-primary, #4F46E5); color: #fff; }
.faq-item p { padding-bottom: var(--s-4); color: var(--c-text-soft); max-width: 68ch; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-3); margin: var(--s-4) 0; }
.spec-grid dt { font-size: var(--fs-sm); color: var(--c-text-faint); }
.spec-grid dd { font-weight: 700; }

.video-section { margin: var(--s-5) 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-raised); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.description { max-width: 68ch; margin: var(--s-4) 0; }
.description h2, .section-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-3); letter-spacing: -.01em; }
.description p + p { margin-top: var(--s-3); }
.description ul, .description ol { padding-left: 1.2em; margin-top: var(--s-3); }

/* Sticky mobile CTA bar */
.mobile-cta { position: fixed; bottom: var(--s-2); left: var(--s-2); right: var(--s-2); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); background: var(--paper); border-radius: var(--radius-pill); box-shadow: var(--shadow-float); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); }
.mobile-cta .price { font-weight: 800; font-size: var(--fs-md); }
.mobile-cta .cta-btn { width: auto; margin: 0; padding: 0 var(--s-5); }
@media (min-width: 960px) { .mobile-cta { display: none; } }
body.has-mobile-cta { padding-bottom: 88px; }
@media (min-width: 960px) { body.has-mobile-cta { padding-bottom: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(10,10,10,.94); }
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: var(--s-3); right: var(--s-3); }
.lb-prev { left: var(--s-3); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s-3); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: var(--s-3); left: 50%; transform: translateX(-50%); color: #fff; font-size: var(--fs-sm); opacity: .85; }

/* ---------- Offer form ---------- */
.offer-form-heading { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.offer-form-heading h2 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.offer-form-heading p { color: var(--c-text-soft); font-size: var(--fs-sm); margin: 0 0 var(--s-3); }
.offer-form { max-width: none; background: none; border-radius: 0; padding: 0; box-shadow: none; }
.offer-form .field { margin-bottom: var(--s-3); }
.offer-form-secondary { margin-top: var(--s-3); text-align: center; }
.offer-form-secondary a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-soft); text-decoration: none; }
.offer-form-secondary a:hover { color: var(--brand-primary, #4F46E5); }
.offer-form-secondary .icon { width: 14px; height: 14px; }
.offer-form label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s-1); }
.offer-form input, .offer-form textarea, .offer-form select {
  width: 100%; font: inherit; min-height: 46px; padding: var(--s-2) var(--s-3);
  border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: var(--paper-soft);
}
.offer-form select[multiple] { min-height: 0; padding: var(--s-1); }
.offer-form select[multiple] option { padding: 4px var(--s-1); border-radius: 4px; }
.offer-form input:focus-visible, .offer-form textarea:focus-visible, .offer-form select:focus-visible { background: var(--paper); border-color: var(--brand-primary, #4F46E5); }
.offer-form textarea { min-height: 96px; resize: vertical; }
.offer-form input[aria-invalid="true"] { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-sm); margin-top: var(--s-1); font-weight: 600; }
.offer-reassurance { text-align: center; font-size: var(--fs-sm); color: var(--c-text-faint); margin-top: var(--s-2); }
.form-success {
  background: #e4f7ee; color: var(--c-success); border-radius: var(--radius); padding: var(--s-4);
  font-weight: 700; display: flex; align-items: center; gap: var(--s-2);
}
.form-success::before {
  content: '\2713'; flex: 0 0 auto; width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: var(--c-success); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; animation: badgePopIn .4s cubic-bezier(.22,1,.36,1) both;
}
.form-error-box { background: #fbe9e5; color: var(--c-error); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-3); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.save-search-type-field, .save-search-price-field { border: 0; padding: 0; margin: 0 0 var(--s-3); min-width: 0; }
.save-search-type-field legend, .save-search-price-field legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s-2); padding: 0; }
.save-search-type-hint { font-weight: 400; color: var(--c-text-faint); }
.save-search-price-group { display: flex; gap: var(--s-2); }
.save-search-price-field-item { flex: 1 1 0; margin-bottom: 0; }
.save-search-type-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.save-search-type-option {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-text-soft); background: var(--paper-soft); border: 2px solid var(--c-border);
  border-radius: var(--radius-pill); padding: 6px 14px; cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out;
}
.save-search-type-option:has(input:checked) {
  color: var(--brand-primary, #4F46E5); border-color: var(--brand-primary, #4F46E5);
  background: color-mix(in srgb, var(--brand-primary, #4F46E5) 10%, white);
}
.save-search-type-option input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; accent-color: var(--brand-primary, #4F46E5); }

/* ---------- Mailing list signup (homepage section) ---------- */
.mailing-list-wrap { max-width: 760px; }
.mailing-list-wrap > p { color: var(--c-text-soft); margin-top: var(--s-2); margin-bottom: var(--s-5); }
.mailing-list-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3); justify-content: center; }
.mailing-list-field { flex: 1 1 200px; margin-bottom: 0; }
.mailing-list-radio-field { border: 0; padding: 0; min-width: 0; }
.mailing-list-radio-field legend { font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--s-1); padding: 0; }
.radio-option-group { display: flex; flex-wrap: wrap; gap: var(--s-3); min-height: 44px; align-items: center; }
.radio-option-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-bottom: 0; cursor: pointer; }
.radio-option-group input[type="radio"] { width: auto; margin: 0; cursor: pointer; }
.mailing-list-submit-btn { width: auto; margin-top: 0; padding: 0 var(--s-6); flex: 0 0 auto; align-self: stretch; }
@media (max-width: 640px) { .mailing-list-submit-btn { width: 100%; } }

/* ---------- Similar row ---------- */
.similar-row { margin-top: var(--s-6); }

/* ---------- Skeletons ---------- */
.skeleton .card-media, .skeleton .sk-line { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.sk-line { height: 14px; border-radius: 4px; margin-top: var(--s-2); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: var(--s-7) var(--s-3); }
.notfound .code { font-family: var(--font-display); font-size: 6rem; font-weight: 700; line-height: 1; color: var(--brand-primary, #4F46E5); opacity: .35; }
.notfound h1 { font-weight: 800; font-size: var(--fs-xl); margin: var(--s-3) 0 var(--s-2); }
.notfound p { color: var(--c-text-soft); margin-bottom: var(--s-4); }

/* ---------- Fade-in-up on render + micro-interactions ----------
   Plays once on paint via a keyframe (not IntersectionObserver): a scroll-triggered reveal left
   below-the-fold content invisible to anything that doesn't perform a real scroll (some
   screenshot/audit tools, certain link-preview crawlers) - a pure CSS entrance animation gives
   the same polish with zero dependency on scroll position ever being reached. */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeInUp .5s ease-out both; }
.grid .card:nth-child(1) { animation-delay: 0s; }
.grid .card:nth-child(2) { animation-delay: .06s; }
.grid .card:nth-child(3) { animation-delay: .12s; }
.grid .card:nth-child(4) { animation-delay: .18s; }
.value-props-grid .value-prop:nth-child(2) { animation-delay: .08s; }
.value-props-grid .value-prop:nth-child(3) { animation-delay: .16s; }
.facts-key > div:nth-child(2) { animation-delay: .06s; }
.facts-key > div:nth-child(3) { animation-delay: .12s; }

@keyframes badgePopIn { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
.badge { animation: badgePopIn .35s cubic-bezier(.22,1,.36,1) both; }

.map-link .icon { transition: transform .2s ease-out; }
.map-link:hover .icon { animation: pinWiggle .5s ease-in-out; }
@keyframes pinWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }

.faq-item[open] p { animation: fadeDown .25s ease-out both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Design System v4 additions — "Sell to Sean" energy
   --------------------------------------------------------------------------
   Everything below layers onto v3 rather than replacing it: same neutrals,
   same radius/shadow scale, same brand-primary-driven CTAs. New here is a
   real job for --brand-accent (previously computed but unused) on badges/
   highlights, plus the warmer, more personal components a config-driven
   answer requires: reviews badge, animated stat band, testimonial marquee,
   a personal contact card, a closing CTA banner, and sparing emoji accents
   gated entirely behind --playful-tone (set only when config.playfulTone).
   ========================================================================== */

.emoji-accent { display: none; }
.is-playful .emoji-accent { display: inline-block; margin-right: 0.35em; }

/* ---------- Reviews badge ---------- */
.reviews-badge {
  display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-pill); margin-bottom: var(--s-4);
  background: rgba(255,255,255,.16); color: #fff;
}
.reviews-badge .stars { color: #fff; letter-spacing: 1px; }
.reviews-badge .stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* ---------- Animated stat band ---------- */
.stat-band { background: var(--ink); color: #fff; padding: var(--s-6) 0; }
.stat-band-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat-item-icon { width: 28px; height: 28px; margin: 0 auto var(--s-2); color: var(--brand-accent, #F59E0B); opacity: .9; }
.stat-item-value {
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.01em;
  color: var(--brand-accent, #F59E0B); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-item-label { margin-top: var(--s-1); font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.75); }
@media (max-width: 640px) { .stat-band-grid { gap: var(--s-3); } .stat-item-value { font-size: var(--fs-lg); } }

/* ---------- Testimonial marquee ---------- */
.testimonial-section { overflow: hidden; }
.testimonial-track-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.testimonial-track { display: flex; gap: var(--s-4); width: max-content; animation: marqueeScroll 45s linear infinite; }
.testimonial-track:hover, .testimonial-track:focus-within, .testimonial-track.is-paused { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testimonial-card {
  flex: 0 0 auto; width: min(420px, 82vw); background: var(--paper); border-radius: var(--radius);
  padding: var(--s-5); box-shadow: var(--shadow-rest); border-top: 4px solid var(--brand-accent, #F59E0B);
}
.testimonial-quote { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.45; color: var(--c-text); }
.testimonial-quote::before { content: '\201C'; color: var(--brand-accent-text); font-weight: 700; }
.testimonial-quote::after { content: '\201D'; color: var(--brand-accent-text); font-weight: 700; }
.testimonial-byline { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: 700; color: var(--c-text-soft); }
.testimonial-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; font-size: 1rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-accent-text) 55%, var(--brand-primary, #4F46E5)));
}
.testimonial-pause-hint { text-align: center; font-size: var(--fs-sm); color: var(--c-text-faint); margin-top: var(--s-3); }
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; flex-wrap: wrap; width: auto; }
  .testimonial-track-viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Why invest with us (restyled value-props) ---------- */
.value-prop-icon { background: linear-gradient(135deg, var(--brand-accent-text), color-mix(in srgb, var(--brand-accent-text) 60%, black)); }

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  margin: var(--s-7) 0 0; padding: var(--s-7) 0; text-align: center; color: #fff;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 0),
    linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-accent, #F59E0B) 45%, var(--brand-primary, #4F46E5)));
  background-size: 24px 24px, auto;
  background-repeat: repeat, no-repeat;
}
.cta-banner .wrap { position: relative; }
.cta-banner h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.cta-banner p { margin-top: var(--s-2); color: rgba(255,255,255,.88); font-size: var(--fs-md); }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }
.cta-banner-actions .cta-btn, .cta-banner-actions .cta-btn--ghost { width: auto; margin: 0; padding: 0 var(--s-6); }
.cta-banner-actions .cta-btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-banner-actions .cta-btn--ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* ---------- Personal contact card (detail sticky panel) ---------- */
.contact-card { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--c-border); }
.contact-card-photo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--radius-pill); overflow: hidden; }
.contact-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-card-photo-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: #fff;
  background: linear-gradient(135deg, var(--brand-primary, #4F46E5), color-mix(in srgb, var(--brand-accent, #F59E0B) 55%, var(--brand-primary, #4F46E5)));
}
.contact-card-name { font-weight: 800; color: var(--ink); }
.contact-card-title { font-size: var(--fs-sm); color: var(--c-text-faint); }

/* ---------- Badges: Price Reduced (scaffolded; wire up once a real price-drop signal exists) ---------- */
.badge--reduced { background: linear-gradient(135deg, var(--c-error), color-mix(in srgb, var(--c-error) 65%, black)); }

/* ---------- Footer social row ---------- */
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.08); color: #fff; transition: background .15s ease-out, transform .15s ease-out;
}
.footer-social a:hover { background: var(--brand-accent-text); transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }

@keyframes sccPopIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .footer-social a, .value-prop, .card, .header-phone, .cta-btn { transition: none !important; }
}
