/* ============================================
   ESTATEHUB – Modern Real Estate Portal
   Dark Cyan #0a2330 · Cyan #06b6d4 · Light #ecfeff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0a2330;
  --navy-mid:    #0e3348;
  --navy-light:  #134d6b;
  --gold:        #06b6d4;
  --gold-light:  #22d3ee;
  --gold-pale:   #ecfeff;
  --cream:       #f9f7f2;
  --white:       #ffffff;
  --text-dark:   #111827;
  --text-mid:    #4b5563;
  --text-light:  #9ca3af;
  --border:      #e5e7eb;
  --border-mid:  #d1d5db;
  --error:       #ef4444;
  --success:     #10b981;
  --warning:     #f59e0b;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
  --transition:  0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background-color: #f7f7f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Crect width='120' height='40' fill='%23f7f7f5'/%3E%3C!-- Row 1 bricks --%3E%3Crect x='1' y='1' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='62' y='1' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3C!-- Row 2 bricks (offset) --%3E%3Crect x='-29' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='31' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='91' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 40px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container       { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: 900px; }
.container-wide  { max-width: 1440px; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 1.5px; text-transform: uppercase;
  flex-shrink: 0;
}
.navbar-brand span { color: rgba(255,255,255,0.9); }
.navbar-nav {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0;
}
.navbar-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 17px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius);
  transition: all var(--transition); letter-spacing: 0.3px;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--gold);
  background: rgba(6,182,212,0.15);
}
.navbar-actions { display: flex; align-items: center; gap: 8px; }

.btn-outline-gold {
  border: 1.5px solid rgba(201,168,76,0.7);
  color: var(--gold) !important;
  padding: 9px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
}
.btn-outline-gold:hover {
  background: var(--gold); color: #fff !important;
  border-color: var(--gold);
}
.btn-gold {
  background: var(--gold); color: #fff !important;
  padding: 10px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 14px rgba(6,182,212,0.45);
}
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.8); font-size: 22px; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
  background-color: #f7f7f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Crect width='120' height='40' fill='%23f7f7f5'/%3E%3Crect x='1' y='1' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='62' y='1' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='-29' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='31' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3Crect x='91' y='22' width='57' height='17' rx='1' fill='%23efefed' stroke='%23d8d4ce' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 40px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: brightness(0.3);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  animation: heroFade 50s linear infinite, heroPan 20s ease-in-out infinite alternate;
  animation-delay: calc(var(--slide-index) * 5s);
}
@keyframes heroFade {
  0%, 16% { opacity: 1; }
  20%, 100% { opacity: 0; }
}
@keyframes heroPan {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06) translateX(-1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.1) 60%, rgba(201,168,76,0.08) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 780px; margin: 0 auto;
  animation: fadeUp 0.8s ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(201,168,76,0.9);
  padding: 5px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  color: var(--white); font-weight: 700; margin-bottom: 18px; line-height: 1.1;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.68);
  margin-bottom: 44px; font-weight: 300; line-height: 1.75;
}

/* ---- Search Box ---- */
.search-box {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 840px; margin: 0 auto;
  animation: fadeUp 0.8s 0.15s ease-out both;
}
.search-tabs {
  display: flex; gap: 4px;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.search-tab {
  padding: 7px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-mid);
  transition: all var(--transition); letter-spacing: 0.2px;
}
.search-tab.active { background: var(--navy); color: var(--gold); border-bottom: 2px solid var(--gold); }
.search-tab:hover:not(.active) { background: var(--gold-pale); color: var(--navy); }
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 8px; align-items: center;
}
.search-field { position: relative; }
.search-field select,
.search-field input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text-dark); background: var(--white);
  outline: none; transition: border-color var(--transition);
  appearance: none;
}
.search-field select:focus,
.search-field input:focus { border-color: var(--gold); }
.search-field label {
  position: absolute; top: -9px; left: 10px;
  font-size: 10px; font-weight: 600;
  color: var(--text-light); background: var(--white);
  padding: 0 4px; letter-spacing: 0.8px; text-transform: uppercase;
}
.search-btn {
  background: var(--navy); color: var(--white);
  border: none; padding: 14px 26px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.search-btn:hover { background: var(--gold); color: #fff; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--navy);
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.stats-inner { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat-item { text-align: center; color: var(--white); }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700;
  color: var(--gold); display: block;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.5px; }

/* ---- Sections ---- */
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark  { background: var(--navy); }
.section-light { background: var(--white); }
.section-header { text-align: center; max-width: 580px; margin: 0 auto 52px; }
.section-header .eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 14px; }
.section-header p { color: var(--text-mid); font-size: 16px; font-weight: 300; line-height: 1.75; }

/* ---- Property Cards ---- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.4);
}
.card-image-wrap {
  position: relative; height: 215px;
  overflow: hidden; background: var(--navy);
}
.card-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.45s ease;
}
.property-card:hover .card-image-wrap img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 50px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-sale     { background: var(--navy);     color: var(--gold); }
.badge-rent     { background: var(--gold);     color: var(--navy); }
.badge-pg       { background: #6c5ce7;         color: #fff; }
.badge-featured { background: var(--gold);     color: var(--navy); }
.card-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 16px;
  transition: all var(--transition);
}
.card-wishlist:hover { background: var(--white); transform: scale(1.1); }
.card-wishlist.active { color: #ef4444; }
.card-body { padding: 18px 20px 20px; }
.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  color: var(--navy); margin-bottom: 5px;
}
.card-price span { font-size: 12px; color: var(--text-mid); font-family: 'Inter', sans-serif; font-weight: 400; }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  margin-bottom: 7px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-location {
  font-size: 12px; color: var(--text-mid);
  display: flex; align-items: center; gap: 3px; margin-bottom: 13px;
}
.card-specs {
  display: flex; gap: 14px; padding-top: 13px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.spec-item {
  font-size: 12px; color: var(--text-mid);
  display: flex; align-items: center; gap: 4px; font-weight: 500;
}
.spec-icon { font-size: 13px; }

/* ---- Filters Sidebar ---- */
.listings-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 28px; align-items: start;
}
.filters-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: sticky; top: 86px;
}
.filter-section { margin-bottom: 24px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-mid);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-dark); cursor: pointer;
}
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] { accent-color: var(--gold); width: 15px; height: 15px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
  padding: 5px 13px; border: 1.5px solid var(--border);
  border-radius: 50px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  background: transparent; color: var(--text-mid);
}
.filter-chip:hover,.filter-chip.active {
  border-color: var(--gold); background: var(--gold-pale); color: var(--navy);
}
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-input input {
  width: 100%; padding: 9px 11px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 13px; outline: none; font-family: 'Inter', sans-serif;
}
.range-input input:focus { border-color: var(--gold); }
.range-input label {
  display: block; font-size: 10px; color: var(--text-light);
  margin-bottom: 4px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px; letter-spacing: 0.1px;
}
.form-label .required { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text-dark); background: var(--white);
  outline: none; transition: all var(--transition); appearance: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.is-invalid { border-color: var(--error); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.col-full    { grid-column: 1 / -1; }
.form-error  { font-size: 12px; color: var(--error); margin-top: 4px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 12px 26px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  letter-spacing: 0.2px; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); box-shadow: var(--shadow-md); color: var(--white); }
.btn-accent  { background: var(--gold); color: var(--navy); }
.btn-accent:hover { background: var(--gold-light); box-shadow: 0 6px 20px rgba(201,168,76,0.4); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-danger  { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-sm  { padding: 7px 16px; font-size: 12px; }
.btn-lg  { padding: 15px 38px; font-size: 16px; }
.btn-full{ width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---- Alerts ---- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 16px; border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ---- Property Detail ---- */
.property-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.gallery-main { height: 480px; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 4px; }
.gallery-thumb { height: 100px; cursor: pointer; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--transition); }
.gallery-thumb:hover img { opacity: 0.75; }
.gallery-thumb.active { outline: 3px solid var(--gold); }
.property-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.detail-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); margin-bottom: 22px;
}
.detail-card h3 {
  font-size: 17px; margin-bottom: 18px;
  padding-bottom: 13px; border-bottom: 2px solid var(--gold-pale);
}
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec-row { display: flex; flex-direction: column; gap: 2px; }
.spec-row .label { font-size: 11px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-row .value { font-size: 14px; color: var(--text-dark); font-weight: 500; }
.amenities-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-tag {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px; background: var(--gold-pale);
  border-radius: 50px; font-size: 12px; font-weight: 500; color: var(--navy);
}
.amenity-tag .icon { font-size: 14px; }

/* ---- Contact Card ---- */
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-md); position: sticky; top: 86px;
}
.contact-card-header { background: var(--navy); padding: 22px; text-align: center; }
.contact-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--gold);
}
.contact-card-price small { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(255,255,255,0.55); }
.agent-card {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
}
.agent-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; border: 2px solid var(--border);
}
.agent-name { font-weight: 600; font-size: 14px; }
.agent-role { font-size: 12px; color: var(--text-mid); }
.contact-form { padding: 22px; }

/* ---- Dashboard ---- */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; min-height: 80vh; }
.dash-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  height: fit-content; position: sticky; top: 86px;
}
.dash-user-info { background: var(--navy); padding: 26px 22px; text-align: center; }
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 10px;
  border: 2px solid rgba(201,168,76,0.4);
}
.dash-username { color: var(--white); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.dash-role { color: rgba(201,168,76,0.8); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.dash-nav { padding: 10px 0; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px; color: var(--text-mid);
  font-size: 13px; font-weight: 500;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.dash-nav a:hover { color: var(--navy); background: var(--gold-pale); }
.dash-nav a.active { color: var(--navy); background: var(--gold-pale); border-left-color: var(--gold); font-weight: 600; }
.dash-nav .nav-icon { font-size: 16px; width: 20px; flex-shrink: 0; }
.dash-content { min-width: 0; }
.dash-header { margin-bottom: 26px; }
.dash-header h2 { font-size: 24px; }
.stats-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 18px; margin-bottom: 28px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.stat-card-num { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--navy); }
.stat-card-label { font-size: 12px; color: var(--text-mid); margin-top: 3px; font-weight: 500; }
.stat-card-icon { font-size: 24px; margin-bottom: 10px; }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 14px; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-mid);
  background: var(--cream); border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 13px 14px; font-size: 13px;
  color: var(--text-dark); border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: var(--gold-pale); }

/* ---- Status Badges ---- */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
}
.status-active   { background: #f0fdf4; color: #15803d; }
.status-pending  { background: #fffbeb; color: #92400e; }
.status-rejected { background: #fef2f2; color: #b91c1c; }
.status-sold     { background: #eff6ff; color: #1d4ed8; }
.status-rented   { background: #f5f3ff; color: #5b21b6; }
.status-read     { background: var(--cream); color: var(--text-mid); }
.status-replied  { background: #f0fdf4; color: #15803d; }

/* ---- City Cards ---- */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 18px; }
.city-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 155px; cursor: pointer;
  transition: transform var(--transition); display: block;
}
.city-card:hover { transform: translateY(-4px); }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.city-card:hover img { transform: scale(1.07); }
.city-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.15) 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.city-name { color: var(--white); font-weight: 600; font-size: 17px; font-family: 'Playfair Display', serif; }
.city-count { color: rgba(201,168,76,0.9); font-size: 12px; font-weight: 400; }

/* ---- Type Cards ---- */
.type-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.type-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 22px 18px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; transition: all var(--transition);
  min-width: 120px; text-align: center; color: var(--text-dark);
}
.type-card:hover {
  border-color: var(--gold); background: var(--gold-pale);
  transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--navy);
}
.type-icon { font-size: 32px; }
.type-name { font-size: 13px; font-weight: 600; }
.type-count { font-size: 11px; color: var(--text-mid); }

/* ---- EMI Calculator ---- */
.emi-calculator { background: var(--navy); border-radius: var(--radius-lg); padding: 36px; color: var(--white); }
.emi-result {
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.emi-amount { font-family: 'Playfair Display', serif; font-size: 38px; color: var(--gold); font-weight: 700; }

/* ---- Pagination ---- */
.pagination-nav { display: flex; justify-content: center; margin-top: 44px; }
.pagination { list-style: none; display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pagination li a, .pagination li.active {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 500;
  color: var(--text-dark); transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--navy); }
.pagination li.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination li.dots { display: flex; align-items: center; color: var(--text-light); }

/* ---- Image Upload ---- */
.image-upload-area {
  border: 2px dashed var(--border-mid); border-radius: var(--radius-lg);
  padding: 36px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--cream);
}
.image-upload-area:hover, .image-upload-area.drag-over {
  border-color: var(--gold); background: var(--gold-pale);
}
.upload-icon { font-size: 44px; margin-bottom: 10px; }
.image-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preview-item {
  position: relative; width: 110px; height: 85px;
  border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 3px; right: 3px;
  background: rgba(239,68,68,0.92); color: var(--white);
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; border: none;
}

/* ---- Footer ---- */
.footer {
  background: #070e16; color: rgba(255,255,255,0.55);
  padding: 64px 0 28px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--gold); letter-spacing: 1.5px; margin-bottom: 14px; }
.footer p { font-size: 13px; line-height: 1.8; max-width: 270px; }
.footer h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color var(--transition); }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 12px; flex-wrap: wrap; gap: 10px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 15px; transition: all var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Features Grid ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 24px; }
.feature-card {
  padding: 28px 24px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(201,168,76,0.3); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 9px; }
.feature-card p { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-mid); }
.text-small  { font-size: 13px; }
.fw-bold     { font-weight: 600; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ---- Spinner ---- */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- WhatsApp FAB ---- */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 52px; height: 52px; background: #22c55e;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 26px;
  box-shadow: 0 4px 18px rgba(34,197,94,0.45);
  z-index: 500; transition: transform var(--transition); color: white;
}
.whatsapp-fab:hover { transform: scale(1.1); color: white; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(13,27,42,0.65);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: translateY(16px);
  transition: transform var(--transition);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-header { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 26px; }

/* ---- Toast ---- */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--navy); color: var(--white);
  padding: 13px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg); min-width: 250px;
  border-left: 4px solid var(--gold);
  animation: slideIn 0.25s ease;
}
.toast.toast-error { border-left-color: var(--error); }
.toast.toast-success { border-left-color: var(--success); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Compare Bar ---- */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); border-top: 2px solid var(--gold);
  padding: 14px 24px; z-index: 900;
  display: none; align-items: center; justify-content: space-between;
}
.compare-bar.visible { display: flex; }
.compare-items { display: flex; gap: 12px; align-items: center; }
.compare-item {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius); padding: 7px 14px;
  font-size: 13px; color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .property-detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .navbar-toggle { display: block; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(13,27,42,0.98); backdrop-filter: blur(20px);
    padding: 16px; gap: 3px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .search-fields { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 260px; }
  .stats-inner { gap: 28px; }
  .section { padding: 56px 0; }
}