/* ── Vaani Real Estate — Main Stylesheet ─────────────────────────── */

:root {
  --brand-primary: #1a3c6e;
  --brand-accent:  #f5a623;
  --card-radius:   0.75rem;
}

/* ── Navbar ────────────────────────────────────────────────────────── */
.navbar { background-color: var(--brand-primary) !important; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.65));
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; }

/* ── Search widget ─────────────────────────────────────────────────── */
.search-widget {
  background: rgba(255,255,255,.97);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.search-widget .nav-tabs .nav-link {
  color: var(--brand-primary);
  font-weight: 600;
}
.search-widget .nav-tabs .nav-link.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ── Property card ─────────────────────────────────────────────────── */
.property-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.property-card .cover-img {
  height: 210px;
  object-fit: cover;
  width: 100%;
}
.property-card .badge-listing {
  position: absolute;
  top: .6rem;
  left: .6rem;
}
.property-card .badge-verified {
  position: absolute;
  top: .6rem;
  right: .6rem;
}
.property-card .price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.property-card .spec-icon { color: #6c757d; font-size: .85rem; }

/* ── Stats bar ─────────────────────────────────────────────────────── */
.stats-bar { background: var(--brand-primary); }
.stats-bar .stat-value { font-size: 1.75rem; font-weight: 700; }

/* ── Section headings ──────────────────────────────────────────────── */
.section-title { font-weight: 700; color: var(--brand-primary); }
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--brand-accent);
  margin-top: .4rem;
}

/* ── Filters sidebar ───────────────────────────────────────────────── */
.filters-sidebar { position: sticky; top: 80px; }
.filters-sidebar .card { border-radius: var(--card-radius); }

/* ── Property detail ───────────────────────────────────────────────── */
.gallery-main { height: 420px; object-fit: cover; border-radius: var(--card-radius); }
.gallery-thumb {
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  border-radius: .35rem;
  opacity: .7;
  transition: opacity .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border: 2px solid var(--brand-primary); }
.spec-grid dt { font-size: .82rem; color: #6c757d; font-weight: 500; }
.spec-grid dd { font-weight: 600; }
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #f0f4ff;
  color: var(--brand-primary);
  border-radius: 2rem;
  padding: .25rem .75rem;
  font-size: .82rem;
  font-weight: 500;
}

/* ── Autocomplete dropdown ─────────────────────────────────────────── */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0 0 .5rem .5rem;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.autocomplete-list .ac-item {
  padding: .5rem .9rem;
  cursor: pointer;
  font-size: .9rem;
}
.autocomplete-list .ac-item:hover { background: #f0f4ff; }
.autocomplete-list .ac-item .badge { font-size: .68rem; }

/* ── Pagination ─────────────────────────────────────────────────────── */
.page-link { color: var(--brand-primary); }
.page-item.active .page-link {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ── City cards ─────────────────────────────────────────────────────── */
.city-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
}
.city-card img { height: 180px; object-fit: cover; width: 100%; transition: transform .3s; }
.city-card:hover img { transform: scale(1.05); }
.city-card .city-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: .75rem .75rem .5rem;
  font-weight: 600;
}

/* ── Why choose us ──────────────────────────────────────────────────── */
.why-card { border-radius: var(--card-radius); transition: box-shadow .2s; }
.why-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.why-icon { font-size: 2.2rem; color: var(--brand-accent); }

/* ── Contact page ───────────────────────────────────────────────────── */
.contact-info-card { border-left: 4px solid var(--brand-accent); }

/* ── Toast notifications ────────────────────────────────────────────── */
.toast-container { z-index: 9999; }
