/* ============================================================
   LPR Properties — Luxury Real Estate CSS
   Boca Raton · South Florida · Est. 2024
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The browser's built-in [hidden] handling loses to any authored display
   rule (display:grid/flex on the element's class). One global override
   ends that bug class — it shipped twice before this rule existed
   (Map view stuck visible, Grid↔List toggle no-op). */
[hidden] { display: none !important; }

:root {
  /* Brand Colors — Cosmic Latte Light Theme */
  --navy:       #1a1a2e;
  --navy-deep:  #fff8e7;
  --navy-mid:   #fff3d6;
  --navy-light: #ffeed0;
  --gold:       #8a6c28; /* darkened from #9e7c2e → ~4.7:1 on cream, passes WCAG AA for small text */
  --gold-light: #c9a84c;
  --gold-dark:  #7a5f1e;
  --white:      #1a1a2e;
  --white-pure: #ffffff;
  --gray:       #6b7280;
  --gray-light: #4b5563;
  --gray-dark:  #374151;
  --accent:     #9e7c2e;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container:   1280px;
  --gap:         clamp(1rem, 2vw, 2rem);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Editorial timing tokens — luxury moves slowly. Use these for general
     UI transitions instead of hard-coded durations. Hover micro-states
     stay snappier (--t-quick); reveal/layout transitions use --t-slow. */
  --t-quick: 0.25s;   /* button-state, link color  — must feel instant */
  --t-mid:   0.5s;    /* card hover, underline grow — measured */
  --t-slow:  0.8s;    /* scroll reveal, page-level entrance — cinematic */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  /* Editorial polish: enable OpenType features site-wide so apostrophes,
     fractions, and ligatures render properly. Tabular-nums applied locally
     to price + spec contexts where number alignment matters. */
  font-feature-settings: "kern", "liga", "calt";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Typography --- */
/* Display headlines — Cormorant Garamond. Weight 400 for h1/h2 reads as
   editorial. Letter-spacing slightly negative on large display sizes (a
   classical-serif convention — wide tracking looks amateur on serifs). */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1, h2 { font-weight: 400; }
h3, h4 { font-weight: 500; }
/* Italic accents inside display headlines (used as <em>) — color shift to
   gold, slightly heavier so they hold weight visually against the roman */
h1 em, h2 em, h3 em, .section-title em, .hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* Tabular numerals on every price + spec rendering. Aligns digits column-perfect
   across listing cards, the detail page, and the vault. One of the highest-
   impact editorial touches there is — instantly makes the site feel "considered." */
.card-price,
.detail-price,
.vault-card-price,
.detail-spec strong,
.card-spec strong,
.hero-stat-value,
.stat-value,
.specs strong,
.detail-specs strong,
.mp-price,
.mpz-price,
.rc-price,
.listing-card-price,
.price,
[data-price],
.tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "kern";
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.4s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(26,26,46,0.2);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: #fff8e7;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(158, 124, 46, 0.15);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  display: flex;
  align-items: center;
}
.nav-logo .dot {
  color: var(--gold);
  margin: 0 0.35rem;
  font-size: 0.5em;
  vertical-align: middle;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  .nav-logo-img { height: 36px; max-width: 160px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-left: auto; /* anchor right — editorial layout */
}

/* Primary nav link — small caps, wide tracking, gold underline on hover */
.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);  /* slower underline grow — editorial */
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Utility cluster: account icon + theme toggle + CTA, slightly separated */
.nav-utility {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: clamp(0.8rem, 1.6vw, 1.4rem);
  margin-left: 0.4rem;
  border-left: 1px solid rgba(201,168,76,0.18);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--gray-light);
  border-radius: 50%;
  transition: color 0.25s, background 0.25s;
}
.nav-icon:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.nav-icon svg { display: block; }

.nav-cta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold);
  color: #fff8e7;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Hidden by default — only visible on mobile when .open */
.nav-mobile { display: none; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav-mobile.open {
    display: flex;
  }
  .nav-mobile a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s;
  }
  .nav-mobile a:hover { color: var(--gold); }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Hero Carousel (photo fallback — hidden by default; JS toggles it on
   only when there is no heroVideoUrl configured) */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero Video (default state — renders directly in HTML so it loads with
   the page rather than getting injected after a settings-fetch round trip.
   Poster image shows instantly while the MP4 buffers. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background-color: #0a1628;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    125deg,
    rgba(26, 26, 46, 0.90) 0%,
    rgba(26, 26, 46, 0.60) 55%,
    rgba(26, 26, 46, 0.75) 100%
  );
}

/* Hero text stays light on dark overlay */
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-content { color: #f5f2ed; }
.hero .hero-title em { color: var(--gold-light); }

/* Agent Card */
.hero-agent-card {
  position: absolute;
  bottom: 3.5rem;
  left: clamp(1.5rem, 4vw, 4rem);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 248, 231, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem 1.75rem;
  border: 1px solid rgba(158, 124, 46, 0.25);
  max-width: 300px;
}

.hero-agent-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.hero-agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-agent-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.2;
}

.hero-agent-title, .hero-agent-firm {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.hero-agent-title { color: var(--gray); }
.hero-agent-firm { color: var(--gold); }

.hero-agent-link {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  transition: color 0.3s;
}
.hero-agent-link:hover { color: var(--navy); }

.hero-agent-phone {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

/* Slide Controls — arrows on sides, dots centered at bottom */
.hero-controls { display: contents; }

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 248, 231, 0.10);
  border: 1px solid rgba(255, 248, 231, 0.25);
  color: #f5f2ed;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  transition: all 0.3s;
  cursor: pointer;
}

.hero-prev { left: clamp(1rem, 2.5vw, 2.5rem); }
.hero-next { right: clamp(1rem, 2.5vw, 2.5rem); }

.hero-prev:hover, .hero-next:hover {
  background: rgba(158, 124, 46, 0.35);
  border-color: var(--gold);
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  align-items: center;
  max-width: 90vw;
}

.hero-dot {
  width: 12px;
  height: 2px;
  background: rgba(255, 248, 231, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.4s;
  padding: 0;
}

.hero-dot.active {
  background: var(--gold);
  width: 24px;
}

@media (max-width: 768px) {
  .hero-prev, .hero-next { display: none; }
}

.btn-outline-light {
  background: transparent;
  color: rgba(245, 242, 237, 0.9);
  border: 1px solid rgba(245, 242, 237, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
}
.btn-outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero-agent-card { display: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 6rem;
}

.hero-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-tagline::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-title strong {
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--gray-light);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Promise Section --- */
.promise {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
  border-top: 1px solid rgba(158,124,46,0.15);
  border-bottom: 1px solid rgba(158,124,46,0.15);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.promise-text h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.promise-text h2 em { font-style: italic; color: var(--gold); }

.promise-text p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Proof stats inside the promise column (left of Julian's portrait, above the
   quote). Theme-adaptive colors since this section's bg flips with light/dark. */
.promise-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1.75rem 0 0.5rem;
}
.promise-stats .credibility-item { text-align: left; }
.promise-stats .credibility-number {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}
.promise-stats .credibility-plus,
.promise-stats .credibility-slash { font-size: 0.55em; color: var(--gold); font-style: italic; }
.promise-stats .credibility-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.promise-stats .credibility-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--gray-light);
  max-width: none;
}
@media (max-width: 480px) {
  .promise-stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

.promise-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 2rem;
  line-height: 1.6;
}

.promise-visual {
  position: relative;
}
.promise-visual .img-frame {
  aspect-ratio: 3/4;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
  position: relative;
}
.promise-visual .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.promise-visual .img-frame:hover img {
  transform: scale(1.03);
}
.promise-visual .accent-box {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-visual { order: -1; }
}

/* --- Positioning Bar --- */
.positioning {
  padding: 3rem 0;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;       /* group the 3 items centered, not edge-to-edge */
  gap: clamp(2.5rem, 7vw, 6rem);
  text-align: center;
}

.positioning-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-style: italic;
}
.positioning-item p {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (max-width: 768px) {
  .positioning-grid { grid-template-columns: repeat(2, auto); gap: clamp(1.5rem, 8vw, 3rem); }
}

/* --- Listings --- */
.listings {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.listings-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid rgba(26,26,46,0.1);
  color: var(--gray);
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}
/* Count badge appended to every filter chip — small + dimmed.
   Driven by the `data-count` attribute that app.js sets after load. */
.filter-btn::after {
  content: ' · ' attr(data-count);
  font-size: 0.85em;
  opacity: 0.5;
  margin-left: 0.15em;
  font-variant-numeric: tabular-nums;
}
.filter-btn[data-count=""]::after,
.filter-btn:not([data-count])::after { content: ''; }
/* Filters with 0 matches: dim, but still clickable so users see the brand
   coverage. Click leads to the polished empty state. */
.filter-btn.zero-count {
  opacity: 0.4;
  border-style: dashed;
}
.filter-btn.zero-count:hover { opacity: 0.75; }
.filter-btn.zero-count.active { opacity: 1; border-style: solid; }

/* Empty-listings state — gold-bordered card with a real CTA, not a dead end */
.empty-listings-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: rgba(255,248,231,0.04);
  border: 1px dashed rgba(201,168,76,0.3);
  border-radius: 8px;
}
.empty-listings-state .empty-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5em;
}
.empty-listings-state h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.empty-listings-state p {
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto 1.4rem;
  line-height: 1.55;
  font-size: 0.92rem;
}
.empty-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--gap);
}

.listing-card {
  background: #ffffff;
  border: 1px solid rgba(26,26,46,0.08);
  border-radius: 12px;
  overflow: hidden;
  /* Springy lift on hover — a little bounce as it pops toward you, with a
     warm gold-tinted shadow settling underneath */
  transition: transform 0.72s cubic-bezier(0.34, 1.42, 0.5, 1), box-shadow 0.8s var(--ease-out), border-color 0.64s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.listing-card:hover {
  border-color: rgba(158,124,46,0.35);
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 48px rgba(26,26,46,0.14), 0 6px 18px rgba(158,124,46,0.12);
}

.listing-card .card-image {
  aspect-ratio: 16/10;
  background: var(--navy-light);
  position: relative;
  overflow: hidden;
}
.listing-card .card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear, opacity 1.1s var(--ease-out);
}
/* When multiple stacked images exist, all start hidden except .active.
   JS rotates .active through the stack on hover for a cross-fade cycle. */
.listing-card .card-image img.cover-img { opacity: 0; }
.listing-card .card-image img.cover-img.active { opacity: 1; }
/* Slow Ken Burns hover — pure CSS, kicks in on hover, resets on leave.
   The :hover scale-up takes 6s so it feels like cinema, not a button press. */
.listing-card:hover .card-image img {
  transform: scale(1.08) translate(-1%, -1.5%);
}
/* 3D tilt + cursor-following glare. The tilt/lift transform is applied inline by
   api.js _attachTilt() on hover-capable devices; this layer is the light that
   tracks the cursor across the card (screen-blended so it lights the photo
   without washing out the text). */
.card-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  mix-blend-mode: screen;
  background: radial-gradient(circle at center, rgba(255,246,222,0.42) 0%, rgba(255,255,255,0.1) 22%, transparent 42%);
  transform: translate(0, 0);
  /* Glare drifts to the cursor SLOWLY (decoupled from the snappier tilt) so the
     light glides languidly across the photo instead of snapping to the pointer. */
  transition: opacity 0.4s ease, transform 0.75s ease-out;
}
/* Preview-cycle dots — only shown if a card has multiple photos.
   Markup-injected by api.js when p.previewImages.length > 1. */
.listing-card .card-image .preview-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
.listing-card:hover .card-image .preview-dots { opacity: 1; }
.listing-card .card-image .preview-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  transition: background 0.25s, transform 0.25s;
}
.listing-card .card-image .preview-dots span.active {
  background: var(--gold);
  transform: scale(1.4);
}
.listing-card .card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.85rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(158,124,46,0.2);
  border-radius: 4px;
  transition: transform 0.64s cubic-bezier(0.34, 1.5, 0.5, 1);
}
/* Badge gives a little pop when the card is hovered */
.listing-card:hover .card-badge { transform: translateY(-2px) scale(1.06); }

.listing-card .card-body {
  padding: 1.5rem;
}
.listing-card .card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.25rem;
  position: relative;
  display: inline-block;
}
/* Gold underline grows under the title on card hover — boutique typeset touch */
.listing-card .card-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.72s var(--ease-out);
}
.listing-card:hover .card-name::after { width: 100%; }
.listing-card .card-community {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.listing-card .card-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  transition: transform 0.64s cubic-bezier(0.34, 1.5, 0.5, 1);
}
.listing-card:hover .card-price { transform: translateY(-2px); }
.listing-card .card-specs {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26,26,46,0.06);
}
.listing-card .card-spec {
  font-size: 0.7rem;
  color: var(--gray-light);
}
.listing-card .card-spec strong {
  color: var(--white);
  font-weight: 500;
}

.listing-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(26,26,46,0.04);
}
.listing-card .card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.listing-card .card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.listing-card .card-status .dot.rent { background: #4fc08d; }
.listing-card .card-status .dot.coming,
.listing-card .card-status .dot.coming-soon {
  background: #e67e22;
  animation: lprDotPulse 2s ease-in-out infinite;
}
@keyframes lprDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,126,34,0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px rgba(230,126,34,0); transform: scale(1.15); }
}
/* Reduce motion preference — disable the pulse + Ken Burns */
@media (prefers-reduced-motion: reduce) {
  .listing-card .card-status .dot.coming,
  .listing-card .card-status .dot.coming-soon { animation: none; }
  .listing-card .card-image img { transition: opacity 0.25s ease !important; }
  .listing-card:hover .card-image img { transform: none !important; }
  .listing-card:hover { transform: translateY(-4px) !important; }
  .listing-card:hover .card-badge,
  .listing-card:hover .card-price { transform: none !important; }
}
/* Staggered grid entrance — set via inline --idx by renderGrid */
.listings-grid .listing-card.reveal,
#allListingsGrid .listing-card.reveal,
#featuredGrid .listing-card.reveal {
  transition-delay: calc(var(--idx, 0) * 60ms);
}

.listing-card .card-link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.48s;
}
.listing-card:hover .card-link { gap: 0.75rem; }

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

/* --- Listing Carousel (ABM-style horizontal scroll) --- */
.listings-carousel-wrapper {
  position: relative;
}

.listings-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Vertical breathing room so the 3D tilt/lift on hover isn't clipped by the
     horizontal-scroll overflow (overflow-x:auto forces y to clip). Generous top
     room covers a worst-case edge-hover tilt (~60px). Negative margins pull the
     box back so section spacing stays the same. */
  padding: 4rem 0.5rem 1.5rem;
  margin: -3.5rem -0.5rem -1rem;
}
.listings-carousel::-webkit-scrollbar { display: none; }

.listings-carousel .listing-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(158,124,46,0.3);
  background: transparent;
  color: var(--gold);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .listings-carousel .listing-card { flex: 0 0 280px; }
}

/* --- Services --- */
.services {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid rgba(26,26,46,0.04);
}
.service-item:nth-child(even) .service-visual { order: -1; }

.service-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: rgba(158,124,46,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.service-desc {
  color: var(--gray-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.service-visual {
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  border: 1px solid rgba(26,26,46,0.04);
  overflow: hidden;
}
.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: 1fr;
  }
  .service-item:nth-child(even) .service-visual { order: 0; }
  .service-visual { order: -1; }
}

/* --- About --- */
.about {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-text p {
  color: var(--gray-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.about-text p strong {
  color: var(--white);
  font-weight: 500;
}

.about-portrait {
  position: relative;
}
.about-portrait .img-frame {
  aspect-ratio: 3/4;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
}
.about-portrait .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait .name-plate {
  background: #ffffff;
  border: 1px solid rgba(158,124,46,0.15);
  padding: 1.25rem 1.75rem;
  text-align: center;
  margin-top: -2rem;
  position: relative;
  z-index: 1;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.about-portrait .name-plate h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  font-style: italic;
}
.about-portrait .name-plate p {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .about-hero { grid-template-columns: 1fr; }
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.value-card {
  background: #ffffff;
  border: 1px solid rgba(26,26,46,0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.value-card:hover {
  border-color: rgba(201,168,76,0.15);
}
.value-card .value-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(201,168,76,0.12);
  margin-bottom: 0.5rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.value-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

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

/* Founder Quote */
.founder-quote {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.founder-quote .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.founder-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--gold);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.founder-quote cite {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --- Neighborhoods --- */
.neighborhoods {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.neighborhood-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}
.neighborhood-card .card-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-mid);
}
.neighborhood-card .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.neighborhood-card:hover .card-bg img {
  transform: scale(1.08);
}
.neighborhood-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,26,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.neighborhood-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--white);
}
.neighborhood-card p {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .neighborhoods-grid { grid-template-columns: 1fr; }
  .neighborhood-card { aspect-ratio: 16/9; }
}

/* --- Contact --- */
.contact {
  padding: var(--section-pad) 0;
  background: var(--navy-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail .icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(158,124,46,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.contact-detail .detail-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-detail .detail-value {
  color: var(--gray-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(26,26,46,0.15);
  border-radius: 8px;
  color: var(--white);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a95a5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.form-submit:hover {
  background: var(--gold-light);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  background: #1a1a2e;
  color: #f5f2ed;
  border-top: 1px solid rgba(158,124,46,0.15);
}
.footer .footer-copy, .footer .footer-legal, .footer .footer-communities { color: rgba(245,242,237,0.5); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray);
}

.footer-legal {
  font-size: 0.65rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-legal .eho {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
}

.footer-communities {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26,26,46,0.04);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  word-spacing: 0.5em;
}

/* --- Scroll Animations ---
   Slower, more editorial. Each element drifts in over 1.1s with a soft
   cubic-bezier (--ease-out), so the page reveals slowly enough to feel
   considered. Previous 0.8s read tech-startup; 1.1s reads magazine. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 0.3s ease; }
}

/* --- Page Transitions --- */
.page { display: none; }
.page.active { display: block; }

/* --- Utility --- */
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray-light); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }


/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--white); }

.detail-hero {
  width: 100%;
  height: 75vh;
  min-height: 480px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
  background: #0d1a2e;
  cursor: zoom-in;
}
@media (max-width: 768px) {
  .detail-hero { height: 60vh; min-height: 380px; }
}
/* The slide is now a WRAPPER (a div). Inside lives the actual <img>/<video>
   element with class .detail-hero-media. Wrapper handles opacity transitions
   AND parallax (JS sets --parallax-y on it). The inner media handles Ken Burns. */
.detail-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform, opacity;
  overflow: hidden;
}
.detail-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.detail-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
}
.detail-hero-slide.active .detail-hero-media {
  /* Ken Burns: slow zoom + drift while a slide is active. Animation restarts
     each time .active is added because we toggle the class via JS. */
  animation: lprKenBurns 9s ease-out forwards;
}
@keyframes lprKenBurns {
  0%   { transform: scale(1)    translate(0%, 0%); }
  100% { transform: scale(1.06) translate(-1.2%, -1.5%); }
}
/* Video hero slide — autoplaying muted, fills the hero like an image */
.detail-hero-slide.is-video .detail-hero-media {
  /* no animation on video slides, the video itself is motion */
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .detail-hero-slide { transform: none; }
  .detail-hero-slide.active .detail-hero-media { animation: none; }
}
/* Vignette so corner text reads cleanly over photos */
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0) 25%,
    rgba(0,0,0,0) 65%,
    rgba(0,0,0,0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Auto-advance progress bar — gold sliver across the bottom of the hero */
.detail-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 4;
  pointer-events: none;
  width: 0%;
}
.detail-hero-progress.running {
  animation: lprHeroProgress 8s linear forwards;  /* matches JS autoTimer */
}
@keyframes lprHeroProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Unmute button — only shown when slide 0 is a video */
.hero-unmute {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-unmute:hover { background: rgba(0,0,0,0.55); }
.hero-unmute svg { width: 18px; height: 18px; }
.detail-hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(201,168,76,0.9);
  color: #0a1628;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 3;
}
/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(26,26,46,0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.hero-arrow:hover {
  background: rgba(158,124,46,0.3);
  border-color: rgba(201,168,76,0.4);
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}
/* Counter */
.hero-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  z-index: 3;
}

/* Thumbnail strip */
.detail-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(158,124,46,0.2) transparent;
}
.detail-thumbs::-webkit-scrollbar { height: 3px; }
.detail-thumbs::-webkit-scrollbar-thumb { background: rgba(158,124,46,0.2); border-radius: 3px; }
.detail-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
}
.detail-thumb:hover { opacity: 0.8; transform: translateY(-2px); }
.detail-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,#1a2d4a,#0a1628);
  color: var(--gold);
  font-size: 1.3rem;
}
.detail-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 2px 12px rgba(158,124,46,0.4);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.detail-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  font-style: italic;
  margin: 0;
}
.detail-header .detail-community {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--gold);
  white-space: nowrap;
}

.detail-specs {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(26,26,46,0.06);
  border-bottom: 1px solid rgba(26,26,46,0.06);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.detail-spec {
  text-align: center;
}
.detail-spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
}
.detail-spec span {
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.detail-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(26,26,46,0.7);
}

.detail-features h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.detail-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.detail-features li {
  font-size: 0.85rem;
  color: var(--gray-light);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(26,26,46,0.04);
}
.detail-features li::before {
  content: '—';
  color: var(--gold);
  margin-right: 0.5rem;
  opacity: 0.5;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.detail-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}
.detail-gallery img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

.detail-cta {
  background: #ffffff;
  border: 1px solid rgba(26,26,46,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}
.detail-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.detail-cta p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.detail-cta .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.detail-cta .btn:hover {
  background: var(--white);
}

@media (max-width: 768px) {
  .detail-hero { height: 250px; }
  .detail-header { flex-direction: column; gap: 0.5rem; }
  .detail-body { grid-template-columns: 1fr; gap: 2rem; }
  .detail-specs { gap: 1rem; }
}

/* ============================================================
   LEAD MAGNET
   ============================================================ */
.lead-magnet { padding: 5rem 0; background: linear-gradient(180deg, rgba(158,124,46,0.06) 0%, transparent 100%); }
.lead-magnet-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #1a1a2e;
  border: 1px solid rgba(158,124,46,0.15);
  border-radius: 16px;
  padding: 3rem;
  color: #f5f2ed;
}
.lead-magnet-inner h2 { color: #f5f2ed !important; }
.lead-magnet-inner p { color: rgba(245,242,237,0.7) !important; }
.lead-magnet-text h2 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2rem); font-weight: 300; color: var(--white); font-style: italic; margin-top: 0.5rem; }
.lead-magnet-text p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.lead-magnet-form form { display: flex; flex-direction: column; gap: 0.75rem; }
.lead-magnet-form input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0.75rem 1rem; color: #f5f2ed; font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: border-color 0.2s; }
.lead-magnet-form input:focus { border-color: rgba(158,124,46,0.3); }
.lead-magnet-form input::placeholder { color: rgba(245,242,237,0.4); }
.lead-magnet-privacy { font-size: 0.65rem; color: var(--gray); margin-top: 0.5rem; text-align: center; }
.btn-gold { display: inline-block; padding: 0.8rem 2rem; background: var(--gold); color: var(--navy-deep); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; border: none; border-radius: 6px; cursor: pointer; transition: all 0.3s; text-align: center; }
.btn-gold:hover { background: var(--white); }
@media (max-width: 768px) { .lead-magnet-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; } }

/* ============================================================
   RECENTLY SOLD
   ============================================================ */
.recently-sold { padding: 5rem 0; }
.sold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.sold-card { background: #ffffff; border: 1px solid rgba(26,26,46,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.04); border-radius: 12px; overflow: hidden; position: relative; transition: transform 0.3s, border-color 0.3s; }
.sold-card:hover { transform: translateY(-4px); border-color: rgba(158,124,46,0.2); }
.sold-image { height: 180px; position: relative; }
.sold-image::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }
.sold-info { padding: 1.25rem; }
.sold-badge { display: inline-block; background: rgba(76,175,80,0.15); color: #66bb6a; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 0.5rem; }
.sold-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--white); font-style: italic; }
.sold-community { font-size: 0.7rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.sold-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); margin-top: 0.5rem; }
.sold-meta { font-size: 0.7rem; color: var(--gray); margin-top: 0.3rem; }
@media (max-width: 768px) { .sold-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; min-width: 140px; }
.filter-group label { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.filter-group select { background: #ffffff; border: 1px solid rgba(26,26,46,0.15); border-radius: 8px; padding: 0.65rem 0.75rem; color: var(--white); font-family: var(--font-body); font-size: 0.8rem; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 0.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.filter-group select:focus { border-color: rgba(158,124,46,0.3); }
.filter-group select option { background: #ffffff; color: #1a1a2e; }
@media (max-width: 768px) { .search-filters { flex-direction: column; } .filter-group { min-width: 100%; } }

/* Alert signup */
.alert-signup-inner { background: #ffffff; border: 1px solid rgba(26,26,46,0.08); box-shadow: 0 2px 20px rgba(0,0,0,0.04); border-radius: 16px; padding: 2.5rem; }
.alert-signup-text h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--white); font-style: italic; }
.alert-signup-text p { color: var(--gray); font-size: 0.85rem; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.alert-signup-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.alert-signup-form input, .alert-signup-form select { background: #ffffff; border: 1px solid rgba(26,26,46,0.15); border-radius: 8px; padding: 0.7rem 1rem; color: var(--white); font-family: var(--font-body); font-size: 0.8rem; outline: none; flex: 1; min-width: 150px; transition: border-color 0.2s; }
.alert-signup-form input:focus, .alert-signup-form select:focus { border-color: rgba(158,124,46,0.3); }
.alert-signup-form input::placeholder { color: rgba(26,26,46,0.35); }
.alert-signup-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.alert-signup-form select option { background: #ffffff; color: #1a1a2e; }
.alert-signup-note { font-size: 0.75rem; margin-top: 0.75rem; min-height: 1.2em; }

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: #ffffff; border: 1px solid rgba(26,26,46,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.04); border-radius: 12px; overflow: hidden; position: relative; transition: transform 0.3s, border-color 0.3s; cursor: pointer; }
.blog-card:hover { transform: translateY(-4px); border-color: rgba(158,124,46,0.2); }
.blog-card-image { height: 180px; }
.blog-card-body { padding: 1.25rem; }
.blog-card-tag { display: inline-block; background: rgba(158,124,46,0.12); color: var(--gold); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 0.75rem; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--white); font-style: italic; line-height: 1.4; }
.blog-card p { color: var(--gray); font-size: 0.8rem; line-height: 1.6; margin-top: 0.5rem; }
.blog-card-meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.65rem; color: rgba(26,26,46,0.35); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG ARTICLE
   ============================================================ */
.article-hero { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; margin: 1.5rem 0 2rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 300; color: var(--white); font-style: italic; line-height: 1.3; }
.article-meta { display: flex; gap: 1.5rem; margin-top: 0.75rem; font-size: 0.7rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; align-items: center; flex-wrap: wrap; }
.article-meta .article-tag { background: rgba(201,168,76,0.1); color: var(--gold); padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.article-body { max-width: 720px; color: var(--gray-dark); font-size: 0.95rem; line-height: 1.9; }
.article-body h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--white); font-style: italic; margin: 2rem 0 0.75rem; }
.article-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--gold); margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 1.5rem 0; color: var(--gray-light); font-style: italic; }
.article-body strong { color: var(--white); }
.article-cta { margin-top: 3rem; padding: 2rem; background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.1); border-radius: 12px; text-align: center; }
.article-cta h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--white); font-style: italic; }
.article-cta p { color: var(--gray); font-size: 0.85rem; margin: 0.5rem 0 1rem; }
@media (max-width: 768px) { .article-hero { height: 200px; } }

/* ============================================================
   NEIGHBORHOOD DETAIL
   ============================================================ */
.nd-hero { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; }
.nd-hero img { width: 100%; height: 100%; object-fit: cover; }
.nd-header h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 300; color: var(--white); font-style: italic; }
.nd-header .nd-price-range { font-size: 1.1rem; color: var(--gold); margin-top: 0.25rem; }
.nd-body { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin: 2rem 0 3rem; }
.nd-description { color: rgba(26,26,46,0.7); font-size: 0.95rem; line-height: 1.8; }
.nd-sidebar h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--gold); font-style: italic; margin-bottom: 0.75rem; }
.nd-sidebar ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.nd-sidebar li { font-size: 0.8rem; color: var(--gray-light); padding: 0.3rem 0; border-bottom: 1px solid rgba(26,26,46,0.04); }
.nd-sidebar li::before { content: '—'; color: var(--gold); margin-right: 0.5rem; opacity: 0.5; }
.nd-listings-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--white); font-style: italic; margin-bottom: 1rem; }
@media (max-width: 768px) { .nd-body { grid-template-columns: 1fr; } .nd-hero { height: 200px; } }

/* ============================================================
   NDA MODAL
   ============================================================ */
.nda-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.nda-modal { background: #fff8e7; border-radius: 16px; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2.5rem; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.15); }
.nda-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; font-size: 1.8rem; color: var(--gray); cursor: pointer; line-height: 1; }
.nda-close:hover { color: var(--white); }
.nda-header { margin-bottom: 1.5rem; }
.nda-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; font-style: italic; color: var(--white); margin-top: 0.5rem; }
.nda-header p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; margin-top: 0.5rem; }
.nda-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.nda-form .form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.nda-form .form-group label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); }
.nda-form .form-group input { background: #ffffff; border: 1px solid rgba(26,26,46,0.15); border-radius: 8px; padding: 0.7rem 0.85rem; color: var(--white); font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: border-color 0.2s; }
.nda-form .form-group input:focus { border-color: var(--gold); }

.nda-text-box { margin: 1.25rem 0; background: #ffffff; border: 1px solid rgba(26,26,46,0.1); border-radius: 10px; padding: 1.25rem; }
.nda-text-box h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--white); margin-bottom: 0.75rem; }
.nda-scroll { max-height: 200px; overflow-y: auto; font-size: 0.75rem; line-height: 1.7; color: var(--gray); }
.nda-scroll p { margin-bottom: 0.6rem; }
.nda-scroll::-webkit-scrollbar { width: 4px; }
.nda-scroll::-webkit-scrollbar-thumb { background: rgba(158,124,46,0.2); border-radius: 4px; }

.nda-signature-section { margin: 1.25rem 0; }
.nda-sig-input { font-family: var(--font-display) !important; font-size: 1.2rem !important; font-style: italic !important; color: var(--gold) !important; }
.nda-checkbox { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.75rem; }
.nda-checkbox input[type="checkbox"] { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.nda-checkbox label { font-size: 0.75rem; color: var(--gray); line-height: 1.5; cursor: pointer; }
.nda-submit-btn { width: 100%; margin-top: 1rem; padding: 0.9rem; }
.nda-status { font-size: 0.8rem; text-align: center; margin-top: 0.75rem; min-height: 1.2em; }

@media (max-width: 768px) { .nda-form .form-row { grid-template-columns: 1fr; } .nda-modal { padding: 1.5rem; } }

/* ============================================================
   PRIVATE INTEL PAGE
   ============================================================ */
.intel-page { min-height: 60vh; }
.intel-header { margin-bottom: 2rem; }
.intel-header h1 { font-family: var(--font-display); font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 300; font-style: italic; color: var(--white); }
.intel-header .intel-badge { display: inline-block; background: rgba(158,124,46,0.1); color: var(--gold); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; margin-bottom: 0.5rem; }
.intel-header p { font-size: 0.8rem; color: var(--gray); margin-top: 0.3rem; }

.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.intel-card { background: #ffffff; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.intel-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; font-style: italic; color: var(--gold); margin-bottom: 0.75rem; }
.intel-card p, .intel-card li { font-size: 0.85rem; color: var(--gray-light); line-height: 1.7; }

.comps-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: 0.5rem; }
.comps-table th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); padding: 0.5rem; text-align: left; border-bottom: 2px solid rgba(26,26,46,0.08); }
.comps-table td { padding: 0.5rem; color: var(--gray-light); border-bottom: 1px solid rgba(26,26,46,0.05); }
.comps-table .comp-price { color: var(--gold); font-weight: 600; }

.intel-disclaimer { margin-top: 2rem; padding: 1rem; background: rgba(158,124,46,0.06); border: 1px solid rgba(158,124,46,0.12); border-radius: 8px; font-size: 0.7rem; color: var(--gray); line-height: 1.6; }

/* "Click To See Comps" inline link next to price */
.comps-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.comps-link-btn:hover {
  background: var(--gold);
  color: #fff8e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158,124,46,0.2);
}
.comps-link-btn svg { flex-shrink: 0; }

/* Legacy full-width button (kept for backward compat) */
.intel-access-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 1rem; margin-top: 1.5rem; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #fff8e7; border: none; border-radius: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 16px rgba(158,124,46,0.2); }
.intel-access-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(158,124,46,0.3); }
.intel-access-btn svg { width: 16px; height: 16px; fill: currentColor; }

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

/* ============================================================
   SELLER VALUATION PAGE
   ============================================================ */
.valuation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.valuation-text h2 { margin-top: 0.5rem; }
.valuation-text > p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.valuation-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.val-feature { display: flex; gap: 0.75rem; align-items: flex-start; }
.val-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.val-feature strong { color: var(--white); font-size: 0.85rem; display: block; margin-bottom: 0.15rem; }
.val-feature p { color: var(--gray); font-size: 0.78rem; line-height: 1.5; margin: 0; }
.valuation-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 2rem; }
.valuation-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--white); font-style: italic; margin-bottom: 1.5rem; }
.val-form .form-group { margin-bottom: 0.75rem; }
.val-form label { display: block; font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.val-form input, .val-form select, .val-form textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.65rem 0.75rem; color: var(--white); font-family: var(--font-body); font-size: 0.82rem; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.val-form input:focus, .val-form select:focus, .val-form textarea:focus { border-color: rgba(201,168,76,0.3); }
.val-form input::placeholder, .val-form textarea::placeholder { color: rgba(240,236,226,0.3); }
.val-form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.val-form select option { background: #0a1628; color: #f0ece2; }
.val-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.nav-valuation { color: var(--gold) !important; font-weight: 600 !important; }
@media (max-width: 768px) { .valuation-layout { grid-template-columns: 1fr; } .val-form .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   FAVORITES / HEART ICON
   ============================================================ */
.favorite-btn { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(0,0,0,0.4); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(4px); }
.favorite-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }
.favorite-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; transition: all 0.2s; }
.favorite-btn.favorited svg { fill: #ef4444; stroke: #ef4444; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
.skeleton-card { height: 320px; border-radius: 12px; }
.skeleton-text { height: 1rem; margin-bottom: 0.5rem; }
.skeleton-text.short { width: 60%; }
.skeleton-image { height: 180px; border-radius: 12px 12px 0 0; }

/* ============================================================
   MORTGAGE CALCULATOR
   ============================================================ */
.mortgage-calc { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.5rem; margin-top: 1.5rem; }
.mortgage-calc h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--gold); font-style: italic; margin-bottom: 1rem; }
.calc-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.calc-group { flex: 1; min-width: 100px; }
.calc-group label { display: block; font-size: 0.6rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.calc-group input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 0.5rem; color: var(--white); font-family: var(--font-body); font-size: 0.8rem; outline: none; box-sizing: border-box; }
.calc-group input:focus { border-color: rgba(201,168,76,0.3); }
.calc-result { text-align: center; padding: 1rem; background: rgba(201,168,76,0.06); border-radius: 8px; margin-top: 0.5rem; }
.calc-result .monthly { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.calc-result .label { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.15rem; }

/* --- Smooth loading --- */
body.loading * { transition: none !important; }

/* ─── Property Map ──────────────────────────────────────── */
.property-map-section {
  padding: var(--section-pad) 0 0;
  background: var(--navy-deep);
}
.property-map-section .section-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.property-map {
  width: 100%;
  height: 520px;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .property-map { height: 360px; }
}

/* Map popup */
.map-popup {
  background: #0a1628;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  min-width: 220px;
}
.map-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #111f36;
}
.map-popup-body { padding: 12px 14px; }
.map-popup-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #f0ece2;
  margin: 0 0 4px;
}
.map-popup-price {
  font-size: 13px;
  color: #c9a84c;
  font-weight: 600;
  margin: 0 0 6px;
}
.map-popup-specs {
  font-size: 11px;
  color: rgba(240,236,226,0.5);
  margin: 0 0 10px;
}
.map-popup-btn {
  display: block;
  background: #c9a84c;
  color: #0a1628;
  text-align: center;
  padding: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.map-popup-btn:hover { background: #a88b3a; }
.mapboxgl-popup-content {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  border-radius: 8px !important;
}
.mapboxgl-popup-tip { border-top-color: rgba(201,168,76,0.25) !important; }

/* ─── PDF Brochure Button ───────────────────────────────── */
.brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.brochure-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
/* ── Sub-tabs strip — sits below the main nav on Properties + search.html ──
   Frames MLS Search as a sibling view of "Properties" rather than its own
   top-level destination. */
.sub-tabs-wrap {
  position: sticky;
  top: var(--nav-h, 72px);
  z-index: 30;
  background: rgba(0,0,0,0); /* transparent; nav-bg shows through */
  backdrop-filter: blur(8px);
}
.sub-tabs {
  display: flex;
  gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  max-width: 1400px;
  margin: 0 auto;
}
.sub-tab {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  padding-bottom: 0.4rem;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.sub-tab::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.sub-tab:hover { color: var(--white); }
.sub-tab.active { color: var(--gold); }
.sub-tab.active::after,
.sub-tab:hover::after { width: 100%; }
/* When the Properties SPA page has its own sub-tabs (no sticky wrap), make
   them flush with the page top */
.page#page-properties .sub-tabs {
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 0 0 0.8rem;
  margin: 0 0 1.4rem;
  max-width: none;
}

/* Theme toggle — single icon button (sun in light mode, moon in dark) */
.theme-toggle {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: color 0.25s, background 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); background: rgba(201,168,76,0.08); }
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-sun  { display: block; }
.theme-toggle .theme-icon-moon { display: none; }
body.dark-mode .theme-toggle .theme-icon-sun  { display: none; }
body.dark-mode .theme-toggle .theme-icon-moon { display: block; }

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode {
  --navy-deep:  #0a1628;
  --navy-mid:   #0f1f3a;
  --navy-light: #152240;
  --navy:       #1a2d4a;
  --white:      #f0ece2;
  --white-pure: #ffffff;
  --gray:       #9ca3af;
  --gray-light: #d1d5db;
  --gray-dark:  #e5e0d6;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #9e7c2e;
  background: #0a1628;
  color: #f0ece2;
}

body.dark-mode .nav { background: #0a1628; }
body.dark-mode .nav.scrolled { background: rgba(10,22,40,0.95); }
body.dark-mode .nav-mobile { background: #0a1628; }

body.dark-mode .listing-card,
body.dark-mode .blog-card,
body.dark-mode .intel-card { background: #0f1f3a; border-color: rgba(201,168,76,0.1); }
body.dark-mode .blog-card h3 { color: #f0ece2; }
body.dark-mode .blog-card-meta { color: rgba(240,236,226,0.35); }

/* Dark-mode fixes for sections with hardcoded white/cream backgrounds. Without
   these, var(--white)/var(--gray) text resolves to LIGHT values in dark mode and
   vanishes on the white card (the same bug class as the footer headline). */
body.dark-mode .detail-cta,
body.dark-mode .sold-card,
body.dark-mode .alert-signup-inner { background: #0f1f3a; border-color: rgba(201,168,76,0.12); }
/* The NDA modal stays a cream "document" in both modes, so force its text dark. */
body.dark-mode .nda-header h2,
body.dark-mode .nda-text-box h4,
body.dark-mode .nda-form .form-group input,
body.dark-mode .nda-close:hover { color: #1a1a2e; }
body.dark-mode .nda-header p,
body.dark-mode .nda-scroll,
body.dark-mode .nda-checkbox label,
body.dark-mode .nda-form .form-group label { color: #4b5563; }

body.dark-mode .article-body { color: rgba(240,236,226,0.85); }
body.dark-mode .article-body strong { color: #f0ece2; }
body.dark-mode .article-body blockquote { color: #d1d5db; }

body.dark-mode .form-input,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="number"],
body.dark-mode select,
body.dark-mode textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #f0ece2;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: rgba(240,236,226,0.35); }

body.dark-mode .section-divider { border-color: rgba(201,168,76,0.08); }
body.dark-mode .footer { background: #050e1a; border-color: rgba(201,168,76,0.08); }
body.dark-mode .neighborhood-card { background: #0f1f3a; }
body.dark-mode .about-stat { background: #0f1f3a; }
body.dark-mode .mortgage-calc { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
body.dark-mode .valuation-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
body.dark-mode .skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; }
body.dark-mode .testimonial-card { background: #0f1f3a; border-color: rgba(201,168,76,0.1); }
body.dark-mode .testimonial-text { color: rgba(240,236,226,0.8); }

/* ============================================================
   LIFESTYLE & EDUCATION
   ============================================================ */
.lifestyle-education { margin: 2.5rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
.le-section { background: #ffffff; border: 1px solid rgba(26,26,46,0.08); border-radius: 12px; padding: 1.75rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.le-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(26,26,46,0.06); }
.le-icon { font-size: 1.4rem; line-height: 1; }
.le-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; font-style: italic; color: var(--gold); margin: 0; }
.le-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.le-item { display: flex; flex-direction: column; gap: 0.3rem; }
.le-full { grid-column: 1 / -1; }
.le-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.le-value { font-size: 0.85rem; color: var(--gray-dark); line-height: 1.6; }
.le-list, .le-schools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.le-list li, .le-schools li { font-size: 0.85rem; color: var(--gray-dark); padding-left: 1rem; position: relative; line-height: 1.5; }
.le-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.75rem; }
.le-schools li::before { content: '🎓'; position: absolute; left: 0; font-size: 0.7rem; top: 1px; }
@media (max-width: 600px) { .le-grid { grid-template-columns: 1fr; } }

body.dark-mode .le-section { background: #0f1f3a; border-color: rgba(201,168,76,0.1); }
body.dark-mode .le-header { border-color: rgba(201,168,76,0.08); }
body.dark-mode .le-value, body.dark-mode .le-list li, body.dark-mode .le-schools li { color: rgba(240,236,226,0.8); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(26,26,46,0.08);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s, border-color 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(158,124,46,0.2); }
.testimonial-stars { color: #c9a84c; font-size: 0.85rem; letter-spacing: 0.1em; }
.testimonial-text { color: var(--gray-dark); font-size: 0.88rem; line-height: 1.75; font-style: italic; flex: 1; }
.testimonial-author { border-top: 1px solid rgba(26,26,46,0.06); padding-top: 1rem; }
.testimonial-name { font-weight: 600; font-size: 0.82rem; color: var(--white); }
.testimonial-detail { font-size: 0.7rem; color: var(--gray); margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-inner { display: flex; align-items: center; gap: 1.5rem; max-width: 900px; width: 100%; flex-wrap: wrap; }
.cookie-text { font-size: 0.8rem; color: rgba(245,242,237,0.78); line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-text strong { color: #f5f2ed; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn { padding: 0.5rem 1.25rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: all 0.2s; font-family: inherit; border: 1px solid; }
.cookie-accept { background: var(--gold); color: #fff8e7; border-color: var(--gold); }
.cookie-accept:hover { background: var(--gold-light); border-color: var(--gold-light); }
.cookie-decline { background: transparent; color: rgba(245,242,237,0.85); border-color: rgba(245,242,237,0.25); }
.cookie-decline:hover { border-color: rgba(245,242,237,0.5); color: #fff8e7; }
@media (max-width: 600px) { .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* Coming Soon badge pulse */
.card-badge-coming-soon {
  background: var(--gold-dark) !important;
  color: #fff8e7 !important;
  animation: cs-pulse 2s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

/* ─── Buyer Intake Page ──────────────────────────────────── */
.buyer-intake-page .container { max-width: 1100px; }

/* Intent picker (merged Connect form) — radio cards drive which fields show */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
@media (max-width: 700px) { .intent-grid { grid-template-columns: repeat(2, 1fr); } }
.intent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.5rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}
.intent-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.intent-card .intent-icon { font-size: 1.6rem; line-height: 1; }
.intent-card .intent-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-light);
  letter-spacing: 0.01em;
}
.intent-card:hover {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.06);
}
.intent-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.intent-card:has(input:checked) .intent-label { color: var(--gold); }

.buyer-intake-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .buyer-intake-layout { grid-template-columns: 1fr; }
  .buyer-intake-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .buyer-intake-sidebar { grid-template-columns: 1fr; }
}
.buyer-intake-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 2.5rem;
}
.bi-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.neighborhood-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (max-width: 600px) {
  .neighborhood-checks { grid-template-columns: 1fr 1fr; }
}
.bi-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-light);
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px;
  transition: all 0.2s;
}
.bi-check:hover { border-color: var(--gold-dark); color: var(--white); }
.bi-check input { accent-color: var(--gold-dark); }
.bi-check-lg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-light);
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.bi-check-lg input { accent-color: var(--gold-dark); width: 16px; height: 16px; }
.bi-checkboxes { display: flex; flex-direction: column; }
.bi-sidebar-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.bi-sidebar-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.bi-sidebar-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--white); margin-bottom: 0.5rem; }
.bi-sidebar-card p { color: var(--gray); font-size: 0.85rem; line-height: 1.6; }

/* ─── Video Hero ─────────────────────────────────────────── */
.hero-video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100%;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* ─── Instagram Feed ─────────────────────────────────────── */
.instagram-section { padding: 5rem 0; }
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .instagram-grid { gap: 0.25rem; }
}
.instagram-post {
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
  position: relative;
  background: var(--navy-deep);
  border-radius: 2px;
}
.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.instagram-post:hover img { transform: scale(1.06); }
.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  color: white;
  opacity: 0;
}
.instagram-post:hover .instagram-overlay {
  background: rgba(26,26,46,0.5);
  opacity: 1;
}

/* ─── Mobile Polish ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .hero-content { padding-top: 2rem !important; padding-bottom: 5rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.2rem) !important; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { text-align: center; justify-content: center; width: 100%; max-width: 280px; }

  /* Listings filters — wrap on mobile */
  .listings-filters { flex-wrap: wrap; gap: 0.5rem; }
  .filter-btn { font-size: 0.65rem; padding: 0.4rem 0.9rem; }

  /* Thumbnail strip — smooth iOS scroll */
  .detail-thumbs { -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .detail-thumb { scroll-snap-align: start; }

  /* NDA form rows on small screens */
  .nda-form .form-row { grid-template-columns: 1fr !important; }

  /* Detail hero */
  .detail-hero { height: 260px; }

  /* Contact form */
  .contact-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  /* Positioning grid */
  .positioning-grid { grid-template-columns: repeat(2, auto); gap: 1.25rem 2rem; }

  /* Sold grid */
  .sold-grid { grid-template-columns: 1fr; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Service item */
  .service-item { grid-template-columns: 1fr; }
  .service-visual { display: none; }
}

/* Theme toggle accessible on mobile */
.nav-mobile .mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray);
  padding: 0.5rem 0;
}
/* Thu May  7 18:12:14 EDT 2026 */
/* deploy-1778195055463774000 */

/* ═══════════════════════════════════════════════════════════
   HERO SEARCH WIDGET — frosted, floats inside the hero
   ═══════════════════════════════════════════════════════════ */

.hero-search {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-top: 2.25rem;
  max-width: 760px;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(158, 124, 46, 0.22);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(10, 22, 40, 0.18);
  padding: 0.85rem 0.85rem 0.85rem 1.5rem;
  animation: heroSearchIn 0.9s 0.3s var(--ease-out) both;
}
@keyframes heroSearchIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero-search-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.25rem 1rem 0.25rem 0;
  border-right: 1px solid rgba(158, 124, 46, 0.20);
  min-width: 0;
}
.hero-search-field-narrow { flex: 0 0 auto; }
.hero-search-field label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}
.hero-search-field input,
.hero-search-field select {
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.1rem 0;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hero-search-field input::placeholder { color: rgba(26,26,46,0.4); font-weight: 400; }
.hero-search-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path fill='%239e7c2e' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  background-size: 8px;
  padding-right: 1.1rem;
}
.hero-search-btn {
  flex: 0 0 auto;
  margin-left: 0.85rem;
  padding: 0.95rem 1.6rem;
  background: var(--navy);
  color: var(--navy-deep);
  border: 0;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-search-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

/* ── Mobile: drastically compress the hero so the video stays visible ──
   - Hide the long marketing subtitle (moves to credibility section below)
   - Hide the secondary "Our Story" button (keep only the primary CTA)
   - Hero-search collapses to a single COMPACT row (Location + Search button)
     using a popover overlay for the advanced beds/price filters.
   The video gets back ~50% more vertical real estate. */
@media (max-width: 720px) {
  /* Don't block out the video with verbose copy */
  .hero-tagline { font-size: 0.55rem; margin-bottom: 0.6rem; }
  .hero-title { margin-bottom: 0.6rem; }
  .hero-subtitle { display: none; }
  /* Keep the primary button visible, hide the secondary */
  .hero-actions { margin-top: 0.6rem; gap: 0.5rem; }
  .hero-actions .btn-outline-light { display: none; }
  .hero-actions .btn-primary { width: auto; padding: 0.7rem 1.4rem; font-size: 0.7rem; }

  /* Compact one-line search: pill-shaped, smaller, only Location + Search */
  .hero-search {
    flex-direction: row;
    align-items: stretch;
    padding: 0.3rem 0.3rem 0.3rem 0.9rem;
    gap: 0;
    margin-top: 1rem;
    max-width: 480px;
    border-radius: 999px;
    background: rgba(255, 248, 231, 0.96);
  }
  .hero-search-field {
    border-right: 0;
    border-bottom: 0;
    padding: 0.25rem 0;
    flex: 1 1 auto;
    min-width: 0;
  }
  .hero-search-field label { display: none; }
  .hero-search-field input {
    font-size: 0.85rem;
    padding: 0.55rem 0;
  }
  /* Hide the bed/price selects on mobile — keep search snappy.
     Power-users can refine on /search.html which has full filters. */
  .hero-search-field-narrow { display: none; }
  .hero-search-btn {
    margin-left: 0;
    width: auto;
    padding: 0.65rem 1.05rem;
    font-size: 0.6rem;
    border-radius: 999px;
  }
}


/* ═══════════════════════════════════════════════════════════
   CREDIBILITY METRICS STRIP — sits between hero and Promise
   ═══════════════════════════════════════════════════════════ */

.credibility {
  background: var(--navy-deep);
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  border-bottom: 1px solid rgba(158, 124, 46, 0.12);
}
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 720px;          /* narrowed so the two stats sit centered together */
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  justify-content: center;
}
.credibility-item {
  text-align: left;
  position: relative;
}
.credibility-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}
.credibility-number {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--navy);
  margin: 1.4rem 0 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}
.credibility-number em,
.credibility-number i { font-style: italic; color: var(--gold); }
.credibility-plus,
.credibility-slash {
  font-size: 0.55em;
  color: var(--gold);
  font-style: italic;
  margin-left: 0.05em;
}
.credibility-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.credibility-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray);
  max-width: 22ch;
}
@media (max-width: 960px) {
  .credibility-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 520px) {
  .credibility-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER NEWSLETTER — quiet two-column signup
   ═══════════════════════════════════════════════════════════ */

.footer-newsletter {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(158, 124, 46, 0.18);
  margin-bottom: 2.5rem;
}
/* The footer is ALWAYS dark navy in both light and dark mode, so this block
   uses fixed light colors — theme tokens (var(--navy)/var(--gray)) resolve to
   dark values in light mode and would be invisible on the dark footer. */
.footer-newsletter-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.85rem;
}
.footer-newsletter-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #f5f2ed;
  margin: 0 0 0.85rem;
}
.footer-newsletter-headline em { font-style: italic; color: #c9a84c; }
.footer-newsletter-copy {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245,242,237,0.62);
  max-width: 44ch;
  margin: 0;
}
.footer-newsletter-form { width: 100%; max-width: 460px; justify-self: end; }
.footer-newsletter-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.55rem;
}
.footer-newsletter-row {
  display: flex;
  border: 1px solid rgba(158, 124, 46, 0.32);
  background: var(--navy-deep);
  border-radius: 2px;
  overflow: hidden;
}
.footer-newsletter-row input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
}
.footer-newsletter-row input::placeholder { color: rgba(26,26,46,0.4); }
.footer-newsletter-row button {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--navy-deep);
  border: 0;
  padding: 0 1.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.footer-newsletter-row button:hover { background: var(--gold-dark); color: #fff; }
.footer-newsletter-row button:disabled { opacity: 0.6; cursor: not-allowed; }
.footer-newsletter-status {
  font-size: 0.78rem;
  margin-top: 0.6rem;
  min-height: 1.1em;
  color: #c9a84c;
}
.footer-newsletter-status.error { color: #ff8a80; }
@media (max-width: 720px) {
  .footer-newsletter { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-newsletter-form { justify-self: stretch; max-width: none; }
}

/* ── Article audio player — "Julian reads this article" ───────────────── */
.article-listen { margin: 1.4rem 0 2rem; }
.article-listen-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--navy); color: var(--navy-deep);
  border: 1px solid var(--gold); border-radius: 40px;
  padding: 0.7rem 1.35rem; font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.article-listen-btn:hover { background: var(--gold); color: #fff; }
.article-listen-btn .al-icon { font-size: 0.85rem; line-height: 1; min-width: 1em; text-align: center; }
.al-progress { height: 3px; background: rgba(158,124,46,0.18); border-radius: 3px; margin-top: 0.75rem; max-width: 420px; overflow: hidden; }
.al-bar { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s linear; }
body.dark-mode .article-listen-btn { background: var(--gold); color: #0a1628; border-color: var(--gold); }
body.dark-mode .article-listen-btn:hover { background: var(--gold-light); }

/* Blog card "Listen" button — opens the article and auto-plays */
.blog-card-image { position: relative; }
.blog-listen-btn {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(10,22,40,0.78); color: #f5f2ed;
  border: 1px solid rgba(201,168,76,0.5); border-radius: 30px;
  padding: 0.35rem 0.7rem; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; backdrop-filter: blur(4px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease); z-index: 2;
}
.blog-listen-btn:hover { background: var(--gold); color: #0a1628; border-color: var(--gold); }


/* ═══════════════════════════════════════════════════════════
   NEIGHBORHOOD DETAIL — editorial / magazine layout
   ═══════════════════════════════════════════════════════════ */

/* Hero: full-bleed cinematic image with gradient overlay */
.nd-hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 65vh, 720px);
  background-size: cover;
  background-position: center;
  margin: -7rem 0 0;  /* pull up under the fixed nav */
  display: flex;
  align-items: flex-end;
}
.nd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.10) 0%, rgba(26,26,46,0.05) 45%, rgba(26,26,46,0.78) 100%);
  pointer-events: none;
}
.nd-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5.5rem);
  color: #fff;
}
.nd-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3.4rem;
}
.nd-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 2.6rem;
  height: 1px;
  background: var(--gold-light);
}
.nd-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 1.2rem;
  color: #fff;
  max-width: 18ch;
}
.nd-meta {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}
.nd-meta-sep { margin: 0 0.8rem; opacity: 0.55; }

/* Editorial opener — pull quote left, intro right */
.nd-opener {
  background: var(--navy-deep);
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}
.nd-opener-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}
.nd-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--navy);
  position: relative;
  padding-left: 1.6rem;
}
.nd-pullquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  background: var(--gold);
}
.nd-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-light);
  font-weight: 400;
}
@media (max-width: 820px) {
  .nd-opener-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* Shared section labels & headings */
.nd-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 3.4rem;
}
.nd-section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}
.nd-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 2.5rem;
}
.nd-h2 em { font-style: italic; color: var(--gold); }

/* Four pillars — what defines the neighborhood */
.nd-pillars-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}
.nd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.nd-pillar {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(158, 124, 46, 0.32);
}
.nd-pillar-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.nd-pillar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.nd-pillar-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-light);
  margin: 0;
}
@media (max-width: 980px) { .nd-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (max-width: 520px) { .nd-pillars-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Highlights — magazine bullet list */
.nd-highlights-section {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: clamp(5rem, 8vw, 8rem) 0;
  border-top: 1px solid rgba(158, 124, 46, 0.18);
  border-bottom: 1px solid rgba(158, 124, 46, 0.18);
}
.nd-highlights-head,
.nd-highlights {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.nd-highlights {
  list-style: none;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 3rem;
}
.nd-highlights li {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--navy);
  padding-left: 2rem;
  position: relative;
}
.nd-hl-mark {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.1rem;
  height: 1px;
  background: var(--gold);
}
@media (max-width: 720px) { .nd-highlights { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Schools callout */
.nd-schools {
  max-width: var(--container);
  margin: clamp(5rem, 7vw, 7rem) auto;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--navy-deep);
  border-left: 3px solid var(--gold);
}
.nd-schools-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.nd-schools-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
  max-width: 60ch;
}

/* Listings section */
.nd-listings-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

/* Closing CTA */
.nd-cta {
  background: var(--navy);
  color: #fff;
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.nd-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}
.nd-cta .nd-section-label { color: var(--gold-light); margin: 0 auto 1.25rem; display: inline-block; padding-left: 0; }
.nd-cta .nd-section-label::before { display: none; }
.nd-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 1.4rem;
}
.nd-cta-headline em { font-style: italic; color: var(--gold-light); }
.nd-cta-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 58ch;
  margin: 0 auto 2.5rem;
}
.nd-cta-actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.nd-cta-actions .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.nd-cta-actions .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.nd-cta-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.nd-cta-actions .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }


/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — editorial / cinematic refresh
   ═══════════════════════════════════════════════════════════ */

.about-editorial-hero {
  background: var(--navy-deep);
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(5rem, 8vw, 8rem);
}
.aeh-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.aeh-portrait {
  position: relative;
}
.aeh-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.aeh-portrait::before {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  width: 70%;
  height: 70%;
  border: 1px solid var(--gold);
  z-index: -1;
}
.aeh-portrait-caption {
  margin-top: 1.4rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}
.aeh-caption-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.aeh-caption-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.aeh-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3.4rem;
}
.aeh-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
}
.aeh-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 2rem;
}
.aeh-headline em { font-style: italic; color: var(--gold); }
.aeh-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.aeh-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin: 0 0 1.2rem;
}
.aeh-text p strong { color: var(--navy); font-weight: 600; }
.aeh-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
@media (max-width: 900px) {
  .aeh-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .aeh-portrait { max-width: 420px; }
  .aeh-portrait::before { right: -0.8rem; bottom: -0.8rem; }
}

/* Pull-quote band */
.about-pullband {
  background: var(--navy);
  color: #fff;
  padding: clamp(5rem, 9vw, 8rem) 0;
  text-align: center;
}
.about-pullband-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
}
.about-pullband-quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 auto 2rem;
  max-width: 22ch;
}
.about-pullband-quote em { font-style: italic; color: var(--gold-light); }
.about-pullband-attr {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Process — 3-step grid */
.about-process {
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(2rem, 4vw, 4rem);
  background: var(--navy-deep);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: 3rem;
}
.process-step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(158, 124, 46, 0.32);
}
.process-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.process-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.8rem;
}
.process-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 1rem;
}
.process-step p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-light);
  margin: 0;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ═══════════════════════════════════════════════════════════
   CLOSED DEALS — full archive of sold properties (editorial)
   ═══════════════════════════════════════════════════════════ */

.closed-deals { background: var(--navy-deep); }

/* Cinematic hero */
.closed-hero {
  position: relative;
  height: clamp(380px, 55vh, 560px);
  margin: -7rem 0 0;
  background-image: url('https://res.cloudinary.com/dzbkqhuwq/image/upload/c_fill,w_2000,q_auto,f_auto/v1778853034/lpr-properties/hero/beauty_central_hero_poster.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.closed-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.20) 0%, rgba(26,26,46,0.10) 40%, rgba(26,26,46,0.82) 100%);
  pointer-events: none;
}
.closed-hero-inner {
  position: relative; z-index: 2;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5.5rem);
  color: #fff;
}
.closed-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.5rem;
  position: relative; padding-left: 3.4rem;
}
.closed-eyebrow::before {
  content:''; position:absolute; left:0; top:0.45em; width:2.6rem; height:1px; background: var(--gold-light);
}
.closed-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; letter-spacing: -0.015em;
  line-height: 1.05; color: #fff; margin: 0 0 1rem;
}
.closed-name em { font-style: italic; color: var(--gold-light); }
.closed-meta {
  font-size: 1.02rem; line-height: 1.7;
  color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0;
}

/* Stats bar */
.closed-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(158,124,46,0.18);
}
.closed-stat { text-align: left; position: relative; padding-top: 1.2rem; border-top: 1px solid var(--gold); }
.closed-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 400; line-height: 1; color: var(--navy);
  margin-bottom: 0.6rem;
}
.closed-stat-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
}
@media (max-width: 720px) {
  .closed-stats { grid-template-columns: 1fr; gap: 2rem; }
}

/* Grid */
.closed-grid-wrap { padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(5rem, 7vw, 7rem); }
.closed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* CTA at bottom */
.closed-cta {
  background: var(--navy);
  color: #fff;
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.closed-cta-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.closed-cta .section-label { display: inline-block; padding-left: 0; }
.closed-cta .section-label::before { display: none; }
.closed-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.18;
  color: #fff; margin: 1.25rem 0 1.4rem;
}
.closed-cta-headline em { font-style: italic; color: var(--gold-light); }
.closed-cta-body {
  font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.78);
  max-width: 58ch; margin: 0 auto 2.5rem;
}
.closed-cta-actions { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.closed-cta-actions .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.closed-cta-actions .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.closed-cta-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.closed-cta-actions .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* "View archive" link under Recently Sold */
.recently-sold-footer { margin-top: 2.5rem; text-align: center; }
.recently-sold-link {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 4px; border-bottom: 1px solid var(--gold);
  transition: opacity 0.2s var(--ease);
}
.recently-sold-link:hover { opacity: 0.7; }

/* ── SOLD banner on the property detail hero ─────────────────── */
.detail-sold-banner {
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  pointer-events: none;
  overflow: hidden;
}
.detail-sold-banner span {
  position: absolute;
  top: 38px; right: -56px;
  display: block;
  width: 260px;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 0.55rem 0;
  transform: rotate(45deg);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}


/* ── Grid ↔ Map view toggle on the Properties page ─────────── */
.view-toggle {
  display: inline-flex;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(158,124,46,0.3);
  border-radius: 999px;
  overflow: hidden;
  background: var(--navy-mid);
}
.view-toggle-btn {
  padding: 0.55rem 1.3rem;
  border: 0;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.view-toggle-btn:hover { color: var(--navy); }
.view-toggle-btn.active {
  background: var(--navy);
  color: var(--navy-deep);
}

/* ═══════════ Listings — List view (locations line by line) ═══════════ */
.listings-list { margin-top: 0.75rem; border-top: 1px solid rgba(158,124,46,0.18); }
.ll-row {
  display: grid;
  grid-template-columns: minmax(0,2.3fr) minmax(0,1.5fr) auto 92px 26px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0.75rem 1.15rem 0.5rem;
  border-bottom: 1px solid rgba(158,124,46,0.12);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.ll-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); transition: width 0.3s var(--ease-out); }
.ll-row:hover { background: rgba(158,124,46,0.07); padding-left: 1.25rem; }
.ll-row:hover::before { width: 3px; }
.ll-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ll-name { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--white); line-height: 1.15; }
.ll-community { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.ll-specs { font-size: 0.72rem; color: var(--gray-light); letter-spacing: 0.02em; white-space: nowrap; }
.ll-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); text-align: right; white-space: nowrap; }
.ll-status { font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); text-align: right; white-space: nowrap; }
.ll-status-sold { color: #b3703f; }
.ll-status-soon { color: #c98a3a; }
.ll-arrow { color: var(--gold); font-size: 1.05rem; text-align: right; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; }
.ll-row:hover .ll-arrow { opacity: 1; transform: translateX(0); }

/* ── Featured rows in List view: gold shimmer treatment ──
   A faint gold wash + left accent marks the row, a "★ Featured" pill sits by
   the name, and a slow gold sheen sweeps across the row so featured listings
   catch the eye without shouting. */
.ll-row.ll-featured {
  background: linear-gradient(90deg, rgba(158,124,46,0.10), rgba(158,124,46,0.035) 55%, transparent);
  overflow: hidden;
}
.ll-row.ll-featured::before { width: 3px; }              /* gold bar always on */
.ll-row.ll-featured:hover { background: rgba(158,124,46,0.13); }
.ll-featured-tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(158,124,46,0.4);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: rgba(158,124,46,0.08);
}
/* The shimmer itself — a soft gold sheen gliding across the featured row */
.ll-row.ll-featured::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(201,168,76,0.10) 40%, rgba(255,236,190,0.22) 50%, rgba(201,168,76,0.10) 60%, transparent 100%);
  transform: translateX(-130%) skewX(-16deg);
  animation: llShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes llShimmer {
  0%       { transform: translateX(-130%) skewX(-16deg); }
  55%, 100%{ transform: translateX(340%) skewX(-16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ll-row.ll-featured::after { animation: none; opacity: 0; }
}
body.dark-mode .ll-row.ll-featured { background: linear-gradient(90deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04) 55%, transparent); }
body.dark-mode .ll-featured-tag { border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.1); }

@media (max-width: 768px) {
  .ll-row { grid-template-columns: 1fr auto; align-items: start; gap: 0.35rem 1rem; padding: 1rem 0.25rem; }
  .ll-main { grid-column: 1; grid-row: 1; }
  .ll-specs { grid-column: 1; grid-row: 2; white-space: normal; font-size: 0.68rem; }
  .ll-name { font-size: 1.1rem; }
  .ll-price { grid-column: 2; grid-row: 1; font-size: 1.05rem; }
  .ll-status { grid-column: 2; grid-row: 2; }
  .ll-arrow { display: none; }
  .ll-featured-tag { display: block; width: fit-content; margin: 0.3rem 0 0; }
}

/* When the map view is active, the property map section becomes full-height */
.property-map-section { padding-top: 2rem; }
.property-map { height: clamp(500px, 70vh, 760px); }

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH — round 2 (after the editorial pages shipped)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  /* Editorial neighborhood pages: keep heros from being absurdly tall */
  .nd-hero        { height: clamp(360px, 80vh, 520px); }
  .nd-name        { font-size: clamp(2.2rem, 9vw, 3.4rem); max-width: 100%; }
  .nd-pullquote   { font-size: 1.35rem; padding-left: 1.2rem; }
  .nd-h2          { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 1.5rem; }
  .nd-highlights  { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nd-schools-text { font-size: 1.05rem; }
  .nd-cta-headline { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .nd-cta-actions  { flex-direction: column; align-items: stretch; }
  .nd-cta-actions .btn { text-align: center; }

  /* Closed Deals page */
  .closed-hero       { height: clamp(340px, 70vh, 480px); }
  .closed-name       { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .closed-meta       { font-size: 0.95rem; }
  .closed-stat-num   { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .closed-cta-headline { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .closed-cta-actions  { flex-direction: column; align-items: stretch; }
  .closed-cta-actions .btn { text-align: center; }

  /* Editorial About page */
  .aeh-headline      { font-size: clamp(2rem, 8vw, 2.8rem); }
  .aeh-lede          { font-size: 1.1rem; }
  .aeh-text p        { font-size: 0.95rem; }
  .aeh-actions       { flex-direction: column; align-items: stretch; }
  .aeh-actions .btn  { text-align: center; }
  .about-pullband-quote { font-size: clamp(1.8rem, 8vw, 2.6rem); max-width: 18ch; }
  .process-title     { font-size: 1.25rem; }

  /* Credibility metrics — already wraps but tighten numerals on tiny screens */
  .credibility-number { font-size: clamp(2.8rem, 11vw, 3.6rem); }
  .credibility-desc   { max-width: none; }

  /* Listing card view toggle — full-width pill */
  .view-toggle       { display: flex; width: 100%; max-width: 320px; }
  .view-toggle-btn   { flex: 1; padding: 0.55rem 0.5rem; font-size: 0.65rem; }

  /* SOLD diagonal banner on detail hero — shrink to fit */
  .detail-sold-banner       { width: 140px; height: 140px; }
  .detail-sold-banner span  { top: 24px; right: -68px; width: 200px; font-size: 0.65rem; padding: 0.4rem 0; }

  /* Listings page filter row — gold underline tabs scroll horizontally */
  .listings-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .listings-filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  /* Even tighter on phones */
  .aeh-portrait::before { display: none; }       /* gold offset frame would clip */
  .nd-pillars-section,
  .nd-listings-section,
  .nd-opener           { padding-left: 1rem; padding-right: 1rem; }
  .nd-pillar-body,
  .nd-intro            { font-size: 0.9rem; }
  .closed-grid-wrap    { padding-left: 1rem; padding-right: 1rem; }

  /* Hero search — keep readable on the smallest screens */
  .hero-search-field input { font-size: 0.8rem; }
  .hero-search-btn          { font-size: 0.55rem; padding: 0.6rem 0.85rem; }
}

/* ============================================================
   NEWSLETTER SUBSCRIBE — weekly Listing Spotlight
   ============================================================ */
.newsletter-section { padding: 4rem 0; }
.newsletter-card {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, #fff8e7, #ece5cf);
  border: 1px solid rgba(158, 124, 46, 0.2);
  border-radius: 8px;
  padding: 3rem 2.4rem;
}
.newsletter-brand {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9e7c2e;
  margin-bottom: 0.6rem;
}
.newsletter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.newsletter-title em {
  font-style: italic;
  color: #9e7c2e;
}
.newsletter-lede {
  color: #4d4d63;
  line-height: 1.55;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .newsletter-form { grid-template-columns: 1fr; }
}
.newsletter-form input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--navy);
  /* grid children default to min-width:auto — an <input>'s intrinsic minimum
     (~180px) made the row wider than the card and pushed the button out past
     the right edge. Let them compress to their grid tracks instead. */
  min-width: 0;
  width: 100%;
}
.newsletter-form input:focus { outline: none; border-color: #9e7c2e; }
.newsletter-form button { white-space: nowrap; padding-left: 1.4rem; padding-right: 1.4rem; }
.newsletter-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}
.newsletter-status.success { color: #2d6e2d; }
.newsletter-status.error   { color: #c2410c; }

/* ============================================================
   OFF-MARKET VAULT
   ============================================================ */
.vault-page .container { max-width: 1100px; }
.vault-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 2.4rem;
}
.vault-card {
  background: linear-gradient(180deg, #fff8e7, #ece5cf);
  border: 1px solid rgba(158, 124, 46, 0.25);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.vault-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.vault-card-img {
  height: 200px;
  background-size: cover; background-position: center;
  background-color: #2a3a52;
  position: relative;
  filter: blur(0);
  transition: filter 0.3s;
}
.vault-card.locked .vault-card-img { filter: blur(12px) brightness(0.7); }
.vault-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.55));
}
.vault-card-codename {
  position: absolute; bottom: 12px; left: 14px;
  color: #fff; font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.vault-card-lock {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.55); color: #c9a84c;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; z-index: 2;
}
.vault-card.unlocked .vault-card-lock { background: rgba(34, 139, 34, 0.7); color: #fff; }
.vault-card-body { padding: 1.1rem 1.2rem; }
.vault-card-meta {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #5a4a1c; margin-bottom: 0.4rem;
}
.vault-card-price {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.5rem; color: #1a1a2e; margin: 0.2rem 0 0.5rem;
}
.vault-card-teaser { font-size: 0.85rem; color: #4d4d63; line-height: 1.5; }
.vault-card-locked-detail { font-size: 0.8rem; color: #9a9aad; font-style: italic; margin-top: 0.6rem; }
.vault-card-full {
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.82rem; color: #1a1a2e; line-height: 1.55;
}
.vault-card-full strong { color: #5a4a1c; }

.vault-gate {
  background: linear-gradient(135deg, #0a1628, #1a2d4a);
  color: #f5f2ed;
  padding: 2.8rem 2.2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.vault-gate-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.vault-gate h3 { color: #c9a84c; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; margin-bottom: 0.6rem; }
.vault-gate > p { color: #c5c8d0; line-height: 1.55; margin-bottom: 1.8rem; }
.vault-unlock-form { display: grid; gap: 0.6rem; max-width: 380px; margin: 0 auto; }
.vault-unlock-form input {
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  color: #fff; font-size: 0.92rem;
}
.vault-unlock-form input::placeholder { color: rgba(255,255,255,0.45); }
.vault-unlock-form input:focus { outline: none; border-color: #c9a84c; }
.vault-gate-foot { font-size: 0.7rem; color: rgba(255,255,255,0.55); margin-top: 1.2rem; line-height: 1.5; }

.vault-unlocked-banner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.4rem;
  background: rgba(34, 139, 34, 0.1);
  border: 1px solid rgba(34, 139, 34, 0.3);
  color: #2d6e2d;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.vault-lock-btn {
  background: none; border: 1px solid rgba(34, 139, 34, 0.4);
  color: #2d6e2d; padding: 0.35rem 0.85rem; cursor: pointer;
  border-radius: 4px; font-size: 0.72rem; letter-spacing: 0.05em;
}

/* Note: the .ask-julian-pill + .ajulian-* rules used to live here. Removed
   when we consolidated to a single floating widget — the existing chat
   widget (public/js/chat-widget.js) already covers text + mic + TTS + MLS
   integration with one entry point. Two pills was visual noise. */

/* ============================================================
   MY INVENTORY PAGE — returning-visitor dashboard
   ============================================================ */
.inventory-page .container { max-width: 1100px; }
.inv-gate {
  max-width: 540px;
  margin: 2rem auto 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 6px;
  padding: 2.4rem 2.2rem;
  text-align: center;
}
.inv-gate-lede { color: var(--gray-light); margin-bottom: 1.4rem; line-height: 1.55; }
.inv-gate-form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.inv-gate-form input {
  flex: 1; min-width: 220px; padding: 0.85rem 1rem;
  background: var(--white-pure); border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px; font-size: 0.95rem; color: var(--navy);
}
.inv-gate-foot { font-size: 0.75rem; color: var(--gray); margin-top: 1.4rem; line-height: 1.55; }
.inv-gate-foot a { color: var(--gold); }

.inv-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 2rem 0 2.4rem; flex-wrap: wrap; gap: 1rem;
}
.inv-greet { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--white); }
.inv-meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-top: 0.4rem; }
.inv-signout {
  background: none; border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); padding: 0.4rem 0.9rem; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  border-radius: 4px; transition: background 0.2s;
}
.inv-signout:hover { background: rgba(201,168,76,0.1); }

.inv-section { margin-bottom: 3rem; }
.inv-section-title {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.18);
}
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Saved-search row */
.inv-ssearch {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.inv-ssearch:hover { border-color: rgba(201,168,76,0.4); transform: translateX(2px); }
.inv-ss-summary { font-size: 0.92rem; color: var(--white); }
.inv-ss-criteria { font-size: 0.7rem; color: var(--gray); margin-top: 0.25rem; letter-spacing: 0.04em; }
.inv-ss-badge {
  display: inline-block; background: var(--gold); color: var(--navy-deep);
  padding: 0.2rem 0.65rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  animation: lprDotPulse 2.5s ease-in-out infinite;
}
.inv-ss-badge.zero { background: rgba(201,168,76,0.15); color: var(--gold); animation: none; }
.inv-ss-unsub {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); text-decoration: none; padding: 0.3rem 0.5rem;
}
.inv-ss-unsub:hover { color: #c2410c; }
.inv-ss-actions { display: flex; align-items: center; gap: 1rem; }

.inv-empty { text-align: center; padding: 3rem 1rem; color: var(--gray); }
.inv-empty p { margin-bottom: 1.5rem; }

@media (max-width: 600px) {
  .inv-grid { grid-template-columns: 1fr; }
  .inv-ssearch { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   FULLSCREEN PHOTO LIGHTBOX (detail page)
   Click the hero or any thumbnail → take over the viewport.
   Keyboard ←/→/Esc, swipe on mobile, click outside to close.
   ============================================================ */
.lpr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lpr-lightbox.open {
  display: flex;
  animation: lprLightboxIn 0.25s ease-out;
}
@keyframes lprLightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lpr-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lpr-lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lpr-lightbox-img.active {
  opacity: 1;
}
.lpr-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lpr-lightbox-close:hover { background: rgba(255,255,255,0.16); }
.lpr-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lpr-lightbox-arrow:hover { background: rgba(201,168,76,0.25); }
.lpr-lightbox-arrow.prev { left: 24px; }
.lpr-lightbox-arrow.next { right: 24px; }
.lpr-lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}
@media (max-width: 600px) {
  .lpr-lightbox-arrow { width: 44px; height: 44px; font-size: 1.5rem; }
  .lpr-lightbox-arrow.prev { left: 8px; }
  .lpr-lightbox-arrow.next { right: 8px; }
}
body.lpr-lightbox-open { overflow: hidden; }


/* With Home restored the desktop nav is 5 items + utility cluster — too wide
   for small laptops/tablets between 769-920px. Hand off to the hamburger a
   little earlier so nothing wraps or clips. */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}
