:root {
  --navy: #0f1c2e;
  --navy-light: #1a2d47;
  --gold: #c9a227;
  --gold-hover: #b8911f;
  --soft: #f7f5f2;
  --text: #2c3e50;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .section-title, .navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Navbar */
#mainNav {
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#mainNav.scrolled {
  background: var(--navy);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-navy:hover {
  background: var(--navy-light);
  color: #fff;
}

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-soft { background: var(--soft); }

.tracking-wide { letter-spacing: 1.5px; }

/* Hero */
.hero-section {
  min-height: 90vh;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80') center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15,28,46,0.85) 0%, rgba(15,28,46,0.45) 60%, rgba(15,28,46,0.2) 100%);
}

/* Search */
.search-bar {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-card {
  border-radius: 12px;
}

/* Property cards */
.property-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,28,46,0.12) !important;
}

.property-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img-wrap img {
  transform: scale(1.06);
}

.badge-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}

.badge-status.rent {
  background: #2a9d8f;
}

.btn-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.btn-favorite:hover, .btn-favorite.active {
  background: #e74c3c;
  color: #fff;
}

.price {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

/* Features */
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: rgba(201,162,39,0.12);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-box {
  background: #fff;
  border-radius: 12px;
  transition: box-shadow 0.3s;
}

.feature-box:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
}

/* Footer */
.footer {
  background: var(--navy);
}

.footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--gold);
}

/* Listings page */
.page-hero {
  background: var(--navy);
  padding: 140px 0 60px;
  color: #fff;
}

.filter-sidebar {
  background: var(--soft);
  border-radius: 12px;
  padding: 1.5rem;
}

/* Property detail */
.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs img {
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.amenity-item i {
  color: var(--gold);
}

.agent-card {
  background: var(--soft);
  border-radius: 12px;
  padding: 1.5rem;
}

/* Contact */
.contact-form-card {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* About */
.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* Virtual tour placeholder */
.tour-placeholder {
  background: linear-gradient(135deg, #1a2d47, #0f1c2e);
  border-radius: 12px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tour-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1000&q=80') center/cover;
  opacity: 0.35;
}

.tour-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
  }
  .display-3 {
    font-size: 2.2rem;
  }
  .search-bar {
    margin-top: -30px;
  }
  .gallery-main {
    height: 280px;
  }
}

/* Updated!!! */

/* Contact */
.contact-form-card {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

/* Contact Information */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  font-size: 1.2rem;
  margin: 0;
  flex-shrink: 0;
}

.contact-info-item h6 {
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin-bottom: 0;
  text-align: left;
}