/* ==========================================================================
   STANFORD ESTATE AGENTS — BEHANCE & TAILWIND PLUS ARCHITECTURAL DESIGN (v15)
   Official Brand System: Crisp White (#FFFFFF), Warm Stone (#F8F8F7),
   Brand Charcoal (#18181B), and Heritage Gold (#AD8B3A)
   Typography: Plus Jakarta Sans (Display/Headings) + Inter (UI/Body)
   ========================================================================== */

:root {
  /* 1. Brand Surfaces (Light, Bright, Architectural) */
  --st-white: #FFFFFF;
  --st-bg: #FFFFFF;
  --st-bg-subtle: #F8F8F7;       /* Warm Architectural Stone */
  --st-bg-muted: #F1F1EF;        /* Soft Stone-100 for tabs/pills */
  --st-card: #FFFFFF;

  /* 2. Brand Charcoal (Authentic Logo #1A1A1A & Tailwind Zinc-900) */
  --st-charcoal: #18181B;        /* Primary Brand Dark / Headings */
  --st-charcoal-deep: #111113;   /* Top Ribbon & Footer Deep Charcoal */
  --st-charcoal-soft: #27272A;   /* Secondary Dark Surface / Hover */
  --st-black: #18181B;
  --st-navy: #18181B;
  --st-navy-deep: #111113;
  --st-navy-soft: #27272A;

  /* 3. Brand Heritage Gold (Authentic SVG Logo #AD8B3A) */
  --st-gold: #AD8B3A;            /* Official Stanford Roof Gold */
  --st-gold-bright: #C5A049;     /* Luminous Gold Accent */
  --st-gold-light: #DFC075;      /* Soft Gold Highlight on Dark Surfaces */
  --st-gold-dark: #8A6B22;       /* Accessible Gold for White Backgrounds (WCAG AA) */
  --st-gold-tint: #FAF6EC;       /* Ultra-Soft Champagne Tint Surface */
  --st-gold-border: rgba(173, 139, 58, 0.25);

  /* 4. Editorial Text Hierarchy (Tailwind Zinc Scale) */
  --st-text-primary: #18181B;    /* Zinc-900 */
  --st-text-secondary: #3F3F46;  /* Zinc-700 */
  --st-text-muted: #52525B;      /* Zinc-600 */
  --st-text-subtle: #71717A;     /* Zinc-500 */
  --st-grey-light: #A1A1AA;

  /* 5. Hairline Borders & Rings */
  --st-border: #E4E4E7;          /* Zinc-200 */
  --st-border-subtle: #EFEFEC;   /* Soft divider */
  --st-border-strong: #D4D4D8;   /* Zinc-300 */

  /* 6. Status & Semantic Tokens */
  --st-emerald: #059669;
  --st-teal: #0F766E;
  --st-amber: #B45309;

  /* 7. Shadows */
  --st-shadow-xs: 0 1px 2px 0 rgba(24, 24, 27, 0.04);
  --st-shadow-sm: 0 1px 3px 0 rgba(24, 24, 27, 0.05), 0 1px 2px -1px rgba(24, 24, 27, 0.03);
  --st-shadow-md: 0 6px 16px -3px rgba(24, 24, 27, 0.06), 0 2px 6px -2px rgba(24, 24, 27, 0.04);
  --st-shadow-lg: 0 14px 32px -6px rgba(24, 24, 27, 0.08), 0 4px 12px -2px rgba(24, 24, 27, 0.04);
  --st-shadow-xl: 0 24px 48px -12px rgba(24, 24, 27, 0.14), 0 4px 16px -4px rgba(24, 24, 27, 0.06);
  --st-shadow-gold: 0 8px 20px -4px rgba(173, 139, 58, 0.28);

  /* 8. Pure Behance & Tailwind Plus Modern Sans-Serif Font System */
  --st-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --st-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --st-font-serif: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--st-font-sans);
  background-color: var(--st-bg);
  color: var(--st-text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 72px;
  }
}

h1, h2, h3, h4 {
  font-family: var(--st-font-display);
  color: var(--st-charcoal);
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.16s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   MINIMALIST ARCHITECTURAL TOP UTILITY BAR (CHARCOAL & GOLD)
   ========================================================================== */
.top-ribbon {
  background: var(--st-charcoal-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 500;
  position: relative;
  z-index: 1002;
}

.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 28px;
  max-width: 1380px;
  margin: 0 auto;
  gap: 16px;
}

.top-ribbon-left {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  overflow: hidden;
}

.ribbon-branch-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.ribbon-branch-link strong {
  color: #FFFFFF;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ribbon-branch-link:hover {
  color: var(--st-gold-light);
}

.ribbon-branch-link:hover strong {
  color: var(--st-gold-light);
}

.ribbon-sep {
  color: rgba(255, 255, 255, 0.22);
}

.top-ribbon-right {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.google-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.google-pill:hover {
  color: var(--st-gold-light);
}

.google-pill .stars {
  color: var(--st-gold-light);
  letter-spacing: 1px;
  font-size: 11px;
}

.top-ribbon-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 11.5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.top-ribbon-whatsapp i {
  color: #4ADE80;
  font-size: 12px;
}

.top-ribbon-whatsapp:hover {
  background: #16A34A;
  border-color: #16A34A;
}

.top-ribbon-whatsapp:hover i {
  color: #FFFFFF;
}

@media (max-width: 1024px) {
  .ribbon-branch-link:nth-child(n+6),
  .ribbon-sep:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 680px) {
  .top-ribbon {
    display: none;
  }
}

/* ==========================================================================
   STICKY HEADER — BEHANCE & TAILWIND PLUS ARCHITECTURAL NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--st-border-subtle);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  color: var(--st-text-secondary);
  font-family: var(--st-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--st-charcoal);
  background: var(--st-bg-subtle);
}

.nav-link.active {
  color: var(--st-charcoal);
  background: var(--st-bg-subtle);
  font-weight: 700;
}

/* Clean White Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #FFFFFF;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--st-shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--st-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.dropdown-menu a span {
  font-size: 11.5px;
  color: var(--st-gold-dark);
  font-weight: 600;
}

.dropdown-menu a:hover {
  background: var(--st-gold-tint);
  color: var(--st-charcoal);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.btn-saved-drawer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--st-border);
  color: var(--st-charcoal);
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--st-font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-saved-drawer:hover {
  background: var(--st-bg-subtle);
  border-color: var(--st-charcoal);
}

.saved-count-badge {
  background: var(--st-bg-muted);
  color: var(--st-charcoal);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Primary Buttons: Charcoal & Heritage Gold (Single-Line Locked) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--st-charcoal);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--st-charcoal);
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.btn-gold:hover {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--st-shadow-gold);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 13.5px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap !important;
  cursor: pointer;
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--st-charcoal);
  border-color: #FFFFFF;
}

.mobile-menu-toggle {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--st-border);
  color: var(--st-charcoal);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .header-actions .hide-sm {
    display: none;
  }
}

/* ==========================================================================
   BEHANCE FRAMED ARCHITECTURAL HERO SECTION + DIVIDED COMMAND BAR
   ========================================================================== */
.hero-outer-wrap {
  padding: 16px 20px 0;
  background: #FFFFFF;
}

.hero-framed-canvas {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--st-charcoal-deep) url('/wp-content/uploads/2021/07/house-viewing-2048x1366.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 56px 0 44px;
  overflow: hidden;
  box-shadow: var(--st-shadow-lg);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 19, 0.65) 0%, rgba(17, 17, 19, 0.55) 45%, rgba(17, 17, 19, 0.84) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 36px;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--st-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero-overline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-gold-light);
  display: inline-block;
}

.hero-title {
  font-family: var(--st-font-display);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #FFFFFF;
}

.hero-editorial-aside {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 24px;
}

.hero-subtitle {
  font-family: var(--st-font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-subtitle strong {
  color: var(--st-gold-light);
  font-weight: 600;
}

.hero-mini-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-mini-metrics > div {
  display: flex;
  flex-direction: column;
}

.hero-mini-metrics strong {
  font-family: var(--st-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.hero-mini-metrics span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
}

.metric-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
}

/* Behance Minimalist Divided Search Command Dock */
.search-portal-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  color: var(--st-charcoal);
}

.search-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--st-border-subtle);
}

.search-tabs {
  display: inline-flex;
  background: var(--st-bg-muted);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  flex-wrap: nowrap;
}

.search-tab-btn {
  border: none;
  background: transparent;
  color: var(--st-text-muted);
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.search-tab-btn:hover {
  color: var(--st-charcoal);
}

.search-tab-btn.active {
  background: var(--st-charcoal);
  color: #FFFFFF;
  font-weight: 600;
}

.area-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.area-chips-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--st-text-subtle);
  margin-right: 2px;
}

.area-chip {
  background: var(--st-bg-subtle);
  color: var(--st-text-secondary);
  border: 1px solid var(--st-border);
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--st-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.area-chip:hover {
  border-color: var(--st-gold);
  color: var(--st-charcoal);
  background: var(--st-gold-tint);
}

.area-chip.active {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-color: var(--st-charcoal);
}

.stc-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.stc-toggle-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--st-gold);
}

.search-command-bar {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr auto 0.9fr auto 0.9fr auto;
  gap: 12px;
  align-items: center;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--st-border);
}

.search-field {
  min-width: 0;
}

.search-field label {
  display: block;
  font-family: var(--st-font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--st-text-subtle);
  margin-bottom: 3px;
  white-space: nowrap;
}

.search-input, .search-select {
  width: 100%;
  height: 34px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--st-charcoal);
  font-family: var(--st-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.detail-card .search-input,
.detail-card .search-select,
.sticky-enquiry-card .search-input,
.results-toolbar .search-select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--st-border-strong);
  border-radius: 10px;
  background: #FFFFFF;
}

.search-input::placeholder {
  color: var(--st-grey-light);
  font-weight: 400;
}

.search-submit-btn {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--st-charcoal);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid var(--st-charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap !important;
  transition: all 0.16s ease;
}

.search-submit-btn:hover {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #FFFFFF;
}

@media (max-width: 1024px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-editorial-aside {
    border-left: none;
    padding-left: 0;
  }
  .search-command-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-divider {
    display: none;
  }
  .search-command-bar .search-input,
  .search-command-bar .search-select {
    border: 1px solid var(--st-border);
    border-radius: 8px;
    padding: 0 10px;
    height: 40px;
  }
  .search-submit-btn {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .top-ribbon-inner {
    padding: 0 14px;
    height: 34px;
  }
  .top-ribbon-left .ribbon-branch-link:not(:first-child),
  .top-ribbon-left .ribbon-sep,
  .top-ribbon-right .google-pill {
    display: none;
  }
  .header-inner {
    padding: 0 14px;
    height: 64px;
    gap: 10px;
  }
  .brand-logo img {
    height: 36px;
  }
  .btn-saved-header {
    height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  .hero-outer-wrap {
    padding: 8px 10px 0;
  }
  .hero-framed-canvas {
    border-radius: 18px;
    padding: 26px 0 20px;
  }
  .hero-editorial-grid {
    gap: 16px;
    margin-bottom: 20px;
  }
  .hero-overline {
    font-size: 9.5px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    white-space: normal;
    line-height: 1.4;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.12;
  }
  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .hero-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 12px;
    border-radius: 12px;
  }
  .hero-mini-metrics > .metric-sep {
    display: none !important;
  }
  .hero-mini-metrics strong {
    font-size: 14.5px;
  }
  .hero-mini-metrics span {
    font-size: 10.5px;
    line-height: 1.25;
  }
  .search-portal-card {
    padding: 14px;
    border-radius: 14px;
  }
  .search-top-bar {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .search-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-radius: 10px;
    padding: 3px;
  }
  .search-tab-btn {
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
    border-radius: 8px;
    width: 100%;
  }
  .area-chips {
    gap: 5px;
  }
  .area-chip {
    padding: 4px 9px;
    font-size: 11px;
  }
  .search-command-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .search-submit-btn {
    grid-column: span 1;
    width: 100%;
  }
}

/* ==========================================================================
   CURATED LIFESTYLE COLLECTIONS (BEHANCE ARCHITECTURAL BENTO)
   ========================================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.collection-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--st-charcoal);
  cursor: pointer;
  border: 1px solid var(--st-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFFFFF;
  transition: all 0.22s ease;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.45s ease;
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 19, 0.05) 0%, rgba(17, 17, 19, 0.82) 100%);
  z-index: 1;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--st-shadow-lg);
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-card-content {
  position: relative;
  z-index: 2;
}

.collection-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-gold-light);
  margin-bottom: 4px;
  display: block;
}

.collection-title {
  font-family: var(--st-font-display);
  font-size: 17.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.collection-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3px;
}

@media (max-width: 980px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   SECTION HEADERS & ARCHITECTURAL RHYTHM
   ========================================================================== */
.section-block {
  padding: 68px 0;
  background: var(--st-bg);
}

.section-block.alt-bg {
  background: var(--st-bg-subtle);
  border-top: 1px solid var(--st-border-subtle);
  border-bottom: 1px solid var(--st-border-subtle);
}

.section-block.charcoal-bg {
  background: var(--st-charcoal);
  color: #FFFFFF;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--st-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-gold-dark);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--st-font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  color: var(--st-charcoal);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--st-text-muted);
  font-size: 14.5px;
  max-width: 600px;
  margin-top: 6px;
  line-height: 1.6;
}

/* ==========================================================================
   PROPERTY CARDS GRID (BEHANCE LUXURY GALLERY DESIGN)
   ========================================================================== */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--st-border);
  margin-bottom: 24px;
}

.results-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--st-charcoal);
}

.results-count span {
  color: var(--st-gold-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-xs);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--st-shadow-lg);
  border-color: var(--st-border-strong);
}

.prop-media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  background: var(--st-bg-muted);
  overflow: hidden;
}

.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .prop-media img {
  transform: scale(1.04);
}

.prop-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 3;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-sale {
  background: var(--st-charcoal);
  color: #FFFFFF;
}

.badge-rent {
  background: var(--st-teal);
  color: #FFFFFF;
}

.badge-stc {
  background: var(--st-amber);
  color: #FFFFFF;
}

.badge-area {
  background: rgba(255, 255, 255, 0.94);
  color: var(--st-charcoal);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-fav-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 24, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  color: var(--st-charcoal);
  font-size: 13px;
  transition: all 0.16s ease;
}

.btn-fav-heart:hover, .btn-fav-heart.saved {
  background: var(--st-charcoal);
  border-color: var(--st-charcoal);
  color: var(--st-gold-light);
}

.prop-photo-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(24, 24, 27, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.prop-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.prop-price {
  font-family: var(--st-font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--st-charcoal);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prop-qualifier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--st-gold-dark);
  white-space: nowrap;
}

.prop-title {
  font-family: var(--st-font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--st-charcoal);
  margin-bottom: 10px;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.prop-title a {
  color: var(--st-charcoal);
}

.prop-title a:hover {
  color: var(--st-gold-dark);
}

.prop-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  margin-bottom: 10px;
  border-top: 1px solid var(--st-border-subtle);
  border-bottom: 1px solid var(--st-border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text-secondary);
  flex-wrap: wrap;
}

.prop-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.prop-specs i {
  color: var(--st-gold);
  font-size: 11px;
}

.prop-summary {
  font-size: 13px;
  color: var(--st-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  flex: 1;
}

.prop-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.btn-prop-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--st-charcoal);
  border: 1px solid var(--st-charcoal);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 12.5px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  white-space: nowrap !important;
}

.btn-prop-view:hover {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #FFFFFF;
}

.btn-prop-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--st-charcoal);
  border: 1px solid var(--st-border);
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 12.5px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap !important;
}

.btn-prop-quick:hover {
  background: var(--st-bg-subtle);
  border-color: var(--st-charcoal);
}

@media (max-width: 1060px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .property-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   SERVICES BENTO GRID — NUMBERED ARCHITECTURAL CARDS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--st-border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--st-shadow-lg);
  border-color: var(--st-gold);
}

.service-num {
  font-family: var(--st-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--st-gold-dark);
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: var(--st-font-display);
  font-size: 18.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--st-charcoal);
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 13.5px;
  color: var(--st-text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--st-font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--st-charcoal);
  white-space: nowrap;
}

.service-card:hover .service-link {
  color: var(--st-gold-dark);
  gap: 9px;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   INTERACTIVE VALUATION & MORTGAGE CALCULATOR WIDGETS
   ========================================================================== */
.interactive-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.dark-feature-card {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--st-shadow-lg);
  position: relative;
  overflow: hidden;
}

.dark-feature-card h2,
.dark-feature-card h3 {
  color: #FFFFFF;
}

.calc-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
}

.calc-row {
  margin-bottom: 14px;
}

.calc-row label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.calc-row input[type="range"] {
  width: 100%;
  accent-color: var(--st-gold-light);
  cursor: pointer;
}

.calc-result-banner {
  background: rgba(173, 139, 58, 0.18);
  border: 1px solid rgba(223, 192, 117, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.calc-result-banner .amount {
  font-family: var(--st-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--st-gold-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .interactive-split {
    grid-template-columns: 1fr;
  }
  .dark-feature-card {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   TEAM CARDS & DEPARTMENT FILTERS — CRISP EDITORIAL PORTRAITS
   ========================================================================== */
.team-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.team-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--st-border);
  color: var(--st-text-secondary);
  font-family: var(--st-font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.team-filter-btn:hover {
  border-color: var(--st-charcoal);
  color: var(--st-charcoal);
}

.team-filter-btn.active {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-color: var(--st-charcoal);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--st-shadow-lg);
}

.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background: var(--st-bg-muted);
  overflow: hidden;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.04);
}

.team-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.team-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.team-tag.founder {
  background: var(--st-charcoal);
  color: var(--st-gold-light);
}

.team-tag.director {
  background: rgba(24, 24, 27, 0.88);
  color: #FFFFFF;
}

.team-tag.standard {
  background: rgba(255, 255, 255, 0.94);
  color: var(--st-charcoal);
}

.team-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-family: var(--st-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--st-charcoal);
  letter-spacing: -0.02em;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--st-gold-dark);
  margin-top: 2px;
}

.team-branch {
  font-size: 12px;
  color: var(--st-text-muted);
  margin-top: 4px;
}

.team-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--st-border-subtle);
}

.team-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.team-action-btn.email {
  background: var(--st-bg-subtle);
  color: var(--st-charcoal);
  border: 1px solid var(--st-border);
}

.team-action-btn.email:hover {
  border-color: var(--st-charcoal);
}

.team-action-btn.call {
  background: var(--st-gold-tint);
  color: var(--st-gold-dark);
  border: 1px solid var(--st-gold-border);
}

.team-action-btn.call:hover {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-color: var(--st-charcoal);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

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

/* ==========================================================================
   REVIEWS / TESTIMONIALS GRID
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--st-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--st-gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 14px;
  color: var(--st-text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--st-border-subtle);
  padding-top: 14px;
}

.review-author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--st-charcoal);
}

.review-tag {
  background: var(--st-gold-tint);
  color: var(--st-gold-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

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

/* ==========================================================================
   PROPERTY DETAIL & INNER PAGE HEADERS
   ========================================================================== */
.prop-detail-hero {
  background: var(--st-bg-subtle);
  color: var(--st-charcoal);
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--st-border);
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--st-text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumb-row a:hover {
  color: var(--st-gold-dark);
}

.prop-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.prop-detail-title {
  font-family: var(--st-font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--st-charcoal);
  letter-spacing: -0.03em;
}

.prop-detail-price-box {
  text-align: right;
}

.prop-detail-price {
  font-family: var(--st-font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--st-charcoal);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.gallery-main {
  aspect-ratio: 16 / 10.5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--st-bg-muted);
  border: 1px solid var(--st-border);
  position: relative;
  cursor: zoom-in;
  group: gallery;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-main:hover img {
  transform: scale(1.015);
}

.gallery-main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 24, 27, 0.12);
  color: var(--st-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: all 0.18s ease;
}

.gallery-main-nav:hover {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-color: var(--st-charcoal);
}

.gallery-main-nav.prev {
  left: 14px;
}

.gallery-main-nav.next {
  right: 14px;
}

.gallery-main-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.gallery-counter-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  pointer-events: auto;
  background: rgba(24, 24, 27, 0.84);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallery-action-group {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-gallery-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  color: var(--st-charcoal);
  border: 1px solid rgba(24, 24, 27, 0.12);
  font-family: var(--st-font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap !important;
  transition: all 0.18s ease;
}

.btn-gallery-fullscreen:hover {
  background: var(--st-charcoal);
  color: #FFFFFF;
  border-color: var(--st-charcoal);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 16 / 10.5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  background: var(--st-bg-muted);
  transition: all 0.18s ease;
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--st-gold);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.74);
  backdrop-filter: blur(3px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--st-font-display);
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  padding: 6px;
  transition: background 0.18s ease;
}

.gallery-thumb:hover .gallery-thumb-more {
  background: rgba(173, 139, 58, 0.88);
}

.floorplan-interactive-wrap {
  position: relative;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--st-border);
  background: #FFFFFF;
  cursor: zoom-in;
}

.floorplan-interactive-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.25s ease;
}

.floorplan-interactive-wrap:hover img {
  transform: scale(1.01);
}

.floorplan-zoom-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--st-charcoal);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* ==========================================================================
   FULLSCREEN ARCHITECTURAL LIGHTBOX (#stanford-lightbox)
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 17, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  user-select: none;
}

.lightbox-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  gap: 16px;
}

.lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.12);
  color: var(--st-gold-light);
  font-family: var(--st-font-display);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lightbox-prop-title {
  font-family: var(--st-font-display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 10px;
}

.lightbox-mode-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--st-font-display);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.lightbox-mode-btn.active {
  background: #FFFFFF;
  color: var(--st-charcoal);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-icon-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.lightbox-icon-btn:hover {
  background: var(--st-gold);
  border-color: var(--st-gold);
  color: #FFFFFF;
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 76px;
  overflow: auto;
  min-height: 0;
}

.lightbox-main-img {
  height: 75vh;
  width: auto;
  max-width: min(86vw, 1360px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .lightbox-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .lightbox-prop-title {
    display: none;
  }
  .lightbox-stage {
    padding: 12px 16px;
  }
  .lightbox-main-img {
    width: 100%;
    height: auto;
    max-width: 94vw;
    max-height: 68vh;
  }
}

.lightbox-main-img.zoomed {
  transform: scale(1.75);
  cursor: zoom-out;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.18s ease;
}

.lightbox-arrow:hover {
  background: #FFFFFF;
  color: var(--st-charcoal);
}

.lightbox-arrow.prev {
  left: 20px;
}

.lightbox-arrow.next {
  right: 20px;
}

.lightbox-filmstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px 20px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-strip-thumb {
  width: 78px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.52;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s ease;
  background: #27272A;
}

.lightbox-strip-thumb.active, .lightbox-strip-thumb:hover {
  opacity: 1;
  border-color: var(--st-gold-light);
  transform: translateY(-2px);
}

.lightbox-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-detail-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 32px;
  padding: 40px 0 72px;
  align-items: start;
}

.detail-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--st-border);
  margin-bottom: 24px;
}

.detail-card h2, .detail-card h3 {
  font-family: var(--st-font-display);
  color: var(--st-charcoal);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-description p {
  margin-bottom: 14px;
  color: var(--st-text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

.sticky-enquiry-card {
  position: sticky;
  top: 96px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--st-border);
  box-shadow: var(--st-shadow-md);
}

@media (max-width: 960px) {
  .gallery-showcase {
    grid-template-columns: 1fr;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .prop-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 48px;
  }
  .prop-detail-price-box {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .prop-detail-hero {
    padding: 20px 0 28px;
  }
  .gallery-main-nav {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .gallery-main-nav.prev {
    left: 8px;
  }
  .gallery-main-nav.next {
    right: 8px;
  }
  .gallery-counter-pill {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 11px;
  }
  .gallery-main-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }
  .btn-gallery-fullscreen {
    padding: 6px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .gallery-thumb-more {
    font-size: 11.5px;
    line-height: 1.2;
    padding: 4px;
  }
  .gallery-thumb-more span:nth-child(2) {
    display: none;
  }
  .detail-card {
    padding: 20px 16px;
  }
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MODAL & SHORTLIST DRAWER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #FFFFFF;
  color: var(--st-charcoal);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: 18px;
  overflow-y: auto;
  box-shadow: var(--st-shadow-xl);
  border: 1px solid var(--st-border);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--st-bg-subtle);
  color: var(--st-charcoal);
  border: 1px solid var(--st-border);
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: #FFFFFF;
  border-left: 1px solid var(--st-border);
  color: var(--st-charcoal);
  z-index: 2700;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -16px 0 40px rgba(24, 24, 27, 0.14);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

.mobile-nav-links a {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--st-charcoal);
  border-bottom: 1px solid var(--st-border-subtle);
}

/* ==========================================================================
   MOBILE BOTTOM APP ACTION BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--st-border);
  z-index: 1500;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px;
}

.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--st-text-secondary);
  font-family: var(--st-font-sans);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.mob-tab i {
  font-size: 16px;
  color: var(--st-gold-dark);
}

.mob-tab.highlight {
  background: var(--st-charcoal);
  color: #FFFFFF;
}

.mob-tab.highlight i {
  color: var(--st-gold-light);
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: grid;
  }
  .site-footer {
    padding-bottom: 92px;
  }
}

/* ==========================================================================
   SIGNATURE CHARCOAL FOOTER
   ========================================================================== */
.site-footer {
  background: var(--st-charcoal-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 68px 0 36px;
  border-top: 3px solid var(--st-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--st-gold-light);
}

.footer-accreditations {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-accreditations img {
  height: 36px;
  width: auto;
  background: #FFFFFF;
  padding: 4px 9px;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   GDPR COOKIE CONSENT BANNER
   ========================================================================== */
.stanford-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 390px;
  width: calc(100vw - 40px);
  background: #FFFFFF;
  color: var(--st-charcoal);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 18px 20px;
  z-index: 2600;
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .stanford-cookie-banner {
    bottom: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    padding: 14px 16px;
  }
}

.cookie-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--st-charcoal);
}

.cookie-banner-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--st-text-muted);
}

.cookie-banner-text a {
  color: var(--st-gold-dark);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-btn-accept {
  flex: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--st-charcoal);
  color: #FFFFFF;
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.cookie-btn-decline {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--st-bg-subtle);
  border: 1px solid var(--st-border);
  color: var(--st-charcoal);
  font-family: var(--st-font-display);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
