/*
 * Meridian Estates — Premium Dark Luxury UI
 * Full replacement of enhanced.css.
 */

/* ============================================================
   ROOT — DARK LUXURY PALETTE
   ============================================================ */
:root {
  --bg-primary:   #0f1115;
  --bg-secondary: #171b22;
  --bg-card:      #1d222b;
  --bg-card-alt:  #222834;

  --text-primary:   #f5f5f3;
  --text-secondary: #b8bec9;
  --text-muted:     #8f97a3;

  --gold:       #c8a96b;
  --gold-light: #e0c48c;
  --gold-dim:   rgba(200,169,107,0.12);

  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-md: 0 15px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.5);

  --radius-xs:   8px;
  --radius-sm:   14px;
  --radius-md:   22px;
  --radius-lg:   32px;
  --radius-xl:   40px;
  --radius-pill: 999px;

  --container-width: 1320px;

  --transition:      all 0.35s cubic-bezier(0.16,0.8,0.24,1);
  --transition-fast: all 0.2s cubic-bezier(0.4,0,0.2,1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  --spacing-section: 96px;
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: var(--font-body); }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: #111; }
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(44px,6.5vw,88px); }
h2 { font-size: clamp(32px,4.5vw,60px); }
h3 { font-size: clamp(20px,2.5vw,28px); }

p { color: var(--text-secondary); font-size: 16px; line-height: 1.75; }

.display-lg  { font-family: var(--font-display); font-size: clamp(44px,6.5vw,88px); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.headline-lg { font-family: var(--font-display); font-size: clamp(32px,4.5vw,60px); font-weight: 600; line-height: 1.1;  letter-spacing: -0.02em; }
.headline-md { font-family: var(--font-display); font-size: clamp(20px,2.5vw,32px); font-weight: 600; line-height: 1.2; }
.body-lg     { font-size: 18px; font-weight: 300; line-height: 1.8; color: var(--text-secondary); }
.body-md     { font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--text-secondary); }

.label-caps {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.section-gap        { padding: var(--spacing-section) 0; }
.section-gap-top    { padding-top: var(--spacing-section); }
.section-gap-bottom { padding-bottom: var(--spacing-section); }

.bg-container     { background: var(--bg-secondary); }
.bg-container-low { background: var(--bg-card); }
.bg-dark          { background: var(--bg-primary); }

/* ============================================================
   NAVIGATION — no bullets, ever
   ============================================================ */
.main-nav, .main-nav ul, .main-nav ol,
.mobile-nav, .mobile-nav ul {
  list-style: none !important;
  padding: 0; margin: 0;
}
.main-nav li, .mobile-nav li { list-style: none !important; padding: 0; margin: 0; }

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: 76px;
  background: rgba(12,13,18,0.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(15,17,21,0.97);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-inline: 40px;
  max-width: 1360px;
}

/* offset body content for fixed header */
.page-hero    { margin-top: 76px; }

.site-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Covers both <a> direct children AND <ul><li><a> WP output */
.main-nav > a,
.main-nav > ul > li > a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
  display: inline-block;
}

.main-nav > a::after,
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-nav > a:hover,           .main-nav > ul > li > a:hover,
.main-nav > a.active,          .main-nav > ul > li > a.active { color: #fff; }

.main-nav > a:hover::after,    .main-nav > ul > li > a:hover::after,
.main-nav > a.active::after,   .main-nav > ul > li > a.active::after { width: 100%; }

/* Gold CTA pill */
.main-nav > a.nav-cta,
.main-nav > ul > li > a.nav-cta {
  background: var(--gold);
  color: #111 !important;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  transition: var(--transition-fast);
}

.main-nav > a.nav-cta:hover,
.main-nav > ul > li > a.nav-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

.main-nav > a.nav-cta::after,
.main-nav > ul > li > a.nav-cta::after { display: none; }

/* WP wraps in <ul> so flex it */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: rgba(12,13,18,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 28px; color: rgba(255,255,255,0.8); padding: 20px 0; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-nav a:hover { color: var(--gold); }

@media (max-width: 900px) { .main-nav { display: none; } .hamburger { display: flex; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold,
.btn-primary { background: var(--gold); color: #111; }
.btn-gold:hover,
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(200,169,107,0.28); color: #111; }

.btn-outline { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.16); }
.btn-outline:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

.btn-full { width: 100%; }

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

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(0.82) saturate(1.1); transition: transform 10s ease; }
.hero:hover .hero-bg img { transform: scale(1.04); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-left: 8%;
  padding-top: 100px;
  padding-right: 24px;
}

.hero-content h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 32px rgba(0,0,0,0.4); }
.hero-content > p { color: rgba(255,255,255,0.75); font-size: 18px; font-weight: 300; line-height: 1.8; margin-bottom: 48px; max-width: 500px; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  max-width: 860px;
}

.search-field { display: flex; flex-direction: column; gap: 6px; padding: 6px 10px; }

.search-field label { font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

.search-field input,
.search-field select { background: transparent; border: none; outline: none; color: #fff; font-size: 14px; font-family: var(--font-body); appearance: none; }
.search-field input::placeholder { color: rgba(255,255,255,0.3); }
.search-field select option { background: var(--bg-secondary); color: #fff; }

.search-bar .btn { border-radius: var(--radius-sm); min-height: 52px; padding: 0 28px; align-self: stretch; font-size: 10px; letter-spacing: 0.22em; }

@media (max-width: 768px) { .search-bar { grid-template-columns: 1fr; } .search-bar .btn { width: 100%; } }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,107,0.35), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover .stat-number { color: var(--gold-light); transition: color 0.3s ease; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px,4vw,52px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2,1fr); } .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px; } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { max-width: 760px; }
.section-header.centered { margin-inline: auto; text-align: center; }
.section-header h2 { color: var(--text-primary); }
.section-header p { margin-top: 16px; color: var(--text-secondary); line-height: 1.85; }

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

.view-all-link { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 4px; white-space: nowrap; }
.view-all-link:hover { color: var(--gold); border-color: var(--gold); }

.divider { width: 48px; height: 1px; background: var(--gold); }
.divider.centered { margin-inline: auto; }

/* ============================================================
   PROPERTY CARDS
   ============================================================ */
.properties-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: start; }

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: rgba(200,169,107,0.2); }

.property-card-image { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-card-alt); }
.property-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; display: block; }
.property-card:hover .property-card-image img { transform: scale(1.07); }

.property-card-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
.property-card-badge.gold { background: var(--gold); color: #111; }

.property-card-save {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px);
  transition: var(--transition); color: #fff; z-index: 2; cursor: pointer;
}
.property-card:hover .property-card-save { opacity: 1; transform: translateY(0); }

.property-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }

.property-card-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--gold); letter-spacing: -0.01em; margin-bottom: 8px; }
.property-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1.35; margin-bottom: 8px; }
.property-card-title a { color: inherit; }
.property-card-title a:hover { color: var(--gold); }

.property-card-location { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.property-card-location .material-symbols-outlined { font-size: 15px; color: var(--gold); flex-shrink: 0; }

.property-card-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 14px; border-top: 1px solid var(--border); margin-bottom: 20px; }
.property-card-meta span { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.property-card-actions { display: flex; gap: 10px; margin-top: auto; }

.property-card-actions .btn-primary {
  flex: 1; min-height: 46px;
  border-radius: var(--radius-pill);
  background: var(--gold); color: #111; border: none;
  font-size: 10px; letter-spacing: 0.16em;
}
.property-card-actions .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,107,0.25); }

.property-card-actions .btn-outline {
  flex-shrink: 0; width: 46px; min-height: 46px; padding: 0;
  border-radius: var(--radius-pill); border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transform: none;
}
.property-card-actions .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: none; background: transparent; }
.property-card-actions .btn-outline .material-symbols-outlined { font-size: 18px; }

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

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; align-items: stretch; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 44px 38px;
  display: flex; flex-direction: column;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(200,169,107,0.2); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon { width: 68px; height: 68px; background: var(--gold-dim); border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.feature-icon .material-symbols-outlined { color: var(--gold); font-size: 30px; }

.feature-card h3 { color: var(--text-primary); margin-bottom: 14px; }
.feature-card p  { color: var(--text-secondary); font-size: 15px; line-height: 1.75; flex: 1; }

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; align-items: stretch; }

.testimonial-card {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
  transition: var(--transition); position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(200,169,107,0.2); }
.testimonial-card::before { content: '\201C'; position: absolute; top: 20px; left: 32px; font-family: var(--font-display); font-size: 80px; color: var(--gold); opacity: 0.15; line-height: 1; pointer-events: none; }

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.testimonial-stars .material-symbols-outlined { font-size: 16px; color: var(--gold); }

.testimonial-quote { font-family: var(--font-display); font-size: 16px; font-style: italic; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 28px; flex: 1; }
.testimonial-name  { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 3px; }
.testimonial-role  { font-size: 13px; font-weight: 300; color: var(--text-muted); }

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

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 80px 72px;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #1c2129 0%, #0f1115 100%);
  border: 1px solid rgba(255,255,255,0.07);
}
.cta-banner::before { content: ''; position: absolute; inset: -100%; background-image: repeating-linear-gradient(45deg, rgba(200,169,107,0.025) 0, rgba(200,169,107,0.025) 1px, transparent 1px, transparent 64px); pointer-events: none; }
.cta-banner::after  { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,169,107,0.1) 0%, transparent 65%); pointer-events: none; }

.cta-banner-content { position: relative; z-index: 2; max-width: 700px; }
.cta-banner h2 { color: #fff; margin-bottom: 20px; }
.cta-banner p  { color: rgba(255,255,255,0.58); font-size: 17px; font-weight: 300; line-height: 1.75; margin-bottom: 44px; }

.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-buttons .btn-gold { border-radius: var(--radius-pill); }
.cta-buttons .btn-outline { border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.78); border-radius: var(--radius-pill); }
.cta-buttons .btn-outline:hover { background: rgba(255,255,255,0.07); color: #fff; }

@media (max-width: 768px) { .cta-banner { padding: 56px 36px; border-radius: var(--radius-lg); } .cta-buttons { flex-direction: column; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0b0d11; border-top: 1px solid rgba(255,255,255,0.05); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding: 80px 0 60px; align-items: start; }

.footer-brand h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand p  { color: rgba(255,255,255,0.38); font-size: 14px; line-height: 1.75; max-width: 280px; margin-bottom: 28px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); transition: var(--transition-fast); }
.footer-social a:hover { background: var(--gold); color: #111; }

.footer-col h4 { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col ul li { list-style: none; }
.footer-col ul a { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.48); }
.footer-col ul a:hover { color: var(--gold); }

.footer-newsletter p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.38); margin-bottom: 18px; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; height: 52px; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 0 18px; background: rgba(255,255,255,0.05); color: #fff; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.22); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button { height: 52px; padding: 0 22px; border-radius: var(--radius-sm); background: var(--gold); color: #111; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; border: none; white-space: nowrap; }
.newsletter-form button:hover { background: var(--gold-light); }

.footer-bottom { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.22); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } .newsletter-form { flex-direction: column; } .newsletter-form button { width: 100%; height: 48px; } }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-secondary); margin-top: 76px; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(0.7); }
.page-hero-content { position: relative; z-index: 1; text-align: center; }
.page-hero-content h1 { color: #fff; }

/* ============================================================
   LISTINGS
   ============================================================ */
.listings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

.filters-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 26px; position: sticky; top: 96px; }

.filter-group { margin-bottom: 30px; }
.filter-group label { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 12px; }

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 11px 14px; font-size: 14px; color: var(--text-primary); font-family: var(--font-body); outline: none; transition: border-color 0.2s; appearance: none; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--gold); }
.filter-group select option { background: var(--bg-card); }

.filter-range { display: flex; gap: 10px; align-items: center; }
.filter-range span { color: var(--text-muted); }

.checkbox-group { display: flex; flex-direction: column; gap: 11px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label:hover { color: var(--text-primary); }
.checkbox-label input[type="checkbox"] { accent-color: var(--gold); }

.listings-controls { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.listings-count { font-size: 14px; color: var(--text-muted); }

.view-toggles { display: flex; border: 1px solid var(--border); border-radius: var(--radius-xs); overflow: hidden; }
.view-toggle { padding: 8px 12px; color: var(--text-muted); transition: var(--transition-fast); background: transparent; }
.view-toggle.active, .view-toggle:hover { background: var(--gold-dim); color: var(--gold); }

.sort-select { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 9px 32px 9px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); outline: none; font-family: var(--font-body); appearance: none; cursor: pointer; }
.sort-select option { background: var(--bg-card); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 72px; }
.page-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xs); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted); background: transparent; cursor: pointer; transition: var(--transition-fast); }
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: #111; }

@media (max-width: 900px) { .listings-layout { grid-template-columns: 1fr; } .filters-sidebar { position: static; } }

/* ============================================================
   PROPERTY DETAIL
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 300px 300px; gap: 8px; margin-bottom: 80px; }
.gallery-main { grid-row: span 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-card); cursor: pointer; }
.gallery-thumb { overflow: hidden; border-radius: var(--radius-xs); background: var(--bg-card); cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid img:hover { transform: scale(1.04); }

@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 280px 200px 200px; } .gallery-main { grid-row: span 1; } }

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
@media (max-width: 1024px) { .detail-layout { grid-template-columns: 1fr; } }

.property-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; flex-wrap: wrap; }
.property-tag  { color: var(--gold); display: block; margin-bottom: 12px; }
.property-price { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); }
.property-subtitle { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

.property-specs { display: grid; grid-template-columns: repeat(5,1fr); padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 48px; gap: 16px; }
.spec-item label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 8px; }
.spec-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text-primary); }
@media (max-width: 768px) { .property-specs { grid-template-columns: repeat(2,1fr); } }

.property-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; overflow-x: auto; }
.tab-btn { padding: 16px 24px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; cursor: pointer; transition: var(--transition-fast); }
.tab-btn.active, .tab-btn:hover { color: var(--text-primary); border-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.agent-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 36px; margin-bottom: 24px; }
.agent-card h4 { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.agent-info { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.agent-photo { width: 80px; height: 80px; overflow: hidden; background: var(--bg-card-alt); flex-shrink: 0; border-radius: var(--radius-sm); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.agent-name  { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); margin-bottom: 4px; }
.agent-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.agent-contacts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.agent-contact-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.agent-contact-row a:hover { color: var(--gold); }

.mortgage-calc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 36px; margin-bottom: 24px; }
.mortgage-calc h4 { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.calc-field { margin-bottom: 20px; }
.calc-field label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 8px; }
.calc-field input, .calc-field select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 10px 14px; color: var(--text-primary); font-family: var(--font-body); font-size: 15px; outline: none; }
.calc-field input:focus { border-color: var(--gold); }
.calc-result { padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-end; }
.calc-result-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.calc-result-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: center; }
.about-story img { width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius-md); }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.team-card .team-photo { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 22px; background: var(--bg-card); border-radius: var(--radius-md); }
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card h3 { color: var(--text-primary); font-size: 20px; margin-bottom: 4px; }
.team-card .team-title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.team-card .team-social { display: flex; gap: 14px; }
.team-card .team-social a { color: var(--text-muted); font-size: 18px; }
.team-card .team-social a:hover { color: var(--gold); }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .team-grid { grid-template-columns: 1fr; } }

.awards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.award-item { display: flex; align-items: center; justify-content: center; padding: 40px 20px; border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius-sm); opacity: 0.55; transition: var(--transition-fast); }
.award-item:hover { opacity: 1; border-color: rgba(200,169,107,0.3); }
@media (max-width: 768px) { .awards-grid { grid-template-columns: repeat(2,1fr); } }

.testimonial-featured { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .testimonial-featured { grid-template-columns: 1fr; } }

.testimonial-big { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 72px; position: relative; }
.quote-mark { font-size: 120px; color: var(--gold); opacity: 0.15; font-family: Georgia, serif; line-height: 1; position: absolute; top: 24px; left: 40px; }
.testimonial-big blockquote { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--text-primary); line-height: 1.55; margin-bottom: 36px; }
.testimonial-author-row { display: flex; align-items: center; gap: 20px; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author-name { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.testimonial-author-title { font-size: 13px; color: var(--text-muted); font-weight: 300; }
@media (max-width: 768px) { .testimonial-big { padding: 48px 32px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; }
@media (max-width: 1024px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 600px) { .contact-form .form-row { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 0; }
.form-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 12px 16px; color: var(--text-primary); font-family: var(--font-body); font-size: 15px; outline: none; appearance: none; transition: border-color 0.2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-field select option { background: var(--bg-card); }
.form-field textarea { resize: none; }

.contact-info-block { margin-bottom: 40px; }
.contact-info-block address { font-style: normal; font-family: var(--font-display); font-size: 22px; line-height: 1.4; color: var(--text-primary); }
.contact-info-block p { color: var(--text-secondary); font-size: 16px; margin-top: 6px; }

.consultation-box { background: linear-gradient(135deg, #1c2129, #0f1115); border: 1px solid rgba(200,169,107,0.14); border-radius: var(--radius-md); padding: 40px; margin-bottom: 40px; }
.consultation-box .label-caps { margin-bottom: 12px; }
.consultation-box h3 { color: var(--text-primary); font-size: 22px; margin-bottom: 14px; }
.consultation-box p { color: var(--text-secondary); font-size: 14px; margin-bottom: 22px; }

.map-container { width: 100%; height: 260px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; position: relative; margin-bottom: 36px; }
.map-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(0.6); }
.map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--gold); color: #111; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(200,169,107,0.4); }
.map-label { position: absolute; top: calc(50% + 28px); left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); padding: 6px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--text-secondary); border-radius: var(--radius-xs); }

#form-success { background: rgba(200,169,107,0.08); border-left: 3px solid var(--gold); border-radius: var(--radius-xs); padding: 14px 18px; }
#form-success p { color: var(--gold); }
#form-error { background: rgba(186,26,26,0.1); border-left: 3px solid #ba1a1a; border-radius: var(--radius-xs); padding: 14px 18px; }

/* ============================================================
   404 / NO RESULTS
   ============================================================ */
.no-results { text-align: center; padding: 80px 40px; }
.no-results h3 { color: var(--text-primary); margin-bottom: 14px; }
.no-results p  { color: var(--text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   ADMIN BAR
   ============================================================ */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-nav  { top: 108px; }
body.admin-bar .page-hero   { margin-top: 108px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } body.admin-bar .mobile-nav { top: 122px; } }

/* ============================================================
   PRINT
   ============================================================ */
@media print { .site-header,.mobile-nav,.stats-bar,.cta-banner,.site-footer { display: none; } body { background: #fff; color: #000; } }

/* ============================================================
   VISUAL FIXES v1.2 — from screenshot review
   ============================================================ */

/* ── Hero: left-align content per design, fix subtitle ── */
.hero-content {
  text-align: left;
  margin-left: clamp(24px, 8%, 120px);
  margin-right: auto;
}

.hero-content h1 { text-align: left; }

.hero-content > p { text-align: left; }

/* Search bar left-aligned under hero text, not centered */
.search-bar { margin-left: 0; margin-right: auto; }

/* ── About page stats — visible gold numbers ── */
.about-story + .stats-bar .stat-number,
.section-gap + .stats-bar .stat-number,
.stats-bar .stat-number { color: var(--gold) !important; }

.stats-bar.bg-container .stat-number,
.stats-bar.bg-container .stat-label { color: var(--gold) !important; }

/* Fix about page stats bar that uses bg-container style */
section.bg-container .stats-grid .stat-number { color: var(--gold) !important; }
section.bg-container .stats-grid .stat-label  { color: var(--text-muted) !important; }

/* ── Contact page: ensure content isn't hidden under fixed nav ── */
.contact-layout { padding-top: 0; }

/* ── About page: team grid images load with correct border-radius ── */
.team-grid { margin-top: 56px; }

/* ── Section gap on About stats bar ── */
section.section-gap.bg-container { background: var(--bg-secondary); }
section.section-gap.bg-container .stats-grid { gap: 0; }
section.section-gap.bg-container .stat-item { border-right: 1px solid var(--border); }
section.section-gap.bg-container .stat-item:last-child { border-right: none; }
section.section-gap.bg-container .stat-number { font-size: clamp(32px, 4vw, 52px); color: var(--gold) !important; }

/* ── Properties page: filter label ── */
.filters-sidebar h2 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

/* ── Checkbox styling — make checkboxes visible on dark bg ── */
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* ── No results state ── */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  grid-column: 1 / -1;
}

.no-results h3 { color: var(--text-primary); font-size: 24px; margin-bottom: 12px; }
.no-results p  { color: var(--text-muted); }

/* ── Loading state on grid ── */
#properties-grid { transition: opacity 0.3s ease; min-height: 200px; }

/* ── Apply filters button ── */
#property-filters .btn-primary,
#property-filters .btn-gold {
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: var(--radius-pill);
  min-height: 48px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

#property-filters .btn-primary:hover,
#property-filters .btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

#property-filters .btn-outline,
#reset-filters {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  min-height: 48px;
  font-size: 11px;
  letter-spacing: 0.18em;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

#reset-filters:hover { border-color: var(--gold); color: var(--gold); }

/* ── Range filter inputs ── */
.filter-range input {
  text-align: center;
  padding: 10px 8px !important;
}

/* ── View toggle active state visible ── */
.view-toggle.active {
  background: rgba(200,169,107,0.15) !important;
  color: var(--gold) !important;
}

/* ── Sort select arrow visible ── */
.sort-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f97a3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

/* ── Property card body: ensure proper spacing ── */
.property-card-body { gap: 0; }

/* ── Testimonials on homepage: left border visible ── */
.testimonials-grid .testimonial-card::before {
  font-family: var(--font-display);
  top: 16px;
  left: 24px;
}

/* ── CTA banner: left-align content for visual balance ── */
.cta-banner-content { text-align: left; }
.cta-buttons { justify-content: flex-start; }

/* ── Footer: social icons padding ── */
.footer-grid { padding-top: 72px; padding-bottom: 52px; }

/* ── Contact form: form-row bottom spacing ── */
.contact-form .form-row:last-of-type { margin-bottom: 36px; }
.contact-form .form-field:last-child { margin-bottom: 32px; }

/* ── Mobile responsive fixes ── */
@media (max-width: 768px) {
  .hero-content { margin-left: 24px; padding-right: 24px; }
  .search-bar { max-width: 100%; }
  .cta-banner-content { text-align: center; }
  .cta-buttons { justify-content: center; }
}

/* ============================================================
   PATCH v1.2 — Visual fixes from screenshots
   ============================================================ */

/* 1. HERO — left-align text (matches screenshots) */
.hero-content {
  text-align: left;
}
.hero-content h1,
.hero-content > p { text-align: left; }

/* 2. STATS BAR — About page uses light bg, fix text colors */
.bg-container .stats-grid .stat-number,
section.bg-container .stat-number { color: var(--gold); }
section.bg-container .stat-label  { color: var(--text-muted); }

/* 3. ABOUT PAGE — Stats bar on light bg needs visibility */
.about-stats .stat-number { color: var(--gold); }
.about-stats .stat-label  { color: var(--text-muted); }

/* 4. CONTACT PAGE — fix header top padding so content isn't under nav */
body.page-template-page-contact .container.section-gap-top { padding-top: 60px; }
body.page-template-page-contact main > .section-gap-top { padding-top: 60px; }

/* Contact page header padding fix */
.contact-layout { padding-top: 20px; }

/* 5. FILTER SIDEBAR — Apply Filters / Reset buttons */
.filters-sidebar .btn-primary {
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: var(--radius-pill);
  width: 100%;
  min-height: 48px;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.filters-sidebar .btn-primary:hover { background: var(--gold-light); transform: none; }

.filters-sidebar .btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  width: 100%;
  min-height: 44px;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-top: 10px;
}
.filters-sidebar .btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.3); transform: none; }

/* 6. SEARCH BAR — fix vertical dividers between fields */
.search-field + .search-field {
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* 7. HERO content area — ensure search bar sits flush */
.hero-content .search-bar {
  margin-top: 0;
  width: 100%;
  max-width: 860px;
}

/* 8. PROPERTY CARD — fix body padding top */
.property-card-body { padding: 24px 28px 28px; }

/* 9. FEATURED LISTINGS section gap top fix */
.section-header-row .section-header .label-caps { margin-bottom: 10px; }
.section-header-row .section-header h2 { margin: 0; }

/* 10. NO RESULTS message on dark bg */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.no-results h3 { color: var(--text-primary); font-size: 24px; margin-bottom: 12px; }
.no-results p  { color: var(--text-muted); }

/* 11. ABOUT — about-story image border-radius */
.about-story img { border-radius: var(--radius-md); }

/* 12. TEAM CARD — title and social spacing */
.team-card { position: relative; }
.team-card .team-title { display: block; margin-bottom: 14px; }

/* 13. CTA banner — left-align content (not centered) on about page */
.cta-banner-content { text-align: left; }
.cta-banner-content h2 { text-align: left; }
.cta-banner-content p  { text-align: left; }

/* 14. HERO subtitle spacing */
.hero-content > p { max-width: 500px; margin-bottom: 44px; }

/* 15. Section gap tweak for visual balance */
.section-gap { padding: 88px 0; }

/* 16. CONTACT — form field bottom spacing */
.contact-form .form-field { margin-bottom: 0; }
.contact-form .form-row   { margin-bottom: 28px; }
.contact-form .form-field.full-width { margin-bottom: 28px; }

/* 17. MAP container in contact page */
.map-container { height: 240px; }

/* 18. TESTIMONIAL BIG quote font size */
.testimonial-big blockquote { font-size: 18px; }

/* 19. AWARDS grid text */
.award-item div { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* 20. Footer newsletter form - fix JOIN button on dark bg */
.footer-newsletter .newsletter-form button {
  background: var(--gold);
  color: #111;
  font-weight: 700;
}

/* 21. PROPERTY CARD title font — use display font */
.property-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }

/* 22. PROPERTY CARD image aspect ratio for consistency */
.property-card-image { aspect-ratio: 3/2; }

/* 23. Fix about page stats bar not showing on bg-container */
.stats-bar.bg-container,
section.bg-container.stats-bar {
  background: var(--bg-secondary) !important;
}

/* 24. Page hero height increase */
.page-hero { height: 320px; }

/* 25. Single property detail — tab content text color */
.tab-content .body-lg,
.tab-content p { color: var(--text-secondary); }

/* 26. PROPERTY DETAIL — bg-container sections */
.tab-content .bg-container { background: var(--bg-card); border-radius: var(--radius-sm); }
.tab-content .bg-container h3 { color: var(--text-primary); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.tab-content .bg-container li { color: var(--text-secondary); font-size: 14px; }
.tab-content .bg-container .material-symbols-outlined { color: var(--gold); }

/* 27. Similar properties section on detail page */
.section-gap-top .section-header-row { margin-bottom: 40px; }

/* 28. Mobile - search bar stack */
@media (max-width: 768px) {
  .hero-content { margin-left: 0; padding-right: 0; }
  .hero-content h1 { font-size: 36px; }
  .hero-content > p { font-size: 16px; }
  .search-bar { border-radius: var(--radius-sm); }
  .cta-banner { padding: 52px 32px; }
  .cta-banner-content { max-width: 100%; }
  .no-results { padding: 52px 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-child(2) { border-bottom: none; }
}

/* ============================================================
   PATCH v1.3 — Targeted fixes
   ============================================================ */

/* 1. CONTACT — email word-break fix (no hyphenation/overflow) */
.contact-info-block p a,
.agent-contact-row a {
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  max-width: 100%;
}

.contact-layout .contact-info-block {
  overflow: hidden;
}

/* Contact right column — constrain width so email doesn't overflow */
.contact-layout > div:last-child {
  min-width: 0;
  overflow: hidden;
}

/* 2. CTA BANNER — center content both axes */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
}

.cta-banner-content {
  text-align: center;
  margin: 0 auto;
}

.cta-banner-content h2 { text-align: center; }
.cta-banner-content p  { text-align: center; margin-left: auto; margin-right: auto; }

.cta-buttons {
  justify-content: center;
}

/* 3. LOGO — always white, never black on hover or focus */
.site-logo,
.site-logo:hover,
.site-logo:focus,
.site-logo:active,
.site-logo:visited {
  color: #ffffff !important;
}

/* Remove any underline animation that could cause the black flash */
.site-logo::after { display: none !important; }

/* ============================================================
   PATCH v1.4 — Contact info column email fix
   ============================================================ */

/* Remove 2-col grid from contact info block — stack vertically */
.contact-layout .contact-info-block {
  display: block !important;
  width: 100%;
}

.contact-layout .contact-info-block > div {
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

.contact-layout .contact-info-block > div:last-child { margin-bottom: 0; }

/* Email link — full width, wraps naturally */
.contact-layout .contact-info-block a {
  color: var(--text-primary);
  font-size: 16px;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
  display: block;
  width: 100%;
}

.contact-layout .contact-info-block a:hover { color: var(--gold); }

/* Working hours text */
.contact-hours p { color: var(--text-secondary) !important; }

/* ============================================================
   PATCH v1.5 — Full Mobile Responsive Fix
   All breakpoints: 900px tablet → 768px → 480px → 375px
   ============================================================ */

/* ── GLOBAL BOX SIZING & OVERFLOW ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }

/* ── NAV — mobile header ── */
@media (max-width: 900px) {
  .site-header .container {
    padding-inline: 20px;
    height: 64px;
  }
  .site-header { height: 64px; }
  .mobile-nav  { top: 64px; }
  .page-hero   { margin-top: 64px; }
  .site-logo   { font-size: 15px; letter-spacing: 0.06em; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hamburger   { padding: 8px 4px; }

  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav  { top: 110px; }
  body.admin-bar .page-hero   { margin-top: 110px; }
}

@media (max-width: 480px) {
  .site-logo { font-size: 13px; letter-spacing: 0.04em; }
}

/* ── CONTAINER ── */
@media (max-width: 768px) {
  .container { width: calc(100% - 40px); padding-inline: 0; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
}

/* ── SECTION GAP ── */
@media (max-width: 768px) {
  .section-gap        { padding: 64px 0; }
  .section-gap-top    { padding-top: 64px; }
  .section-gap-bottom { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .section-gap        { padding: 48px 0; }
  .section-gap-top    { padding-top: 48px; }
  .section-gap-bottom { padding-bottom: 48px; }
}

/* ── HERO ── */
@media (max-width: 900px) {
  .hero { min-height: 85vh; }
  .hero-content {
    margin-left: 0;
    padding: 100px 24px 48px;
    width: 100%;
    max-width: 100%;
  }
  .hero-content h1 { font-size: clamp(32px, 8vw, 52px); }
  .hero-content > p { font-size: 16px; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { min-height: 90vh; }
  .hero-content { padding: 90px 20px 40px; }
  .hero-content h1 { font-size: 30px; line-height: 1.15; }
  .hero-content > p { font-size: 15px; margin-bottom: 32px; }
}

/* ── SEARCH BAR ── */
@media (max-width: 900px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-sm);
    width: 100%;
    max-width: 100%;
  }
  .search-bar .btn { grid-column: 1 / -1; border-radius: var(--radius-sm); }
}

@media (max-width: 580px) {
  .search-bar { grid-template-columns: 1fr; gap: 8px; }
  .search-field { border-left: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 10px; }
  .search-field:last-of-type { border-bottom: none; padding-bottom: 0; }
}

/* ── STATS BAR ── */
@media (max-width: 768px) {
  .stats-bar { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 0; }
  .stat-item { padding: 16px 20px; border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-right: 1px solid var(--border) !important; }
  .stat-item:nth-child(1) { border-right: 1px solid var(--border) !important; }
  .stat-item:nth-child(2) { border-right: none !important; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border) !important; }
  .stat-number { font-size: 36px; }
}

/* ── SECTION HEADER ROW ── */
@media (max-width: 768px) {
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(26px, 6vw, 40px); }
  .view-all-link { font-size: 11px; }
}

/* ── PROPERTY CARDS ── */
@media (max-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .properties-grid { grid-template-columns: 1fr; gap: 24px; }
  .property-card-body { padding: 20px 22px 24px; }
  .property-card-price { font-size: 22px; }
  .property-card-title { font-size: 17px; }
}

/* ── FEATURES GRID ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .feature-card { padding: 36px 32px; }
}

/* ── TESTIMONIALS ── */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 36px 28px; }
}

/* ── CTA BANNER ── */
@media (max-width: 768px) {
  .cta-banner { padding: 56px 28px; border-radius: var(--radius-md); min-height: auto; }
  .cta-banner h2 { font-size: clamp(26px, 6vw, 40px); }
  .cta-banner p  { font-size: 15px; }
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ── FOOTER ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { min-width: 0; }
}

/* ── PAGE HERO ── */
@media (max-width: 768px) {
  .page-hero { height: 260px; }
  .page-hero-content h1 { font-size: clamp(28px, 8vw, 48px); }
}

@media (max-width: 480px) {
  .page-hero { height: 220px; }
  .page-hero-content h1 { font-size: 28px; }
}

/* ── LISTINGS PAGE ── */
@media (max-width: 900px) {
  .listings-layout { grid-template-columns: 1fr; gap: 28px; }
  .filters-sidebar { position: static; border-radius: var(--radius-md); }
}

/* ── PROPERTY DETAIL ── */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 260px 180px 180px; gap: 6px; margin-bottom: 48px; }
  .gallery-main { grid-row: span 1; border-radius: var(--radius-sm); }
  .property-specs { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .spec-value { font-size: 22px; }
  .property-tabs { gap: 0; }
  .tab-btn { padding: 14px 16px; font-size: 9px; }
  .agent-card { padding: 28px 24px; }
  .mortgage-calc { padding: 28px 24px; }
  .detail-layout { gap: 40px; }
}

@media (max-width: 480px) {
  .property-header { flex-direction: column; gap: 16px; }
  .property-header > div:last-child { text-align: left; }
  .property-price { font-size: 24px; }
  .gallery-grid { grid-template-rows: 220px 160px 160px; }
}

/* ── ABOUT PAGE ── */
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .about-story img { height: 320px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonial-featured { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-big { padding: 40px 28px; }
  .quote-mark { font-size: 80px; top: 12px; left: 20px; }
  .awards-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
}

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

/* ── CONTACT PAGE ── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .contact-form .form-row { grid-template-columns: 1fr; gap: 20px; }
  .consultation-box { padding: 28px 24px; }
}

/* ── MOBILE NAV FULL-SCREEN ── */
@media (max-width: 900px) {
  .mobile-nav {
    padding: 20px;
    overflow-y: auto;
  }
  .mobile-nav a {
    font-size: 24px;
    padding: 18px 0;
  }
}

@media (max-width: 480px) {
  .mobile-nav a { font-size: 22px; padding: 16px 0; }
}

/* ── MISC TWEAKS ── */
@media (max-width: 768px) {
  .divider { margin-top: 20px; }
  .label-caps { font-size: 10px; }
  .no-results { padding: 48px 20px; }
  .no-results h3 { font-size: 20px; }
  .pagination { gap: 6px; margin-top: 48px; }
  .page-btn { width: 40px; height: 40px; font-size: 12px; }
}

/* ── PREVENT HORIZONTAL SCROLL from any absolute elements ── */
.hero, .stats-bar, .cta-banner, .site-footer, .site-header {
  max-width: 100vw;
  overflow-x: hidden;
}


/* ============================================================
   PATCH v1.6 — Property Detail Tab Content Text Visibility
   ============================================================ */

/* Overview tab — main description text */
#tab-overview,
#tab-overview p,
#tab-overview .body-lg,
.tab-content.active p,
.tab-content.active .body-lg {
  color: var(--text-secondary) !important;
}

/* Force all paragraph text in tab content to be visible */
.tab-content p,
.tab-content div,
.tab-content li,
.tab-content span:not(.material-symbols-outlined) {
  color: var(--text-secondary);
}

/* Key Highlights box */
.tab-content .bg-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
}

.tab-content .bg-container h3,
.tab-content .bg-container .label-caps {
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.tab-content .bg-container ul li {
  color: var(--text-secondary) !important;
  font-size: 15px;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-content .bg-container ul li .material-symbols-outlined {
  color: var(--gold) !important;
  font-size: 20px;
  flex-shrink: 0;
}

/* Features & Amenities tab — category cards */
#tab-features .bg-container,
.tab-content #tab-features .bg-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

#tab-features h3 {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  margin-bottom: 20px !important;
}

#tab-features ul li {
  color: var(--text-secondary) !important;
  font-size: 14px;
  font-weight: 300;
}

#tab-features ul li .material-symbols-outlined {
  color: var(--gold) !important;
  font-size: 16px;
}

/* Location map tab */
#tab-location p,
#tab-location .body-md { color: var(--text-secondary) !important; }
#tab-location small,
#tab-location > p:last-child { color: var(--text-muted) !important; font-size: 13px; }

/* ============================================================
   PATCH v1.7 — 90% site width (clean final version)
   ============================================================ */

/* ── Outer canvas — dark strip visible on sides ── */
html { background: #06080b; }
body { background: #06080b; overflow-x: hidden; }

/* ── Site wrapper — ALL content lives inside this ── */
.site-wrap {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 120px rgba(0,0,0,0.8);
}

/* ── Hero fills 100% of site-wrap ── */
.site-wrap .hero,
.site-wrap .stats-bar,
.site-wrap .site-footer,
.site-wrap .page-hero {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

/* ── Header: fixed, matches site-wrap width exactly ── */
@media (min-width: 901px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1440px;
    z-index: 1000;
  }

  /* Mobile nav matches header */
  .mobile-nav {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1440px;
  }

  /* Admin bar offset */
  body.admin-bar .site-header { top: 32px; }
  body.admin-bar .mobile-nav  { top: 108px; }
}

/* ── Awards grid — contain within site-wrap ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.award-item {
  min-width: 0;
  overflow: hidden;
}

.award-item div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* ── Tablet & mobile: full width ── */
@media (max-width: 900px) {
  .site-wrap { width: 100%; max-width: 100%; box-shadow: none; }
  .site-header { position: fixed; top: 0; left: 0; width: 100%; transform: none; }
  .mobile-nav  { position: fixed; top: 64px; left: 0; width: 100%; transform: none; }
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-nav  { top: 110px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .site-wrap  { width: 94%; }
  .site-header, .mobile-nav { width: 94%; }
}
