/**
 * PropGlen B2 / B2-A / B2-B / B2-F / B2-G / B2-H — Hybrid editorial homepage (local / staging).
 * Scoped to body.home-page only. Does not alter marketplace business rules.
 * Palette: Navy #062B5B · Emerald #0BA360 · Warm ivory hero #F5F3ED (B2-K)
 * Supporting: White #FFFFFF · Soft mint #DDF7EB · Pale blue #EAF3FA
 *
 * B2-A: mobile viewport containment (no page overflow-x:hidden), logo ink crop.
 * B2-B: bright contemporary surfaces + visitor journey hierarchy.
 * B2-F: warm ivory hero plane; shared header sizing owned by propglen-premium-header.css.
 * B2-G: photograph-led signature hero (superseded for hero composition by B2-H).
 * B2-H: hybrid editorial hero — content/search left, clear photo right (~55–60%).
 * B2-K: header #FFFFFF / hero #F5F3ED separation; marketplace search copy.
 * B2-M: Rent/Buy search presentation ready; Buy remains fail-closed until Sales gates open.
 */

body.home-page {
  --pg-navy: #062b5b;
  --pg-emerald: #0ba360;
  --pg-ivory: #f5f3ed;
  --pg-neutral: #f4f7fa;
  --pg-mint: #ddf7eb;
  --pg-pale: #eaf3fa;
  --pg-navy-soft: rgba(6, 43, 91, 0.08);
  --pg-emerald-soft: rgba(11, 163, 96, 0.12);

  /* Homepage-scoped brand tokens — warm ivory premium */
  --bg: var(--pg-ivory);
  --bg-deep: var(--pg-neutral);
  --surface: #ffffff;
  --surface-soft: var(--pg-pale);
  --surface-warm: var(--pg-ivory);
  --text: #1a2433;
  --heading: var(--pg-navy);
  --muted: #5a6b7d;
  --border: #d7e0ea;
  --border-strong: #c2cedc;
  --primary: var(--pg-emerald);
  --primary-hover: #098f54;
  --primary-dark: var(--pg-navy);
  --primary-soft: var(--pg-emerald-soft);
  --accent: var(--pg-emerald);
  --accent-soft: var(--pg-emerald-soft);
  --accent-strong: var(--pg-navy);
  --secondary: var(--pg-navy);
  --secondary-soft: var(--pg-navy-soft);
  --success: var(--pg-emerald);
  --success-strong: #098a50;
  --success-soft: var(--pg-emerald-soft);
  --verified: var(--pg-emerald);
}

/* Light header — pure white masthead separated from ivory hero (B2-K) */
body.home-page .site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 43, 91, 0.08);
  box-shadow: 0 1px 0 rgba(6, 43, 91, 0.04);
}

body.home-page.bayut-serp-page .site-header {
  border-bottom-color: rgba(6, 43, 91, 0.08);
}

body.home-page .site-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 43, 91, 0.06), 0 6px 18px rgba(6, 43, 91, 0.05);
}

body.home-page .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
  color: var(--pg-navy);
}

body.home-page .site-header .nav-menu a.nav-agent-login {
  /* S2-J: colour owned by propglen-premium-header.css gradient CTA */
  color: #ffffff;
}

body.home-page .site-header .nav-toggle span {
  background: var(--pg-navy);
}

body.home-page .site-header .button-primary,
body.home-page .site-header .nav-cta {
  background: var(--pg-emerald);
  border-color: var(--pg-emerald);
  color: #ffffff;
}

body.home-page .site-header .button-primary:hover,
body.home-page .site-header .nav-cta:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/*
 * PropGlen logo sizing is owned by css/propglen-premium-header.css (B2-F).
 * Do not redeclare --pg-logo-h here — conflicting heights fight the shared masthead.
 */

/* Hero accent + copy */
body.home-page .home-hero .hero-heading-accent {
  color: var(--pg-emerald);
}

body.home-page .home-hero .hero-text {
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 100%;
}

/* —— B2-A: mobile containment (fit children; do not mask with overflow-x:hidden) —— */
@media (max-width: 767px) {
  /* Restore usable side gutters (Premium V2 drops to ~10px below 480) */
  body.home-page .site-header > .nav.container,
  body.home-page .home-hero > .container.home-hero__frame,
  body.home-page .home-main > .container,
  body.home-page .home-main .container {
    width: min(calc(100% - 32px), var(--container));
    max-width: 100%;
    box-sizing: border-box;
  }

  body.home-page .home-hero,
  body.home-page .home-hero__frame,
  body.home-page .home-hero__intro,
  body.home-page .home-hero__visual,
  body.home-page .home-hero__photo,
  body.home-page .search-card,
  body.home-page .home-inventory,
  body.home-page .home-inventory__item {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.home-page .home-hero-headline {
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  body.home-page .home-hero-headline__stack,
  body.home-page .home-hero-headline__slide,
  body.home-page .home-hero__intro h1.home-hero-headline__slide,
  body.home-page .home-hero .hero-copy h1.home-hero-headline__slide {
    max-width: 100%;
  }

  body.home-page .home-hero__intro h1.home-hero-headline__slide,
  body.home-page .home-hero .hero-copy h1.home-hero-headline__slide,
  body.home-page .home-hero-headline__slide {
    font-size: clamp(1.7rem, 7.4vw, 2.35rem);
    letter-spacing: -0.032em;
    line-height: 1.08;
  }

  body.home-page .home-hero .hero-text {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.home-page .home-hero .search-card {
    width: 100%;
    max-width: 100%;
    padding: 14px 12px 12px;
  }

  body.home-page .home-hero .home-select-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  body.home-page .home-hero .home-filter-select,
  body.home-page .home-hero .custom-select,
  body.home-page .home-hero .custom-select-trigger,
  body.home-page .home-hero .app-search-field,
  body.home-page .home-hero .home-search-input-wrap,
  body.home-page .home-hero .home-search-input-wrap input,
  body.home-page .home-hero .search-card .button.button-primary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.home-page .home-hero .home-filter-trigger__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
  }

  body.home-page .home-hero .home-filter-trigger__label {
    font-size: 0.8125rem;
  }

  body.home-page .home-hero__photo {
    width: 100%;
    border-radius: 18px;
  }

  body.home-page .home-hero__trust,
  body.home-page .home-hero [data-i18n="content.home.heroTrust"] {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.home-page .home-inventory {
    width: 100%;
    padding-inline: 0;
  }

  body.home-page .home-inventory__row--tx {
    gap: 10px;
  }

  body.home-page .home-inventory__count {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  body.home-page .home-inventory__label {
    font-size: 0.74rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  /*
   * B2-U: end-of-page nav clearance is owned by .pg-footer (≤760px).
   * Do not pad .home-main here — it opened a large email→footer void.
   */
  body.home-page .home-main {
    padding-bottom: 0;
  }
}

@media (max-width: 390px) {
  /* Two-up Budget/Bedrooms ellipsizes "Bedrooms" below ~140px — stack instead */
  body.home-page .home-hero .home-select-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /*
   * Premium V2 uses width: calc(200% + 8px) so a two-up menu spans both filters.
   * After stacking, that becomes ~2× card width and clips past the viewport.
   */
  body.home-page .home-hero .home-select-grid .home-filter-select .custom-select-menu,
  body.home-page .home-hero .home-select-grid .home-filter-select:first-child .custom-select-menu,
  body.home-page .home-hero .home-select-grid .home-filter-select:last-child .custom-select-menu {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  body.home-page .home-hero__intro h1.home-hero-headline__slide,
  body.home-page .home-hero .hero-copy h1.home-hero-headline__slide,
  body.home-page .home-hero-headline__slide {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  body.home-page .home-hero-sig-toggle {
    width: 36px;
    height: 36px;
    margin-top: 0.2em;
  }

  body.home-page .home-hero .hero-text {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  body.home-page .home-hero .search-card {
    padding: 12px 10px 10px;
  }

  body.home-page .home-hero .search-card h2 {
    font-size: 1rem;
  }

  body.home-page .rv-analytics-consent {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    padding: 8px 10px;
  }

  body.home-page .rv-analytics-consent__actions {
    width: 100%;
  }

  body.home-page .rv-analytics-consent__btn {
    flex: 1 1 calc(50% - 4px);
    max-width: 100%;
  }
}

@media (max-width: 320px) {
  body.home-page .site-header > .nav.container,
  body.home-page .home-hero > .container.home-hero__frame,
  body.home-page .home-main > .container,
  body.home-page .home-main .container {
    width: min(calc(100% - 28px), var(--container));
  }

  body.home-page .home-inventory__row {
    gap: 6px;
  }
}

body.home-page .home-hero .search-card__eyebrow {
  color: var(--pg-navy);
}

body.home-page .home-hero .button-primary,
body.home-page .home-main .button-primary {
  background: var(--pg-emerald);
  border-color: var(--pg-emerald);
}

body.home-page .home-hero .button-primary:hover,
body.home-page .home-main .button-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Inventory emphasis — B2-L transaction cards owned in premium-header */
body.home-page .home-inventory {
  background: transparent;
}

body.home-page .home-inventory__count {
  color: var(--pg-navy);
  font-weight: 700;
}

body.home-page .home-inventory__label {
  color: var(--muted);
}

/* Differentiated feature tiles — professional navy/emerald cues */
body.home-page .home-decide-card h3,
body.home-page .home-discover__title {
  color: var(--pg-navy);
}

body.home-page .eyebrow {
  color: var(--pg-emerald);
}

/* Footer — B2-U warm off-white PropGlen identity */
body.home-page .site-footer {
  background: #f8f9f6;
  color: var(--text);
  border-top: 1px solid rgba(6, 43, 91, 0.1);
}

body.home-page .site-footer::before {
  display: none;
}

body.home-page .site-footer a {
  color: #475569;
}

body.home-page .site-footer a:hover {
  color: #0ba360;
}

body.home-page .site-footer h3 {
  color: #062b5b;
}

body.home-page .footer-brand-logo {
  width: clamp(148px, 26vw, 188px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 165;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
}

body.home-page .footer-brand-tagline {
  color: #062b5b;
}

/* Bottom/operator colours are enforced later under B2-Uf (beats portal white text). */

body.home-page .footer-social__img {
  /* Monochrome white icons → navy on the bright PropGlen footer */
  filter: brightness(0) saturate(100%) invert(14%) sepia(40%) saturate(1400%) hue-rotate(186deg);
  opacity: 0.85;
}

/* Prevent a pure-white band below the footer when the viewport is taller than content */
html:has(body.home-page) {
  background-color: #f8f9f6;
}

/* Language controls on light header */
body.home-page .site-header .rv-lang__option {
  color: var(--pg-navy);
}

body.home-page .site-header .rv-lang__option.is-active {
  background: var(--pg-navy-soft);
  color: var(--pg-navy);
}

/* ============================================================
   B2-B / B2-F — Warm contemporary premium journey
   ============================================================ */

body.home-page,
body.home-page .home-main {
  background: var(--pg-ivory);
  color: var(--text);
}

/* Hero: warm ivory plane; photo + search card carry the visual weight */
body.home-page .home-hero {
  background: var(--pg-ivory) !important;
  padding: clamp(18px, 3vw, 36px) 0 clamp(20px, 3vw, 40px);
}

body.home-page .home-hero::before,
body.home-page .home-hero .hero-aurora {
  display: none !important;
  opacity: 0 !important;
}

body.home-page .home-hero__intro {
  color: var(--pg-navy);
}

/*
 * B2-I: colour only the active slide. Earlier navy !important on every slide
 * overrode style.css transparent inactive H1 and caused overlapping headlines.
 */
body.home-page .home-hero-headline__slide.is-active,
body.home-page .home-hero__intro h1.home-hero-headline__slide.is-active,
body.home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active {
  color: var(--pg-navy) !important;
}

body.home-page .home-hero-headline__slide.is-active .hero-heading-accent,
body.home-page .home-hero__intro h1.home-hero-headline__slide.is-active .hero-heading-accent {
  color: var(--pg-emerald) !important;
}

/* B2-I: outgoing slide fully hidden before incoming shows (paired with sequential JS). */
body.home-page .home-hero-headline__slide:not(.is-active),
body.home-page .home-hero__intro h1.home-hero-headline__slide:not(.is-active),
body.home-page .home-hero .hero-copy h1.home-hero-headline__slide:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  color: transparent !important;
  pointer-events: none !important;
  /* D9 live parity: no opacity crossfade — sequential JS already waits before swap. */
  transition: none !important;
}

body.home-page .home-hero-headline__slide:not(.is-active) .hero-heading-accent,
body.home-page .home-hero__intro h1.home-hero-headline__slide:not(.is-active) .hero-heading-accent {
  color: transparent !important;
}

body.home-page .home-hero-headline__slide.is-active,
body.home-page .home-hero__intro h1.home-hero-headline__slide.is-active,
body.home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-hero-headline__slide,
  body.home-page .home-hero__intro h1.home-hero-headline__slide,
  body.home-page .home-hero .hero-copy h1.home-hero-headline__slide {
    transition: none !important;
  }
}

body.home-page .home-hero .hero-text {
  color: var(--muted);
}

body.home-page .home-hero__trust {
  color: #5a6b7d;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
}

/* Elegant search card on warm ivory — white surface, restrained depth */
body.home-page .home-hero .search-card {
  background: #ffffff;
  border: 1px solid rgba(6, 43, 91, 0.08);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px rgba(6, 43, 91, 0.07),
    0 2px 8px rgba(6, 43, 91, 0.04);
  padding-top: 18px;
}

body.home-page .home-hero .search-card h2 {
  margin-top: 0;
  letter-spacing: -0.018em;
}

body.home-page .home-hero .search-card__hint {
  color: var(--muted);
}

body.home-page .home-hero__photo {
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(6, 43, 91, 0.09);
  background: #eef2ef;
}

/* Approved: headline may rotate; visible pause/play control stays removed */
body.home-page .home-hero-sig-toggle {
  display: none !important;
  border-color: rgba(11, 163, 96, 0.35);
  background: #ffffff;
  color: var(--pg-emerald);
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.05);
}

/* H2: inventory continues the ivory hero. Card chrome is removed in the later header sheet. */
body.home-page .home-inventory {
  background: transparent;
  padding: 0 0 4px;
}

body.home-page .home-inventory__card {
  background: #ffffff;
  border-color: rgba(6, 43, 91, 0.1);
}

body.home-page .home-inventory__card:hover {
  border-color: rgba(11, 163, 96, 0.28);
}

/* Section rhythm — approved journey retained; soft ivory continuity only */
body.home-page .home-section {
  background: #ffffff;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

body.home-page .pg-section-heading .eyebrow {
  color: var(--pg-emerald);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home-page .pg-section-heading h2 {
  color: var(--pg-navy);
  letter-spacing: -0.02em;
}

body.home-page .pg-section-heading .home-section-note {
  color: var(--muted);
  max-width: 40rem;
}

body.home-page .pg-journey-featured {
  background: var(--pg-neutral);
}

/* B2-W acceptance — balanced 55/45 Featured intro + freshness; fill row width; shorten header */
body.home-page .pg-journey-featured .home-listing-panel > .pg-featured-intro.section-heading {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

body.home-page .pg-featured-intro {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
}

body.home-page .pg-featured-intro__copy {
  min-width: 0;
}

body.home-page .pg-featured-intro__copy .eyebrow {
  margin-bottom: 4px;
}

body.home-page .pg-featured-intro__copy h2 {
  margin-bottom: 6px;
}

body.home-page .pg-featured-intro__copy .home-section-note {
  margin-bottom: 4px;
  max-width: none;
}

body.home-page .pg-featured-intro__copy .home-rv-checked-note {
  margin-top: 2px;
  margin-bottom: 0;
}

body.home-page .pg-featured-fresh {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 163, 96, 0.28);
  background: linear-gradient(165deg, rgba(232, 245, 238, 0.7) 0%, rgba(248, 249, 246, 0.96) 100%);
  box-shadow: 0 8px 20px rgba(6, 43, 91, 0.05);
}

body.home-page .pg-featured-fresh__eyebrow {
  margin: 0 0 8px;
  color: var(--pg-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Recently Confirmed period label — time window, not a property count */
body.home-page .pg-featured-fresh__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
}

body.home-page .pg-featured-fresh__metric {
  margin: 0;
  padding: 8px 12px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.15;
  color: var(--pg-navy);
  border-right: 1px solid rgba(6, 43, 91, 0.12);
  min-width: 6.75rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(221, 247, 235, 0.55) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(6, 43, 91, 0.08);
}

body.home-page .pg-featured-fresh__metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(6, 43, 91, 0.08),
    0 4px 10px rgba(226, 85, 74, 0.18);
}

body.home-page .pg-featured-fresh__metric-icon svg,
body.home-page .pg-featured-fresh__metric-icon .pg-cal-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

body.home-page .pg-featured-fresh__metric-label {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--pg-navy);
  max-width: 7.25rem;
  text-align: center;
}

/* Legacy numeral classes kept inert if hydrated by older caches */
body.home-page .pg-featured-fresh__metric-num,
body.home-page .pg-featured-fresh__metric-unit {
  display: none;
}

body.home-page .pg-featured-fresh__copy {
  min-width: 0;
}

body.home-page .pg-featured-fresh__title {
  margin: 0 0 4px;
  color: var(--pg-navy);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.28;
}

body.home-page .pg-featured-fresh__text {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

body.home-page .pg-featured-fresh__link {
  font-size: 0.88rem;
  font-weight: 600;
}

/* Pull property photos closer to the intro row */
body.home-page .pg-journey-featured .home-listing-panel {
  gap: 12px;
}

@media (max-width: 760px) {
  body.home-page .pg-featured-intro {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  body.home-page .pg-featured-fresh {
    padding: 12px 14px;
  }

  body.home-page .pg-featured-fresh__row {
    gap: 10px 12px;
  }

  body.home-page .pg-featured-fresh__metric {
    padding: 8px 10px;
    min-width: 6.25rem;
  }

  body.home-page .pg-featured-fresh__metric-label {
    font-size: 0.86rem;
  }

  body.home-page .pg-journey-featured .home-listing-panel {
    gap: 12px;
  }
}

body.home-page .pg-journey-areas {
  background: var(--pg-neutral);
}

body.home-page .home-areas-grid.popular-areas {
  align-items: stretch;
}

body.home-page .home-area-card {
  height: 100%;
  min-height: 84px;
  max-height: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

body.home-page .home-area-card:hover {
  border-color: rgba(11, 163, 96, 0.4);
}

body.home-page .home-area-card__count,
body.home-page .home-area-card .chip-count {
  white-space: normal;
}

/* Why PropGlen — B2-P decide / save & compare */
body.home-page .pg-why {
  background: #ffffff;
}

/* S2-B acceptance: trim ~40px vertical whitespace without disturbing card alignment */
body.home-page .home-section.pg-why {
  padding-top: clamp(24px, 3.2vw, 40px);
  padding-bottom: clamp(24px, 3.2vw, 40px);
}

body.home-page .pg-why__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(14px, 2.4vw, 24px);
  margin-top: 6px;
  align-items: stretch;
}

/* Explore by Area — keep balanced 4×2 desktop for the eight area cards */
@media (min-width: 761px) {
  body.home-page .home-areas-grid.popular-areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.home-page .home-areas-grid.popular-areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.home-page .pg-why__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(11, 163, 96, 0.16);
  background: var(--pg-mint);
}

body.home-page .pg-why__feature-visual {
  min-width: 0;
}

body.home-page .pg-why__feature .home-save-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

body.home-page .pg-why__feature .home-save-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #e7eef5;
}

body.home-page .pg-why__feature .home-save-shot:first-child {
  margin-top: 22px;
}

body.home-page .pg-why__feature .home-save-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .pg-why__feature .home-save-shot span,
body.home-page .pg-why__card-visual .home-save-shot span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: 6px;
  max-width: none;
  width: auto;
  box-sizing: border-box;
  padding: 4px 7px 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.3;
  /* Prefer full area names on two lines over mid-word ellipsis */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* S2-K default = Rental emerald; Sale collage overrides to navy */
  background: rgba(11, 163, 96, 0.88);
  border-radius: 6px;
}

body.home-page .pg-why__column--rent .home-save-shot span,
body.home-page .pg-why__feature:not(.pg-why__feature--buy) .home-save-shot span {
  background: rgba(11, 163, 96, 0.88);
}

body.home-page .pg-why__feature .home-save-shot:focus-visible {
  outline: 2px solid var(--pg-emerald);
  outline-offset: 3px;
}

body.home-page .pg-why__feature-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body.home-page .pg-why__feature-kicker {
  margin: 0;
  color: var(--pg-emerald);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home-page .pg-why__feature-copy h3 {
  margin: 0;
  color: var(--pg-navy);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.home-page .pg-why__feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

body.home-page .pg-why__feature-copy .button {
  align-self: flex-start;
  margin-top: 4px;
}

body.home-page .pg-why__support {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
  align-items: stretch;
}

body.home-page .pg-why__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
}

body.home-page .pg-why__card--mint {
  background: var(--pg-mint);
  border-color: rgba(11, 163, 96, 0.18);
}

/* Recently Confirmed story — curated photo strip (existing save-shot pattern) */
body.home-page .pg-why__card-visual {
  margin: 0 0 4px;
}

body.home-page .pg-why__card-visual:empty {
  display: none;
}

body.home-page .pg-why__card-visual .home-save-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.home-page .pg-why__card-visual .home-save-shot {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

body.home-page .pg-why__card-visual .home-save-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.home-page .pg-why__card--pale {
  background: var(--pg-pale);
  border-color: rgba(6, 43, 91, 0.1);
}

body.home-page .pg-why__card h3 {
  margin: 0;
  color: var(--pg-navy);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

body.home-page .pg-why__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 0 1 auto;
}

body.home-page .pg-why__card .home-text-link {
  color: var(--pg-emerald);
  font-weight: 600;
  margin-top: auto;
}

body.home-page .pg-why__card .home-text-link--secondary {
  font-weight: 550;
  opacity: 0.92;
}

/* Needs + List invitation bands — B2-R */
body.home-page .pg-needs {
  background: var(--pg-neutral);
}

body.home-page .pg-list {
  background: var(--pg-ivory);
}

body.home-page .pg-needs__editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 34px) clamp(18px, 3vw, 36px);
  border-radius: 18px;
  border: 1px solid rgba(11, 163, 96, 0.16);
  background:
    linear-gradient(135deg, rgba(221, 247, 235, 0.95) 0%, rgba(243, 252, 247, 0.9) 48%, #ffffff 100%);
}

body.home-page[data-pg-sale-surfaces-live="1"] .pg-needs__editorial:has(.pg-needs__buy:not([hidden])) {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  align-items: stretch;
}

body.home-page .pg-needs__copy {
  display: grid;
  gap: 10px;
  max-width: 44rem;
  min-width: 0;
}

body.home-page .pg-needs__copy .eyebrow {
  margin: 0;
  color: var(--pg-emerald);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

body.home-page .pg-needs__copy h2 {
  margin: 0;
  color: var(--pg-navy);
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
}

body.home-page .pg-needs__copy .home-section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 40rem;
}

body.home-page .pg-needs__ai {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(6, 43, 91, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

body.home-page .pg-needs__ai h3 {
  margin: 0;
  color: var(--pg-navy);
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

body.home-page .pg-needs__ai p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.home-page .pg-needs__ai .home-text-link {
  color: var(--pg-emerald);
  font-weight: 600;
}

body.home-page .pg-list__frame {
  display: grid;
  gap: 12px;
  max-width: 42rem;
}

body.home-page .pg-list__copy .eyebrow {
  margin-bottom: 6px;
}

body.home-page .pg-list__copy h2 {
  margin: 0 0 10px;
  color: var(--pg-navy);
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

body.home-page .pg-list__copy p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

body.home-page .pg-needs__actions,
body.home-page .pg-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

body.home-page .pg-email {
  background: #ffffff;
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(24px, 3.5vw, 40px);
}

body.home-page .home-email-close__frame,
body.home-page .pg-email__strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 16px 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(6, 43, 91, 0.12);
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 28px) clamp(18px, 3vw, 32px);
  box-shadow: none;
}

body.home-page .pg-email__copy h2,
body.home-page .home-email-close__frame h2 {
  margin: 0 0 8px;
  color: var(--pg-navy);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: none;
}

body.home-page .pg-email__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38rem;
}

body.home-page .pg-email__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: min(100%, 15rem);
}

body.home-page .pg-email__actions .button {
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 767px) {
  body.home-page .pg-needs__editorial {
    padding: 20px 16px;
  }

  body.home-page .home-email-close__frame,
  body.home-page .pg-email__strip {
    grid-template-columns: 1fr;
    padding: 16px 14px;
  }
}

/* Soften listing panel chrome */
body.home-page .home-listing-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* ---------- B2-N Featured Properties premium polish ---------- */
body.home-page .pg-journey-featured .home-listing-grid {
  gap: 16px;
}

body.home-page .pg-journey-featured .home-featured-card,
body.home-page .home-section-listings .home-featured-card {
  min-width: 0;
}

body.home-page .pg-journey-featured .home-property-card,
body.home-page .home-section-listings .home-property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(6, 43, 91, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 43, 91, 0.08);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

body.home-page .pg-journey-featured .home-property-media,
body.home-page .home-section-listings .home-property-media {
  aspect-ratio: 4 / 3;
  min-height: 168px;
  background: #eef2ef;
}

body.home-page .pg-journey-featured .home-property-media img,
body.home-page .home-section-listings .home-property-media img {
  object-fit: cover;
  object-position: center 38%;
  filter: none;
  transition: transform 0.35s ease;
}

body.home-page .pg-journey-featured .home-property-body,
body.home-page .home-section-listings .home-property-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 6px;
  padding: 14px 14px 15px;
  flex: 1 1 auto;
  min-width: 0;
}

body.home-page .pg-journey-featured .home-property-avail,
body.home-page .home-section-listings .home-property-avail {
  margin: 0;
  color: #0ba360;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home-page .pg-journey-featured .home-property-body h3,
body.home-page .home-section-listings .home-property-body h3 {
  margin: 0;
  color: #062b5b;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.home-page .pg-journey-featured .home-property-meta,
body.home-page .home-section-listings .home-property-meta {
  margin: 0;
  color: #4a5a6d;
  font-size: 0.86rem;
  line-height: 1.35;
}

body.home-page .pg-journey-featured .home-property-reviewed,
body.home-page .home-section-listings .home-property-reviewed {
  margin: 0;
  color: #3d4d60;
  font-size: 0.78rem;
  font-weight: 600;
}

body.home-page .pg-journey-featured .home-property-footer,
body.home-page .home-section-listings .home-property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  min-width: 0;
}

body.home-page .pg-journey-featured .home-property-lister,
body.home-page .home-section-listings .home-property-lister {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

body.home-page .pg-journey-featured .home-lister-avatar,
body.home-page .home-section-listings .home-lister-avatar,
body.home-page .pg-journey-featured .home-property-lister img,
body.home-page .home-section-listings .home-property-lister img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

body.home-page .pg-journey-featured .home-property-lister-name,
body.home-page .home-section-listings .home-property-lister-name {
  min-width: 0;
  color: #062b5b;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-page .pg-journey-featured .home-card-link,
body.home-page .home-section-listings .home-card-link {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #0ba360;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}

/* Compact Listing Checked / Recently Confirmed chips on featured media */
body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge,
body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge--compact,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge--compact {
  min-height: 0;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 8px rgba(6, 43, 91, 0.12);
}

body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge__icon,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__icon {
  width: 16px;
  height: 16px;
}

body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge__icon .icon,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__icon .icon {
  width: 11px;
  height: 11px;
}

body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge__text strong,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__text strong {
  font-size: 0.66rem;
  line-height: 1.1;
  font-weight: 700;
}

body.home-page .pg-journey-featured .home-property-media .media-badges .rv-check-badge__sub,
body.home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__sub {
  display: none;
}

/* S2-D — Sale Listing Checked: navy Buy channel on featured Sale cards */
body.home-page .home-featured-card--sale .media-badges .rv-check-badge--sale {
  color: #062b5b;
  border-color: rgba(6, 43, 91, 0.28);
}

body.home-page .home-featured-card--sale .media-badges .rv-check-badge--sale .rv-check-badge__icon {
  background: linear-gradient(145deg, #0a3a72 0%, #062b5b 100%);
}

body.home-page .pg-journey-featured .home-property-media .rent-badge,
body.home-page .home-section-listings .home-property-media .rent-badge {
  min-height: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.1);
}

body.home-page .pg-journey-featured .home-property-media .rent-badge::before,
body.home-page .home-section-listings .home-property-media .rent-badge::before {
  font-size: 0.62rem;
  margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .pg-journey-featured .home-property-card:hover,
  body.home-page .home-section-listings .home-property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 163, 96, 0.28);
    box-shadow: 0 16px 34px rgba(6, 43, 91, 0.1);
  }

  body.home-page .pg-journey-featured .home-property-card:hover .home-property-media img,
  body.home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: scale(1.035);
  }

  body.home-page .pg-journey-featured .home-property-card:hover .home-card-link,
  body.home-page .home-section-listings .home-property-card:hover .home-card-link {
    background: #099656;
  }
}

body.home-page .pg-journey-featured .home-property-card:focus-visible,
body.home-page .home-section-listings .home-property-card:focus-visible {
  outline: 2px solid #0ba360;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .pg-journey-featured .home-property-card,
  body.home-page .home-section-listings .home-property-card,
  body.home-page .pg-journey-featured .home-property-card:hover,
  body.home-page .home-section-listings .home-property-card:hover {
    transform: none !important;
    transition: border-color 0.01ms linear, box-shadow 0.01ms linear;
  }

  body.home-page .pg-journey-featured .home-property-media img,
  body.home-page .home-section-listings .home-property-media img,
  body.home-page .pg-journey-featured .home-property-card:hover .home-property-media img,
  body.home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile/tablet featured rail: keep consistent 4:3 crop (overrides style.css aspect-ratio:auto + fixed height). */
@media (max-width: 900px) {
  body.home-page .pg-journey-featured .home-property-media,
  body.home-page .home-section-listings .home-property-media {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

@media (max-width: 1100px) {
  body.home-page .pg-why__layout {
    grid-template-columns: 1fr;
  }

  body.home-page .pg-why__feature {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 900px) {
  body.home-page .pg-why__feature {
    grid-template-columns: 1fr;
  }

  body.home-page .pg-why__feature .home-save-shot:first-child {
    margin-top: 0;
  }

  body.home-page .pg-needs__paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.home-page .pg-why__card,
  body.home-page .pg-why__feature,
  body.home-page .pg-needs__path,
  body.home-page .pg-list__frame,
  body.home-page .home-email-close__frame {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.home-page .pg-needs__actions,
  body.home-page .pg-list__actions,
  body.home-page .pg-why__feature-copy .button {
    width: 100%;
  }

  body.home-page .pg-needs__actions .button,
  body.home-page .pg-list__actions .button,
  body.home-page .pg-why__feature-copy .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .pg-why__feature .home-save-shot,
  body.home-page .pg-why__card,
  body.home-page .pg-needs__path {
    transition: none !important;
  }
}

/* ============================================================
   B2-C — Final visual polish
   ============================================================ */

/* Concise mobile area placeholder — keep lead only */
@media (max-width: 390px) {
  body.home-page .home-search-placeholder__segment,
  body.home-page .home-search-placeholder__divider {
    display: none !important;
  }

  body.home-page .home-search-placeholder__lead {
    display: inline !important;
  }
}

/* ============================================================
   B2-H — Hybrid editorial hero
   Left: warm content + white search. Right: clear property photo (~55–60%).
   No search-over-photo; no washed-out scrim.
   ============================================================ */

body.home-page .home-hero.home-hero--hybrid {
  background: var(--pg-ivory) !important;
  padding: clamp(16px, 2.6vw, 32px) 0 clamp(18px, 2.8vw, 36px);
}

body.home-page .home-hero.home-hero--hybrid .home-hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  grid-template-areas:
    "intro visual"
    "search visual"
    "trust trust";
  column-gap: clamp(22px, 3.2vw, 48px);
  row-gap: 16px;
  align-items: start;
  min-width: 0;
}

body.home-page .home-hero.home-hero--hybrid .home-hero__intro {
  grid-area: intro;
  max-width: 100%;
  color: var(--pg-navy);
  text-shadow: none;
  padding-right: 4px;
}

body.home-page .home-hero.home-hero--hybrid .home-hero__visual {
  grid-area: visual;
  align-self: stretch;
  min-width: 0;
  min-height: clamp(380px, 52vh, 560px);
  height: auto;
}

body.home-page .home-hero.home-hero--hybrid .home-hero .search-card {
  grid-area: search;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-self: start;
  margin: 0;
  padding: 18px 16px 16px;
  background: #ffffff;
  border: 1px solid rgba(6, 43, 91, 0.09);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px rgba(6, 43, 91, 0.08),
    0 2px 8px rgba(6, 43, 91, 0.04);
}

body.home-page .home-hero.home-hero--hybrid .home-hero__trust {
  grid-area: trust;
  max-width: 44rem;
  margin: 2px 0 0;
}

body.home-page .home-hero.home-hero--hybrid .home-hero-headline {
  margin-bottom: 12px;
}

/* S2-L: reserve two-line headline box so font/slide swaps do not move search. */
body.home-page .home-hero.home-hero--hybrid .home-hero-headline__stack {
  min-height: calc(2.15 * 1.03 * clamp(2.15rem, 3.4vw, 3.35rem));
}

body.home-page .home-hero.home-hero--hybrid .home-hero__intro h1.home-hero-headline__slide,
body.home-page .home-hero.home-hero--hybrid .home-hero .hero-copy h1.home-hero-headline__slide,
body.home-page .home-hero.home-hero--hybrid .home-hero-headline__slide {
  max-width: 11.5em;
  font-size: clamp(2.15rem, 3.4vw, 3.35rem);
  letter-spacing: -0.038em;
  line-height: 1.03;
  color: var(--pg-navy) !important;
}

body.home-page .home-hero.home-hero--hybrid .home-hero .hero-text {
  max-width: 34em;
  color: #445566;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
}

/* Clear photograph — natural colour, elegant radius, no wash */
body.home-page .home-hero.home-hero--hybrid .home-hero__photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(380px, 52vh, 560px);
  max-height: none;
  overflow: hidden;
  border-radius: 24px;
  background: #e6ece8;
  box-shadow: 0 16px 40px rgba(6, 43, 91, 0.1);
}

body.home-page .home-hero.home-hero--hybrid .home-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  /* Preserve natural colour — no desaturate / brightness filters */
  filter: none;
}

body.home-page .home-hero.home-hero--hybrid .home-hero__visual:not(:has(.home-hero__photo)) {
  display: none;
}

body.home-page .home-hero.home-hero--hybrid .home-hero__frame:not(:has(.home-hero__photo)) {
  grid-template-columns: minmax(0, 40rem);
  grid-template-areas:
    "intro"
    "search"
    "trust";
}

body.home-page .home-hero.home-hero--hybrid .home-hero__photo-place {
  left: 16px;
  right: auto;
  bottom: 16px;
  color: var(--pg-navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(6, 43, 91, 0.08);
}

@media (min-width: 1100px) {
  body.home-page .home-hero.home-hero--hybrid .home-hero__frame {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__visual,
  body.home-page .home-hero.home-hero--hybrid .home-hero__photo {
    min-height: clamp(420px, 54vh, 580px);
  }
}

/* Mobile — headline → photo → search; clear controls; no overlay */
@media (max-width: 959px) {
  body.home-page .home-hero.home-hero--hybrid {
    padding: 12px 0 16px;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    grid-template-columns: none;
    grid-template-areas: none;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__intro {
    order: 1;
    padding-right: 0;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__visual {
    order: 2;
    min-height: 0;
    height: auto;
    align-self: stretch;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero .search-card {
    order: 3;
    padding: 14px 12px 12px;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__trust {
    order: 4;
    margin: 0;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero-headline__stack {
    min-height: calc(2.2 * 1.08 * clamp(1.75rem, 7.2vw, 2.35rem));
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__intro h1.home-hero-headline__slide,
  body.home-page .home-hero.home-hero--hybrid .home-hero .hero-copy h1.home-hero-headline__slide,
  body.home-page .home-hero.home-hero--hybrid .home-hero-headline__slide {
    max-width: 100%;
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 1.08;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero .hero-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__photo {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }

  body.home-page .home-hero.home-hero--hybrid .home-hero__photo img {
    object-position: center 40%;
  }

  /* Keep search above fixed mobile app nav */
  body.home-page .home-hero.home-hero--hybrid .home-hero .search-card {
    margin-bottom: 4px;
  }
}

@media (max-width: 390px) {
  body.home-page .home-hero.home-hero--hybrid .home-hero__photo {
    aspect-ratio: 16 / 11;
    min-height: 188px;
    max-height: 240px;
  }
}

@media (max-width: 320px) {
  body.home-page .home-hero.home-hero--hybrid .home-hero__photo {
    min-height: 172px;
    max-height: 210px;
  }
}

/* B2-G signature overlay composition replaced by B2-H hybrid editorial hero above. */

/* Compact trust cue under hero */
body.home-page .home-hero__trust {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
}

body.home-page .home-hero__trust-link {
  color: var(--pg-emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.home-page .pg-why__trust-detail {
  margin: 10px 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* B2-O — single trust explanation + accessible safety/verification links */
body.home-page .pg-why__trust-links {
  margin: 8px 0 0;
  max-width: 44rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

body.home-page .pg-why__trust-links a {
  color: var(--pg-emerald);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile app nav — clear last CTAs + safe area */
body.home-page .mobile-app-nav {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

/*
 * Mobile nav clearance for end-of-page is owned by .pg-footer (≤760px).
 * Do not also pad .home-main — that created a large email→footer void.
 */
body.home-page .home-main {
  padding-bottom: 0;
}

/* ============================================================
   Footer geometry — delegated to css/propglen-site-footer.css
   (Footer Desktop Spacing Polish V1). Do not re-assert desktop
   grid/gap/padding here: competing home-only rules made the
   approved footer appear to “revert” when site-footer.css was
   stale-cached under a fixed ?v= stamp.
   Homepage-specific mobile clearance continues below.
   ============================================================ */

/*
 * B2-U mobile completion
 * - Mobile nav is visible only ≤760px (style.css). Clearance pad must match that,
 *   not the broader ≤900px footer rule (which left empty space at 768).
 * - home-main's 84px bottom pad was creating a large email→footer void; footer
 *   now owns end-of-page clearance instead.
 */

/* Tablet/narrow desktop with no floating nav: compact footer bottom, no fake clearance */
@media (min-width: 761px) and (max-width: 900px) {
  body.home-page:not(.listing-detail-page) .site-footer.pg-footer,
  body.home-page .bayut-serp-page.home-page .site-footer.pg-footer,
  body.home-page .site-footer.pg-footer {
    padding-bottom: 24px;
    background: #f8f9f6;
  }
}

/* Phone: nav visible — reserve space on footer surface only (continuous #F8F9F6) */
@media (max-width: 760px) {
  body.home-page:not(.listing-detail-page) .site-footer.pg-footer,
  body.home-page .bayut-serp-page.home-page .site-footer.pg-footer,
  body.home-page .site-footer.pg-footer {
    /*
     * Nav is 71px and inset 8px. 82px left the copyright 3px under the bar.
     * The shared clearance token leaves a small gap without a tall void.
     */
    padding-bottom: var(--mobile-nav-clearance, calc(90px + env(safe-area-inset-bottom, 0px)));
    background: #f8f9f6;
  }

  /* Remove email→footer void created by main bottom padding intended for nav clearance */
  body.home-page .home-main {
    padding-bottom: 0;
  }

  body.home-page .pg-email {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  body.home-page .pg-footer {
    padding-top: 28px;
  }

  body.home-page .pg-footer__grid {
    gap: 20px;
  }

  body.home-page .pg-footer__brand {
    gap: 8px;
    max-width: 100%;
  }

  body.home-page .footer-brand-logo {
    width: clamp(132px, 42vw, 156px);
  }

  body.home-page .pg-footer__descriptor {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  body.home-page .pg-footer__tagline,
  body.home-page .pg-footer__brand .footer-brand-tagline {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  body.home-page .pg-footer__operator,
  body.home-page .pg-footer__brand .footer-note {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  body.home-page .pg-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  body.home-page .pg-footer__col h3 {
    margin: 0 0 6px;
    font-size: 0.7rem;
  }

  body.home-page .pg-footer__col > a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 0;
    font-size: 0.9rem;
  }

  body.home-page .pg-footer__col--contact {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  body.home-page .site-footer.pg-footer .footer-link-groups .footer-social,
  body.home-page .pg-footer .footer-social {
    margin-top: 8px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  body.home-page .site-footer.pg-footer .footer-link-groups .footer-social > a,
  body.home-page .pg-footer .footer-social a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  body.home-page .pg-footer__app-label {
    margin: 12px 0 4px;
  }

  body.home-page .pg-footer .footer-app__badge-img {
    width: min(140px, 100%);
  }

  body.home-page .pg-footer__bottom {
    margin-top: 18px;
    padding: 16px 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
  }

  body.home-page .home-email-close__frame,
  body.home-page .pg-email__strip {
    grid-template-columns: 1fr;
    padding: 16px 14px;
  }

  body.home-page .pg-email__actions {
    align-items: stretch;
    min-width: 0;
  }

  body.home-page .pg-email__actions .button {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 374px) {
  body.home-page .pg-footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  body.home-page .footer-brand-logo {
    width: 128px;
  }

  body.home-page .pg-footer__tagline,
  body.home-page .pg-footer__brand .footer-brand-tagline {
    font-size: 0.88rem;
  }
}

/* ============================================================
   B2-T — Purposeful premium motion (selective; no opacity hide base)
   ============================================================ */

body.home-page .pg-needs__editorial,
body.home-page .pg-email__strip,
body.home-page .pg-list__actions .button,
body.home-page .pg-email__actions .button,
body.home-page .pg-needs__actions .button {
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

/* Hero property photo crossfade on subsequent swaps only (not first paint). */
body.home-page .home-hero__photo img {
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* SSR Rent LCP: paint fully opaque as soon as decoded — no intro fade from empty chrome. */
body.home-page .home-hero__photo--rent img:not(.pg-hero-photo-dim):not(.pg-hero-photo-fade) {
  opacity: 1;
  transition: none;
}

body.home-page .home-hero__photo img.pg-hero-photo-dim {
  opacity: 0.2;
}

body.home-page .home-hero__photo img.pg-hero-photo-fade {
  animation: pg-hero-photo-crossfade 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pg-hero-photo-crossfade {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

/* V3: keep the active Rent photograph above the Sale still while Rent mode is live */
body.home-page .home-hero__visual .home-hero__photo--rent:not([hidden]) {
  z-index: 2;
}

body.home-page .home-hero__visual .home-hero__photo--sale:not([hidden]) {
  z-index: 2;
}

/* Editorial fade/rise — transform + opacity only after JS marks prep; no-JS stays fully visible */
html.pg-motion-ready body.home-page .pg-motion-prep:not(.pg-motion-in) {
  opacity: 0.001;
  transform: translate3d(0, 14px, 0);
}

html.pg-motion-ready body.home-page .pg-motion-prep {
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--pg-stagger, 0ms);
  will-change: opacity, transform;
}

html.pg-motion-ready body.home-page .pg-motion-prep.pg-motion-in,
html.pg-motion-ready body.home-page .pg-motion-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

html.pg-motion-ready body.home-page .pg-motion-card.pg-motion-prep:not(.pg-motion-in) {
  opacity: 0.001;
  transform: translate3d(0, 14px, 0);
}

/* Tune existing home-rise keyframes used by main.js */
@media (prefers-reduced-motion: no-preference) {
  body.home-page .home-rise {
    animation: pg-section-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes pg-section-rise {
  from { transform: translate3d(0, 14px, 0); }
  to { transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .pg-needs__editorial:hover,
  body.home-page .pg-email__strip:hover {
    border-color: rgba(11, 163, 96, 0.28);
  }

  body.home-page .pg-needs__editorial:focus-within,
  body.home-page .pg-list__actions .button:focus-visible,
  body.home-page .pg-email__actions .button:focus-visible,
  body.home-page .pg-needs__actions .button:focus-visible {
    outline: 2px solid var(--pg-emerald);
    outline-offset: 3px;
  }

  body.home-page .home-section-listings .home-property-card {
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  body.home-page .home-section-listings .home-property-card:hover {
    border-color: rgba(11, 81, 63, 0.28);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  }

  body.home-page .button,
  body.home-page .pg-footer__col > a {
    transition-duration: 160ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .pg-needs__editorial,
  body.home-page .pg-email__strip,
  body.home-page .pg-list__actions .button,
  body.home-page .pg-email__actions .button,
  body.home-page .home-hero__photo img,
  body.home-page .home-section-listings .home-property-card,
  body.home-page .button {
    transition: none !important;
    animation: none !important;
  }

  html.pg-motion-ready body.home-page .pg-motion-prep,
  html.pg-motion-ready body.home-page .pg-motion-prep:not(.pg-motion-in),
  html.pg-motion-ready body.home-page .pg-motion-prep.pg-motion-in,
  html.pg-motion-ready body.home-page .pg-motion-in,
  html.pg-motion-ready body.home-page .pg-motion-card.pg-motion-prep:not(.pg-motion-in) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Featured Sale — coordinated with Featured rentals; navy / pale-blue only */
body.home-page .pg-journey-featured-sale {
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 42%);
}

body.home-page .pg-featured-sale-intro .eyebrow {
  color: #062b5b;
}

body.home-page .home-listing-panel--sale .home-listing-link--sale.button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .home-listing-panel--sale .home-listing-link--sale.button-primary:hover,
body.home-page .home-listing-panel--sale .home-listing-link--sale.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

body.home-page .home-featured-card--sale .home-property-card--sale {
  border-color: rgba(6, 43, 91, 0.14);
}

body.home-page .home-featured-card--sale .home-property-media {
  aspect-ratio: 4 / 3;
}

body.home-page .home-featured-card--sale .sale-asking-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #062b5b;
  color: #ffffff;
  min-height: 0;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.14);
}

body.home-page .home-featured-card--sale .sale-asking-badge::before {
  content: none !important;
  display: none !important;
}

body.home-page .home-featured-card--sale .sale-asking-badge__label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}

body.home-page .home-featured-card--sale .sale-asking-badge__value {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.home-page .home-featured-card--sale .home-card-link,
body.home-page .home-featured-card--sale .home-card-link--sale {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
  font-weight: 650;
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .home-featured-card--sale .home-property-card:hover .home-card-link,
  body.home-page .home-featured-card--sale .home-property-card:hover .home-card-link--sale {
    background: #041f42;
    border-color: #041f42;
    color: #ffffff;
  }
}

body.home-page .home-featured-card--sale .home-property-avail {
  color: #062b5b;
}

/* S2-C — dual stacked hero photographs (Rent LCP + preloaded Sale) */
body.home-page .home-hero__visual {
  position: relative;
}

body.home-page .home-hero__visual .home-hero__photo {
  inset: 0;
}

body.home-page .home-hero__visual .home-hero__photo[hidden] {
  display: none !important;
}

body.home-page .home-hero__visual .home-hero__photo--sale:not([hidden]) {
  display: block;
}

/* Areas Rent/Buy selector (independent of hero) */
body.home-page .pg-areas-mode {
  margin: 0 0 14px;
}

body.home-page .pg-areas-mode__track {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f6f4;
  border: 1px solid rgba(6, 43, 91, 0.12);
}

body.home-page .pg-areas-mode__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #062b5b;
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

body.home-page [data-pg-areas-root][data-pg-areas-mode="rent"] .pg-areas-mode__btn[data-pg-areas-mode-btn="rent"].is-active,
body.home-page .pg-areas-mode__btn[data-pg-areas-mode-btn="rent"].is-active {
  background: #0ba360;
  color: #ffffff;
}

body.home-page [data-pg-areas-root][data-pg-areas-mode="buy"] .pg-areas-mode__btn[data-pg-areas-mode-btn="buy"].is-active,
body.home-page .pg-areas-mode__btn[data-pg-areas-mode-btn="buy"].is-active {
  background: #062b5b;
  color: #ffffff;
}

body.home-page .pg-areas-mode__btn[data-pg-areas-mode-btn="rent"]:focus-visible {
  outline: 2px solid #0ba360;
  outline-offset: 2px;
}

body.home-page .pg-areas-mode__btn[data-pg-areas-mode-btn="buy"]:focus-visible {
  outline: 2px solid #062b5b;
  outline-offset: 2px;
}

body.home-page .home-areas-grid--sale .home-area-card--sale {
  border-color: rgba(6, 43, 91, 0.16);
}

body.home-page .home-areas-grid--sale .home-area-card--sale:hover {
  border-color: rgba(6, 43, 91, 0.4);
}

body.home-page .home-areas-grid--sale .home-area-card__count {
  color: #062b5b;
}

/* Areas section: never fade/slide away after SSR — first paint stays authoritative. */
html.pg-motion-ready body.home-page .home-section-areas.pg-motion-prep,
html.pg-motion-ready body.home-page .home-section-areas.pg-motion-prep:not(.pg-motion-in),
body.home-page .home-section-areas.home-rise {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

body.home-page .home-areas-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

body.home-page .home-areas-all.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 650;
}

body.home-page .home-areas-all.button-primary > .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: block;
}

body.home-page .home-areas-all--rent.button-primary {
  background: #0ba360;
  border-color: #0ba360;
  color: #ffffff;
}

body.home-page .home-areas-all--rent.button-primary:hover,
body.home-page .home-areas-all--rent.button-primary:focus-visible {
  background: #099656;
  border-color: #099656;
  color: #ffffff;
}

body.home-page .home-areas-all--sale.button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .home-areas-all--sale.button-primary:hover,
body.home-page .home-areas-all--sale.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

body.home-page .home-text-link--sale {
  color: #062b5b;
  font-weight: 650;
}

/* Buyer editorial + Buy needs journey */
body.home-page .pg-why__card--buy {
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 70%);
  border: 1px solid rgba(6, 43, 91, 0.14);
}

body.home-page .pg-why__card-kicker {
  margin: 0 0 4px;
  color: #062b5b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home-page .pg-needs__buy {
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 62%);
  border: 1px solid rgba(6, 43, 91, 0.14);
  border-radius: 16px;
  padding: clamp(16px, 2.2vw, 22px);
}

body.home-page .pg-needs__buy .eyebrow {
  color: #062b5b;
}

body.home-page .pg-needs__buy h3 {
  margin: 0 0 8px;
  color: #062b5b;
}

body.home-page .pg-needs__buy-cta.button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .pg-needs__buy-cta.button-primary:hover,
body.home-page .pg-needs__buy-cta.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

body.home-page .pg-email__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

body.home-page .pg-email__sale-link {
  white-space: normal;
}

@media (max-width: 767px) {
  body.home-page[data-pg-sale-surfaces-live="1"] .pg-needs__editorial:has(.pg-needs__buy:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .pg-areas-mode__btn,
  body.home-page .home-hero__photo {
    transition: none !important;
  }
}

/* S2-B addendum — homepage Saved Search dialog mobile usability (no clip). */
body.home-page .rv-saved-search-dialog {
  max-height: min(92dvh, calc(100vh - 1.25rem));
  overflow: hidden;
}
body.home-page .rv-saved-search-dialog__panel {
  max-height: min(92dvh, calc(100vh - 1.25rem));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 430px) {
  body.home-page .rv-saved-search-dialog {
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
  }
  body.home-page .rv-saved-search-dialog__foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  body.home-page .rv-saved-search-dialog__foot .bayut-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== S2-C editorial parity closeout (A–E) ========== */

/* A — unify Featured Rental + Sale card geometry (desktop grid; mobile keeps flex carousel) */
body.home-page .pg-journey-featured .home-listing-grid,
body.home-page .pg-journey-featured-sale .home-listing-grid,
body.home-page .home-section-listings .home-listing-grid {
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 901px) {
  body.home-page .pg-journey-featured .home-listing-grid,
  body.home-page .pg-journey-featured-sale .home-listing-grid,
  body.home-page .home-section-listings .home-listing-grid {
    display: grid;
  }
}

@media (max-width: 900px) {
  body.home-page .pg-journey-featured .home-listing-grid,
  body.home-page .pg-journey-featured-sale .home-listing-grid,
  body.home-page .home-section-listings .home-listing-grid {
    display: flex;
  }

  body.home-page .pg-journey-featured .home-featured-card,
  body.home-page .pg-journey-featured-sale .home-featured-card,
  body.home-page .home-section-listings .home-featured-card {
    flex: 0 0 calc(100% - 28px);
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  /* Keep media tall enough that Save-heart (top) and price badge (bottom) do not collide */
  body.home-page .pg-journey-featured .home-property-media,
  body.home-page .pg-journey-featured-sale .home-property-media,
  body.home-page .home-section-listings .home-property-media {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 168px !important;
    max-height: none !important;
  }

  body.home-page .home-section-listings .home-property-media .sale-asking-badge {
    max-width: min(70%, 11.5rem);
    max-height: calc(100% - 52px);
    overflow: hidden;
  }

  body.home-page .home-section-listings .sale-asking-badge__label {
    display: none;
  }

  body.home-page .home-section-listings .sale-asking-badge__terms {
    font-size: 0.58rem;
  }
}

body.home-page .pg-journey-featured-sale .home-featured-card,
body.home-page .home-section-listings .home-featured-card--sale {
  min-width: 0;
  height: 100%;
}

body.home-page .pg-journey-featured-sale .home-property-card,
body.home-page .home-section-listings .home-property-card--sale {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(6, 43, 91, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(6, 43, 91, 0.05);
  overflow: hidden;
}

body.home-page .pg-journey-featured-sale .home-property-media,
body.home-page .home-section-listings .home-featured-card--sale .home-property-media {
  aspect-ratio: 4 / 3;
  min-height: 168px;
  position: relative;
  background: #e7eef5;
}

body.home-page .pg-journey-featured-sale .home-property-body,
body.home-page .home-section-listings .home-featured-card--sale .home-property-body {
  display: grid;
  /* Spotlight/card: avail · title · price · meta · reviewed · footer */
  grid-template-rows: auto auto auto auto auto 1fr;
  gap: 6px;
  padding: 14px 14px 15px;
  flex: 1 1 auto;
  min-width: 0;
}

body.home-page .pg-journey-featured-sale .home-property-avail,
body.home-page .home-section-listings .home-featured-card--sale .home-property-avail {
  margin: 0;
  color: #062b5b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Recently Confirmed replaces redundant For Sale — match Featured Rentals reviewed claim */
body.home-page .pg-journey-featured-sale .home-property-avail--recently-confirmed,
body.home-page .home-section-listings .home-featured-card--sale .home-property-avail--recently-confirmed {
  color: #3d4d60;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Featured Sale titles — readable sentence case (Residential detail convention); source titles unchanged */
body.home-page .pg-journey-featured-sale .home-property-body h3,
body.home-page .home-section-listings .home-featured-card--sale .home-property-body h3 {
  margin: 0;
  color: #062b5b;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Body asking price — scannable in the facts column; overlay badge reserved for multi-card grids */
body.home-page .home-section-listings .home-featured-card--sale .home-property-price--sale {
  display: none;
  margin: 2px 0 0;
  color: #062b5b;
  min-width: 0;
}

body.home-page .home-section-listings .home-featured-card--sale .home-property-price__value {
  display: block;
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #062b5b;
}

body.home-page .home-section-listings .home-featured-card--sale .home-property-price__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 4px;
}

body.home-page .home-section-listings .home-featured-card--sale .home-property-price__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5a6b7d;
}

body.home-page .home-section-listings .home-featured-card--sale .home-property-price__terms {
  font-size: 0.78rem;
  font-weight: 650;
  color: #3d4d60;
}

body.home-page .pg-journey-featured-sale .home-listings-swipe-hint--sale,
body.home-page .home-listings-swipe-hint--sale {
  margin: 2px 0 8px;
}

body.home-page .pg-journey-featured-sale .home-property-footer,
body.home-page .home-section-listings .home-featured-card--sale .home-property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  min-width: 0;
}

body.home-page .pg-journey-featured-sale .home-property-lister,
body.home-page .home-section-listings .home-featured-card--sale .home-property-lister {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

body.home-page .pg-journey-featured-sale .home-property-lister--unassigned .home-property-lister-name,
body.home-page .home-section-listings .home-featured-card--sale .home-property-lister--unassigned .home-property-lister-name {
  color: #5a6b7d;
  font-weight: 600;
}

/* Monthly rent + total asking badges — shared bottom-right placement */
body.home-page .home-section-listings .home-property-media .property-image-meta,
body.home-page .home-section-listings .home-property-media .property-image-meta--overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
  border: 0;
}

body.home-page .home-section-listings .home-property-media .media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Keep Listing Checked clear of Save-heart (top-right) on narrow cards */
  max-width: calc(100% - 72px);
}

body.home-page .home-section-listings .home-featured-card .home-featured-save,
body.home-page .home-section-listings .home-featured-card .bayut-card__fav {
  top: 10px;
  right: 10px;
}

body.home-page .home-section-listings .home-property-media .rent-badge,
body.home-page .home-section-listings .home-property-media .sale-asking-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  top: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.12);
}

/* S2-K — Rental price chip = solid emerald; Sale asking chip = deep navy */
body.home-page .home-section-listings .home-property-media .rent-badge {
  background: #0ba360;
  border: 1px solid #0ba360;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 163, 96, 0.22);
}

body.home-page .home-section-listings .home-property-media .rent-badge::before {
  content: none !important;
  display: none !important;
}

body.home-page .home-section-listings .home-property-media .rent-badge__label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.home-page .home-section-listings .home-property-media .rent-badge__value {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.home-page .home-section-listings .home-property-media .rent-badge .bayut-card__negotiable {
  display: block;
  margin: 2px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

body.home-page .home-section-listings .home-property-media .sale-asking-badge {
  background: #062b5b;
  border: 1px solid #062b5b;
  color: #ffffff;
  align-items: flex-end;
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.22);
}

body.home-page .home-section-listings .home-property-card:focus-visible {
  outline: 2px solid #0ba360;
  outline-offset: 3px;
}

body.home-page .home-section-listings .home-property-card--sale:focus-visible {
  outline-color: #062b5b;
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .pg-journey-featured-sale .home-property-card:hover,
  body.home-page .home-section-listings .home-property-card--sale:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 43, 91, 0.28);
    box-shadow: 0 16px 34px rgba(6, 43, 91, 0.1);
  }
}

/* C — balanced Decide dual columns (restored pre–Height Balance V1 / Spacing V2) */
body.home-page .pg-why__dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 22px);
  margin-top: 8px;
  align-items: stretch;
}

body.home-page[data-pg-sale-surfaces-live="1"] .pg-why__dual:has(.pg-why__column--buy:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .pg-why__column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 100%;
}

body.home-page .pg-why__column-kicker {
  margin: 0;
  color: #0ba360;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

body.home-page .pg-why__column-kicker--buy {
  color: #062b5b;
}

body.home-page .pg-why__column--rent .pg-why__feature,
body.home-page .pg-why__column--buy .pg-why__feature--buy {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  flex: 1 1 auto;
  align-items: stretch;
}

body.home-page .pg-why__column--rent .pg-why__support,
body.home-page .pg-why__support--buy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  align-items: stretch;
  flex: 0 0 auto;
}

body.home-page .pg-why__column--rent .pg-why__card,
body.home-page .pg-why__support--buy .pg-why__card {
  min-height: 100%;
}

body.home-page .pg-why__column--rent .pg-why__card .home-text-link,
body.home-page .pg-why__support--buy .pg-why__card .home-text-link {
  margin-top: auto;
}

/* S2-I — buyer Decide mirrors rental Save & Compare collage + support cards (navy) */
body.home-page .pg-why__feature--buy {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 18px;
  border: 1px solid rgba(6, 43, 91, 0.14);
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 58%);
}

body.home-page .pg-why__feature--buy .home-save-shots--sale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

/* Single genuine Sale photo: fill the visual column without empty collage slots */
body.home-page .pg-why__feature--buy .home-save-shots--sale-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 210px;
}

body.home-page .pg-why__feature--buy .home-save-shots--sale-single .home-save-shot--sale {
  aspect-ratio: 4 / 5;
  margin-top: 0;
}

body.home-page .pg-why__feature--buy .home-save-shot--sale {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #d9e6f2;
}

body.home-page .pg-why__feature--buy .home-save-shots--sale-pair .home-save-shot--sale:first-child {
  margin-top: 22px;
}

body.home-page .pg-why__feature--buy .home-save-shot--sale img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home-page .pg-why__feature--buy .home-save-shot--sale span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  right: 6px;
  max-width: none;
  box-sizing: border-box;
  padding: 4px 7px 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  background: rgba(6, 43, 91, 0.78);
  border-radius: 6px;
}

body.home-page .pg-why__feature--buy .home-save-shot--sale:focus-visible {
  outline: 2px solid #062b5b;
  outline-offset: 3px;
}

body.home-page .pg-why__feature--buy .home-save-shot--neutral {
  background:
    linear-gradient(145deg, rgba(6, 43, 91, 0.08) 0%, rgba(6, 43, 91, 0.02) 48%, rgba(232, 240, 248, 0.95) 100%),
    repeating-linear-gradient(
      -18deg,
      rgba(6, 43, 91, 0.05) 0 10px,
      rgba(6, 43, 91, 0.02) 10px 20px
    );
  pointer-events: none;
}

body.home-page .pg-why__feature-kicker--buy {
  color: #062b5b;
}

body.home-page .pg-why__card--buy-mint {
  background: linear-gradient(180deg, #e8f0f8 0%, #f7fbff 100%);
  border: 1px solid rgba(6, 43, 91, 0.12);
}

body.home-page .pg-why__card--buy-pale {
  background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
  border: 1px solid rgba(6, 43, 91, 0.1);
}

body.home-page .pg-why__card--buy-mint h3,
body.home-page .pg-why__card--buy-pale h3,
body.home-page .pg-why__feature--buy h3 {
  color: #062b5b;
}

body.home-page .pg-why__card--buy-mint .home-text-link,
body.home-page .pg-why__card--buy-pale .home-text-link {
  color: #062b5b;
}

body.home-page .pg-why__card--buy-mint .home-text-link:hover,
body.home-page .pg-why__card--buy-mint .home-text-link:focus-visible,
body.home-page .pg-why__card--buy-pale .home-text-link:hover,
body.home-page .pg-why__card--buy-pale .home-text-link:focus-visible {
  color: #041f42;
}

/* S2-H — Featured Sale intro uses same full-width 55/45 geometry as Featured Rentals */
body.home-page .pg-journey-featured-sale .home-listing-panel > .pg-featured-sale-intro.section-heading,
body.home-page .pg-journey-featured-sale .home-listing-panel > .pg-featured-intro.pg-featured-sale-intro.section-heading {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

body.home-page .pg-featured-sale-intro.pg-featured-intro,
body.home-page .pg-featured-sale-intro {
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%);
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
}

body.home-page .pg-journey-featured-sale .home-listing-panel {
  gap: 12px;
}

body.home-page .pg-featured-fresh--sale {
  border-color: rgba(6, 43, 91, 0.16);
  background: linear-gradient(165deg, rgba(232, 240, 248, 0.7) 0%, rgba(248, 249, 246, 0.95) 100%);
}

body.home-page .pg-featured-fresh--sale .pg-featured-fresh__eyebrow,
body.home-page .pg-featured-fresh--sale .pg-featured-fresh__title,
body.home-page .pg-featured-fresh--sale .pg-featured-fresh__metric-label {
  color: #062b5b;
}

body.home-page .pg-featured-fresh--sale .pg-featured-fresh__metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 243, 250, 0.7) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 16px rgba(6, 43, 91, 0.1);
}

body.home-page .pg-featured-fresh--sale .pg-featured-fresh__metric-icon {
  color: #062b5b;
  box-shadow:
    0 0 0 1px rgba(6, 43, 91, 0.1),
    0 4px 10px rgba(6, 43, 91, 0.14);
}

body.home-page .pg-featured-fresh--sale .pg-featured-fresh__link {
  color: #062b5b;
}

body.home-page .home-rv-checked-note--sale .home-rv-checked-note__btn--sale {
  color: #062b5b;
  border-color: rgba(6, 43, 91, 0.28);
}

body.home-page .home-section-listings .sale-asking-badge__terms {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

body.home-page .pg-journey-featured-sale .home-property-reviewed--empty,
body.home-page .home-section-listings .home-featured-card--sale .home-property-reviewed--empty {
  min-height: 1.05em;
  visibility: hidden;
}

body.home-page .pg-journey-featured-sale .home-property-lister--unassigned .home-property-lister-name,
body.home-page .home-section-listings .home-featured-card--sale .home-property-lister--unassigned .home-property-lister-name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
  max-width: 100%;
}

@media (max-width: 760px) {
  body.home-page .pg-featured-sale-intro.pg-featured-intro,
  body.home-page .pg-featured-sale-intro {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel {
    gap: 12px;
  }
}

body.home-page .pg-why__buy-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 18px;
  border: 1px solid rgba(6, 43, 91, 0.14);
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 58%);
}

body.home-page .pg-why__buy-panel h3 {
  margin: 0;
  color: #062b5b;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.home-page .pg-why__buy-panel > p {
  margin: 0;
  color: #3d4d60;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.home-page .pg-why__buy-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

body.home-page .pg-why__buy-facts li {
  position: relative;
  padding: 0 0 0 18px;
  color: #062b5b;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.45;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.home-page .pg-why__buy-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: none;
  background: #062b5b;
}

body.home-page .pg-why__buy-note {
  margin: 0;
  color: #4a5a6d;
  font-size: 0.86rem;
  line-height: 1.45;
}

body.home-page .pg-why__buy-cta.button-primary {
  align-self: flex-start;
  margin-top: 6px;
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .pg-why__buy-cta.button-primary:hover,
body.home-page .pg-why__buy-cta.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

/* D — equal Needs cards */
body.home-page .pg-needs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 4px;
}

body.home-page[data-pg-sale-surfaces-live="1"] .pg-needs__grid:has(.pg-needs__card--buy:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .pg-needs__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 100%;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 18px;
  border: 1px solid rgba(6, 43, 91, 0.12);
  background: #ffffff;
}

body.home-page .pg-needs__card--rent {
  border-color: rgba(11, 163, 96, 0.18);
  background: linear-gradient(180deg, #ddf7eb 0%, #ffffff 62%);
}

body.home-page .pg-needs__card--buy {
  border-color: rgba(6, 43, 91, 0.14);
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 62%);
}

body.home-page .pg-needs__card .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home-page .pg-needs__card--rent .eyebrow {
  color: #0ba360;
}

body.home-page .pg-needs__card--buy .eyebrow {
  color: #062b5b;
}

body.home-page .pg-needs__card h3 {
  margin: 0;
  color: #062b5b;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.home-page .pg-needs__card p {
  margin: 0;
  color: #3d4d60;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1 1 auto;
}

body.home-page .pg-needs__card .button {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  line-height: 1.2;
  box-sizing: border-box;
}

body.home-page .pg-needs__card--buy .pg-needs__buy-cta.button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .pg-needs__card--buy .pg-needs__buy-cta.button-primary:hover,
body.home-page .pg-needs__card--buy .pg-needs__buy-cta.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

body.home-page .pg-needs__ai {
  margin-top: 14px;
}

/* E — equal Email / Sale discovery cards */
body.home-page .pg-email__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

body.home-page[data-pg-sale-surfaces-live="1"] .pg-email__grid:has(.pg-email__card--sale:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.home-page .pg-email__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: 18px;
  border: 1px solid rgba(6, 43, 91, 0.12);
  background: #ffffff;
}

body.home-page .pg-email__card .pg-email__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

body.home-page .pg-email__card--rent {
  border-color: rgba(11, 163, 96, 0.18);
  background: linear-gradient(180deg, #f3fcf7 0%, #ffffff 70%);
}

body.home-page .pg-email__card--sale {
  border-color: rgba(6, 43, 91, 0.14);
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 70%);
}

body.home-page .pg-email__card .pg-email__copy h2 {
  margin: 0 0 8px;
  color: #062b5b;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.home-page .pg-email__card .pg-email__copy p {
  margin: 0;
  color: #3d4d60;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.home-page .pg-email__card .pg-email__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.home-page .pg-email__card--rent .button-primary {
  background: #0ba360;
  border-color: #0ba360;
  color: #ffffff;
}

body.home-page .pg-email__sale-cta.button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #ffffff;
}

body.home-page .pg-email__sale-cta.button-primary:hover,
body.home-page .pg-email__sale-cta.button-primary:focus-visible {
  background: #041f42;
  border-color: #041f42;
  color: #ffffff;
}

@media (max-width: 900px) {
  body.home-page[data-pg-sale-surfaces-live="1"] .pg-why__dual:has(.pg-why__column--buy:not([hidden])),
  body.home-page[data-pg-sale-surfaces-live="1"] .pg-needs__grid:has(.pg-needs__card--buy:not([hidden])),
  body.home-page[data-pg-sale-surfaces-live="1"] .pg-email__grid:has(.pg-email__card--sale:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page .pg-why__column--rent .pg-why__feature,
  body.home-page .pg-why__column--buy .pg-why__feature--buy {
    grid-template-columns: 1fr;
  }

  body.home-page .pg-why__feature--buy .home-save-shot--sale:first-child {
    margin-top: 0;
  }

  body.home-page .pg-why__column--rent .pg-why__support,
  body.home-page .pg-why__support--buy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body.home-page .home-section-listings .home-property-media .rent-badge,
  body.home-page .home-section-listings .home-property-media .sale-asking-badge {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .pg-journey-featured-sale .home-property-card,
  body.home-page .home-section-listings .home-property-card--sale {
    transition: none !important;
    transform: none !important;
  }
}

/* H1 — homepage section rhythm. Homepage-scoped. Sale gradient and footer stay. */
body.home-page.bayut-serp-page .home-section-listings .home-listing-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.home-page .home-section.pg-journey-featured,
body.home-page .home-section.pg-journey-areas,
body.home-page .home-section.pg-needs {
  padding-top: clamp(28px, 3.2vw, 44px);
  padding-bottom: clamp(28px, 3.2vw, 44px);
}

body.home-page .home-section.pg-journey-featured-sale {
  padding-top: clamp(24px, 2.8vw, 36px);
  padding-bottom: clamp(20px, 2.4vw, 32px);
}

body.home-page .home-section.pg-list {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

body.home-page .home-section:not(.home-section-trust) .section-heading h2,
body.home-page .pg-needs__copy h2,
body.home-page .pg-list__copy h2,
body.home-page .pg-email__copy h2,
body.home-page .pg-email__card .pg-email__copy h2 {
  color: #062b5b;
}

@media (min-width: 901px) {
  body.home-page .pg-journey-featured-sale .home-listing-grid:has(> .home-featured-card:only-child) {
    display: grid;
    grid-template-columns: minmax(280px, 358px);
    justify-content: start;
    width: min(100%, 358px);
  }
}

@media (max-width: 760px) {
  body.home-page .home-section.pg-journey-featured,
  body.home-page .home-section.pg-journey-featured-sale,
  body.home-page .home-section.pg-journey-areas,
  body.home-page .home-section.pg-why,
  body.home-page .home-section.pg-needs,
  body.home-page .home-section.pg-list {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* H1 corrective V2 — one neutral Rent/Areas surface, inset Sale panel, calmer lower page.
   Homepage only. Does not restyle Discovery cards. */
body.home-page .home-section.pg-journey-featured {
  padding-bottom: clamp(12px, 1.6vw, 20px);
}

body.home-page .home-section.pg-journey-areas {
  padding-top: clamp(12px, 1.6vw, 20px);
}

body.home-page .home-section.pg-journey-featured-sale {
  background: var(--pg-neutral);
  padding-top: 0;
  padding-bottom: clamp(8px, 1.2vw, 14px);
}

body.home-page.bayut-serp-page .home-section.pg-journey-featured-sale .home-listing-panel--sale {
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(6, 43, 91, 0.1);
  border-radius: 20px;
  box-shadow: none;
  background: linear-gradient(180deg, #eaf3fa 0%, #ffffff 68%);
}

body.home-page .home-section.pg-needs {
  background: #ffffff;
}

body.home-page .home-section.pg-email {
  background: #f8f9f6;
}

@media (min-width: 901px) {
  body.home-page.bayut-serp-page .home-section.pg-journey-featured-sale .home-listing-panel--sale {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    align-items: stretch;
  }

  body.home-page .pg-journey-featured-sale .pg-featured-sale-intro {
    display: contents;
  }

  body.home-page .pg-journey-featured-sale .pg-featured-intro__copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.home-page .pg-journey-featured-sale .home-listing-grid,
  body.home-page .pg-journey-featured-sale .home-listing-grid:has(> .home-featured-card:only-child) {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: auto;
    max-width: none;
    margin: 0;
  }

  body.home-page .pg-journey-featured-sale .pg-featured-fresh--sale {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    height: auto;
    margin: 0;
  }

  body.home-page .pg-journey-featured-sale .home-listing-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
  }
}

/* H1 V3 — one editorial Sale spotlight, and a white email surface before the ivory footer.
   Homepage only. Multiple Sale cards fall back to the three-column grid. */
body.home-page .home-section.pg-journey-featured-sale {
  background: #f4f7fa;
  padding-top: 10px;
  padding-bottom: 18px;
}

body.home-page .home-section.pg-email {
  background: #ffffff;
  padding-top: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(16px, 2vw, 24px);
}

body.home-page .pg-journey-featured-sale .pg-featured-fresh--sale .pg-featured-fresh__metric {
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-page .pg-journey-featured-sale .pg-featured-fresh--sale .pg-featured-fresh__metric-icon,
body.home-page .pg-journey-featured-sale .pg-featured-fresh--sale .pg-featured-fresh__metric-icon svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 901px) {
  body.home-page.bayut-serp-page .home-section.pg-journey-featured-sale .home-listing-panel--sale {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.home-page .pg-journey-featured-sale .pg-featured-sale-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    align-items: start;
  }

  body.home-page .pg-journey-featured-sale .pg-featured-intro__copy,
  body.home-page .pg-journey-featured-sale .home-listing-grid,
  body.home-page .pg-journey-featured-sale .pg-featured-fresh--sale,
  body.home-page .pg-journey-featured-sale .home-listing-actions {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    max-width: none;
  }

  body.home-page .pg-journey-featured-sale .home-listing-grid:not(:has(> .home-featured-card:only-child)) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    column-gap: 22px;
    row-gap: 12px;
    align-items: stretch;
    padding: 20px 22px 18px;
    border: 1px solid rgba(6, 43, 91, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(6, 43, 91, 0.05);
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-sale-intro,
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-grid:has(> .home-featured-card:only-child),
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-featured-card:only-child,
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-featured-card:only-child > .home-property-card {
    display: contents;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-intro__copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-property-media {
    grid-column: 1;
    grid-row: 2 / span 3;
    position: relative;
    height: auto;
    min-height: 300px;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: 14px;
    overflow: hidden;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-property-body {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 2px 2px 0 4px;
  }

  /* Spotlight: one scannable price in the right column — hide overlay chip to avoid a second large treatment */
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .sale-asking-badge {
    display: none !important;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-property-price--sale {
    display: block;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-fresh--sale {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid rgba(6, 43, 91, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* CTA hierarchy: View details (in-card) → recently confirmed (text) → catalogue browse (outline) */
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-fresh__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-actions {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
    justify-content: flex-start;
    margin: 0;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-link--sale.button-primary {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: transparent;
    border: 1.5px solid #062b5b;
    color: #062b5b;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-link--sale.button-primary:hover,
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-link--sale.button-primary:focus-visible {
    background: #eaf3fa;
    border-color: #041f42;
    color: #041f42;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-card-link--sale {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-featured-save {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    justify-self: end;
    align-self: start;
    z-index: 4;
    width: var(--rv-save-heart-hit, 44px);
    height: var(--rv-save-heart-hit, 44px);
    margin: 12px;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child):has(.home-property-card:focus-visible) {
    outline: 2px solid #062b5b;
    outline-offset: 3px;
  }
}

@media (max-width: 900px) {
  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-sale-intro {
    display: contents;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-intro__copy {
    order: 1;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-grid {
    order: 2;
    display: block;
    width: 100%;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-featured-card {
    flex: none;
    width: 100%;
    max-width: none;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-property-media {
    aspect-ratio: 16 / 10 !important;
    max-height: 230px;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .sale-asking-badge {
    display: none !important;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-property-price--sale {
    display: block;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .pg-featured-fresh--sale {
    order: 3;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-actions {
    order: 4;
    margin: 0;
  }

  body.home-page .pg-journey-featured-sale .home-listing-panel--sale:has(.home-featured-card:only-child) .home-listing-link--sale.button-primary {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: transparent;
    border: 1.5px solid #062b5b;
    color: #062b5b;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.home-page .home-section.pg-journey-featured-sale,
  body.home-page .home-section.pg-email {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body.home-page .home-section.pg-email {
    background: #ffffff;
  }
}

/* Homepage Buying Needs dialog — same chrome as Sale Discovery/Detail (navy).
   Shared preference key remains rv_buying_needs_v1; no second system. */
.rv-buying-needs-dialog.rv-needs-dialog {
  overflow: visible;
  --pg-sale-navy: #062b5b;
  --pg-sale-navy-deep: #041e42;
  --pg-sale-blue: #1a4f8c;
  --pg-sale-blue-mid: #2f6fad;
  --pg-sale-light: #eaf3fa;
  --pg-sale-pale: #f4f8fc;
  --primary: #062b5b;
}

.rv-buying-needs-dialog .rv-needs-dialog__panel,
.rv-buying-needs-dialog .rv-buying-needs-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  max-height: min(90vh, 42rem);
  padding: 18px 18px 16px;
  overflow: hidden;
  background: #fff;
}

.rv-buying-needs-dialog .rv-buying-needs-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 12px;
}

.rv-buying-needs-dialog .rv-needs-dialog__head,
.rv-buying-needs-dialog .rv-needs-dialog__helper,
.rv-buying-needs-dialog .rv-needs-dialog__actions {
  flex: 0 0 auto;
}

.rv-buying-needs-dialog .rv-needs-dialog__close:focus-visible,
.rv-buying-needs-dialog .rv-needs-link:focus-visible,
.rv-buying-needs-dialog .rv-needs-select__trigger:focus-visible,
.rv-buying-needs-dialog .rv-needs-select__option:focus-visible,
.rv-buying-needs-dialog .rv-needs-input:focus-visible,
.rv-buying-needs-dialog .bayut-btn:focus-visible {
  outline: 2px solid rgba(47, 111, 173, 0.7);
  outline-offset: 2px;
}

.rv-buying-needs-dialog .rv-needs-select.is-open .rv-needs-select__trigger {
  border-color: #2f6fad;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.16);
}

.rv-buying-needs-dialog .rv-needs-select__option:hover,
.rv-buying-needs-dialog .rv-needs-select__option.is-active {
  background: rgba(47, 111, 173, 0.1);
}

.rv-buying-needs-dialog .rv-needs-select__option[aria-selected="true"] {
  color: #062b5b;
  font-weight: 700;
  background: rgba(47, 111, 173, 0.14);
}

.rv-buying-needs-dialog .rv-needs-link {
  color: #1a4f8c;
}

.rv-buying-needs-dialog .rv-needs-link--from-filters {
  color: #1a4f8c;
  border: 1px solid rgba(47, 111, 173, 0.28);
  border-radius: 10px;
  background: #f4f8fc;
}

.rv-buying-needs-dialog .rv-needs-link--from-filters .icon {
  color: #2f6fad;
}

.rv-buying-needs-dialog .rv-needs-link--from-filters:hover,
.rv-buying-needs-dialog .rv-needs-link--from-filters:focus-visible {
  color: #062b5b;
  border-color: rgba(47, 111, 173, 0.5);
  background: #eaf3fa;
}

.rv-buying-needs-dialog .rv-needs-link--quiet {
  color: #8a6238;
}

.rv-buying-needs-dialog .rv-needs-from-filters-status[data-tone="ok"] {
  color: #062b5b;
  background: #eaf3fa;
  border-color: #c5d8ea;
}

.rv-buying-needs-dialog .rv-needs-from-filters-status[data-tone="warn"] {
  color: #7a4e12;
  background: #fff7eb;
  border-color: #f0dfbf;
}

.rv-buying-needs-dialog .rv-needs-dialog__actions .bayut-btn--primary,
.rv-buying-needs-dialog .bayut-btn--primary {
  min-width: 7.5rem;
  min-height: 44px;
  margin-left: auto;
  border-radius: 12px;
  color: #fff;
  background: #062b5b;
  border-color: #062b5b;
  box-shadow: none;
}

.rv-buying-needs-dialog .rv-needs-dialog__actions .bayut-btn--primary:hover,
.rv-buying-needs-dialog .bayut-btn--primary:hover {
  background: #041e42;
  border-color: #041e42;
  color: #fff;
  box-shadow: none;
}

.rv-buying-needs-dialog .rv-needs-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #142033;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  background: #fff;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  box-sizing: border-box;
}

.rv-buying-needs-dialog .rv-needs-input:focus {
  border-color: #2f6fad;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.16);
  outline: none;
}

.rv-buying-needs-dialog .rv-buying-land {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0.5rem;
  align-items: start;
}

.rv-buying-needs-dialog .rv-buying-land-note {
  margin: 0.35rem 0 0;
}

.rv-buying-needs-dialog .rv-needs-select__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 2px 6px;
  background: #fff;
}

.rv-buying-needs-dialog .rv-needs-select__search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.rv-buying-needs-dialog .rv-needs-select__search-input:focus {
  border-color: #2f6fad;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.16);
  outline: none;
}

.rv-buying-needs-dialog .rv-needs-select__empty {
  margin: 6px 8px;
}

.rv-buying-needs-dialog input[type="checkbox"],
.rv-buying-needs-dialog input[type="radio"] {
  accent-color: #062b5b;
}

@media (max-width: 520px) {
  .rv-buying-needs-dialog.rv-needs-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .rv-buying-needs-dialog .rv-needs-dialog__panel {
    padding: 14px 12px 12px;
  }
}

@media (max-width: 390px) {
  .rv-buying-needs-dialog .rv-buying-land {
    grid-template-columns: 1fr;
  }
}


/* D9 live parity corrective — hero signature stack must never double-paint.
   style.css keeps inactive H1 opacity:1 for a11y; ensure non-H1 slides hard-hide
   and kill any residual opacity interpolation. */
body.home-page .home-hero-headline__slide:not(.is-active),
body.home-page .home-hero__intro h1.home-hero-headline__slide:not(.is-active),
body.home-page .home-hero .hero-copy h1.home-hero-headline__slide:not(.is-active),
body.home-page .home-hero-headline__slide.is-active,
body.home-page .home-hero__intro h1.home-hero-headline__slide.is-active,
body.home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active {
  transition: none !important;
}
body.home-page p.home-hero-headline__slide:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  color: transparent !important;
  pointer-events: none !important;
}
