@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ─── Realtor Theme — Design Tokens ─────────────────────────────────────────
 * Ported from the Jen Case Homes design system handoff. All brand-prefixed
 * vars use the `--realtor-*` namespace. Semantic aliases (`--color-*`,
 * `--font-*`, etc.) are shared across the component tree.
 * ───────────────────────────────────────────────────────────────────────────── */

:root {

  /* ── Canonical palette ──────────────────────────────────────────────────── */
  --realtor-primary: #315E49;
  --realtor-accent:  #CE8E3B;
  --realtor-surface: #FBFAF8;
  --realtor-ink:     #332E29;
  --realtor-border:  #E2DDD4;
  --realtor-font-body:    'Lato', ui-sans-serif, system-ui, sans-serif;
  --realtor-font-display: 'Playfair Display', ui-serif, Georgia, serif;

  /* ── Brand: Forest green (primary) ─────────────────────────────────────── */
  --realtor-green:        var(--realtor-primary);   /* nav active, buttons, icon accents   */
  --realtor-green-light:  #497963;   /* hover state for green buttons/links */
  --realtor-green-fg:     #F8F6F1;   /* text on green surfaces              */

  /* ── Brand: Warm gold (accent) ─────────────────────────────────────────── */
  --realtor-gold:         var(--realtor-accent);   /* kicker labels, CTA buttons          */
  --realtor-gold-light:   #DDB888;   /* hero eyebrow, dark-section accent   */
  --realtor-gold-fg:      #332E29;   /* text on gold buttons                */

  /* ── Brand: Warm neutrals ───────────────────────────────────────────────── */
  --realtor-parchment:    #F8F6F1;   /* page background (off-white)         */
  --realtor-sand:         #EEE3D3;   /* alt section bg, soft card surfaces  */
  --realtor-ink-2:        #8A8075;   /* secondary / muted text              */
  --realtor-footer:       #332E29;   /* footer background                   */
  --realtor-white:        #FFFFFF;   /* pure white — form fields            */

  /* ── Status ─────────────────────────────────────────────────────────────── */
  --realtor-danger:       #DC2626;
  --realtor-danger-fg:    #FFFFFF;
  --realtor-success:      #16A34A;
  --realtor-success-fg:   #FFFFFF;

  /* ── Semantic aliases ───────────────────────────────────────────────────── */
  --color-primary:              var(--realtor-green);
  --color-primary-light:        var(--realtor-green-light);
  --color-primary-foreground:   var(--realtor-green-fg);
  --color-secondary:            var(--realtor-sand);
  --color-secondary-foreground: var(--realtor-ink);
  --color-accent:               var(--realtor-gold);
  --color-accent-light:         var(--realtor-gold-light);
  --color-accent-foreground:    var(--realtor-gold-fg);

  --color-background:   var(--realtor-parchment);
  --color-surface:      var(--realtor-surface);
  --color-surface-soft: var(--realtor-sand);
  --color-white:        var(--realtor-white);
  --color-text:         var(--realtor-ink);
  --color-muted:        var(--realtor-ink-2);
  --color-border:       var(--realtor-border);
  --color-footer-bg:    var(--realtor-footer);

  --color-danger:             var(--realtor-danger);
  --color-danger-foreground:  var(--realtor-danger-fg);
  --color-success:            var(--realtor-success);
  --color-success-foreground: var(--realtor-success-fg);

  /* ── Overlays & tints ───────────────────────────────────────────────────── */
  --overlay-hero: linear-gradient(
    to right,
    rgba(30, 24, 20, 0.72) 0%,
    rgba(30, 24, 20, 0.45) 55%,
    rgba(30, 24, 20, 0.18) 100%
  );
  --overlay-hero-bottom: linear-gradient(
    to top,
    rgba(30, 24, 20, 0.40) 0%,
    transparent 50%
  );
  --tint-green-on-dark: rgba(73, 121, 99, 0.30);

  /* ── Typography ─────────────────────────────────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-black:    900;

  --text-hero:    clamp(3rem, 2rem + 4vw, 4.5rem);
  --text-display: clamp(2.25rem, 1.6rem + 2.4vw, 3rem);
  --text-h3:      1.5rem;
  --text-h4:      1.25rem;

  --text-lead: 1.125rem;
  --text-base: 1rem;
  --text-sm:   0.875rem;
  --text-xs:   0.75rem;
  --text-2xs:  0.6875rem;

  --leading-hero:  1.05;
  --leading-tight: 1.15;
  --leading-snug:  1.4;
  --leading-body:  1.75;

  --tracking-kicker:       0.25em;
  --tracking-hero-eyebrow: 0.34em;
  --tracking-wide:         0.05em;
  --tracking-label:        0.22em;

  /* ── Spacing & layout ───────────────────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --container-max: 1152px;
  --container-pad: 1.5rem;
  --nav-height:    81px;
  --section-py:    6rem;

  --measure-prose: 65ch;
  --measure-lead:  36rem;

  /* ── Shape, border & shadow ─────────────────────────────────────────────── */
  --radius-sm:   0.25rem;
  --radius:      0.375rem;
  --radius-lg:   0.5rem;
  --radius-xl:   0.75rem;
  --radius-2xl:  1rem;
  --radius-3xl:  1.5rem;
  --radius-full: 9999px;

  --border-hairline:    1px solid var(--color-border);
  --border-accent:      4px solid var(--color-accent);
  --border-accent-soft: 4px solid rgba(206, 142, 59, 0.40);

  --shadow-sm:       0 1px 2px rgba(51, 46, 41, 0.06);
  --shadow-card:     0 10px 30px -12px rgba(49, 94, 73, 0.18);
  --shadow-lg:       0 18px 40px -16px rgba(49, 94, 73, 0.22);
  --shadow-portrait: 0 20px 60px -20px rgba(49, 94, 73, 0.25);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* ── Nav surface (parchment at 90 % opacity for backdrop-blur effect) ───── */
  --realtor-nav-bg:             rgba(248, 246, 241, 0.90);
  --realtor-nav-dropdown-bg:    var(--color-background);

  /* ── Footer text levels (parchment over ink) ────────────────────────────── */
  --realtor-footer-text:        rgba(248, 246, 241, 0.85);
  --realtor-footer-text-sub:    rgba(248, 246, 241, 0.72);
  --realtor-footer-text-muted:  rgba(248, 246, 241, 0.60);
  --realtor-footer-text-dim:    rgba(248, 246, 241, 0.50);
  --realtor-footer-border:      rgba(248, 246, 241, 0.10);
  --realtor-footer-link:        rgba(248, 246, 241, 0.70);
  --realtor-footer-icon-border: rgba(248, 246, 241, 0.22);
}

/* ── Base element styles ─────────────────────────────────────────────────── */

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ── Rich-text scope for trusted backend HTML ────────────────────────────── */

.realtor-prose {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-muted);
  max-width: var(--measure-prose);
}
.realtor-prose > * + * { margin-top: 1.25rem; }
.realtor-prose h2,
.realtor-prose h3,
.realtor-prose h4 {
  color: var(--color-text);
  margin-top: 2.25rem;
  line-height: var(--leading-snug);
}
.realtor-prose h2 { font-size: 1.875rem; }
.realtor-prose h3 { font-size: 1.5rem; }
.realtor-prose h4 { font-size: 1.25rem; }
.realtor-prose p { line-height: var(--leading-body); }
.realtor-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(49, 94, 73, 0.35);
  transition: color var(--duration-fast) var(--ease-standard);
}
.realtor-prose a:hover { color: var(--color-primary-light); }
.realtor-prose strong { color: var(--color-text); font-weight: var(--weight-bold); }
.realtor-prose ul,
.realtor-prose ol { padding-left: 1.5rem; }
.realtor-prose ul { list-style: disc; }
.realtor-prose ol { list-style: decimal; }
.realtor-prose li + li { margin-top: 0.5rem; }
.realtor-prose li::marker { color: var(--color-accent); }
.realtor-prose blockquote {
  border-left: var(--border-accent);
  padding-left: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text);
}
.realtor-prose img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: var(--border-hairline);
}
.realtor-prose hr {
  border: 0;
  border-top: var(--border-hairline);
  margin: 2.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * COMPONENT STYLES
 * Layout + component CSS for the theme-owned section/card/page renderers
 * (Hero, Intro, ServicesOverview, Cta, Process, Timeline, dynamic grids,
 * cards, blog/neighborhood pages). The renderers emit these BEM classes; this
 * block supplies the matching rules. Ported to the Jen Case Homes design.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shell / layout ──────────────────────────────────────────────────────── */

.realtor-main {
  /* Offset fixed nav; full-bleed heroes pull back up under it (below). */
  padding-top: var(--nav-height);
}

.realtor-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Shared primitives ───────────────────────────────────────────────────── */

.realtor-kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--color-accent);
}
.realtor-kicker--center { text-align: center; }

.realtor-section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.realtor-section-heading--center { text-align: center; }
.realtor-section-heading__accent {
  color: var(--color-primary);
}

/* Buttons — uppercase Lato labels, per the design system Button. */
.realtor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}
.realtor-btn--lg { padding: 0.9rem 2rem; font-size: var(--text-base); }

.realtor-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.realtor-btn--primary:hover { background-color: var(--color-primary-light); }

.realtor-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}
.realtor-btn--accent:hover { background-color: var(--color-accent-light); }

.realtor-btn--outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.realtor-btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.realtor-btn--outline-light {
  background-color: rgba(248, 246, 241, 0.08);
  border-color: rgba(248, 246, 241, 0.55);
  color: var(--color-primary-foreground);
}
.realtor-btn--outline-light:hover { background-color: rgba(248, 246, 241, 0.18); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.realtor-hero {
  position: relative;
  /* Full-bleed: rise up under the fixed nav (main pads the rest down). */
  margin-top: calc(-1 * var(--nav-height));
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--realtor-ink);
}
.realtor-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.realtor-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
}
.realtor-hero__overlay--bottom { background: var(--overlay-hero-bottom); }
.realtor-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 6rem) var(--container-pad);
  padding-top: calc(var(--nav-height) + 2rem);
}
.realtor-hero__content { max-width: 42rem; }
.realtor-hero__eyebrow {
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-hero-eyebrow);
  text-transform: uppercase;
  color: var(--realtor-gold-light);
}
.realtor-hero__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-medium);
  line-height: var(--leading-hero);
  color: var(--color-white);
}
.realtor-hero__accent {
  display: block;
  color: var(--realtor-gold-light);
}
.realtor-hero__body {
  margin-top: var(--space-6);
  max-width: var(--measure-lead);
  color: rgba(248, 246, 241, 0.88);
  font-size: var(--text-lead);
}
.realtor-hero__body p { color: inherit; }
.realtor-hero__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
/* Hero primary CTA reads gold on the photo (matches the source design). */
.realtor-hero__actions .realtor-btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
}
.realtor-hero__actions .realtor-btn--primary:hover { background-color: var(--color-accent-light); }

/* ── Page hero (centered title band, no image) ───────────────────────────── */

.realtor-page-hero {
  background-color: var(--color-surface-soft);
  padding: clamp(3rem, 6vw, 5.5rem) var(--container-pad);
  text-align: center;
}
.realtor-page-hero--surface { background-color: var(--color-surface); }
.realtor-page-hero--parchment { background-color: var(--color-background); }
.realtor-page-hero__inner { max-width: 48rem; margin-inline: auto; }
.realtor-page-hero__heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.realtor-page-hero__accent { color: var(--color-primary); }
.realtor-page-hero__subhead {
  margin: var(--space-4) auto 0;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: var(--text-lead);
}

/* ── Intro (portrait + story + values) ───────────────────────────────────── */

.realtor-intro { padding-block: var(--section-py); }
.realtor-intro__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.realtor-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.realtor-intro__portrait-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-portrait);
}
.realtor-intro__portrait {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.realtor-intro__content-col { min-width: 0; }
.realtor-intro__content-col .realtor-prose { margin-top: var(--space-5); max-width: none; }
/* Tighter line spacing so the intro copy reads compact, not sprawling. */
.realtor-intro__content-col .realtor-prose p { line-height: 1.6; }
.realtor-intro__content-col .realtor-prose > * + * { margin-top: var(--space-3); }
.realtor-intro__values {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
/* Compact cards: icon sits to the left of the title + body, not above. */
.realtor-intro__value-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background-color: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.realtor-intro__value-icon {
  grid-row: 1 / span 2;
  align-self: start;
  width: 2rem;
  height: 2rem;
  padding: 0.45rem;
  margin-bottom: 0;
  color: var(--color-primary);
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  box-sizing: border-box;
}
.realtor-intro__value-title {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-intro__value-body { grid-column: 2; margin-top: var(--space-1); font-size: var(--text-sm); }
.realtor-intro__value-body p { margin: 0; }
.realtor-intro .realtor-btn { margin-top: var(--space-8); }

/* ── Services overview (icon cards) ──────────────────────────────────────── */

.realtor-services { padding-block: var(--section-py); }
.realtor-services--surface { background-color: var(--color-surface); }
.realtor-services--sand { background-color: var(--color-surface-soft); }
.realtor-services__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.realtor-services__header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto var(--space-12);
}
.realtor-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: var(--space-6);
}
.realtor-services__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.realtor-services__card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.realtor-services__card-icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.75rem;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  background-color: var(--color-surface-soft);
  border-radius: var(--radius-full);
  box-sizing: border-box;
}
.realtor-services__card-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-services__card-body { margin: 0; max-width: none; font-size: var(--text-sm); }
.realtor-services__card-body p { margin: 0; }

/* ── CTA band ────────────────────────────────────────────────────────────── */

.realtor-cta { padding-block: var(--section-py); }
.realtor-cta__container {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  text-align: center;
}
.realtor-cta__body { margin: var(--space-5) auto 0; max-width: 40rem; }
.realtor-cta__body p { margin: 0; }
.realtor-cta__actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
.realtor-cta--sand { background-color: var(--color-surface-soft); }
.realtor-cta--green {
  background-color: var(--color-primary);
}
.realtor-cta--green .realtor-section-heading,
.realtor-cta--green .realtor-cta__body,
.realtor-cta--green .realtor-cta__body p { color: var(--color-primary-foreground); }
.realtor-cta--green .realtor-kicker { color: var(--realtor-gold-light); }
.realtor-cta--green .realtor-btn--outline {
  border-color: rgba(248, 246, 241, 0.55);
  color: var(--color-primary-foreground);
  background-color: transparent;
}
.realtor-cta--green .realtor-btn--outline:hover { background-color: rgba(248, 246, 241, 0.14); }

/* ── Process (numbered steps) ────────────────────────────────────────────── */

.realtor-process { padding-block: var(--section-py); }
.realtor-process--surface { background-color: var(--color-surface); }
.realtor-process--sand { background-color: var(--color-surface-soft); }
.realtor-process__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.realtor-process__header { margin-bottom: var(--space-12); max-width: 44rem; }
.realtor-process__intro { margin: var(--space-4) 0 0; color: var(--color-muted); font-size: var(--text-lead); }
.realtor-process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.realtor-process__step {
  padding: var(--space-8);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
/* The renderer also emits a numeric badge; the gold label carries the step. */
.realtor-process__step-badge { display: none; }
.realtor-process__step-label {
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.realtor-process__step-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-process__step-body { margin: 0; max-width: none; }
.realtor-process__step-body p { margin: 0; }

/* ── Timeline (milestone rail) ───────────────────────────────────────────── */

.realtor-timeline { padding-block: var(--section-py); }
.realtor-timeline--surface { background-color: var(--color-surface); }
.realtor-timeline--sand { background-color: var(--color-surface-soft); }
.realtor-timeline__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.realtor-timeline__header { text-align: center; margin-bottom: var(--space-12); }
.realtor-timeline__intro { margin: var(--space-4) auto 0; max-width: 40rem; color: var(--color-muted); }
.realtor-timeline__rail {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 42rem;
  position: relative;
}
.realtor-timeline__rail::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.45rem;
  width: 2px;
  background-color: var(--color-border);
}
.realtor-timeline__entry {
  position: relative;
  padding: 0 0 var(--space-8) 2rem;
}
.realtor-timeline__entry:last-child { padding-bottom: 0; }
/* Dot sits on the rail; year is gold text (no pill) — per the design. */
.realtor-timeline__entry-dot {
  display: block;
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}
.realtor-timeline__entry-year {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
}
.realtor-timeline__entry-title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-timeline__entry-body { margin: 0; max-width: none; padding-top: 0.15rem; }
.realtor-timeline__entry-body p { margin: 0; }

/* ── Generic dynamic-grid wrapper (blog.recent / neighborhoods.featured /
 *    testimonials.grid render <section class="realtor-section …">) ────────── */

.realtor-section { padding-block: var(--section-py); padding-inline: var(--container-pad); }
.realtor-section__heading {
  max-width: var(--container-max);
  margin: 0 auto var(--space-12);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}
.realtor-recent-posts__grid,
.realtor-featured-neighborhoods__grid,
.realtor-testimonials-grid__grid {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-8);
}

/* Testimonials render on a forest-green band (matches the source design). */
.realtor-testimonials-grid { background-color: var(--color-primary); }
.realtor-testimonials-grid .realtor-section__heading { color: var(--color-primary-foreground); }

/* Trailing heading word rendered as an italic gold accent (reference design). */
.realtor-heading-accent { font-style: italic; color: var(--realtor-gold-light); }

/* Section eyebrow kicker on the forest-green testimonials bands reads light gold. */
.realtor-testimonials-carousel .realtor-kicker,
.realtor-testimonials-grid .realtor-kicker { color: var(--realtor-gold-light); }

/* ── Testimonials carousel (3-up paged, forest-green band) ───────────────── */

.realtor-testimonials-carousel { background-color: var(--color-primary); }
.realtor-testimonials-carousel .realtor-section__heading { color: var(--color-primary-foreground); }
.realtor-testimonials-carousel__track {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .realtor-testimonials-carousel__track { grid-template-columns: repeat(3, 1fr); }
}
.realtor-testimonials-carousel__controls {
  max-width: var(--container-max);
  margin: var(--space-10) auto 0;
  display: flex;
  gap: var(--space-3);
}
.realtor-testimonials-carousel__nav {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-primary-foreground);
  background-color: transparent;
  border: 1px solid rgba(248, 246, 241, 0.24);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
}
.realtor-testimonials-carousel__nav:hover { background-color: rgba(248, 246, 241, 0.12); }

/* ── Cards: testimonial ──────────────────────────────────────────────────── */

.realtor-testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  background-color: rgba(248, 246, 241, 0.07);
  border: 1px solid rgba(248, 246, 241, 0.16);
  border-radius: var(--radius-lg);
  color: var(--color-primary-foreground);
}
.realtor-testimonial-card__icon { width: 1.75rem; height: 1.75rem; color: var(--realtor-gold-light); }
.realtor-testimonial-card__quote { margin: 0; }
.realtor-testimonial-card__body {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  color: rgba(248, 246, 241, 0.92);
}
.realtor-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.realtor-testimonial-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.realtor-testimonial-card__meta { display: flex; flex-direction: column; gap: 0.1rem; }
.realtor-testimonial-card__name { font-weight: var(--weight-semibold); }
.realtor-testimonial-card__source { font-size: var(--text-sm); color: var(--realtor-footer-text-sub); }
.realtor-testimonial-card__rating { color: var(--realtor-gold-light); font-size: var(--text-sm); letter-spacing: 0.1em; }

/* ── Cards: blog preview ─────────────────────────────────────────────────── */

.realtor-blog-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.realtor-blog-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.realtor-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.realtor-blog-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.realtor-blog-card__img { width: 100%; height: 100%; object-fit: cover; }
.realtor-blog-card__banner {
  padding: var(--space-2) var(--space-6);
  background-color: var(--color-primary);
}
.realtor-blog-card__category {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-primary-foreground);
}
.realtor-blog-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.realtor-blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.realtor-blog-card__date-icon { width: 0.875rem; height: 0.875rem; }
.realtor-blog-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-standard);
}
.realtor-blog-card__link:hover .realtor-blog-card__title { color: var(--color-primary); }
.realtor-blog-card__excerpt { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.realtor-blog-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}
.realtor-blog-card__more-icon { width: 1rem; height: 1rem; }

/* "View All Posts" action beneath the recent-posts grid. */
.realtor-recent-posts__actions {
  max-width: var(--container-max);
  margin: var(--space-10) auto 0;
  display: flex;
  justify-content: center;
}
.realtor-recent-posts__view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.realtor-recent-posts__view-all:hover { opacity: 0.92; }
.realtor-recent-posts__view-all-icon { width: 1rem; height: 1rem; }

/* ── Cards: neighborhood ─────────────────────────────────────────────────── */

.realtor-neighborhood-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.realtor-neighborhood-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.realtor-neighborhood-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.realtor-neighborhood-card__img { width: 100%; height: 100%; object-fit: cover; }
.realtor-neighborhood-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.realtor-neighborhood-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
}
.realtor-neighborhood-card__name a { color: var(--color-text); transition: color var(--duration-fast) var(--ease-standard); }
.realtor-neighborhood-card__name a:hover { color: var(--color-primary); }
.realtor-neighborhood-card__city { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.realtor-neighborhood-card__price {
  margin: 0;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}
.realtor-neighborhood-card__blurb { margin: var(--space-1) 0 0; color: var(--color-muted); font-size: var(--text-sm); }

/* ── Page heroes (blog / neighborhoods index + show) ─────────────────────── */

.realtor-blog-index__hero,
.realtor-neighborhoods-index__hero,
.realtor-blog-show__hero,
.realtor-neighborhood-show__hero {
  background-color: var(--color-surface-soft);
  padding: clamp(3rem, 6vw, 5rem) var(--container-pad);
  text-align: center;
}
.realtor-blog-index__title,
.realtor-neighborhoods-index__title,
.realtor-blog-show__title,
.realtor-neighborhood-show__title {
  max-width: var(--container-max);
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}
.realtor-neighborhoods-index__subtitle {
  max-width: 42rem;
  margin: var(--space-3) auto 0;
  color: var(--color-muted);
  font-size: var(--text-lg);
}
.realtor-neighborhoods-index__hero--image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-text);
}
.realtor-neighborhoods-index__hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
}
.realtor-neighborhoods-index__hero--image > .realtor-container {
  position: relative;
  z-index: 1;
}
.realtor-neighborhoods-index__hero--image .realtor-neighborhoods-index__title,
.realtor-neighborhoods-index__hero--image .realtor-neighborhoods-index__subtitle {
  color: var(--color-white);
}
.realtor-blog-index__content,
.realtor-neighborhoods-index__content,
.realtor-blog-show__content,
.realtor-neighborhood-show__content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--section-py) var(--container-pad);
}
.realtor-blog-index__grid,
.realtor-neighborhoods-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-8);
}
.realtor-blog-index__empty,
.realtor-neighborhoods-index__empty,
.realtor-blog-show__empty {
  text-align: center;
  color: var(--color-muted);
  padding-block: var(--space-12);
}

/* Blog archive: category filter pills + pagination */
.realtor-blog-index__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}
.realtor-blog-index__filter,
.realtor-blog-index__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.realtor-blog-index__filter:hover,
.realtor-blog-index__page:hover {
  background-color: var(--color-surface-soft);
  color: var(--color-text);
}
.realtor-blog-index__filter--active,
.realtor-blog-index__filter--active:hover,
.realtor-blog-index__page--active,
.realtor-blog-index__page--active:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-primary-foreground);
}
.realtor-blog-index__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}
.realtor-blog-index__page { min-width: 2.5rem; }
.realtor-blog-index__page--disabled,
.realtor-blog-index__page--disabled:hover {
  color: var(--color-border);
  background-color: var(--color-surface);
  cursor: not-allowed;
}

/* Show pages */
.realtor-blog-show__back,
.realtor-neighborhood-show__back {
  display: inline-block;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}
.realtor-blog-show__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.realtor-blog-show__featured-image,
.realtor-neighborhood-show__featured-image {
  max-width: var(--container-max);
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.realtor-blog-show__img,
.realtor-neighborhood-show__img { display: block; width: 100%; height: auto; object-fit: cover; }
.realtor-neighborhood-show__city { margin-top: var(--space-2); color: var(--color-muted); }
.realtor-neighborhood-show__hero--image {
  position: relative;
  min-height: clamp(20rem, 38vw, 30rem);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--color-text);
  text-align: left;
}
.realtor-neighborhood-show__hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}
.realtor-neighborhood-show__hero--image > .realtor-container {
  position: relative;
  z-index: 1;
}
.realtor-neighborhood-show__hero--image .realtor-neighborhood-show__title,
.realtor-neighborhood-show__hero--image .realtor-neighborhood-show__city {
  color: var(--color-white);
}
.realtor-neighborhood-show__hero--image .realtor-neighborhood-show__back {
  color: var(--color-white);
  opacity: 0.85;
}
.realtor-neighborhood-show__market { margin-top: var(--space-12); }
.realtor-neighborhood-show__section-title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin: var(--space-10) 0 var(--space-5);
}
.realtor-neighborhood-show__highlights-grid,
.realtor-neighborhood-show__market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-5);
}
.realtor-neighborhood-show__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-5);
}
.realtor-neighborhood-show__highlight,
.realtor-neighborhood-show__market-item,
.realtor-neighborhood-show__info-block {
  padding: var(--space-5);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.realtor-neighborhood-show__highlight-key,
.realtor-neighborhood-show__market-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}
.realtor-neighborhood-show__highlight-value,
.realtor-neighborhood-show__market-value {
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}
/* Community-highlight tiles carry only a label + short value, so the default
 * card padding and label→value gap read cramped. Give them more vertical
 * breathing room without touching the denser info/market cards. */
.realtor-neighborhood-show__highlight {
  padding-block: var(--space-6);
  margin-block: var(--space-3);
}
.realtor-neighborhood-show__highlight-key {
  margin-bottom: var(--space-3);
}
.realtor-neighborhood-show__list { padding-left: 1.25rem; }
.realtor-neighborhood-show__list li::marker { color: var(--color-accent); }

/* ── Contact page ────────────────────────────────────────────────────────── */

/* Single column (form only, or info only): the @stb-contact card centers
 * itself (max-width + auto margins) — just give the band some breathing room. */
.realtor-contact-single { padding-block: var(--section-py); }

/* Two columns: info panel beside the message form. */
.realtor-contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: stretch;
  padding-block: var(--section-py);
}
/* Let the form fill its 50% grid column. The card variant otherwise caps
 * (max-width: 40rem), centers (margin-inline: auto), and its container-type
 * collapses the track to min-content. The `.realtor-theme` ancestor raises
 * specificity above the package's `[data-variant="card"]` rule so the fill
 * wins regardless of stylesheet load order; the card surface (bg/shadow/
 * padding) is preserved. */
.realtor-theme .realtor-contact-layout > .stb-contact-form {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  container-type: normal;
  justify-self: stretch;
}

/* Recolor the package-owned @stb-contact components onto the realtor palette.
 * Custom properties set on the theme wrapper win over the package's :root
 * defaults for every element inside it (nearest-ancestor resolution). */
.realtor-theme {
  --stb-contact-accent:        var(--color-primary);
  --stb-contact-field-radius:  var(--radius);
  --stb-contact-field-border:  var(--color-border);
  --stb-contact-card-bg:       var(--color-white);
  --stb-contact-text:          var(--color-text);
  --stb-contact-page-title-color: var(--color-text);
}

@media (max-width: 900px) {
  .realtor-contact-layout { grid-template-columns: 1fr; }
}

/* ── Contact page — Direct Contact block ────────────────────────────────── */
.realtor-contact-direct {
  background-color: var(--realtor-white);
  border: 1px solid var(--realtor-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}

.realtor-contact-direct__heading {
  font-family: var(--realtor-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--realtor-ink);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.realtor-contact-direct__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--realtor-border);
}

.realtor-contact-direct__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.realtor-contact-direct__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--realtor-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 6rem;
  flex-shrink: 0;
}

.realtor-contact-direct__row--stack .realtor-contact-direct__label {
  min-width: unset;
}

.realtor-contact-direct__link {
  color: var(--realtor-primary);
  text-decoration: none;
  font-weight: 500;
}

.realtor-contact-direct__link:hover {
  color: var(--realtor-green-light);
  text-decoration: underline;
}

.realtor-contact-direct__value {
  color: var(--realtor-ink);
}

.realtor-contact-direct__sub {
  font-size: var(--text-sm);
  color: var(--realtor-ink-2);
}

/* Email callout within the Direct Contact block */
.realtor-contact-callout {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background-color: var(--realtor-sand);
  border-radius: var(--radius);
}

.realtor-contact-callout__text {
  font-size: var(--text-sm);
  color: var(--realtor-ink);
  margin: 0;
}

.realtor-contact-callout__link {
  color: var(--realtor-primary);
  font-weight: 500;
  text-decoration: none;
}

.realtor-contact-callout__link:hover {
  text-decoration: underline;
}

/* ── Contact page — Office Location + Hours band ────────────────────────── */
.realtor-contact-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  align-items: stretch;
  padding-block: var(--section-py);
}

@media (max-width: 900px) {
  .realtor-contact-bottom { grid-template-columns: 1fr; }
}

/* Office Location + Business Hours each render as a white rounded card to
 * match the Direct Contact / form cards above. */
.realtor-contact-map {
  background-color: var(--realtor-white);
  border: 1px solid var(--realtor-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}

.realtor-contact-map__heading,
.realtor-contact-hours__heading {
  font-family: var(--realtor-font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--realtor-ink);
  margin-bottom: var(--space-4);
}

/* Google Maps embed frame */
.realtor-contact-map__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--realtor-border);
}

.realtor-contact-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder shown when no office_address is configured */
.realtor-contact-map__placeholder {
  aspect-ratio: 16 / 9;
  background-color: var(--realtor-sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--realtor-ink-2);
  font-size: var(--text-sm);
}

/* Business Hours block */
.realtor-contact-hours {
  padding: var(--space-8);
  background-color: var(--realtor-white);
  border: 1px solid var(--realtor-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.realtor-contact-hours__text {
  color: var(--realtor-ink);
  white-space: pre-line;
  margin: 0;
}

/* ── Policy pages (privacy / terms / cookies) ───────────────────────────── */
.realtor-policy {
  padding: 4rem 0;
  background: var(--realtor-surface, #FBFAF8);
}
.realtor-policy__header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(51, 46, 41, 0.12);
  padding-bottom: 1.5rem;
}
.realtor-policy__title {
  font-family: var(--realtor-font-display, Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--realtor-ink, #332E29);
}
.realtor-policy__updated-at {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--realtor-ink-2, #8A8075);
}
.realtor-policy__body {
  max-width: 48rem;
}

/* ── Nav: responsive switch ──────────────────────────────────────────────────
 * SiteNav is inline-styled (no media queries possible inline), so the burger
 * and the desktop link row are both always painted. Toggle them here with
 * !important so the burger only appears on narrow viewports. */
.realtor-nav__burger { display: none !important; }
@media (max-width: 900px) {
  .realtor-nav__desktop { display: none !important; }
  .realtor-nav__burger { display: inline-flex !important; }
}

/* ── Chatbot launcher pill ───────────────────────────────────────────────── */

.realtor-chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.1rem;
  background-color: var(--realtor-ink);
  color: var(--color-primary-foreground);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--duration-fast) var(--ease-standard);
}
.realtor-chatbot-launcher:hover { opacity: 0.92; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .realtor-intro__grid { grid-template-columns: 1fr; }
  .realtor-intro__grid--reverse > .realtor-intro__image-col { order: -1; }
  .realtor-process__steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-py: 3.5rem; }
  .realtor-intro__values { grid-template-columns: 1fr; }
  .realtor-hero__actions .realtor-btn,
  .realtor-cta__actions .realtor-btn { flex: 1 1 auto; }
}

/* ── AI chatbot recolor ──────────────────────────────────────────────────────
 * UNLAYERED :root wins over the widget's @layer stb-chatbot-defaults.
 * Matches captured jencasehomes.com live chatbot: ink accent, white panel,
 * warm muted, Lato. Drive from realtor tokens where possible.
 * ─────────────────────────────────────────────────────────────────────────── */

:root {
  --stb-chatbot-accent:            var(--realtor-ink);
  --stb-chatbot-accent-contrast:   #ffffff;
  --stb-chatbot-surface:           #ffffff;
  --stb-chatbot-surface-muted:     #F4EEE6;
  --stb-chatbot-text:              var(--realtor-ink);
  --stb-chatbot-text-muted:        #6F675E;
  --stb-chatbot-border:            var(--realtor-border);
  --stb-chatbot-radius:            16px;
  --stb-chatbot-radius-bubble:     12px;
  --stb-chatbot-shadow:            0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --stb-chatbot-font:              var(--realtor-font-body);
  --stb-chatbot-z-launcher:        50;
  --stb-chatbot-launcher-offset-x: 1.5rem;
  --stb-chatbot-launcher-offset-y: 1.5rem;
  --stb-chatbot-launcher-side:     right;
}

/* Service areas ----------------------------------------------------------- */
.realtor-service-areas { padding-block: var(--space-16, 4rem); }

/* Two-column layout: map on the left, city/state list on the right. */
.realtor-service-areas__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10, 2.5rem);
  align-items: start;
}
.realtor-service-areas__map { min-width: 0; }
.realtor-service-areas__empty { color: var(--color-muted); text-align: center; }

/* Plain city/state list (names only, each links to the single-area page). */
.realtor-service-areas__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.realtor-service-areas__list-item + .realtor-service-areas__list-item {
  border-top: 1px solid var(--color-border, #e5e0d8);
}
.realtor-service-areas__list-link {
  display: block;
  padding: var(--space-3, 0.75rem) 0;
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
.realtor-service-areas__list-link:hover { color: var(--color-primary); }

/* Inline variant used for the "Nearby areas" row on the show page. */
.realtor-service-areas__list--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2, 0.5rem) var(--space-6, 1.5rem);
  margin-top: var(--space-6, 1.5rem);
}
.realtor-service-areas__list--inline .realtor-service-areas__list-item + .realtor-service-areas__list-item {
  border-top: 0;
}
.realtor-service-areas__list--inline .realtor-service-areas__list-link { padding: 0; }

/* Service area show page -------------------------------------------------- */
.realtor-service-area-show { padding-block: var(--space-16, 4rem); }
.realtor-service-area-show__back {
  display: inline-block;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.realtor-service-area-show__back:hover { text-decoration: underline; }

/* Two-column layout: map on the left, heading + description on the right. */
.realtor-service-area-show__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10, 2.5rem);
  align-items: start;
}
.realtor-service-area-show__map { min-width: 0; }
.realtor-service-area-show__content { min-width: 0; }
.realtor-service-area-show__title { margin: var(--space-2, 0.5rem) 0 var(--space-4, 1rem); }
.realtor-service-area-show__body { margin-top: var(--space-4, 1rem); }
.realtor-service-area-show__related { margin-top: var(--space-16, 4rem); }

@media (max-width: 768px) {
  .realtor-service-areas__cols,
  .realtor-service-area-show__cols {
    grid-template-columns: 1fr;
  }
}

/* ── Services index ──────────────────────────────────────────────────────── */

/* Service cards on the index/show reuse the ServicesOverview card styling
   (.realtor-services__*) but render as links, so add link affordances. */
.realtor-services__card--link {
  color: inherit;
  text-decoration: none;
}
.realtor-services__card-more {
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.realtor-services__card--link:hover .realtor-services__card-more { color: var(--color-primary); }
.realtor-services__empty { color: var(--color-muted); text-align: center; }

/* Optional operator-set hero image band for the /services and /service-areas
   indexes (mirrors the neighborhoods index image hero: parchment fallback →
   cover photo + scrim). Both indexes share this styling. */
.realtor-services-index__hero--image,
.realtor-service-areas-index__hero--image {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) var(--container-pad);
  text-align: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.realtor-services-index__hero--image::after,
.realtor-service-areas-index__hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay-hero-bottom, linear-gradient(180deg, rgba(51, 46, 41, 0.35), rgba(51, 46, 41, 0.62)));
}
.realtor-services-index__hero--image .realtor-kicker,
.realtor-service-areas-index__hero--image .realtor-kicker { color: var(--color-accent-light); }
.realtor-services-index__title,
.realtor-service-areas-index__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-primary-foreground);
}
.realtor-services-index__subtitle,
.realtor-service-areas-index__subtitle {
  margin: var(--space-4) auto 0;
  max-width: 36rem;
  font-size: var(--text-lead);
  color: rgba(248, 246, 241, 0.88);
}

/* ── Service detail (show) ───────────────────────────────────────────────── */
.realtor-service-show { padding-block: var(--space-16, 4rem); }
.realtor-service-show__back {
  display: inline-block;
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.realtor-service-show__back:hover { text-decoration: underline; }

.realtor-service-show__hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: var(--space-10);
}
.realtor-service-show__hero:has(.realtor-service-show__hero-image) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.realtor-service-show__hero-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-portrait);
}
.realtor-service-show__hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.realtor-service-show__hero-text { min-width: 0; }
.realtor-service-show__title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.realtor-service-show__excerpt {
  margin: var(--space-4) 0 0;
  max-width: var(--measure-lead, 36rem);
  font-size: var(--text-lead);
  color: var(--color-muted);
}
.realtor-service-show__body { margin-top: var(--space-8); }
.realtor-service-show__section-title {
  margin: 0 0 var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-service-show__sub,
.realtor-service-show__areas,
.realtor-service-show__pricing,
.realtor-service-show__related { margin-top: var(--space-16, 4rem); }

/* Pricing */
.realtor-service-show__price-group + .realtor-service-show__price-group { margin-top: var(--space-6); }
.realtor-service-show__price-group-label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.realtor-service-show__price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
}
.realtor-service-show__price-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
}
.realtor-service-show__price-item + .realtor-service-show__price-item { border-top: 1px solid var(--color-border); }
.realtor-service-show__price-label { display: flex; flex-direction: column; font-weight: var(--weight-medium); color: var(--color-text); }
.realtor-service-show__price-notes { margin-top: 0.15rem; font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-muted); }
.realtor-service-show__price-value { white-space: nowrap; font-weight: var(--weight-semibold); color: var(--color-text); }
.realtor-service-show__price-note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-muted); }

/* CTA */
.realtor-service-show__cta { margin-top: var(--space-16, 4rem); text-align: center; }
.realtor-service-show__cta-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .realtor-service-show__hero:has(.realtor-service-show__hero-image) {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQs ---------- */
.realtor-faq-index__hero--image {
  background-size: cover;
  background-position: center;
  padding: var(--space-16, 4rem) 0;
  text-align: center;
  color: var(--color-text);
}
.realtor-faq-index__title {
  margin-top: var(--space-3);
  font-size: var(--text-display, 2rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.realtor-faq-index__subtitle {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--text-lead, 1.125rem);
}
.realtor-faq-index__search {
  margin-top: var(--space-6);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.realtor-faq-index__search .stb-faq-page__filter {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 0.5rem);
  font-size: var(--text-base, 1rem);
  color: var(--color-text);
  background-color: var(--color-surface);
}

.realtor-faq {
  padding: var(--space-12, 3rem) 0;
}
.realtor-faq .stb-faq-category-section {
  margin-bottom: var(--space-10, 2.5rem);
}
.realtor-faq .stb-faq-category-section__header h2 {
  font-size: var(--text-h4, 1.25rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}
.realtor-faq .stb-faq-item {
  border-bottom: 1px solid var(--color-border);
}
.realtor-faq .stb-faq-item__question {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-4) 0;
  font-size: var(--text-base, 1rem);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  background: none;
  border: 0;
  cursor: pointer;
}
.realtor-faq .stb-faq-item__question:hover {
  color: var(--color-accent, var(--color-text));
}
.realtor-faq .stb-faq-item__answer {
  padding: 0 0 var(--space-4);
  color: var(--color-muted);
  line-height: 1.6;
}
.realtor-faq .stb-faq-item__answer p { margin-bottom: var(--space-3); }

/* FAQ show page */
.realtor-faq-show {
  padding: var(--space-12, 3rem) 0;
}
.realtor-faq-show__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-10, 2.5rem);
  align-items: start;
}
.realtor-faq-show__header {
  margin-bottom: var(--space-8, 2rem);
}
.realtor-faq-show__title {
  margin: var(--space-2, 0.5rem) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.realtor-faq-show .stb-faq-article__body {
  color: var(--color-muted);
  line-height: 1.7;
}
.realtor-faq-show .stb-faq-related-sidebar h2 {
  font-size: var(--text-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.realtor-faq-show .stb-faq-related-sidebar ul { list-style: none; padding: 0; margin: 0; }
.realtor-faq-show .stb-faq-related-sidebar li { margin-bottom: var(--space-2); }
.realtor-faq-show .stb-faq-related-sidebar a {
  color: var(--color-text);
  text-decoration: none;
}
.realtor-faq-show .stb-faq-related-sidebar a:hover { text-decoration: underline; }

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

/* ── Footer: mobile layout ───────────────────────────────────────────────────
   SiteFooter.jsx carries its desktop layout as inline styles (3-column grid,
   fixed-height logos, right-aligned nav). Those inline styles win the cascade,
   so every mobile override below needs !important. Desktop (>768px) is
   intentionally untouched — all rules live inside this media query. */
@media (max-width: 768px) {
  /* Stack the three footer columns; compliance marks move below the nav */
  .realtor-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .realtor-footer__brand { order: 1; }
  .realtor-footer__right { order: 2; }
  .realtor-footer__trust { order: 3; }

  /* Logos: cap height and keep them inside the column so they can't
     overflow the (formerly sliver-width) grid track and overlap */
  .realtor-footer__logos { gap: 1.25rem !important; }
  .realtor-footer__agent-logo,
  .realtor-footer__broker-logo {
    height: 44px !important;
    max-width: 100%;
    object-fit: contain;
  }

  /* Right column becomes a full-width, left-aligned block */
  .realtor-footer__right {
    justify-self: stretch !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  /* Footer nav: two-column grid with roomier touch targets */
  .realtor-footer__nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
    width: 100%;
    gap: 0.85rem 1.5rem !important;
  }
  .realtor-footer__nav a { padding: 0.1rem 0; }

  .realtor-footer__legal {
    justify-content: flex-start !important;
    gap: 1.5rem !important;
  }

  /* Trust marks: centered row above the divider, slightly smaller */
  .realtor-footer__trust {
    justify-self: stretch !important;
    gap: 2.5rem !important;
  }
  .realtor-footer__trust-mark { height: 48px !important; }

  /* Bottom bar: stack and center copyright + platform attribution */
  .realtor-footer__bottom {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    text-align: center;
  }
  .realtor-footer__copyright,
  .realtor-footer__attribution {
    justify-self: center !important;
  }

  /* Keep the last footer line clear of the floating chat-assistant pill */
  .realtor-footer__inner { padding-bottom: 5.5rem !important; }
}
