/* ============================================================
   Premier Estates — Centralized Luxury Design System
   Single Source of Truth for Tokens, Color, Typography & UI States
   
   Official Brand Color Palette Rules (70% White / 20% Navy / 10% Gold):
   1. Primary Navy:  Primary brand & action color (#010133)
   2. White Canvas:  Main page AND section background ~70% (#FBFBF8 — ONLY approved page/section background)
   3. Premium Gold:  Restrained luxury accent ~10% (#C89B3C, #A97A1E)
   4. Neutral Dark:  Editorial dark charcoal typography (#111827, #667085)

   Typography (ONLY two approved fonts — no third font):
   - Display / Luxury: "Cormorant Garamond", serif (.h-display + major editorial display headings only)
   - UI / Body:        "Manrope", sans-serif (body, nav, buttons, forms, cards, .eyebrow uppercase semibold)
   ============================================================ */

/* 0 · Font Imports: Google Fonts CDN + Local Assets Fallback */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');
@import url('../assets/fonts/fonts.css');

/* ---------- 1 · Centralized Design Tokens ---------- */
:root {
  /* Core Premier Estates Brand Tokens (70% #FBFBF8 canvas / 20% Navy / 10% Gold) */
  /* #FBFBF8 is the ONLY approved page/section background. #FFFFFF is cards/inputs only. */
  --color-background: #FBFBF8;        /* ONLY approved page/section background */
  --color-off-white: #FBFBF8;        /* Alias of --color-background (consolidated; was #FAFAF8) */
  --color-navy: #010133;             /* Primary Brand Navy / Headings / Navigation / Action (#010133) */
  --color-navy-dark: #000022;        /* Intentional dark UI only: footer + dark hero bands (functional reason, never a page bg) */
  --color-navy-hover: #08083E;       /* Intentional dark UI only: navy hover state (functional reason, never a page bg) */
  --color-logo-dark-bg: #000133;     /* Logo ONLY when placed on a dark background — never a general navy replacement */
  --color-cream: #FBFBF8;            /* Alias of --color-background (consolidated; was #FAFAF8) */
  --color-cream-soft: #FBFBF8;       /* Alias of --color-background (consolidated; was #FAFAF8) */
  --color-gold: #C89B3C;             /* Official Premium Gold: Restrained Luxury Accent (#C89B3C) */
  --color-gold-hover: #A97A1E;       /* Official Dark Gold: Hover & Strong Accent (#A97A1E) */
  --color-gold-light: #FDFBF5;       /* Pale gold tint for selected badges/focus fills ONLY (UI state, never a page/section bg) */
  --color-gold-contrast: #DEBA67;    /* Soft Gold: High-Contrast Accent on Navy */
  --color-white: #FFFFFF;            /* Pure Crisp White: Cards & Input Surfaces */
  --color-text: #111827;             /* Primary Text (Crisp Editorial Dark Charcoal) */
  --color-muted: #667085;            /* Secondary Text (Refined Neutral Slate Gray) */
  --color-muted-dark: #CBD2DC;       /* Neutral Slate Muted on Navy Surfaces */
  --color-border: #E5E7EB;           /* Very Subtle Neutral Gray Divider / Line */
  --color-border-dark: rgba(255, 255, 255, 0.12); /* Line on Navy */

  /* Backward-Compatible Semantic Aliases */
  --pe-navy-950: var(--color-navy-dark);
  --pe-navy-900: var(--color-navy);
  --pe-navy-800: var(--color-navy-hover);
  --pe-navy-700: var(--color-navy-hover);
  --pe-navy-600: var(--color-navy);
  --pe-gold-700: var(--color-gold-hover);
  --pe-gold-600: var(--color-gold);
  --pe-gold-500: #C89B3C;
  --pe-gold-300: var(--color-gold-contrast);
  --pe-gold-100: var(--color-gold-light);
  --pe-cream-100: var(--color-off-white);
  --pe-cream-200: var(--color-cream-soft);
  --pe-cream-300: var(--color-border);
  --pe-white: var(--color-white);
  --pe-ink: var(--color-text);
  --pe-ink-500: var(--color-muted);
  --pe-ink-muted: var(--color-muted);
  --pe-bg: var(--color-background);
  --pe-surface: var(--color-white);
  --pe-surface-alt: var(--color-background);
  --pe-primary: var(--color-navy);
  --pe-primary-hover: var(--color-navy-hover);
  --pe-accent: var(--color-gold);
  --pe-accent-hover: var(--color-gold-hover);
  --pe-accent-soft: var(--color-gold-light);
  --pe-line: var(--color-border);
  --pe-dark-bg: var(--color-navy);
  --pe-dark-surface: var(--color-navy-dark);
  --pe-muted-dark: var(--color-muted-dark);

  /* Geometry & Shadows */
  --pe-btn-radius: 2px;
  --pe-card-radius: 4px;
  --pe-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.03);
  --pe-card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.06);

  /* Root Typography Hierarchy — ONLY Manrope + Cormorant Garamond (no Georgia/Roboto/system named fallbacks) */
  --pe-font-display: 'Cormorant Garamond', serif;
  --pe-font-body: 'Manrope', sans-serif;
  --font-heading: var(--pe-font-display);
  --font-display: var(--pe-font-display);
  --font-body: var(--pe-font-body);
  --font-sans: var(--pe-font-body);
}

/* ---------- 2 · Base & Reset ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}
body {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}
*, *::before, *::after {
  box-sizing: border-box;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  font-family: var(--pe-font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1, 'pnum' 1, 'kern' 1;
}
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

/* Global Headings Default to Cormorant Garamond with Proper Lining Figures */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pe-font-display);
  color: var(--color-navy);
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1, 'kern' 1, 'liga' 1;
}

/* Form Controls Default to Manrope with Lining Numbers */
button, input, select, textarea, optgroup, option {
  font-family: var(--pe-font-body);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  color: var(--color-white);
  border: 1px solid var(--color-gold);
  padding: .75rem 1.25rem;
  font-family: var(--pe-font-body);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.font-display {
  font-family: var(--pe-font-display);
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
}
.font-body {
  font-family: var(--pe-font-body);
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: 'lnum' 1;
}

/* Proper Numbering Utilities */
.lining-nums {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}
.tabular-nums {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* ---------- 3 · Typography System ---------- */
.eyebrow {
  font-family: var(--pe-font-body);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  font-weight: 600;
}
.eyebrow--light { color: var(--color-gold-contrast); }
.h-display {
  font-family: var(--pe-font-display);
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.14;
}
.rule-gold {
  width: 3.5rem;
  height: 2px;
  background: var(--color-gold);
}

/* ---------- 4 · Buttons & Action Controls (Unified Luxury Hero Aesthetic) ---------- */
.btn-navy, .btn-gold, .btn-outline, .btn-outline-light, .pe-btn, .pe-hero-cta {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.75rem;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--pe-btn-radius, 2px);
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-navy);
  transition: all .3s ease;
  white-space: nowrap;
}

/* Gold Accent / Primary Public CTA */
.btn-gold {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-gold);
}
.btn-gold:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}
.btn-gold:active {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-navy-dark);
  transform: translateY(1px);
}
.btn-gold:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Dark Navy Primary Button */
.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border: 1px solid var(--color-navy);
}
.btn-navy:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn-navy:active {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-navy-dark);
  transform: translateY(1px);
}
.btn-navy:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Outline Button */
.btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn-outline:active {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-navy-dark);
  transform: translateY(1px);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Outline Light Button (for dark sections) */
.btn-outline-light {
  border: 1px solid var(--color-gold);
  color: #FBFBF8;
  background: transparent;
}
.btn-outline-light:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn-outline-light:active {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: var(--color-navy-dark);
  transform: translateY(1px);
}
.btn-outline-light:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Dark context overrides (header, footer, dark containers, hero sections) */
.bg-navy .btn-gold,
.bg-\[\#010133\] .btn-gold,
.site-footer .btn-gold,
#heritage .btn-gold,
.hero-ctas a {
  background: transparent;
  color: #FBFBF8;
  border: 1px solid var(--color-gold);
}
.bg-navy .btn-gold:hover,
.bg-\[\#010133\] .btn-gold:hover,
.site-footer .btn-gold:hover,
#heritage .btn-gold:hover,
.hero-ctas a:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
}

/* Disabled Button States */
button:disabled,
.btn-navy:disabled,
.btn-gold:disabled,
.btn-outline:disabled,
.btn-outline-light:disabled,
[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 5 · Header & Navigation ---------- */
.nav-link {
  font-family: var(--pe-font-body);
  position: relative;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: .25rem 0;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--color-gold);
  transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}
.nav-link[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 600;
}

.mobile-link {
  font-family: var(--pe-font-body);
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 500;
}
.mobile-link:hover,
.mobile-link[aria-current="page"] {
  color: var(--color-gold-hover);
}

/* ── Premium Desktop Navigation Dropdowns ───────────────────────── */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background-color: var(--pe-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  box-shadow: 0 16px 36px rgba(6, 13, 26, 0.28), 0 2px 8px rgba(6, 13, 26, 0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 100;
}

/* Dropdown arrow connector (subtle luxury gold pip) */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background-color: var(--pe-navy-900);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Open on desktop hover or keyboard focus-within */
@media (min-width: 1024px) {
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu,
  .nav-item-dropdown.is-active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  /* Invisible hover bridge over the 10px menu offset gap — keeps :hover
     alive while the cursor travels from trigger to menu. Zero visual change. */
  .nav-item-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 12px;
    background: transparent;
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  font-family: var(--pe-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  color: var(--color-gold-contrast);
  background-color: rgba(255, 255, 255, 0.06);
  padding-left: 1.45rem;
  outline: none;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

/* ── Mobile Accordion Drawer Styles ────────────────────────────── */
.mobile-acc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--color-navy);
  transition: color 0.2s ease;
}
.mobile-acc-trigger:hover,
.mobile-acc-trigger:focus-visible {
  color: var(--color-gold);
  outline: none;
}
.mobile-sub-nav {
  transition: all 0.25s ease;
}
.mobile-sub-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-left: 1.75rem;
  padding-right: 1.25rem;
  font-family: var(--pe-font-body);
  font-size: 14px;
  color: var(--pe-ink-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-sub-link:hover {
  color: var(--color-navy);
  padding-left: 2rem;
}

/* Base Sticky Header with guaranteed opaque luxury frosted canvas & zero layout shift */
#site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background-color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: box-shadow, background-color;
}

#site-header.shrink {
  background-color: rgba(255, 255, 255, 0.99) !important;
  box-shadow: 0 4px 20px rgba(1, 1, 51, 0.06), 0 1px 0 var(--color-border);
  border-bottom-color: rgba(200, 155, 60, 0.25);
}

/* Stable Header Inner Container (consistent padding across scroll states) */
#site-header #header-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  min-height: 4.25rem;
}
@media (min-width: 1024px) {
  #site-header #header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    min-height: 4.75rem;
  }
}

/* Header Brand Logo Responsive Sizing (stable dimensions - zero layout shift) */
.header-brand-link {
  text-decoration: none;
  line-height: 0;
  display: inline-flex;
  align-items: center;
}
.header-logo-img {
  height: 2.75rem;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .header-logo-img {
    height: 3rem;
    max-height: 48px;
  }
}
@media (min-width: 1024px) {
  .header-logo-img {
    height: 3.5rem;
    max-height: 56px;
  }
}
@media (min-width: 1440px) {
  .header-logo-img {
    height: 3.75rem;
    max-height: 60px;
  }
}

/* ── Mobile Drawer (right-to-left slide-in) ─────────────────────── */
/* Overlay — full-screen navy scrim behind the drawer.
   Must stay BELOW #site-header (z-index 50): the drawer lives inside the
   header's stacking context (sticky + z-index + backdrop-filter), so any
   overlay z-index above 50 paints over the drawer and swallows all taps
   (accordion triggers, sub-links, close button) on mobile. 40 keeps it
   above page content (tap-outside-to-close still works). */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.nav-drawer-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
/* Mobile view: keep the click-catcher active but visually invisible,
   so the drawer slides over undimmed content. Desktop untouched
   (overlay stays display:none at 1024px+ via the rule below). */
@media (max-width: 1023.98px) {
  .nav-drawer-overlay.is-visible {
    opacity: 0;
    pointer-events: auto;
  }
}

/* Drawer panel — fixed, right edge, slides in from right            */
#mobile-nav {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  z-index: 9999 !important;
  width: min(85vw, 380px) !important;
  height: 100% !important;
  height: 100dvh !important;
  background-color: #FFFFFF !important;
  border-left: 1px solid var(--color-border) !important;
  border-top: none !important;
  box-shadow: -8px 0 40px rgba(10, 22, 40, 0.22) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  /* Hidden: off-screen to the right */
  transform: translateX(100%) !important;
  /* Smooth, professional — no bounce */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Open state — slide fully into view */
#mobile-nav.is-open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Drawer header row: logo text + close button */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.nav-drawer-brand {
  font-family: var(--pe-font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  line-height: 1;
}
.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  color: var(--color-navy);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.nav-drawer-close:hover {
  background: var(--color-cream-soft);
  border-color: var(--color-gold);
}
.nav-drawer-close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ── Drawer inner layout ────────────────────────────────────────── */

/* Links list — override Tailwind container-premier that's on the ul
   in every page's HTML. container-premier adds max-width + padding-inline
   which squishes content inside the fixed-width drawer.              */
#mobile-nav ul {
  /* Reset container-premier max-width and padding constraints */
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-inline: 0 !important;
  /* Drawer-appropriate internal spacing */
  padding: 0.5rem 0 1.5rem !important;
  flex: 1;
  width: 100% !important;
}

/* List items: full-width, comfortable touch targets */
#mobile-nav ul li {
  width: 100%;
}

/* Mobile links inside drawer — full width with left padding */
#mobile-nav .mobile-link {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-height: 52px;
  font-size: 15px;
}

/* CTA button inside drawer */
#mobile-nav ul li.pt-3 {
  padding: 0.75rem 1.5rem 0;
}
#mobile-nav ul li.pt-3 a {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Landscape mobile: ensure scroll works and drawer doesn't clip */
@media (max-height: 500px) and (orientation: landscape) {
  #mobile-nav {
    overflow-y: auto !important;
  }
  .nav-drawer-header {
    padding-top: 0.75rem;
    padding-bottom: 0.65rem;
  }
  #mobile-nav .mobile-link {
    min-height: 44px;
  }
}

/* Desktop override — CSS fully owns show/hide; no Tailwind dependency.
   display:flex !important in base rule wins over Tailwind CDN lg:hidden,
   so we must explicitly set display:none here at 1024px+.              */
@media (min-width: 1024px) {
  .nav-drawer-overlay { display: none !important; }
  #mobile-nav {
    display: none !important;     /* hide mobile drawer on desktop */
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

/* ---------- 6 · Cards, Boxes & Surfaces (Signature Golden Border System) ---------- */
.pe-card,
.contact-hero-card,
.contact-info-card,
.valuation-card-above,
.benefit-card-v2,
.flow-step-v2,
.asset-class-card,
.legal-card,
.membership-slider-wrap,
.growing-stat-card,
.admin-card,
.stat-tile,
.stat-card,
.info-card,
.property-info-card,
.service-card-about,
.step-card,
.about-office-card,
.about-value-card,
.filter-sidebar,
.advisory-box,
.bento-gallery-item,
.similar-prop-card,
.private-client-desk-card,
.direct-line-card,
.adviser-profile-card,
.map-lock-modal-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(1, 1, 51, 0.03), 0 8px 24px rgba(1, 1, 51, 0.04);
  border-radius: var(--pe-card-radius);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.pe-card:hover,
.contact-info-card:hover,
.benefit-card-v2:hover,
.asset-class-card:hover,
.growing-stat-card:hover,
.flow-step-v2:hover,
.admin-card:hover,
.service-card-about:hover,
.step-card:hover,
.about-office-card:hover,
.about-value-card:hover,
.advisory-box:hover {
  border-color: var(--color-gold);
  box-shadow: 0 6px 20px rgba(200, 155, 60, 0.12), 0 16px 36px rgba(1, 1, 51, 0.06);
}

.card-link {
  font-family: var(--pe-font-body);
  display: inline-block;
  padding: .5rem 0 .65rem;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 600;
  background-image: linear-gradient(var(--color-gold), var(--color-gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom .4rem;
  transition: background-size .3s ease, color .3s ease;
  white-space: nowrap;
}
.card-link:hover {
  background-size: 100% 1px;
  color: var(--color-gold-hover);
}
.card-link--light {
  color: var(--color-white);
  background-image: linear-gradient(var(--color-gold-contrast), var(--color-gold-contrast));
}
.card-link--light:hover {
  color: var(--color-gold-contrast);
}

/* Property Status Badges & Groups */
.status-badge-group {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  pointer-events: none;
}

.status-badge {
  font-family: var(--pe-font-body);
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 197, 169, 0.7);
  padding: .35rem .65rem;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-navy);
  box-shadow: 0 2px 8px rgba(1, 1, 51, 0.15);
  border-radius: 2px;
  max-width: 100%;
  white-space: nowrap;
}

/* When status-badge is wrapped inside a flex container or badge group */
.status-badge-group .status-badge,
.flex > .status-badge,
.status-badge--relative {
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

.status-badge--dark,
.status-badge-dark {
  background: rgba(1, 1, 51, 0.94) !important;
  color: #ffffff !important;
  border-color: rgba(212, 197, 169, 0.45) !important;
}

.status-badge--gold,
.status-badge-gold {
  background: rgba(184, 150, 90, 0.96) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

@media (max-width: 640px) {
  .status-badge-group {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    gap: 0.25rem;
  }
  .status-badge {
    padding: .25rem .5rem;
    font-size: 9px;
    letter-spacing: .1em;
  }
}

/* ---------- 7 · Filters, Tabs & Breadcrumbs ---------- */
.pill {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1.4rem;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: all .25s ease;
}
.pill:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.pill[aria-pressed="true"] {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* Featured Properties pills — single row on mobile. Scoped to #featured
   only; desktop and all other pill rows (e.g. new-projects) untouched. */
@media (max-width: 767.98px) {
  #featured .featured-pills {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  #featured .featured-pills .pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* Membership CTAs: centered stacked buttons on mobile, single row on tablet.
   Scoped to #membership only; desktop and all other sections untouched. */
@media (max-width: 767.98px) {
  #membership .membership-ctas {
    justify-content: center;
  }
  #membership .membership-ctas .btn-navy,
  #membership .membership-ctas .btn-outline {
    width: 100%;
    justify-content: center;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  #membership .membership-ctas {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  #membership .membership-ctas .btn-navy,
  #membership .membership-ctas .btn-outline {
    width: auto;
    white-space: nowrap;
  }
}

/* Hero CTAs keep the single left alignment axis on stacked mobile + tablet
   layouts (same axis as eyebrow/H1/description). Stacked full-width below
   600px; horizontal row preserved on tablet widths. */
@media (max-width: 1023.98px) {
  #heritage .hero-ctas {
    justify-content: flex-start;
    align-items: stretch;
  }
}

/* Single-row mobile controls: #newest tabs + link, footer hero CTAs.
   Mobile only (small text per brief); desktop and all other sections untouched. */
@media (max-width: 767.98px) {
  #newest .newest-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
  }
  #newest .newest-controls .pill,
  #newest .newest-controls .tab {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  #newest .newest-controls > a {
    font-size: 10px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  #site-footer .footer-hero-ctas {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
  }
  #site-footer .footer-hero-ctas .btn-gold,
  #site-footer .footer-hero-ctas .btn-outline-light {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0.7rem 0.4rem;
    font-size: 9px;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }
}

.tab {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .7rem 2rem;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, border-color .2s ease;
}
.tab:hover {
  color: var(--color-navy);
}
.tab[aria-selected="true"] {
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.crumbs {
  font-family: var(--pe-font-body);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}
.crumbs a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.crumbs a:hover {
  color: var(--color-navy);
}
.crumbs [aria-current="page"] {
  color: var(--color-gold-hover);
  font-weight: 600;
}
/* Light variant for navy hero bands */
.crumbs--light {
  color: rgba(255, 255, 255, 0.55);
}
.crumbs--light a {
  color: rgba(255, 255, 255, 0.65);
}
.crumbs--light a:hover {
  color: #fff;
}
.crumbs--light [aria-current="page"] {
  color: var(--pe-gold-300);
}

/* ---------- 8 · Forms & Inputs ---------- */
.form-label {
  font-family: var(--pe-font-body);
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 600;
  margin-bottom: .5rem;
}
.form-input, .form-select, .form-textarea {
  font-family: var(--pe-font-body);
  width: 100%;
  min-height: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--pe-btn-radius);
  padding: .8rem 1rem;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--color-muted);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.2);
}
.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
  background: var(--color-cream-soft);
  color: var(--color-muted);
  opacity: 0.6;
  cursor: not-allowed;
}
.form-hint {
  font-family: var(--pe-font-body);
  margin-top: .4rem;
  font-size: 13px;
  color: var(--color-muted);
}

/* ---------- 9 · Footer Architecture & Luxury Editorial Styling (Christie's-Inspired Navy Theme) ---------- */
#site-footer,
.site-footer {
  background-color: #010133 !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
  font-family: var(--pe-font-body, 'Manrope', sans-serif);
}

.footer-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
}

.footer-statement {
  font-family: var(--pe-font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--pe-font-body, 'Manrope', sans-serif);
}

/* Brand Micro-Animation & Logo */
.footer-brand-link {
  text-decoration: none;
  display: inline-block;
}
.footer-brand-logo {
  height: 5.5rem;
  width: auto;
  max-height: 96px;
  object-fit: contain;
  display: block;
}
@media (max-width: 639.98px) {
  .footer-brand-logo {
    height: 4rem;
    max-height: 70px;
  }
}
@media (min-width: 1024px) {
  .footer-brand-logo {
    height: 6.5rem;
    max-height: 110px;
  }
}

/* Dividers */
.footer-divider-wrap {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Social Channel Buttons */
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
  text-decoration: none;
}
.footer-social-btn:hover {
  color: #FFFFFF;
  border-color: var(--color-gold, #C89B3C);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.footer-social-btn:focus-visible {
  outline: 2px solid var(--color-gold, #C89B3C);
  outline-offset: 2px;
}

/* Centered Navigation Row */
.footer-nav-centered {
  width: 100%;
}
.footer-nav-link {
  font-family: var(--pe-font-body, 'Manrope', sans-serif);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  position: relative;
  padding: 6px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}
.footer-nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold-contrast, #DEBA67);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-nav-link:hover {
  color: var(--color-gold-contrast, #DEBA67);
}
.footer-nav-link:hover::after {
  width: 100%;
}
.footer-nav-link:focus-visible {
  outline: 2px solid var(--color-gold, #C89B3C);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Contact & Legal Links */
.footer-contact-link {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s ease;
}
.footer-contact-link:hover {
  color: var(--color-gold-contrast, #DEBA67);
}
.footer-contact-link:focus-visible,
.footer-legal-link:focus-visible {
  outline: 2px solid var(--color-gold, #C89B3C);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.footer-legal-link:hover {
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .footer-col-contact .footer-contact-link {
    justify-content: flex-start;
  }
}

/* ---------- 10 · Live Accent Dot (Gold, No Rogue Colors) ---------- */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(184, 147, 90, 0.22);
}

/* ---------- 10b · Membership Logo Marquee (infinite rail, scales with backend count) ---------- */
.mem-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mem-marquee-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  padding: 0.25rem 0;
  animation: memMarquee var(--mem-marquee-duration, 28s) linear infinite;
}
.mem-marquee:hover .mem-marquee-track {
  animation-play-state: paused;
}
@keyframes memMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mem-logo-card {
  font-family: var(--pe-font-body);
  flex: 0 0 auto;
  width: 260px;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--pe-card-radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mem-logo-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--pe-card-shadow-hover);
}
.mem-logo-card img {
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.95;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.mem-logo-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
@media (max-width: 639.98px) {
  .mem-logo-card {
    width: 190px;
    padding: 1rem 1.25rem;
  }
  .mem-logo-card img {
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mem-marquee-track {
    animation: none;
  }
  .mem-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- 10c · Advisory Services Editorial (scoped, no global leakage) ---------- */
.adv-intro {
  font-family: var(--pe-font-body);
  margin-top: 1.25rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
}
@media (min-width: 640px) {
  .adv-intro { font-size: 16px; }
}
.adv-kicker {
  font-family: var(--pe-font-body);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
}
.adv-kicker-num {
  font-family: var(--pe-font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-navy);
  transform: translateY(3px);
}
.adv-copy {
  margin-top: 1.25rem;
  max-width: 62ch;
}
.adv-copy p {
  font-family: var(--pe-font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}
.adv-copy p:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .adv-copy p { font-size: 15.5px; }
}
.adv-figure { margin: 0; }
.adv-img-wrap {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--pe-card-radius);
  background: var(--color-white);
}
.adv-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.adv-figure:hover .adv-img { transform: scale(1.035); }
@media (min-width: 1024px) {
  .adv-img { aspect-ratio: 16 / 11; }
}
.adv-caption {
  font-family: var(--pe-font-body);
  margin-top: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- 10c · Featured Properties Drag & Auto-Slider Track ---------- */
#featured-grid.featured-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
  cursor: grab;
}
#featured-grid.featured-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}
#featured-grid.featured-track::-webkit-scrollbar { display: none; }
#featured-grid.featured-track > article.pe-card {
  flex: 0 0 auto;
  width: clamp(260px, 82vw, 340px);
  scroll-snap-align: start;
}
#featured-grid.featured-track > .col-span-full { flex: 1 0 100%; }
@media (min-width: 640px) {
  #featured-grid.featured-track > article.pe-card { width: calc(50% - 0.75rem); }
}
@media (min-width: 1024px) {
  #featured-grid.featured-track > article.pe-card { width: calc(25% - 1.125rem); }
}

/* ---------- 10d · Newest Listings Rail (scoped slider track + controls) ---------- */
#newest-grid.newest-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}
#newest-grid.newest-track::-webkit-scrollbar { display: none; }
#newest-grid.newest-track > article.pe-card {
  flex: 0 0 auto;
  width: clamp(260px, 82vw, 340px);
  scroll-snap-align: start;
}
#newest-grid.newest-track > .col-span-full { flex: 1 0 100%; }
@media (min-width: 640px) {
  #newest-grid.newest-track > article.pe-card { width: calc(50% - 0.75rem); }
}
@media (min-width: 1024px) {
  #newest-grid.newest-track > article.pe-card { width: calc(25% - 1.125rem); }
}
.newest-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}
.newest-ctrl-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hover);
}
.newest-ctrl-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
/* Verified chip: bottom overlay on every listing image */
.verified-chip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--pe-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(1, 1, 51, 0.82);
  border: 1px solid rgba(200, 155, 60, 0.55);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-gold);
  flex-shrink: 0;
}
/* Closed chip: overlay on properties that are SOLD or LEASED */
.closed-chip {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--pe-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: rgba(136, 19, 55, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.closed-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #fca5a5;
  flex-shrink: 0;
}
/* Intent chip: bottom-right overlay for Featured cards only (Buy / Rent).
   mirrors .verified-chip tokens (same navy/gold/blur/type) — right-aligned
   twin so both chips coexist without layout shift; pointer-events none preserves card-click. */
.intent-chip {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--pe-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(1, 1, 51, 0.82);
  border: 1px solid rgba(200, 155, 60, 0.55);
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  max-width: calc(50% - 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 11 · Modals & Dialogs ---------- */
.pe-modal {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--pe-card-shadow-hover);
  border-radius: var(--pe-card-radius);
}
.pe-modal-overlay {
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(4px);
}

/* ---------- 12 · Gallery & Thumbnails ---------- */
.thumb[aria-selected="true"] {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---------- 13 · Reveal & Motion Transitions ---------- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(0.16, 1, 0.3, 1), transform .75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible, .reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered Grid Reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(0.16, 1, 0.3, 1), transform .75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   14 · GLOBAL CONTAINER & RESPONSIVE LAYOUT SYSTEM
   Christie's International / Editorial Luxury Reference Standard
   ============================================================ */

/* The Canonical Global Container */
.container-premier {
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px; /* Mobile standard: 20px side margins */
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container-premier {
    padding-inline: 32px; /* Tablet: 32px side margins */
  }
}

@media (min-width: 1024px) {
  .container-premier {
    padding-inline: 2rem; /* Desktop: 2rem side padding (PC standard) */
  }
}

@media (min-width: 1440px) {
  .container-premier {
    padding-inline: 2rem; /* Large Desktop: 2rem side padding (PC standard) */
    max-width: 1480px;    /* Spacious luxury cap (1440–1520px range) */
  }
}

/* Full-Width Section Wrappers & Vertical Rhythm Scale */
.section-premier {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.section-py {
  padding-block: 3.5rem; /* ~56px on mobile */
}
@media (min-width: 768px) {
  .section-py {
    padding-block: 5rem; /* ~80px on tablet */
  }
}
@media (min-width: 1024px) {
  .section-py {
    padding-block: 6rem; /* ~96px on desktop */
  }
}
@media (min-width: 1440px) {
  .section-py {
    padding-block: 7rem; /* ~112px on large screens */
  }
}

.section-py-sm {
  padding-block: 2.5rem;
}
@media (min-width: 768px) {
  .section-py-sm {
    padding-block: 3.5rem;
  }
}
@media (min-width: 1024px) {
  .section-py-sm {
    padding-block: 4.5rem;
  }
}

/* Compact variant — new-projects Partner grid only.
   Global .section-py / .section-py-sm / .section-py-hero untouched. */
.section-py--compact {
  padding-block: 1.5rem; /* mobile */
}
@media (min-width: 768px) {
  .section-py--compact {
    padding-block: 1.75rem; /* tablet */
  }
}
@media (min-width: 1024px) {
  .section-py--compact {
    padding-block: 2rem; /* PC */
  }
}

/* Homepage section spacing — premium 4rem breathing room for all homepage sections.
   Heritage slider excluded (not .section-py, padding owned by slides). */
.page-home .section-py {
  padding-block: 3.5rem; /* mobile: ~56px */
}
@media (min-width: 768px) {
  .page-home .section-py {
    padding-block: 4rem; /* tablet: 64px */
  }
}
@media (min-width: 1024px) {
  .page-home .section-py {
    padding-block: 4rem; /* desktop: 64px */
  }
}
@media (min-width: 1440px) {
  .page-home .section-py {
    padding-block: 4.5rem; /* ultra-wide screens */
  }
}

.section-py-hero {
  padding-block: 3rem 3.5rem;
}
@media (min-width: 768px) {
  .section-py-hero {
    padding-block: 4.5rem 5.5rem;
  }
}
@media (min-width: 1024px) {
  .section-py-hero {
    padding-block: 5.5rem 6.5rem;
  }
}

/* Reusable Luxury Responsive Grid Utilities */
/* Properties Grid: 1 col mobile, 2 col tablet, 3 col desktop */
.grid-properties {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-properties {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .grid-properties {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
@media (min-width: 1440px) {
  .grid-properties {
    gap: 2.25rem;
  }
}

/* Projects & Insights Grids: 1 col mobile, 2 col tablet, 3 col desktop */
.grid-projects, .grid-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .grid-projects, .grid-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}
@media (min-width: 1024px) {
  .grid-projects, .grid-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

/* Footer Grid: 1 col mobile, 2 col tablet, 4 col desktop */
.grid-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .grid-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}
@media (min-width: 1024px) {
  .grid-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

/* Editorial Line-Length / Typography Width Controls (65ch-75ch) */
.prose-editorial {
  max-width: 68ch;
}
.title-editorial {
  max-width: 22ch;
}

/* Mobile snap row: flushes seamlessly with 20px mobile container padding */
@media (max-width: 767.98px) {
  .snap-row {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: clamp(260px, 82vw, 320px) !important;
    gap: 1.125rem !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 20px !important;
    margin-inline: -20px !important;
    padding-inline: 20px !important;
    padding-bottom: 0.85rem !important;
    padding-top: 0.25rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    overscroll-behavior-x: contain !important;
  }
  .snap-row::-webkit-scrollbar {
    display: none !important;
  }
  .snap-row > * {
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    min-width: 0 !important;
  }
  .snap-row::after {
    content: "" !important;
    display: block !important;
    width: 1px !important;
    padding-right: 8px !important;
    flex-shrink: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-up, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   15 · LISTING PAGE ARCHITECTURE & LUXURY FILTER SYSTEM
   Christie's International Real Estate Structural Benchmark
   ============================================================ */

/* Filter Sidebar Base */
.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--pe-card-radius);
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
}
@media (min-width: 1024px) {
  .filter-sidebar {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
  }
  .filter-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
  }
}

.filter-group {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--color-border);
}
.filter-group:first-child {
  padding-top: 0;
}
.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.filter-title {
  font-family: var(--pe-font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 700;
}

/* Location input with magnifying icon */
.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.filter-search-box svg {
  position: absolute;
  left: 0.85rem;
  color: var(--color-muted);
  pointer-events: none;
}
.filter-search-input {
  width: 100%;
  height: 42px;
  padding-left: 2.5rem;
  padding-right: 0.85rem;
  font-size: 13px;
  font-family: var(--pe-font-body);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-search-input:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.18);
}
.filter-search-input::placeholder {
  color: var(--color-muted);
  font-size: 12px;
}

/* Quick Location Chips */
.loc-chip {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-muted);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.loc-chip:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.loc-chip.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

/* ── Category Tabs (All / Residential / Commercial) ──────────────── */
.category-filter-tabs {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}
.category-btn {
  flex: 1;
  min-height: 40px;
  padding: 0.5rem 0.35rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--pe-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.category-btn:hover {
  border-color: var(--color-navy);
  background: var(--color-cream-soft);
}
.category-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
  box-shadow: 0 2px 6px rgba(10, 22, 40, 0.15);
  position: relative;
}
.category-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--color-gold);
}

/* Top Horizontal Filter Bar */
.top-filter-bar {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.top-filter-bar .configuration-group {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  gap: 0.35rem;
}
.top-filter-bar .configuration-group .segmented-btn {
  flex: none;
  min-width: 62px;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 11px;
}

/* Configuration & Segmented Button Groups */
.configuration-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  width: 100%;
}
.configuration-group .segmented-btn {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  min-height: 38px;
}
.segmented-group {
  display: flex;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.segmented-btn {
  flex: 1;
  min-height: 38px;
  padding: 0.4rem 0.25rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--pe-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.segmented-btn:hover {
  background: var(--color-cream-soft);
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.segmented-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

/* Clean Custom Checkbox */
.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  padding: 0.2rem 0;
  font-size: 13px;
  color: var(--color-navy);
}
.filter-checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #FFFFFF;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-checkbox-item input[type="checkbox"]:checked {
  background: var(--color-navy);
  border-color: var(--color-navy);
}
.filter-checkbox-item input[type="checkbox"]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px);
}
.filter-checkbox-item input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
/* ── Luxury Dual Range Slider & Price Presets ──────────────── */
.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-range-slider-wrap {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
}

.price-range-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  z-index: 1;
}

.price-range-progress {
  position: absolute;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  z-index: 2;
  left: 0%;
  right: 0%;
}

.price-range-slider-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
  margin: 0;
  top: 50%;
  transform: translateY(-50%);
}

.price-range-slider-wrap input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 6px rgba(1, 1, 51, 0.25);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.price-range-slider-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  border-color: var(--color-navy);
  background: var(--color-cream-soft);
}

.price-range-slider-wrap input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 6px rgba(1, 1, 51, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.price-range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.price-preset-btn {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-muted);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.price-preset-btn:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
  background: var(--color-cream-soft);
}

.price-preset-btn.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #FFFFFF;
}

/* Active Filter Chips */
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: var(--color-cream-soft);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.active-chip button {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.active-chip button:hover {
  color: var(--color-navy);
}

/* Mobile Filter Drawer */
#filter-drawer {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#filter-drawer-backdrop {
  transition: opacity 0.3s ease;
}
body.drawer-open {
  overflow: hidden !important;
}

/* List View Layout for Property Grid (Responsive & Balanced Luxury Card) */
.listing-grid.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  width: 100% !important;
}

.listing-grid.list-view .pe-card {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--pe-card-radius, 2px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.listing-grid.list-view .pe-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: 0 6px 24px rgba(1, 1, 51, 0.08);
}

/* List view always stacks full-width rows —
   overrides grid-cols-2/3/4 from markup so rows never squeeze side-by-side. */
.listing-grid.list-view {
  grid-template-columns: 1fr !important;
}

.listing-grid.list-view .pe-card > .relative {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--color-cream-soft);
  flex-shrink: 0;
}

.listing-grid.list-view .pe-card > .relative img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.listing-grid.list-view .pe-card > div:last-child {
  width: 100%;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

/* Tablet screens (>= 640px) */
@media (min-width: 640px) {
  .listing-grid.list-view .pe-card {
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 210px;
  }
  .listing-grid.list-view .pe-card > .relative {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    height: auto;
    min-height: 100%;
  }
  .listing-grid.list-view .pe-card > .relative img {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
  }
  .listing-grid.list-view .pe-card > div:last-child {
    padding: 1.35rem 1.5rem;
  }
}

/* Desktop screens (>= 1024px) */
@media (min-width: 1024px) {
  .listing-grid.list-view .pe-card {
    min-height: 240px;
  }
  .listing-grid.list-view .pe-card > .relative {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
  }
  .listing-grid.list-view .pe-card > div:last-child {
    padding: 1.75rem 2.25rem;
    justify-content: center;
    gap: 0.35rem;
  }
}

/* Pagination Buttons */
.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding-inline: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--pe-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-navy);
}
.pagination-btn.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 16 · Editorial Insights & Article System ---------- */
.editorial-filter-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.editorial-filter-nav::-webkit-scrollbar {
  display: none;
}
.editorial-filter-btn {
  font-family: var(--pe-font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 42px;
  padding: 0.5rem 1.125rem;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-muted);
  background: var(--color-white);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.editorial-filter-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.editorial-filter-btn[aria-pressed="true"] {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}
.editorial-filter-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Article Body Line Length & Typography */
.prose-editorial-body {
  max-width: 68ch;
  margin-inline: auto;
  font-family: var(--pe-font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--pe-ink);
  overflow-wrap: break-word;
}
.prose-editorial-body > p:first-of-type::first-letter {
  font-family: var(--pe-font-display);
  font-size: 3.1em;
  line-height: 0.95;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.05em;
  color: var(--pe-navy-900);
  font-weight: 600;
}
.prose-editorial-body p {
  margin-bottom: 1.5rem;
}
.prose-editorial-body h2 {
  font-family: var(--pe-font-display);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.25;
  color: var(--pe-navy-900);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}
.prose-editorial-body h3 {
  font-family: var(--pe-font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  line-height: 1.3;
  color: var(--pe-navy-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose-editorial-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.75rem;
}
.prose-editorial-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose-editorial-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}
/* Editor-emitted elements: numbered lists, quotes, links */
.prose-editorial-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}
.prose-editorial-body ol li {
  padding-left: 0.25rem;
  margin-bottom: 0.75rem;
}
.prose-editorial-body ol li::marker {
  color: var(--color-gold);
  font-weight: 600;
}
.prose-editorial-body blockquote {
  border-left: 3px solid var(--color-gold);
  background: var(--color-cream-soft);
  padding: 1rem 1.25rem;
  margin: 0 0 1.75rem;
  font-family: var(--pe-font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--pe-navy-900);
}
.prose-editorial-body blockquote p:last-child {
  margin-bottom: 0;
}
/* Editor-emitted text links only — never buttons (.btn-*) which own their colors */
.prose-editorial-body p a:not([class*="btn"]),
.prose-editorial-body li a:not([class*="btn"]),
.prose-editorial-body blockquote a:not([class*="btn"]) {
  color: var(--color-gold-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-editorial-body p a:not([class*="btn"]):hover,
.prose-editorial-body li a:not([class*="btn"]):hover,
.prose-editorial-body blockquote a:not([class*="btn"]):hover {
  color: var(--pe-navy-900);
}
.prose-editorial-body strong, .prose-editorial-body b {
  font-weight: 700;
  color: var(--pe-navy-900);
}

/* ---------- 17 · Split Luxury Hero Slider ----------
   Editorial split: advisor photography (left, ~52%) + solid navy advisory
   panel (right, ~48%). No rounded corners, no cards, no gaps between halves.
   Height: viewport-based (minus real header via --pe-header-h, set from JS
   with CSS fallback) with sensible min/max so short viewports never clip
   and huge viewports never dwarf the content. svh first for mobile
   address-bar stability, vh as legacy fallback. */
:root {
  --pe-header-h: 72px;
  --pe-hero-gap: 14px;
}
@media (min-width: 1024px) {
  :root {
    --pe-header-h: 112px;
  }
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  background: var(--color-background);
}

/* Right-side editorial panel + hero shell always solid navy (#010133),
   independent of Tailwind CDN availability or breakpoint gaps. */
#heritage,
.hero-content-col {
  background-color: #010133;
}

#heritage {
  /* Mobile-first: natural stacked height, at least most of first viewport. */
  min-height: calc(100vh - var(--pe-header-h, 72px));
  min-height: calc(100svh - var(--pe-header-h, 72px));
  overflow-x: clip;
}

.hero-slide {
  display: none !important;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active {
  display: flex !important;
  opacity: 1;
}

/* Subtle image entrance (opacity + gentle settle, no dramatic zoom/parallax). */
.hero-slide .hero-img-col img {
  transform: scale(1.035);
  opacity: 0.96;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease;
}
.hero-slide.is-active .hero-img-col img {
  transform: scale(1);
  opacity: 1;
}

/* Staggered text entry (all ≤600ms, subtle 14px rise). */
.hero-slide.is-active .hero-eyebrow {
  animation: heroFadeUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s both;
}
.hero-slide.is-active .hero-heading {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}
.hero-slide.is-active .hero-attribution {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.22s both;
}
.hero-slide.is-active .hero-desc {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s both;
}
.hero-slide.is-active .hero-contact {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.34s both;
}
.hero-slide.is-active .hero-ctas {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.38s both;
}
.hero-slide.is-active .hero-metrics {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.44s both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide .hero-img-col img,
  .hero-slide.is-active .hero-eyebrow,
  .hero-slide.is-active .hero-heading,
  .hero-slide.is-active .hero-attribution,
  .hero-slide.is-active .hero-desc,
  .hero-slide.is-active .hero-ctas,
  .hero-slide.is-active .hero-metrics {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.hero-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 22, 40, 0.75);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

@media (min-width: 1024px) {
  .hero-ctrl-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

.hero-ctrl-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-contrast);
  background: rgba(10, 22, 40, 0.95);
}

.hero-ctrl-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.hero-dot {
  width: 24px;
  height: 28px;
  padding: 12px 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.hero-dot.is-active {
  width: 38px;
}

.hero-dot.is-active::after {
  background: var(--color-gold);
}

.hero-dot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Hero paired actions: solid gold Call button beside outline View button.
   Equal 58px heights, 14px gap, shared left axis. Both are real <a> links
   with visible focus states and 44px+ touch targets.
   flex row here (not markup-only) so the <600px full-width
   stacking rule keeps working; higher specificity beats the transparent
   `.hero-ctas a` base. */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.875rem;
  margin-top: 2rem;
  max-width: 100%;
}
.hero-ctas a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 100%;
}
.hero-ctas a.hero-call-btn {
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: #010133;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(200, 155, 60, 0.28);
}
.hero-ctas a.hero-call-btn:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  color: #010133;
  box-shadow: 0 8px 22px rgba(200, 155, 60, 0.38);
  transform: translateY(-1px);
}
.hero-ctas a.hero-call-btn:active {
  transform: translateY(0);
}
.hero-ctas a.hero-call-btn:focus-visible {
  outline: 2px solid #FBFBF8;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-ctas a.hero-call-btn:hover {
    transform: none;
  }
}

/* ---------- Editorial hero composition (right navy panel) ----------
   Base = mobile-first: decorative layers hidden, info strip flows inline.
   Spacing system (mobile): eyebrow 0 → H1 20px → sub 12px → desc 24px →
   CTA 32px → strip 36px. Desktop widens desc/CTA gaps (see §1024+). */
.hero-bgtype,
.hero-lineart {
  display: none;
}
.hero-strip {
  margin-top: 2.25rem;
  max-width: 100%;
  min-width: 0;
}
.hero-strip-rule {
  display: block;
  width: 52px;
  height: 2px;
  background: #C89B3C;
  opacity: 0.85;
  margin-bottom: 0.7rem;
}
  .hero-strip-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
.hero-strip-text {
  font-family: var(--pe-font-body, 'Manrope', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 251, 248, 0.72);
}
.hero-strip-sep {
  color: #C89B3C;
  margin: 0 0.6em;
}

/* Dedicated Non-Overlapping Slider Controls Bar */
.hero-controls-bar {
  position: relative;
  z-index: 30;
  width: 100%;
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE REFINEMENTS (<1024px)
   Desktop layout (>=1024px) remains strictly unchanged.
   ============================================================ */

@media (max-width: 1023.98px) {
  /* Global Overflow Protection & Mobile/Tablet Sticky Navbar */
  html {
    overflow-x: clip;
    width: 100%;
  }
  body {
    overflow-x: clip;
    width: 100%;
    position: relative;
  }

  #site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }

  /* Hero Mobile & Tablet Layout: image over navy content (stacked).
     Reserves image space up-front (no CLS) and keeps the advisor's face
     in frame with a mobile-specific crop (NOT the desktop crop). */
  #heritage {
    height: auto !important;
    overflow-x: clip !important;
    background: #010133 !important;
  }

  .hero-slide {
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-slide.is-active {
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-img-col {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    min-height: 240px !important;
    max-height: 380px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #010133 !important;
    flex: none !important;
  }

  .hero-img-col img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 24% !important;
  }

  .hero-content-col {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 1.75rem 1.5rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #010133 !important;
  }

  .hero-content-inner {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Consistent mobile spacing rhythm (single left axis). */
  .hero-eyebrow {
    margin-top: 0 !important;
  }
  .hero-heading {
    font-family: var(--pe-font-display), 'Cormorant Garamond', serif !important;
    font-size: clamp(2.125rem, 8.5vw, 2.75rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    margin-top: 1.25rem !important;
  }
  .hero-attribution {
    margin-top: 0.75rem !important;
  }

  .hero-desc {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin-top: 1.5rem !important;
  }

  .hero-ctas {
    margin-top: 1.75rem !important;
  }

  /* Slider Controls Bar on Touch Viewports */
  .hero-controls-bar {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #010133 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.75rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 30 !important;
  }
}

/* Tablet-Specific Refinements (768px - 1023.98px): intentional stacked
   editorial, NOT a scaled-down desktop. Horizontal CTAs preserved. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-img-col {
    aspect-ratio: 16 / 9 !important;
    min-height: 300px !important;
    max-height: 420px !important;
  }
  .hero-img-col img {
    object-position: 50% 22% !important;
  }

  .hero-content-col {
    padding: 2.5rem 2rem 2.75rem !important;
  }

  .hero-heading {
    font-size: clamp(2.5rem, 5.2vw, 3rem) !important;
  }
  .hero-desc {
    font-size: 1rem !important;
    max-width: 38rem !important;
  }

  .hero-ctas {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
  .hero-ctas a {
    width: auto !important;
    flex: 0 1 auto !important;
  }

  .hero-controls-bar {
    padding: 0.75rem 2rem !important;
    justify-content: flex-end !important;
    gap: 1.25rem !important;
  }
}

/* Stacked full-width CTAs only where horizontal cannot fit (<600px). */
@media (max-width: 599.98px) {
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-ctas a {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Small Mobile Viewports (<390px e.g. iPhone SE, 360px Android) */
@media (max-width: 389.98px) {
  .hero-img-col {
    aspect-ratio: 1 / 1 !important;
    min-height: 220px !important;
    max-height: 300px !important;
  }
  .hero-img-col img {
    object-position: 50% 20% !important;
  }

  .hero-content-col {
    padding: 1.5rem 1.5rem 1.75rem !important;
  }

  .hero-heading {
    font-size: clamp(1.875rem, 9.5vw, 2.25rem) !important;
  }

  .hero-desc {
    font-size: 0.875rem !important;
  }

  .hero-strip-text {
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
  }
}

/* Very small screens (320px): no overflow, no clipped H1/buttons. */
@media (max-width: 359.98px) {
  .hero-content-col {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-ctas a {
    font-size: 10.5px !important;
    letter-spacing: 0.14em !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Desktop editorial split (1024px+): 52% image / 48% navy panel, no gaps.
   Height chains via flex so the image always fills the row; content never
   clips (min-height only, never fixed height). 620px floor keeps short
   viewports (e.g. 1366x768) scrolling naturally; 860px ceiling keeps huge
   viewports balanced instead of dwarfing the type. */
@media (min-width: 1024px) {
  #heritage {
    height: auto !important;
    min-height: clamp(620px, calc(100vh - var(--pe-header-h, 112px)), 860px) !important;
    min-height: clamp(620px, calc(100svh - var(--pe-header-h, 112px)), 860px) !important;
    max-height: none !important;
    overflow: hidden;
    background: #010133 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #hero-slider {
    position: relative;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: inherit;
  }
  .hero-slide {
    flex: 1 1 auto !important;
  }
  .hero-slide.is-active {
    min-height: inherit !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }
  .hero-img-col {
    width: 52% !important;
    flex: 0 0 52% !important;
    max-width: none !important;
    min-height: 100% !important;
    max-height: none !important;
    position: relative !important;
    overflow: hidden !important;
    align-self: stretch !important;
  }
  .hero-img-col img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 18% !important;
  }
  .hero-content-col {
    width: 48% !important;
    flex: 1 1 48% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: clamp(2.5rem, 4vw, 4rem) clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3rem) !important;
    background: #010133 !important;
    position: relative !important;
  }
  /* Editorial inner column: capped measure + gold vertical rule.
     One shared left axis: eyebrow, H1, sub, desc, CTAs, strip. */
  .hero-content-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: 680px;
    padding-left: clamp(1.375rem, 2vw, 1.875rem);
  }
  .hero-content-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 2px;
    height: clamp(220px, 30vh, 280px);
    max-height: calc(100% - 6px);
    background: #C89B3C;
    opacity: 0.9;
    pointer-events: none;
  }
  /* Spacing system: eyebrow 0 → H1 22px → sub 14px → desc 26px → CTA 32px. */
  .hero-eyebrow {
    margin-top: 0 !important;
  }
  .hero-heading {
    margin-top: 1.375rem !important;
  }
  .hero-attribution {
    margin-top: 0.875rem !important;
  }
  .hero-desc {
    margin-top: 1.625rem !important;
  }
  .hero-ctas {
    margin-top: 2rem !important;
  }
  /* Oversized ghost brand type, barely visible, never interactive */
  .hero-bgtype {
    display: block;
    position: absolute;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 0;
    padding-left: clamp(2.5rem, 4.5vw, 4.5rem);
    font-family: var(--pe-font-display, 'Cormorant Garamond', serif);
    font-weight: 600;
    font-size: clamp(64px, 7.5vw, 132px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FBFBF8;
    opacity: 0.045;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
  }
  .hero-heading {
    font-size: clamp(2.625rem, 1.5rem + 2.4vw, 4.25rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .hero-desc {
    max-width: 620px;
    font-size: clamp(1rem, 0.94rem + 0.35vw, 1.125rem) !important;
    line-height: 1.6 !important;
  }
  /* Lower information strip: natural flex child at base of content column (never overlaps CTAs) */
  .hero-strip {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2;
    margin-top: 2rem !important;
    padding: 1.25rem clamp(1.375rem, 2vw, 1.875rem) 0 !important;
    width: 100% !important;
    max-width: 680px !important;
  }
  .hero-controls-bar {
    position: absolute !important;
    bottom: 5.5rem !important;
    right: clamp(2.5rem, 4.5vw, 4.5rem) !important;
    left: auto !important;
    width: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(1, 1, 51, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    gap: 0.6rem !important;
  }
}

/* Short desktop viewports: protect CTA/strip from crowding. */
@media (min-width: 1024px) and (max-height: 760px) {
  #heritage {
    min-height: 620px !important;
  }
  .hero-content-col {
    padding-top: 2rem !important;
    padding-bottom: 5rem !important;
  }
  .hero-lineart {
    display: none !important;
  }
  .hero-ctas {
    margin-top: 1.5rem !important;
  }
}

@media (min-width: 1280px) {
  /* Subtle architectural line art, lower-right of navy panel, behind content.
     Extremely low contrast; never overlaps paragraph or CTAs. */
  .hero-lineart {
    display: block;
    position: absolute;
    right: 1.5rem;
    bottom: 7rem;
    z-index: 0;
    width: clamp(140px, 12vw, 180px);
    height: auto;
    opacity: 0.1;
    pointer-events: none;
  }
}

@media (min-width: 1440px) {
  .hero-img-col {
    width: 52% !important;
    flex-basis: 52% !important;
  }
  .hero-content-col {
    width: 48% !important;
    flex-basis: 48% !important;
  }
  .hero-controls-bar {
    bottom: 5.75rem !important;
  }
}

/* Global floating WhatsApp: viewport-fixed with device safe-area clearance
   so it never covers hero CTAs or content on notched phones. */
aside[aria-label="WhatsApp Quick Contact"] {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  right: calc(1.25rem + env(safe-area-inset-right, 0px)) !important;
}
@media (min-width: 640px) {
  aside[aria-label="WhatsApp Quick Contact"] {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(1.5rem + env(safe-area-inset-right, 0px)) !important;
  }
}

/* ---------- 18 · Luxury Property Detail Page ---------- */
.gallery-thumb {
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  border: 2px solid transparent;
  opacity: 0.68;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb:hover {
  opacity: 0.95;
  border-color: rgba(197, 160, 89, 0.4);
}

.gallery-thumb.is-active,
.gallery-thumb[aria-selected="true"] {
  opacity: 1;
  border-color: var(--color-gold);
}

.gallery-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 22, 40, 0.75);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.gallery-nav-btn:hover {
  background: rgba(10, 22, 40, 0.95);
  border-color: var(--color-gold);
  color: var(--color-gold-contrast);
}

.gallery-nav-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Floor Plan Tabs */
.floor-tab {
  font-family: var(--pe-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.floor-tab.is-active,
.floor-tab[aria-selected="true"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

.floor-tab:hover:not(.is-active) {
  color: var(--color-navy);
}

/* Map Reveal Transitions */
.map-lock-overlay {
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.map-lock-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-revealed-container {
  transition: opacity 0.5s ease;
}

.map-revealed-container.is-revealed {
  filter: none !important;
}

/* Blueprint Grid Background */
.blueprint-bg {
  background-color: var(--color-navy, #010133);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* ---------- 19 · Clickable property/project cards (whole-card navigation) ----------
   JS (interactions.js) adds [data-clickable] to article.pe-card with a single
   a.card-link[href]. CSS only adds affordance — navigation stays in JS so text
   selection, swipe-scroll, and filter/sort behavior are untouched. */
article.pe-card[data-clickable] {
  cursor: pointer;
}
article.pe-card[data-clickable]:hover h2,
article.pe-card[data-clickable]:hover h3 {
  color: var(--color-gold-hover);
}
article.pe-card[data-clickable]:focus-within {
  border-color: rgba(184, 147, 90, 0.45);
  box-shadow: var(--pe-card-shadow-hover);
}
article.pe-card[data-clickable]:focus-within .card-link {
  background-size: 100% 1px;
  color: var(--color-gold-hover);
}

/* ---------- 20 · Luxury Editorial Hierarchy & Clamp Typography ---------- */
.h1-editorial {
  font-family: var(--pe-font-display);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.h2-editorial {
  font-family: var(--pe-font-display);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.h3-editorial {
  font-family: var(--pe-font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
}

/* ---------- 21 · Professional Memberships Slider ---------- */
.membership-slider-wrap {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
  border-radius: var(--pe-card-radius);
  overflow: hidden;
}

.membership-slides-track {
  position: relative;
  width: 100%;
  height: 380px;
  background: #ffffff;
  overflow: hidden;
}
@media (max-width: 640px) {
  .membership-slides-track {
    height: 280px;
  }
}

.membership-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  z-index: 1;
}

.membership-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.membership-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  height: 200px;
}
@media (max-width: 640px) {
  .membership-img-box {
    height: 140px;
  }
}

.membership-img-box img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(10, 22, 40, 0.04));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.membership-slider-wrap:hover .membership-slide.is-active .membership-img-box img {
  transform: scale(1.03);
}

.membership-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--color-cream-soft);
  border-top: 1px solid rgba(200, 155, 60, 0.3);
}

.membership-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 60, 0.4);
  background: #ffffff;
  color: var(--color-navy);
  cursor: pointer;
  transition: all 0.25s ease;
}

.membership-ctrl-btn:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

.membership-ctrl-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.membership-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(10, 22, 40, 0.18);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.membership-dot.is-active {
  width: 44px;
  background: var(--color-gold);
}

/* ---------- 22 · Growing Each Day Statistics Grid ---------- */
.growing-stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
  border-radius: var(--pe-card-radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.growing-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 8px 30px rgba(200, 155, 60, 0.15);
}

.growing-stat-num {
  font-family: var(--pe-font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  color: var(--color-navy);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.growing-stat-label {
  font-family: var(--pe-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-top: 0.85rem;
}

/* ============================================================
   23 · Premier Luxury Page Load Animation
   Fast, minimal luxury brand loader across all pages
   ============================================================ */
#pe-loader,
.pe-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

#pe-loader.pe-loader--hidden,
.pe-loader.pe-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pe-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  max-width: 90vw;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pe-loader--hidden .pe-loader-content {
  transform: translateY(-8px) scale(0.98);
}

.pe-loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pe-loader-emblem {
  position: relative;
  width: 52px;
  height: 52px;
  background-color: var(--color-navy, #010133);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 155, 60, 0.35);
  box-shadow: 0 4px 20px rgba(1, 1, 51, 0.08);
  animation: peEmblemGlow 2.4s ease-in-out infinite;
}

@keyframes peEmblemGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(1, 1, 51, 0.08), 0 0 0 1px rgba(200, 155, 60, 0.2);
  }
  50% {
    box-shadow: 0 6px 22px rgba(200, 155, 60, 0.25), 0 0 0 1px rgba(200, 155, 60, 0.6);
  }
}

.pe-loader-monogram {
  font-family: var(--pe-font-display, 'Cormorant Garamond', serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gold, #C89B3C);
  margin-top: -1px;
}

.pe-loader-emblem-line {
  width: 22px;
  height: 1.5px;
  background-color: var(--color-gold, #C89B3C);
  margin-top: 3px;
  border-radius: 1px;
}

.pe-loader-text {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pe-loader-title {
  font-family: var(--pe-font-display, 'Cormorant Garamond', serif);
  font-size: clamp(20px, 3.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-navy, #010133);
  line-height: 1.2;
}

.pe-loader-tagline {
  font-family: var(--pe-font-body, 'Manrope', sans-serif);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-gold-hover, #A97A1E);
  margin-top: 4px;
}

.pe-loader-progress-track {
  width: 130px;
  height: 2px;
  background-color: rgba(200, 155, 60, 0.18);
  border-radius: 999px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

.pe-loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #A97A1E 0%, #C89B3C 50%, #DEBA67 100%);
  border-radius: 999px;
  animation: peLoaderShimmer 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes peLoaderShimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  #pe-loader,
  .pe-loader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
  }
  .pe-loader-progress-bar,
  .pe-loader-emblem {
    animation: none !important;
  }
}

/* ---------- 19 · Luxury Editorial Article Typography (scoped to .prose-editorial-body) ---------- */
.prose-editorial-body {
  font-family: var(--pe-font-body);
  color: #222222;
  font-size: 17px;
  line-height: 1.85;
}
.prose-editorial-body p {
  margin-bottom: 1.5rem;
}
.prose-editorial-body h2 {
  font-family: var(--pe-font-display);
  font-size: clamp(24px, 3.5vw, 30px);
  color: var(--color-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 600;
}
.prose-editorial-body h3 {
  font-family: var(--pe-font-display);
  font-size: clamp(20px, 2.8vw, 24px);
  color: var(--color-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  font-weight: 600;
}
.prose-editorial-body h4 {
  font-family: var(--pe-font-body);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.prose-editorial-body ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.prose-editorial-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.prose-editorial-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 700;
}
.prose-editorial-body ol {
  padding-left: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.prose-editorial-body ol li {
  padding-left: 0.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.prose-editorial-body blockquote {
  border-left: 2px solid var(--color-gold);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--pe-font-display);
  font-size: clamp(19px, 2.5vw, 23px);
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.5;
  background: rgba(200, 155, 60, 0.04);
}
.prose-editorial-body strong, .prose-editorial-body b {
  font-weight: 700;
  color: var(--color-navy);
}
.prose-editorial-body a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.prose-editorial-body a:hover {
  color: var(--color-gold-hover);
  text-decoration-color: var(--color-navy);
}
/* Inline journal photography (uploaded via insight editor, server-watermarked) */
.prose-editorial-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.75rem auto;
}
.prose-editorial-body figure { margin: 1.75rem auto; }
.prose-editorial-body figcaption {
  margin-top: 0.6rem;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-muted);
  text-align: center;
}

