:root {
  --bg: #070f0b;
  --bg-rgb: 7, 15, 11;
  --panel-rgb: 10, 20, 15;
  --fg-rgb: 255, 255, 255;
  --bg-2: #0b1712;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.09);
  --gold: #d4af6a;
  --gold-soft: rgba(212, 175, 106, 0.35);
  --text: #ece9e2;
  --text-muted: #9a9b93;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

:root[data-theme="light"] {
  --bg: #faf9f5;
  --bg-rgb: 250, 249, 245;
  --panel-rgb: 255, 255, 255;
  --fg-rgb: 20, 32, 26;
  --bg-2: #f1efe6;
  --card: rgba(20, 32, 26, 0.035);
  --card-border: rgba(20, 32, 26, 0.12);
  --gold: #b8873a;
  --gold-soft: rgba(184, 135, 58, 0.35);
  --text: #17231c;
  --text-muted: #5c665f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(212, 175, 106, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 20%, rgba(60, 120, 90, 0.14), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.gold-italic {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  box-shadow: 0 6px 24px rgba(212, 175, 106, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(212, 175, 106, 0.35);
}

/* ---------- NAVBAR ---------- */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px 0;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(var(--panel-rgb), 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--fg-rgb), 0.22);
  border-radius: 999px;
  padding: 12px 14px 12px 20px;
  box-shadow:
    0 0 0 1px rgba(var(--fg-rgb), 0.06),
    0 0 30px rgba(var(--fg-rgb), 0.08),
    0 0 60px rgba(212, 175, 106, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.4),
    -18px 14px 40px rgba(0, 0, 0, 0.22),
    18px 14px 40px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.nav-dropdown-trigger svg { transition: transform 0.2s ease; }
.nav-dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--gold); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 140px;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu button,
.nav-dropdown-menu a {
  display: block;
  background: none;
  border: none;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu button:hover,
.nav-dropdown-menu a:hover { background: rgba(212, 175, 106, 0.1); color: var(--gold); }

.nav-cta { flex-shrink: 0; }

.nav-login {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nav-login:hover { color: var(--gold); }

.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 27px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--gold-soft); }

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s ease, color 0.28s ease;
}
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(23px);
  background: linear-gradient(135deg, #2a352d, #14201a);
  color: #f0d9a8;
}

.theme-toggle-thumb .icon-sun,
.theme-toggle-thumb .icon-moon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-toggle-thumb .icon-moon { opacity: 0; transform: scale(0.4) rotate(-45deg); }
[data-theme="light"] .theme-toggle-thumb .icon-sun { opacity: 0; transform: scale(0.4) rotate(45deg); }
[data-theme="light"] .theme-toggle-thumb .icon-moon { opacity: 1; transform: scale(1) rotate(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 14px 20px;
  background: rgba(var(--panel-rgb), 0.92);
  border: 1px solid var(--card-border);
  border-radius: 18px;
}
.nav-links-mobile a { display: block; padding: 10px 4px; color: var(--text-muted); }

.nav-mobile-listings-label {
  padding: 10px 4px 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
}
.nav-mobile-listings-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 4px 10px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-mobile-listings-btn:hover { color: var(--gold); }
.nav-links-mobile.open { display: flex; }

/* ---------- HERO ---------- */
.hero { padding: 72px 0 36px; }

.hero-banner {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  margin-bottom: 16px;
  /* Traced from a real reference banner's alpha silhouette (not a simple
     border-radius) -- tapers to points at both ends, full height at center. */
  clip-path: polygon(0.00% 6.32%, 1.64% 6.32%, 3.28% 6.03%, 4.93% 5.75%, 6.57% 5.17%, 8.21% 4.89%, 9.85% 4.60%, 11.49% 4.31%, 13.14% 4.02%, 14.78% 3.74%, 16.42% 3.45%, 18.06% 3.16%, 19.70% 2.87%, 21.34% 2.59%, 22.99% 2.30%, 24.63% 2.30%, 26.27% 2.01%, 27.91% 1.72%, 29.55% 1.44%, 31.20% 1.44%, 32.84% 1.15%, 34.48% 0.86%, 36.12% 0.86%, 37.76% 0.57%, 39.41% 0.57%, 41.05% 0.29%, 42.69% 0.29%, 44.33% 0.00%, 45.97% 0.00%, 47.62% 0.00%, 49.26% 0.00%, 50.90% 0.00%, 52.54% 0.00%, 54.18% 0.00%, 55.82% 0.29%, 57.47% 0.29%, 59.11% 0.29%, 60.75% 0.57%, 62.39% 0.57%, 64.03% 0.86%, 65.68% 0.86%, 67.32% 1.15%, 68.96% 1.44%, 70.60% 1.72%, 72.24% 1.72%, 73.89% 2.01%, 75.53% 2.30%, 77.17% 2.59%, 78.81% 2.87%, 80.45% 3.16%, 82.10% 3.16%, 83.74% 3.45%, 85.38% 3.74%, 87.02% 4.02%, 88.66% 4.31%, 90.30% 4.60%, 91.95% 5.17%, 93.59% 5.46%, 95.23% 5.75%, 96.87% 6.03%, 100.00% 6.03%, 100.00% 95.11%, 96.87% 95.11%, 95.23% 95.40%, 93.59% 95.69%, 91.95% 95.98%, 90.30% 95.98%, 88.66% 96.26%, 87.02% 96.55%, 85.38% 96.84%, 83.74% 97.13%, 82.10% 97.13%, 80.45% 97.41%, 78.81% 97.70%, 77.17% 97.99%, 75.53% 97.99%, 73.89% 98.28%, 72.24% 98.28%, 70.60% 98.56%, 68.96% 98.85%, 67.32% 98.85%, 65.68% 99.14%, 64.03% 99.14%, 62.39% 99.43%, 60.75% 99.43%, 59.11% 99.43%, 57.47% 99.71%, 55.82% 99.71%, 54.18% 99.71%, 52.54% 99.71%, 50.90% 99.71%, 49.26% 99.71%, 47.62% 99.71%, 45.97% 99.71%, 44.33% 99.71%, 42.69% 99.71%, 41.05% 99.43%, 39.41% 99.43%, 37.76% 99.43%, 36.12% 99.14%, 34.48% 99.14%, 32.84% 98.85%, 31.20% 98.85%, 29.55% 98.56%, 27.91% 98.56%, 26.27% 98.28%, 24.63% 97.99%, 22.99% 97.99%, 21.34% 97.70%, 19.70% 97.41%, 18.06% 97.13%, 16.42% 97.13%, 14.78% 96.84%, 13.14% 96.55%, 11.49% 96.26%, 9.85% 96.26%, 8.21% 95.98%, 6.57% 95.69%, 4.93% 95.40%, 3.28% 95.11%, 1.64% 94.83%, 0.00% 94.83%);
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.45)) drop-shadow(0 8px 30px rgba(212, 175, 106, 0.1));
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 9s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-nav {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, width 0.25s ease;
}
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

.hero-nav-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 20, 15, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hero-nav-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(10, 20, 15, 0.8); }

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7, 15, 11, 0.75) 0%, rgba(7, 15, 11, 0.15) 35%, transparent 60%),
    linear-gradient(180deg, rgba(7, 15, 11, 0.2) 0%, transparent 20%);
}

.hero-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-card {
  width: 100%;
  max-width: 640px;
  margin-top: 36px;
  background:
    radial-gradient(ellipse 420px 160px at 50% -20%, rgba(212, 175, 106, 0.12), transparent 70%),
    var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.search-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.search-tab-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0 0 20px;
  min-height: 1.4em;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--gold); color: #14200f; box-shadow: 0 8px 20px rgba(212, 175, 106, 0.35); }

.search-form {
  display: flex;
  gap: 10px;
}
.search-input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.search-input-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 15px 20px 15px 50px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form input:focus { outline: none; border-color: var(--gold-soft); }

.search-btn { padding: 15px 32px; }

@media (max-width: 600px) {
  .search-input-wrap { width: 100%; }
}

.stats-section {
  padding: 56px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex: 1 1 160px;
  padding: 0 32px;
}
.stat:not(:last-child) { border-right: 1px solid var(--card-border); }
.stat-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stat { flex: 1 1 40%; padding: 0 12px; }
  .stat:not(:last-child) { border-right: none; }
}

/* ---------- CATEGORY STRIP ---------- */
.category-strip { padding: 0 0 40px; }

.category-strip-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.strip-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.strip-arrow:hover { border-color: var(--gold-soft); color: var(--gold); }

.category-track {
  display: flex;
  justify-content: center;
  gap: 34px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 6px 2px;
}
.category-track::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 68px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.18s ease;
}
.cat-pill:hover { color: var(--text); }
.cat-pill span:last-child { white-space: nowrap; }

.cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-pill:hover .cat-icon { background: rgba(var(--fg-rgb), 0.05); border-color: var(--card-border); transform: translateY(-3px); }
.cat-pill.active { color: var(--text); }
.cat-pill.active .cat-icon {
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.35);
  transform: translateY(-3px);
}

.strip-filter {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.strip-filter:hover { border-color: var(--gold-soft); color: var(--gold); }
.strip-filter[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); background: rgba(212, 175, 106, 0.1); }

.strip-filter-wrap { position: relative; flex-shrink: 0; }

.strip-filter-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 60;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.strip-filter-panel[hidden] { display: none; }

.strip-filter-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: var(--bg-2);
  border-left: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
  transform: rotate(45deg);
}

.strip-filter-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.strip-filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.strip-filter-panel select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9b93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.strip-filter-panel select:focus { outline: none; border-color: var(--gold-soft); }

.strip-filter-custom {
  width: 100%;
  margin-top: 8px;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.strip-filter-custom:focus { outline: none; border-color: var(--gold); }
.strip-filter-custom[hidden] { display: none; }

.strip-filter-custom-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.strip-filter-custom-range[hidden] { display: none; }
.strip-filter-custom-range span { color: var(--text-muted); }
.strip-filter-custom-range input {
  width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.strip-filter-custom-range input:focus { outline: none; border-color: var(--gold); }

#stripFilterApply { width: 100%; padding: 12px 0; margin-top: 6px; }

.strip-filter-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 2px;
}
.strip-filter-clear:hover { color: var(--gold); }

@media (max-width: 480px) {
  .strip-filter-panel { width: 260px; right: -50px; }
  .strip-filter-panel::before { right: 72px; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 70px 0; }

/* Listings — Buy/Sell/Rent sliders */
.listings-section { padding: 48px 0; }
.listings-section + .listings-section { padding-top: 0; }

.listings-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.listings-section-head .eyebrow { margin-bottom: 8px; }
.listings-section-head .section-heading { margin: 0; }

.listings-viewall {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding-bottom: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.listings-viewall:hover { opacity: 0.7; transform: translateX(2px); }

.listings-slider-wrap { position: relative; margin-top: 30px; }

.listings-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.listings-slider::-webkit-scrollbar { display: none; }

.listings-slider .listing-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* Active listings section shows two rows (a taller, richer feed) */
.listings-slider.two-row {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 300px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--bg-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.slider-arrow:hover { border-color: var(--gold-soft); color: var(--gold); }
.slider-arrow-left { left: -23px; }
.slider-arrow-right { right: -23px; }

@media (max-width: 900px) {
  .slider-arrow { display: none; }
  .listings-slider { margin: 0 -32px; padding-left: 32px; padding-right: 32px; width: calc(100% + 64px); }
  .listings-slider.two-row { display: flex; }
}

@media (max-width: 640px) {
  .listings-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .listings-slider .listing-card { flex-basis: 84vw; }
}

/* ---------- NEARBY (geolocation + map) ---------- */
.nearby-section { padding-top: 44px; padding-bottom: 44px; }

.nearby-sub { color: var(--text-muted); max-width: 560px; margin: -8px 0 28px; }

.nearby-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.nearby-cta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nearby-cta:disabled { opacity: 0.6; cursor: default; transform: none; }

.nearby-hint { font-size: 0.85rem; color: var(--text-muted); margin: 10px 0 0; min-height: 1.2em; }
.nearby-hint.error { color: #e0665f; }
.nearby-hint:empty { margin: 0; }

.nearby-body[hidden] { display: none; }
.nearby-body { margin-top: 26px; }

.nearby-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.nearby-tab {
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-muted);
  padding: 10px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.nearby-tab:hover { color: var(--text); border-color: var(--gold-soft); }
.nearby-tab.active {
  background: linear-gradient(135deg, #e8c887, var(--gold));
  border-color: transparent;
  color: #14200f;
  transform: translateY(-1px);
}

.nearby-body { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: stretch; }

.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}
.nearby-list::-webkit-scrollbar { width: 6px; }
.nearby-list::-webkit-scrollbar-track { background: transparent; }
.nearby-list::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 999px; }

.nearby-item {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.nearby-item:hover { border-color: var(--gold-soft); transform: translateY(-2px); }

.nearby-item-photo {
  width: 84px;
  height: 74px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.nearby-item-body { min-width: 0; flex: 1; }
.nearby-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nearby-item-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-item-price { color: var(--gold); font-weight: 700; font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }
.nearby-item-loc { font-size: 0.78rem; color: var(--text-muted); margin: 2px 0 6px; }
.nearby-item-meta { display: flex; align-items: center; gap: 10px; font-size: 0.76rem; color: var(--text-muted); flex-wrap: wrap; }
.nearby-item-distance { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; }
.nearby-item-distance svg { flex-shrink: 0; }

.nearby-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); }
#nearbyMap { height: 520px; width: 100%; }

.nearby-you-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4f8cff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .nearby-body { grid-template-columns: 1fr; }
  .nearby-map-wrap { order: -1; }
  #nearbyMap, .nearby-list { height: 320px; max-height: 320px; }
}

/* Leaflet price-pin markers + popup card (map always renders a light popup) */
.price-pin {
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transform: translate(-50%, -100%);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.map-popup-card { display: block; width: 200px; font-family: var(--sans); }
.map-popup-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px 10px 0 0; }
.map-popup-card .popup-body { padding: 10px 4px 2px; }
.map-popup-card .popup-price { font-weight: 700; color: #14200f; }
.map-popup-card .popup-title { font-size: 0.85rem; color: #14200f; margin: 2px 0; }
.map-popup-card .popup-loc { font-size: 0.78rem; color: #555; }

.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; }

/* Legacy grid (kept for compatibility, no longer used on homepage) */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.listing-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.listing-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.3);
}

.listing-photo {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.listing-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.listing-card:hover .listing-photo-bg { transform: scale(1.08); }

.listing-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 15, 11, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.listing-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 20, 15, 0.85);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.listing-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 15, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.listing-save:hover { transform: scale(1.08); }
.listing-save svg { transition: fill 0.15s ease, stroke 0.15s ease; }
.listing-save.saved svg { fill: #e0665f; stroke: #e0665f; }

.listing-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 20, 15, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-body { padding: 20px; }
.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.listing-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.listing-price { color: var(--gold); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.listing-location { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 14px; }
.listing-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}
.listing-meta span { display: inline-flex; align-items: center; gap: 5px; }
.listing-meta svg { color: var(--gold); flex-shrink: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.25);
}
.service-card:hover::before { opacity: 1; }

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.service-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--fg-rgb), 0.05);
  border: 1px solid var(--card-border);
  color: var(--gold);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.35);
}

.service-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.55;
}

.service-kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin: 0 0 10px; position: relative; }
.service-card p { color: var(--text-muted); margin: 0; max-width: 420px; position: relative; }

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
}
.service-arrow svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.service-card:hover .service-arrow svg { transform: translateX(6px); }

/* Process */
.process-track {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.process-track::-webkit-scrollbar { display: none; }

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 150px;
  text-align: center;
}

.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8c887, var(--gold));
  color: #14200f;
  box-shadow: 0 10px 26px rgba(212, 175, 106, 0.25);
}

.process-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

.process-arrow {
  flex-shrink: 0;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  margin-top: 22px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-media-frame {
  position: relative;
  max-width: 360px;
}
.about-media-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 22px;
  z-index: -1;
}

.about-media {
  aspect-ratio: 3/4;
  background-color: var(--card);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(212, 175, 106, 0.25);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.about-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 15, 11, 0.88) 0%, rgba(7, 15, 11, 0.25) 45%, transparent 70%);
}

@media (max-width: 600px) {
  .about-media-frame::before { inset: 14px -14px -14px 14px; }
}

.about-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px;
}

.about-monogram {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: rgba(7, 15, 11, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.about-caption-text {
  color: #f2efe6;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
}
.about-caption-sub { color: rgba(242, 239, 230, 0.7); font-weight: 500; font-size: 0.82rem; }
.about-bio { color: var(--text-muted); margin: 0 0 26px; max-width: 520px; }
.about-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; }
.review-quote { font-size: 0.98rem; margin: 0 0 22px; flex: 1; }
.review-author { border-top: 1px solid var(--card-border); padding-top: 16px; }
.review-name { display: block; font-weight: 700; }
.review-location { display: block; color: var(--text-muted); font-size: 0.85rem; }

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 56px;
}
.arc-small path { fill: none; stroke: var(--gold-soft); stroke-width: 1.5; }
.arc-small { margin-bottom: 24px; }
.contact-sub { color: var(--text-muted); margin: 0 0 34px; max-width: 420px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info > div { display: flex; flex-direction: column; gap: 3px; }
.info-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  background: rgba(var(--fg-rgb), 0.03);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: none;
}
.contact-form textarea { min-height: 130px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold-soft); }
.contact-submit { width: 100%; padding: 16px; }
.form-status { min-height: 20px; font-size: 0.85rem; color: var(--gold); margin: 0; }

/* Footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--card-border); margin-top: 20px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--card-border);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.footer-brand-col { gap: 18px; }
.footer-brand { margin-right: 0; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; max-width: 260px; margin: 0; }

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social:hover { border-color: var(--gold-soft); color: var(--gold); }

.footer-col-title {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.footer-col-title-spaced { margin-top: 14px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}
.footer-house-icon { color: var(--gold); flex-shrink: 0; }

.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: var(--text-muted); font-size: 0.82rem; transition: color 0.15s ease; }
.footer-legal-links a:hover { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta, .nav-login { display: none; }
  .nav-toggle { display: flex; }
  .listings-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-card { padding: 32px; }
  .hero-banner { min-height: 420px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .listings-grid, .reviews-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .stats-bar { gap: 28px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 50px 0; }
  .search-card { padding: 14px; }
  .contact-card { padding: 24px; border-radius: 20px; }
  .service-card { padding: 24px; }
  .strip-arrow { display: none; }
  .hero-banner { min-height: 460px; margin-bottom: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .search-tabs { gap: 4px; }
  .tab { padding: 8px 12px; font-size: 0.72rem; }
  .brand-sub { display: none; }
  .stats-bar { gap: 20px 28px; }
}
