/* ═══════════════════════════════════════════════
   myproperties.co.ke — Main Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy:    #0d2137;
  --teal:    #0e7c6b;
  --gold:    #c9952a;
  --cream:   #f8f5f0;
  --soft:    #f4f6f9;
  --muted:   #6b7280;
  --text:    #1a1a2e;
  --radius:  16px;
  --radius-sm: 10px;
  --shadow:  0 4px 24px rgba(13,33,55,0.10);
  --shadow-hover: 0 12px 40px rgba(13,33,55,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: #fff; }
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }

/* ── NAVBAR ─────────────────────────────────────── */
#mainNav {
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  padding: 18px 0;
  background: transparent;
}
#mainNav.nav-solid,
#mainNav.scrolled {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(13,33,55,0.10);
  padding: 10px 0;
}
.navbar-brand img { height: 44px; width: auto; transition: height 0.3s; }
#mainNav.scrolled .navbar-brand img,
#mainNav.nav-solid .navbar-brand img { height: 36px; }
#mainNav .nav-link {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 6px 14px !important;
  transition: color 0.2s;
  position: relative;
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav .nav-link:hover { color: rgba(255,255,255,0.85) !important; }
#mainNav.scrolled .nav-link,
#mainNav.nav-solid .nav-link { color: var(--navy) !important; }
#mainNav.scrolled .nav-link:hover,
#mainNav.nav-solid .nav-link:hover { color: var(--teal) !important; }
.btn-nav-outline {
  border: 1.5px solid rgba(255,255,255,0.65);
  color: #fff !important;
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-outline:hover { background: rgba(255,255,255,0.15); color: #fff !important; }
#mainNav.scrolled .btn-nav-outline,
#mainNav.nav-solid .btn-nav-outline { border-color: var(--navy); color: var(--navy) !important; }
#mainNav.scrolled .btn-nav-outline:hover,
#mainNav.nav-solid .btn-nav-outline:hover { background: var(--navy); color: #fff !important; }
.btn-nav-solid {
  background: var(--gold);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-solid:hover { background: #b07e22; color: #fff !important; }
.navbar-toggler { border: none; color: #fff; font-size: 1.4rem; padding: 4px 8px; }
#mainNav.scrolled .navbar-toggler,
#mainNav.nav-solid .navbar-toggler { color: var(--navy); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #08172a 0%, #0d2137 50%, #163552 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800&q=80') center/cover no-repeat;
  opacity: 0.16;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--gold); top: -120px; right: 8%; }
.hero-orb-2 { width: 300px; height: 300px; background: #3b82f6; bottom: -60px; left: 4%; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,149,42,0.18);
  color: #e8c870;
  border: 1px solid rgba(201,149,42,0.35);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); color: #fff; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { color: rgba(255,255,255,0.68); font-size: 1.05rem; line-height: 1.75; margin-bottom: 38px; max-width: 500px; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ── SEARCH CARD ──────────────────────────────────── */
.search-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  padding: 28px;
}
.search-tabs .nav-link {
  color: var(--muted) !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 20px !important;
  border-radius: 50px !important;
  transition: all 0.2s;
  border: none !important;
}
.search-tabs .nav-link.active { background: var(--navy) !important; color: #fff !important; }
.search-card .form-select,
.search-card .form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.88rem;
  background: var(--soft);
  transition: border-color 0.2s;
}
.search-card .form-select:focus,
.search-card .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,107,0.1);
  background: #fff;
}
.search-card label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.btn-search {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  font-weight: 700;
  font-size: 0.93rem;
  width: 100%;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-search:hover { background: #0a6358; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,124,107,0.4); }

/* ── HERO BUDGET SLIDER ──────────────────────────── */
.hero-budget-wrap label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.hero-budget-val {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
}
.hero-budget-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── MAP PREVIEW (hero) ──────────────────────────── */
.map-preview {
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
#heroMap { width: 100%; height: 100%; display: block; }
.map-badge {
  position: absolute; top: 14px; left: 14px;
  background: #fff;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
  display: flex; align-items: center; gap: 6px;
  pointer-events: none;
}
.map-badge .dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

/* ── LEAFLET MARKERS (shared across hero + map-search) ── */
.mp-marker {
  background: var(--navy);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13,33,55,0.28);
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  position: relative;
}
.mp-marker::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--navy);
}
.mp-marker:hover,
.mp-marker.mp-active { background: var(--teal); transform: scale(1.1); }
.mp-marker.mp-active::after { border-top-color: var(--teal); }

/* Hero map uses slightly smaller markers */
#heroMap .mp-marker { font-size: 0.68rem; padding: 3px 8px; }

.mp-popup { min-width: 210px; font-family: 'Plus Jakarta Sans', sans-serif; }
.mp-popup-img { width: 100%; height: 115px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; display: block; }
.mp-popup-price { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.mp-popup-title { font-size: 0.82rem; font-weight: 600; margin: 2px 0 4px; }
.mp-popup-loc   { font-size: 0.75rem; color: #6b7280; margin-bottom: 8px; }
.mp-popup-link  { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.mp-popup-link:hover { text-decoration: underline; }

/* Cluster colours (shared) */
.marker-cluster-small  div { background: rgba(14,124,107,0.85); }
.marker-cluster-medium div { background: rgba(13,33,55,0.80); }
.marker-cluster-large  div { background: rgba(201,149,42,0.85); }
.marker-cluster div { color: #fff; font-weight: 700; font-size: 0.8rem; }

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 90px 0; }
.section-bg { background: var(--soft); }
.section-eyebrow {
  display: inline-block;
  background: rgba(14,124,107,0.1);
  color: var(--teal);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--navy); margin-bottom: 10px; }
.section-sub   { color: var(--muted); font-size: 0.98rem; max-width: 480px; }

/* ── CATEGORY CARDS ──────────────────────────────── */
.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,33,55,0.85) 0%, rgba(13,33,55,0.08) 60%);
}
.cat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px; }
.cat-title { color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 5px; }
.cat-count {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border: 1px solid rgba(255,255,255,0.22);
}
.cat-icon {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s;
}
.cat-card:hover .cat-icon { opacity: 1; transform: translateY(0); }

/* ── PROPERTY CARDS ──────────────────────────────── */
.prop-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  cursor: pointer;
}
.prop-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.prop-img-wrap { position: relative; overflow: hidden; height: 215px; }
.prop-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.prop-card:hover .prop-img-wrap img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 50px;
  padding: 4px 12px;
  text-transform: uppercase;
}
.prop-badge.featured { background: var(--gold); }
.prop-badge.rent     { background: var(--teal); }
.prop-badge.prop-badge-static { position: static; }
.prop-fav {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.prop-fav:hover { background: #fff; color: #e11d48; }
.prop-body { padding: 18px 20px 20px; }
.prop-price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 4px; }
.prop-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-loc   { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-loc i { color: var(--teal); flex-shrink: 0; }
.prop-feats { display: flex; gap: 14px; padding-top: 13px; border-top: 1px solid #f0f0f0; }
.prop-feat  { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--muted); }
.prop-feat i { color: var(--navy); font-size: 0.9rem; }
.btn-view {
  background: var(--soft);
  color: var(--navy);
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s;
  margin-top: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.btn-view:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── FEATURE ITEMS ────────────────────────────────── */
.feature-item {
  display: flex; gap: 18px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 50px; height: 50px;
  background: rgba(14,124,107,0.1);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-title { font-weight: 700; font-size: 0.97rem; margin-bottom: 5px; color: var(--navy); }
.feature-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── TESTIMONIALS ─────────────────────────────────── */
.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}
.testi-quote  { font-size: 1rem; font-style: italic; color: var(--text); line-height: 1.75; margin-bottom: 18px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-name   { font-weight: 700; font-size: 0.9rem; margin-bottom: 1px; }
.testi-role   { font-size: 0.78rem; color: var(--muted); }
.stars        { color: #f59e0b; font-size: 0.85rem; margin-bottom: 12px; }

/* ── CTA BANNER ───────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
  border-radius: 24px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: var(--gold);
  border-radius: 50%;
  top: -200px; right: -100px;
  opacity: 0.1;
  filter: blur(60px);
}
.cta-banner h2 { font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 28px; }
.btn-accent {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700; font-size: 0.93rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-accent:hover { background: #a97a1e; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,149,42,0.4); }
.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700; font-size: 0.93rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-teal:hover { background: #0a6358; color: #fff; transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 600; font-size: 0.93rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* ── LISTINGS PAGE ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1a4a6e);
  padding: 120px 0 50px;
}
.page-hero h1 { font-size: clamp(2rem,4vw,3.2rem); color: #fff; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,0.6); font-size: 1rem; }
.sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky; top: 86px;
}
.sidebar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.sidebar-heading { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 1rem; }
.filter-check .form-check-label { font-size: 0.87rem; }
.range-val { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.form-range::-webkit-slider-thumb { background: var(--teal); }
.toolbar {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.toolbar-count { font-size: 0.87rem; }
.btn-toggle {
  background: var(--soft);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 7px 13px; font-size: 0.85rem;
  transition: all 0.2s; cursor: pointer;
}
.btn-toggle.active, .btn-toggle:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.sort-select {
  width: auto; font-size: 0.84rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px; padding: 7px 16px;
}
.clear-filters-btn {
  background: none; border: none;
  font-size: 0.82rem; color: var(--muted);
  cursor: pointer; padding: 6px;
}

/* ── SKELETON LOADER ─────────────────────────────── */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-prop-img  { height: 215px; }
.skeleton-line-lg   { height: 22px; width: 55%; border-radius: 6px; margin-bottom: 0.5rem; }
.skeleton-line-md   { height: 16px; width: 80%; border-radius: 6px; margin-bottom: 0.5rem; }
.skeleton-line-sm   { height: 14px; width: 45%; border-radius: 6px; margin-bottom: 0.75rem; }
.skeleton-pill      { height: 13px; width: 55px; border-radius: 5px; }
#cardsGrid .prop-card { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
#cardsGrid .prop-card:nth-child(2) { animation-delay: .05s; }
#cardsGrid .prop-card:nth-child(3) { animation-delay: .10s; }
#cardsGrid .prop-card:nth-child(4) { animation-delay: .15s; }
#cardsGrid .prop-card:nth-child(5) { animation-delay: .20s; }
#cardsGrid .prop-card:nth-child(6) { animation-delay: .25s; }

/* ── PROPERTY DETAILS ─────────────────────────────── */
.gallery-main { border-radius: var(--radius); overflow: hidden; height: 420px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.gallery-thumb { border-radius: var(--radius-sm); overflow: hidden; height: 88px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.8; transform: scale(1.02); }
.summary-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 86px; }
.summary-price { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--navy); }
.summary-title { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.key-feat {
  background: var(--soft); border-radius: var(--radius-sm);
  padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.key-feat i    { font-size: 1.25rem; color: var(--teal); margin-bottom: 5px; }
.key-feat span { font-size: 0.75rem; color: var(--muted); }
.key-feat strong { font-size: 0.92rem; color: var(--text); }
.btn-callback {
  background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 12px;
  font-weight: 700; width: 100%; transition: all 0.2s; cursor: pointer;
}
.btn-callback:hover { background: #0a6358; }
.btn-schedule {
  background: var(--soft); color: var(--navy);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm); padding: 12px;
  font-weight: 600; width: 100%; transition: all 0.2s; cursor: pointer;
}
.btn-schedule:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.amenity-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; }
.amenity-item i { color: var(--teal); font-size: 1rem; width: 20px; }
.detail-table td { padding: 10px 12px; font-size: 0.87rem; }
.detail-table tr:nth-child(even) td { background: var(--soft); }
.callback-card {
  background: linear-gradient(135deg, var(--navy), #1a4a6e);
  border-radius: var(--radius); padding: 26px; color: #fff;
}
.callback-card .form-control,
.callback-card .form-select {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.88rem;
}
.callback-card .form-control::placeholder { color: rgba(255,255,255,0.45); }
.callback-card .form-control:focus,
.callback-card .form-select:focus { border-color: var(--gold); box-shadow: none; background: rgba(255,255,255,0.15); color: #fff; }
.callback-card label  { color: rgba(255,255,255,0.75); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.callback-card option { color: var(--text); background: #fff; }
.agent-note { background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.map-embed { border-radius: var(--radius); overflow: hidden; height: 300px; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── DETAIL PAGE ──────────────────────────────────── */
.detail-wrap { padding-top: 86px; }
.breadcrumb-active { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.detail-error { background: #fff3f3; border: 1.5px solid #fca5a5; border-radius: var(--radius); padding: 24px; }
.detail-error-icon  { font-size: 1.3rem; flex-shrink: 0; }
.detail-error-title { font-weight: 700; color: #b91c1c; margin-bottom: 6px; }
.detail-error-msg   { font-size: 0.88rem; color: #6b7280; }
.gallery-empty { background: var(--soft); display: flex; align-items: center; justify-content: center; }
.gallery-empty i { font-size: 3rem; }
.section-heading    { font-size: 1.6rem; color: var(--navy); margin-bottom: 14px; }
.section-heading-lg { font-size: 1.6rem; color: var(--navy); margin-bottom: 18px; }
.prop-description { color: var(--muted); line-height: 1.85; font-size: 0.95rem; }
.prop-description *,
.prop-description p,
.prop-description span,
.prop-description div,
.prop-description li,
.prop-description h1,
.prop-description h2,
.prop-description h3,
.prop-description h4 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: inherit !important;
}
.unit-card { padding: 16px; border-radius: var(--radius-sm); background: var(--soft); }
.unit-card-title { font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 6px; }
.unit-card-price { font-size: 0.82rem; color: var(--teal); font-weight: 700; }
.unit-card-size  { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 3px; }
.location-note { font-size: 0.85rem; }
.listing-ref   { font-size: 0.75rem; color: var(--muted); }

/* ── AGENT AVATAR ─────────────────────────────────── */
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.agent-avatar-fallback { display: flex; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; align-items: center; justify-content: center; }
.agent-info { min-width: 0; }
.agent-name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-role  { font-size: 0.78rem; color: var(--muted); }
.agent-phone { font-size: 0.78rem; color: var(--teal); text-decoration: none; }

/* ── MAP SEARCH PAGE ──────────────────────────────── */
.map-page-wrap {
  padding-top: 74px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-filter-bar {
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  z-index: 500;
  position: relative;
}
.map-type-btn {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.83rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.map-type-btn:hover,
.map-type-btn.open { border-color: var(--teal); color: var(--teal); }
.map-type-btn .type-count {
  background: var(--teal);
  color: #fff;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  display: none;
}
.map-type-btn .type-count.visible { display: inline-block; }
.map-type-btn .chevron { font-size: 0.7rem; margin-left: 2px; }
.map-type-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 20px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(13,33,55,0.12);
  padding: 14px 18px;
  min-width: 200px;
  z-index: 600;
  display: none;
}
.map-type-panel.open { display: block; }
.map-type-panel .form-check-label { font-size: 0.87rem; }
.clear-type-link {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  display: block;
}
.clear-type-link:hover { color: var(--teal); }
.map-count-badge {
  margin-left: auto;
  font-size: 0.83rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fetch-spinner {
  width: 14px; height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.fetch-spinner.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-body { display: flex; flex: 1; overflow: hidden; }
.map-listings-panel {
  width: 340px;
  min-width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #f4f6f9;
  padding: 16px;
}
.map-listings-panel::-webkit-scrollbar { width: 4px; }
.map-listings-panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.panel-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 14px;
  padding: 0 2px;
}
.mini-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.mini-card:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.mini-card img { width: 96px; height: 86px; object-fit: cover; flex-shrink: 0; }
.mini-card-body { padding: 11px 13px; flex: 1; min-width: 0; }
.mini-price { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--navy); }
.mini-title { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-loc   { font-size: 0.73rem; color: var(--muted); }

.mini-card.active {
  box-shadow: 0 0 0 2px var(--teal), 0 4px 16px rgba(14,124,107,0.18);
  transform: translateX(4px);
}
.map-main { flex: 1; position: relative; overflow: hidden; }
#leafletMap { width: 100%; height: 100%; }
.panel-skeleton { display: flex; flex-direction: column; gap: 10px; }
.panel-skel-card { background: #fff; border-radius: 10px; height: 72px; overflow: hidden; }

/* ── MODAL ────────────────────────────────────────── */
.modal-content { border-radius: var(--radius); border: none; }
.modal-header  { border-bottom: 1px solid #f0f0f0; padding: 20px 24px; }
.modal-body    { padding: 24px; }
.modal-title   { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--navy); }
.modal .form-control, .modal .form-select {
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem;
}
.modal .form-control:focus, .modal .form-select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.1);
}

/* ── BREADCRUMB ───────────────────────────────────── */
.breadcrumb-item a { color: var(--teal); text-decoration: none; }
.breadcrumb { font-size: 0.84rem; }

/* ── PAGINATION ───────────────────────────────────── */
.page-link { color: var(--navy); border-color: #e5e7eb; }
.page-link:hover { background: var(--soft); color: var(--navy); }
.page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* ── UTILITIES ────────────────────────────────────── */
.text-teal   { color: var(--teal) !important; }
.text-gold   { color: var(--gold) !important; }
.text-navy   { color: var(--navy) !important; }
.bg-navy     { background: var(--navy) !important; }
.bg-soft     { background: var(--soft) !important; }
.rounded-xl  { border-radius: var(--radius) !important; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 110px 0 60px; }
  .map-preview { height: 300px; margin-top: 30px; }
  .cta-banner  { padding: 40px 28px; }
  .map-page-wrap { height: auto; overflow: auto; }
  .map-body      { flex-direction: column; }
  .map-listings-panel { width: 100%; max-height: 42vh; }
  .map-main      { height: 55vh; }
  .map-filter-bar { flex-wrap: wrap; }
  .sidebar { position: relative; top: 0; }
  .summary-card { position: relative; top: 0; }
}
@media (max-width: 575px) {
  .search-card { padding: 20px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ── LISTINGS PAGE UTILITIES ─────────────────────── */
.empty-state-text  { max-width: 360px; }
.budget-min-label  { font-size: 0.78rem; }
.map-error-text { color: #b91c1c; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: #081826;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
}
.footer-logo   { filter: brightness(0) invert(1); display: block; }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  margin: 0;
}
.footer-hr  { border-color: rgba(255,255,255,0.08); margin: 40px 0 24px; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* Social buttons */
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.95rem;
  transition: all 0.2s; text-decoration: none; margin-right: 6px;
}
.social-btn:hover { background: var(--gold); color: #fff; }

/* Newsletter */
.footer-newsletter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-newsletter-wrap {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.footer-newsletter-wrap:focus-within { border-color: var(--teal); }
.footer-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: #fff;
  min-width: 0;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-newsletter-btn:hover { background: #0a6358; }
.footer-newsletter-success {
  font-size: 0.82rem;
  color: var(--teal);
  margin: 10px 0 0;
}
.footer-newsletter-error {
  font-size: 0.82rem;
  color: #fca5a5;
  margin: 10px 0 0;
}

/* Footer links */
.footer-links { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.83rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

@media (max-width: 991px) {
  .footer-links { justify-content: center; }
}