/* ===== ESTATELITES — STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #f0d98a;
  --ink: #0F0F0F;
  --ink-muted: #555;
  --ink-light: #888;
  --surface: #FAFAF8;
  --card: #FFFFFF;
  --border: #E8E8E4;
  --off-plan: #1a56db;
  --ready: #0e9f6e;
  --construction: #d97706;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav-scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-star { color: var(--gold); font-size: 1.2rem; }
.logo-text { font-family: 'Playfair Display', serif; font-weight: 700; }
.logo-text em { font-style: italic; color: var(--gold); }

.nav-links {
  display: flex; gap: 4px; flex: 1;
}
.nav-links a {
  text-decoration: none; color: var(--ink-muted);
  font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); background: rgba(201,168,76,0.1);
}
.nav-links a.active { color: var(--gold); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-btn {
  background: none; border: 1px solid var(--border);
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; padding: 6px 14px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }

.btn-signin {
  background: var(--ink); color: white;
  border: none; font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 18px; border-radius: 8px;
  cursor: pointer; transition: all 0.2s;
}
.btn-signin:hover { background: var(--gold); }

.nav-hamburger {
  display: none; background: none; border: none;
  font-size: 1.3rem; cursor: pointer; color: var(--ink);
}

.mobile-menu {
  display: none; flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: white;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu hr { border-color: var(--border); margin: 10px 0; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .lang-btn { display: none; }
  .nav-hamburger { display: block; }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: white;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px; border-radius: 10px;
  border: none; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: #b8903f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 12px 24px; border-radius: 10px;
  border: 2px solid var(--border); transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 60px 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative; gap: 60px;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
}
.b1 { width: 600px; height: 600px; background: radial-gradient(circle, #f0d98a, transparent); top: -200px; right: -100px; }
.b2 { width: 400px; height: 400px; background: radial-gradient(circle, #dbeafe, transparent); bottom: 100px; left: -50px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.4;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.12); color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.05rem; color: var(--ink-muted); max-width: 480px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; display: block; }
.stat span { font-size: 0.8rem; color: var(--ink-light); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-card-preview { position: relative; height: 420px; }
.floating-card {
  position: absolute;
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  width: 240px;
  animation: float 4s ease-in-out infinite;
}
.fc1 { top: 40px; left: 20px; animation-delay: 0s; }
.fc2 { bottom: 20px; right: 0; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-img { height: 120px; }
.fc-info { padding: 14px; }
.fc-tag { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.fc-tag.off-plan { background: #dbeafe; color: var(--off-plan); }
.fc-tag.ready { background: #dcfce7; color: var(--ready); }
.fc-name { font-weight: 600; margin: 6px 0 2px; font-size: 0.95rem; }
.fc-loc { font-size: 0.8rem; color: var(--ink-light); margin-bottom: 4px; }
.fc-price { font-size: 0.82rem; color: var(--gold); font-weight: 600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 90px 24px 40px; min-height: auto; gap: 40px; }
  .hero-card-preview { height: 200px; }
  .floating-card { width: 180px; }
  .fc-img { height: 80px; }
}

/* ─── QUICK FILTER BAR ─── */
.quick-filter-section {
  background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative; z-index: 10;
}
.quick-filter-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.qf-select {
  flex: 1; min-width: 150px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; padding: 10px 14px; border-radius: 10px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; transition: border-color 0.2s;
}
.qf-select:focus { outline: none; border-color: var(--gold); }
.qf-btn { flex-shrink: 0; }

/* ─── CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── SECTIONS ─── */
.section { padding: 72px 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px;
}
.section-eyebrow { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.link-more { text-decoration: none; color: var(--gold); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ─── PROPERTY CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.prop-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: all 0.25s ease;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }

.prop-thumb {
  height: 180px; position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px;
}
.prop-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
.prop-badge.off-plan { background: #dbeafe; color: var(--off-plan); }
.prop-badge.ready { background: #dcfce7; color: var(--ready); }
.prop-badge.construction { background: #fef3c7; color: var(--construction); }

.prop-tag {
  position: absolute; top: 12px; right: 44px;
  font-size: 0.68rem; font-weight: 700;
  background: var(--gold); color: white;
  padding: 3px 8px; border-radius: 5px;
}
.prop-save {
  position: absolute; top: 10px; right: 10px;
  background: white; border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all 0.2s; color: var(--ink-light);
}
.prop-save.saved { color: #e11d48; }
.prop-save:hover { transform: scale(1.1); }

.prop-body { padding: 16px; }
.prop-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.prop-dev { font-size: 0.78rem; font-weight: 600; color: var(--gold); }
.prop-loc { font-size: 0.78rem; color: var(--ink-light); }
.prop-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.prop-details { display: flex; gap: 12px; font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 14px; flex-wrap: wrap; }
.prop-footer { display: flex; justify-content: space-between; align-items: center; }
.price-label { font-size: 0.72rem; color: var(--ink-light); display: block; }
.price-val { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.prop-rating { display: flex; align-items: center; gap: 3px; }
.stars { font-weight: 700; font-size: 0.9rem; }
.stars-icon { color: #f59e0b; font-size: 0.85rem; }
.review-count { font-size: 0.78rem; color: var(--ink-light); }

/* ─── CATEGORIES ─── */
.categories-section { background: white; }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}
.cat-card {
  text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; transition: all 0.2s;
  display: block;
}
.cat-card:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); transform: translateY(-2px); }
.cat-icon { font-size: 2rem; margin-bottom: 10px; }
.cat-card p { font-weight: 600; margin-bottom: 4px; }
.cat-card span { font-size: 0.78rem; color: var(--ink-light); }

/* ─── NEWS ─── */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.news-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all 0.25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 160px; }
.news-body { padding: 18px; }
.news-cat { font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.news-body h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin: 8px 0; line-height: 1.4; }
.news-body p { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 10px; }
.news-date { font-size: 0.75rem; color: var(--ink-light); }

/* ─── REVIEWS TEASER ─── */
.reviews-teaser { background: var(--ink); color: white; }
.reviews-teaser .section-eyebrow { color: var(--gold-light); }
.reviews-teaser .section-title { color: white; }
.reviews-teaser p { color: rgba(255,255,255,0.7); max-width: 440px; margin-bottom: 28px; font-size: 1rem; line-height: 1.7; }
.reviews-teaser-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rt-cards { display: flex; flex-direction: column; gap: 16px; }
.review-mini {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 20px;
}
.rm2 { margin-left: 24px; }
.rv-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 8px; }
.rv-text { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 8px; font-style: italic; }
.rv-author { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) { .reviews-teaser-inner { grid-template-columns: 1fr; } .rm2 { margin-left: 0; } }

/* ─── DEVELOPERS ─── */
.devs-row { display: flex; gap: 16px; flex-wrap: wrap; }
.dev-chip {
  display: flex; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  transition: all 0.2s; cursor: pointer;
}
.dev-chip:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dev-avatar {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.dev-name { font-weight: 600; font-size: 0.9rem; }
.dev-chip span { font-size: 0.75rem; color: var(--ink-light); }

/* ─── FOOTER ─── */
.footer { background: #0a0a0a; color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 1rem; transition: color 0.2s; }
.footer-socials a:hover { color: var(--gold); }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── SIGN IN MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: white; border-radius: 20px;
  padding: 40px 36px; width: 400px; max-width: 94vw;
  position: relative; transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--ink-light); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); }
.modal-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.modal-box h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 6px; }
.modal-sub { color: var(--ink-light); font-size: 0.88rem; margin-bottom: 24px; }
.oauth-btn {
  width: 100%; padding: 12px; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s; margin-bottom: 10px;
}
.google-btn { background: white; border: 1.5px solid var(--border); color: var(--ink); }
.google-btn:hover { border-color: #4285F4; box-shadow: 0 2px 12px rgba(66,133,244,0.2); }
.apple-btn { background: var(--ink); border: none; color: white; }
.apple-btn:hover { background: #333; }
.modal-divider { text-align: center; position: relative; margin: 16px 0; color: var(--ink-light); font-size: 0.82rem; }
.modal-divider::before, .modal-divider::after { content:''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.modal-divider::before { left: 0; } .modal-divider::after { right: 0; }
.modal-input { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; margin-bottom: 10px; transition: border-color 0.2s; }
.modal-input:focus { outline: none; border-color: var(--gold); }
.modal-submit { width: 100%; margin-top: 4px; }
.modal-footer-text { text-align: center; font-size: 0.82rem; color: var(--ink-light); margin-top: 14px; }
.modal-footer-text a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ─── PAGE HEADER ─── */
.page-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 100px 0 40px;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-header p { color: var(--ink-muted); font-size: 1rem; }

/* ─── LISTINGS PAGE (REDESIGNED) ─── */
.listings-page {
  padding-top: 68px;
  min-height: 100vh;
  background: var(--surface);
}
.listings-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
}

/* ── Sidebar ── */
.listings-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  height: calc(100vh - 68px);
  position: sticky;
  top: 68px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.listings-sidebar::-webkit-scrollbar { width: 4px; }
.listings-sidebar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px 36px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.sidebar-reset {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.sidebar-reset:hover { opacity: 0.7; }

/* Filter blocks */
.filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Styled selects */
.select-wrap {
  position: relative;
}
.select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}
.styled-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 32px 11px 38px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.styled-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.styled-select:hover {
  border-color: var(--gold);
}

/* Status chips */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.status-chip {
  padding: 9px 6px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.status-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.status-chip.active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* Unit type chips */
.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.unit-chip {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.unit-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(201,168,76,0.05);
}
.unit-chip.active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* Price inputs */
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.price-field {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.2s ease;
}
.price-field::placeholder { color: var(--ink-light); }
.price-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
/* Hide spin arrows */
.price-field::-webkit-inner-spin-button,
.price-field::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.price-field { -moz-appearance: textfield; appearance: textfield; }

/* Apply button */
.apply-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 4px;
}
.apply-btn:hover {
  background: #b8903f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.apply-btn:active {
  transform: scale(0.97);
}

/* ── Main Content ── */
.listings-content {
  padding: 36px 40px 60px;
  overflow-y: auto;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 36px;
}
.results-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.results-subtitle {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sort-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.sort-dropdown-wrap { position: relative; }
.sort-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 36px 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort-dropdown:focus { outline: none; border-color: var(--gold); }

/* Property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* No results */
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.no-results-icon { font-size: 2.5rem; margin-bottom: 16px; }
.no-results-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.no-results-box p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 20px; }
.reset-filters-link {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.reset-filters-link:hover { background: #b8903f; }

/* Pagination */
.pagination-wrap { margin-top: 48px; text-align: center; }
.pagination-wrap .pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination-wrap .pagination li { display: inline-block; }
.pagination-wrap .pagination a,
.pagination-wrap .pagination .current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.pagination-wrap .pagination a { background: #fff; border: 1px solid var(--border); color: var(--ink-muted); }
.pagination-wrap .pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination-wrap .pagination .current { background: var(--gold); color: #fff; border: none; }

/* ── Mobile Filter Toggle ── */
.mobile-filter-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: all 0.2s;
  gap: 8px;
  align-items: center;
}
.mobile-filter-toggle:hover { background: var(--gold); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .listings-wrapper { grid-template-columns: 1fr; }

  .listings-sidebar {
    position: fixed;
    top: 0; left: -100%; bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 110;
    height: 100vh;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
  }
  .listings-sidebar.open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0,0,0,0.15);
  }

  .mobile-filter-toggle { display: inline-flex; }

  .listings-content { padding: 28px 20px 60px; }
  .results-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
  .listings-content { padding: 20px 16px 60px; }
}

/* Legacy compat — keep old classes working */
.listings-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 32px; max-width: 1280px; margin: 0 auto;
  padding: 40px 24px;
}
.filter-sidebar {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  height: fit-content; position: sticky; top: 84px;
}
.filter-sidebar h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.filter-reset { font-size: 0.78rem; color: var(--gold); cursor: pointer; font-weight: 600; text-decoration: none; }
.filter-group { margin-bottom: 22px; }
.filter-group label { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.filter-select, .filter-input {
  width: 100%; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; padding: 9px 12px; border-radius: 8px;
  transition: border-color 0.2s;
}
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--gold); }
.filter-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 500; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.15s; background: transparent; color: var(--ink); }
.chip.active { border-color: var(--gold); background: rgba(201,168,76,0.1); color: var(--gold); }
.filter-apply { width: 100%; margin-top: 8px; }

/* .listings-main — no standalone styles needed */
.listings-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 0.88rem; color: var(--ink-muted); }
.results-count strong { color: var(--ink); }
.sort-select {
  border: 1px solid var(--border); background: white; color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; padding: 8px 14px;
  border-radius: 8px; cursor: pointer;
}

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

/* ─── REVIEWS PAGE ─── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.review-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: var(--shadow); }
.rv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.rv-proj { font-weight: 700; font-size: 0.95rem; }
.rv-dev { font-size: 0.78rem; color: var(--gold); }
.rv-loc { font-size: 0.78rem; color: var(--ink-light); }

/* ─── PROJECTS PAGE (REDESIGNED) ─── */
.projects-page {
  padding-top: 68px;
  min-height: 100vh;
  background: var(--surface);
}

/* Hero */
.projects-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 40px 48px;
}
.projects-hero-inner { max-width: 720px; }
.projects-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #0e9f6e;
  margin-bottom: 16px;
}
.projects-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 0.95;
  margin-bottom: 20px;
}
.projects-hero-desc {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* Sort row */
.projects-sort-row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 24px;
}
.projects-sort-inner {
  display: flex;
  justify-content: flex-end;
}
.sort-form { display: flex; }
.sort-button-wrap { position: relative; }
.projects-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 40px 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.projects-sort-select:hover { border-color: var(--gold); }
.projects-sort-select:focus { outline: none; border-color: var(--gold); }

/* Grid */
.projects-grid-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Card */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.project-card:hover { transform: translateY(-4px); }

.project-card-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin-bottom: 18px;
}
.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.project-card:hover .project-card-img {
  transform: scale(1.05);
}
.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e4, #f5f5f3);
}

/* Badge */
.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-selling {
  background: #dcfce7;
  color: #0e9f6e;
}
.badge-sold {
  background: rgba(0,0,0,0.06);
  color: var(--ink-muted);
}
.badge-waitlist {
  background: rgba(0,0,0,0.06);
  color: var(--ink-muted);
}

/* Card Info */
.project-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.project-card-location {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0e9f6e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.project-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 2px 0;
}
.project-card-price {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* No results */
.no-projects-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.no-projects-icon { font-size: 2.5rem; margin-bottom: 16px; }
.no-projects-found h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 8px; }
.no-projects-found p { color: var(--ink-muted); font-size: 0.92rem; }

/* Pagination */
.projects-pagination {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 40px 32px;
  text-align: center;
}
.projects-pagination-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.projects-pagination-links a,
.projects-pagination-links span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  background: #fff;
  transition: all 0.2s;
}
.projects-pagination-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.projects-pagination-links span.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 800px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .projects-hero { padding: 48px 24px 32px; }
  .projects-sort-row, .projects-grid-section, .projects-pagination { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 500px) {
  .projects-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-hero-title { font-size: 2.4rem; }
}

/* Legacy compat */
.projects-header-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.projects-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── NEWS PAGE ─── */
.news-hero-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-bottom: 36px; cursor: pointer;
  transition: box-shadow 0.25s;
}
.news-hero-card:hover { box-shadow: var(--shadow-lg); }
.news-hero-thumb { background: #dbeafe; min-height: 280px; }
.news-hero-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.news-hero-body h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 10px 0; line-height: 1.3; }
.news-hero-body p { color: var(--ink-muted); line-height: 1.7; margin-bottom: 20px; }

@media (max-width: 700px) { .news-hero-card { grid-template-columns: 1fr; } }

/* ─── LOAD MORE ─── */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ─── PAGINATION / TABS ─── */
.tab-bar { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 18px; font-size: 0.88rem; font-weight: 500;
  border: none; background: none; cursor: pointer;
  color: var(--ink-muted); border-bottom: 2px solid transparent;
  transition: all 0.2s; margin-bottom: -1px;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── MAP PLACEHOLDER ─── */
.map-placeholder {
  background: linear-gradient(135deg, #e8f0fe, #dbeafe);
  border-radius: var(--radius); height: 360px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--ink-light); flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
}

/* ─── ANIMATION UTILITIES ─── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ─── RTL SUPPORT ─── */
[dir="rtl"] .nav-links { direction: rtl; }
[dir="rtl"] .hero-title { direction: rtl; }
[dir="rtl"] .filter-sidebar { text-align: right; }

/* ===== FILTER FIXES & UI IMPROVEMENTS (v2.1) ===== */

/* Loading state for grid */
#listingsGrid {
  transition: opacity 0.25s ease;
  min-height: 200px;
}

/* Prop card image rendering */
.prop-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.5s ease;
}
.prop-thumb { position: relative; }
.prop-thumb:hover img { transform: scale(1.05); }

.prop-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f1f0ed 0%, #e8e7e2 100%);
  display: flex; align-items: center; justify-content: center;
}
.prop-thumb-placeholder::after {
  content: '🏙️';
  font-size: 2.5rem;
  opacity: 0.3;
}

/* Status chip active states — more visible */
.status-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}
.unit-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 700;
}

/* Apply button pulse when filter is active */
.apply-btn.has-filters {
  background: var(--ink);
  box-shadow: 0 4px 20px rgba(15,15,15,0.2);
}

/* Results count highlight */
#resultsCount {
  color: var(--gold);
}

/* Prop card fade-in */
.prop-card {
  transition: opacity 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Sort dropdown improved */
.sort-dropdown:hover { border-color: var(--gold); }

/* Sidebar overlay on mobile */
#sidebarOverlay {
  backdrop-filter: blur(2px);
}

/* No results box improvement */
.no-results-box {
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 80px 40px;
  grid-column: 1 / -1;
}
.no-results-icon { font-size: 3rem; margin-bottom: 20px; display: block; }
.no-results-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; margin-bottom: 10px; color: var(--ink);
}
.no-results-box p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 24px; }

/* Price field currency hint */
.price-inputs { position: relative; }

/* Filter block spacing */
.filter-block + .filter-block { padding-top: 4px; }

/* Sidebar scroll fade at bottom */
.listings-sidebar::after {
  content: '';
  position: sticky;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, #fff, transparent);
  display: block;
  pointer-events: none;
}

/* Mobile filter button improved */
.mobile-filter-toggle {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

/* Responsive: stack sidebar above content on tablet */
@media (max-width: 960px) {
  .listings-wrapper {
    display: block;
  }
}
