:root {
  --clr-primary: #0a0e14;        /* Deep luxury space black */
  --clr-primary-dark: #05070a;   /* Pure pitch black */
  --clr-accent: #c5a85c;         /* Warm bronze gold */
  --clr-accent-light: #e8dbb0;   /* Champagne light gold */
  --clr-bg: #0f141c;             /* Body dark background */
  --clr-white: #171d26;          /* Dark card base */
  --clr-text: #f3f4f6;           /* High-contrast off-white text */
  --clr-text-light: #9ca3af;     /* Medium gray text */
  --clr-text-lighter: #6b7280;   /* Muted gray text */
  --clr-border: #242c38;         /* Subtle dark borders */
  --clr-success: #10b981;
  --clr-danger: #ef4444;
  --clr-new: #3b82f6;
  --clr-hot: #f97316;
  
  /* Gradients & Shadows */
  --gold-gradient: linear-gradient(135deg, #c5a85c 0%, #aa8630 100%);
  --gold-gradient-hover: linear-gradient(135deg, #e8dbb0 0%, #c5a85c 100%);
  --dark-gradient: linear-gradient(180deg, rgba(10, 14, 20, 0.4) 0%, rgba(5, 7, 10, 0.95) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.7);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.95);
  --shadow-gold: 0 0 15px rgba(197, 168, 92, 0.25);
  --shadow-gold-hover: 0 0 25px rgba(197, 168, 92, 0.45);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  --header-height: 68px;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-primary-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-border);
  border-radius: 4px;
  border: 2px solid var(--clr-primary-dark);
  transition: all var(--transition);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-accent);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

/* ===== Glassmorphism Utilities ===== */
.glass-effect {
  background: rgba(23, 29, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-navbar-bg, rgba(10, 14, 20, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.header-top {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.brand .logo-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transition: all var(--transition);
  overflow: hidden;
}

.brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform var(--transition);
}



.brand .brand-name {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  position: relative;
}

.brand .brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--clr-accent);
  display: block;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions .action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-accent);
  transform: translateY(-1px);
}

.header-actions .action-btn.primary {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--clr-primary-dark);
  box-shadow: var(--shadow-gold);
}

.header-actions .action-btn.primary:hover {
  background: var(--gold-gradient-hover);
  box-shadow: var(--shadow-gold-hover);
}

/* ===== Navigation ===== */
.main-nav {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--clr-border);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-list {
  display: flex;
  gap: 6px;
  padding: 10px 0;
}

.nav-item {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--clr-text-light);
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav-item.active {
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e14 0%, #0f141c 100%);
  border-bottom: 1px solid var(--clr-border);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(20%) contrast(110%);
}

.hero-bg-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: grayscale(20%) contrast(110%);
}

.hero-bg-slide.active {
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.hero-content h1 .gold {
  color: var(--clr-accent);
  background: linear-gradient(120deg, #d4af37, #f3e5ab, #aa8630);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--clr-text-light);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
}

.hero-stat {
  text-align: center;
  transition: all var(--transition);
}

.hero-stat:hover {
  transform: translateY(-2px);
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  text-shadow: var(--shadow-gold);
}

.hero-stat .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-light);
}

/* ===== Search Bar ===== */
.search-section {
  margin: 20px auto 40px;
  max-width: 1100px;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.search-card {
  background: rgba(23, 29, 38, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--clr-primary-dark);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid var(--clr-border);
}

.search-tab {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--clr-text-light);
  transition: all var(--transition);
  text-align: center;
}

.search-tab.active {
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  box-shadow: var(--shadow-gold);
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.search-field {
  position: relative;
}

.search-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--clr-bg);
  color: var(--clr-text);
  transition: all var(--transition);
  appearance: none;
}

.search-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c5a85c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: var(--shadow-gold);
}

.search-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
}

.search-btn:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  border-left: 4px solid var(--clr-accent);
  padding-left: 10px;
  letter-spacing: -0.2px;
}

.section-header a {
  color: var(--clr-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.section-header a:hover {
  color: var(--clr-accent-light);
  transform: translateX(2px);
}

/* ===== Property Cards ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  padding: 12px 16px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.property-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--clr-border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold-hover);
  border-color: rgba(197, 168, 92, 0.4);
}

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

.property-card .property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.property-card .property-img .property-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-sm);
}

.tag-sale { background: var(--clr-danger); color: white; }
.tag-rent { background: var(--clr-new); color: white; }
.tag-new { background: var(--clr-success); color: white; }
.tag-hot { background: var(--clr-hot); color: white; }

.property-card .property-img .favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(10, 14, 20, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid var(--clr-border);
  font-size: 1.05rem;
  color: #888;
}

.property-card .property-img .favorite-btn.liked {
  color: var(--clr-danger);
  border-color: var(--clr-danger);
}

.property-card .property-img .favorite-btn:hover {
  transform: scale(1.15);
  background: var(--clr-primary-dark);
}

.property-card .property-img .image-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 14, 20, 0.85);
  color: white;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--clr-border);
}

.property-card .property-info {
  padding: 20px;
  flex: 1;
}

.property-card .property-info .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-accent);
  margin-bottom: 6px;
  background: linear-gradient(120deg, #d4af37, #f3e5ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.property-card .property-info .price .unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clr-text-light);
  -webkit-text-fill-color: var(--clr-text-light);
}

.property-card .property-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.property-card .property-info .location {
  font-size: 0.84rem;
  color: var(--clr-text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card .property-info .location i {
  color: var(--clr-accent);
}

.property-card .property-info .features {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--clr-border);
}

.property-card .property-info .feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--clr-text-light);
}

.property-card .property-info .feature i {
  color: var(--clr-accent);
  font-size: 0.95rem;
}

/* ===== Agent Card ===== */
.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--clr-primary-dark);
  border-top: 1px solid var(--clr-border);
}

.agent-card .agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--clr-border);
}

.agent-card .agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card .agent-info {
  flex: 1;
}

.agent-card .agent-info .agent-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.agent-card .agent-info .agent-role {
  font-size: 0.72rem;
  color: var(--clr-text-light);
}

.agent-card .contact-btn {
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--clr-accent);
  background: transparent;
  color: var(--clr-accent);
  transition: all var(--transition);
  white-space: nowrap;
}

.agent-card .contact-btn:hover {
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* ===== Category Cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 12px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--clr-border);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold-hover);
  border-color: rgba(197, 168, 92, 0.4);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(10, 14, 20, 0.98));
  color: white;
}

.category-card .category-overlay h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.category-card .category-overlay span {
  font-size: 0.75rem;
  color: var(--clr-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Property Detail Page ===== */
.detail-gallery {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 20px auto;
  max-width: 1200px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(10, 14, 20, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  color: white;
  transition: all var(--transition);
}

.gallery-nav:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.detail-content {
  padding: 24px 0;
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--clr-accent);
  background: linear-gradient(120deg, #d4af37, #f3e5ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
}

.detail-feature {
  text-align: center;
}

.detail-feature i {
  font-size: 1.8rem;
  color: var(--clr-accent);
  margin-bottom: 6px;
}

.detail-feature .feature-value {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.detail-feature .feature-label {
  font-size: 0.75rem;
  color: var(--clr-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Back Button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 16px auto 0;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text-light);
  transition: all var(--transition);
  text-decoration: none;
}

.back-btn:hover {
  background: rgba(255,255,255,0.04);
  color: white;
  border-color: var(--clr-accent);
  transform: translateX(-2px);
}

/* ===== Bottom Bar ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.6);
  z-index: 100;
  border-top: 1px solid var(--clr-border);
}

.bottom-bar .btn {
  flex: 1;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-call {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-accent);
}

.btn-call:hover {
  background: rgba(197, 168, 92, 0.05);
  box-shadow: var(--shadow-gold);
}

.btn-schedule {
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-schedule:hover {
  background: var(--gold-gradient-hover);
  box-shadow: var(--shadow-gold-hover);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  padding: 14px 28px;
  border-radius: 30px;
  z-index: 300;
  font-weight: 800;
  font-size: 0.88rem;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), toastOut 0.3s ease 1.8s forwards;
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(-30px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-30px); }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .search-fields {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-stats {
    gap: 24px;
  }
  .detail-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .detail-gallery {
    height: 240px;
  }
}

/* ===== Footer & Register Interest Form ===== */
.site-footer {
  background: var(--clr-primary-dark);
  border-top: 1px solid var(--clr-border);
  padding: 60px 16px 100px;
  margin-top: 60px;
}

.footer-form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--clr-white);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(197, 168, 92, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.7), var(--shadow-gold);
  transition: all var(--transition);
}

.footer-form-card:hover {
  border-color: rgba(197, 168, 92, 0.3);
  box-shadow: 0 20px 48px rgba(0,0,0,0.85), var(--shadow-gold-hover);
}

.footer-form-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.footer-form-text {
  color: var(--clr-text-light);
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 480px) {
  .footer-form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-input,
.footer-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.footer-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c5a85c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.footer-input::placeholder {
  color: var(--clr-text-lighter);
}

.footer-input:focus,
.footer-select:focus {
  outline: none;
  border-color: var(--clr-accent);
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.footer-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.footer-submit-btn:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

.footer-submit-btn:active {
  transform: translateY(0);
}

.footer-copyright {
  text-align: center;
  color: var(--clr-text-lighter);
  font-size: 0.75rem;
  margin-top: 40px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== Footer Content Layout ===== */
.footer-content {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-top: 50px;
  border-top: 1px solid var(--clr-border);
}

.footer-brand-col .brand {
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-desc {
  color: var(--clr-text-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--gold-gradient);
  color: var(--clr-primary-dark);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.footer-links-col h4,
.footer-contact-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links-col h4::after,
.footer-contact-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--clr-accent);
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 12px;
}

.footer-links-col ul li a {
  color: var(--clr-text-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;
}

.footer-links-col ul li a:hover {
  color: var(--clr-accent);
  transform: translateX(4px);
}

.footer-contact-col p {
  color: var(--clr-text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.footer-contact-col p i {
  color: var(--clr-accent);
  margin-top: 3px;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: var(--clr-text-light);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-copyright a:hover {
  color: var(--clr-accent);
}

/* ===== Premium Micro-Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  15% { transform: scale(0.85); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.favorite-btn.liked i {
  animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes shimmerSweep {
  0% { left: -150%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

/* Shimmer overlay class for luxury CTAs */
.search-btn,
.footer-submit-btn,
.btn-schedule,
.action-btn.primary {
  position: relative;
  overflow: hidden;
}

.search-btn::after,
.footer-submit-btn::after,
.btn-schedule::after,
.action-btn.primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shimmerSweep 6s infinite ease-in-out;
}

/* Delay shimmer startup on details page CTA */
.btn-schedule::after {
  animation-delay: 2s;
}

/* Hover reveal on scroll support */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lightbox Modal Styling ===== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1010;
}

.lightbox-close:hover {
  color: var(--clr-accent);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(10, 14, 20, 0.85);
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: var(--clr-accent);
  color: var(--clr-primary-dark);
  border-color: transparent;
  box-shadow: var(--shadow-gold-hover);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-container {
    width: 100%;
  }
}

.lightbox-caption {
  color: var(--clr-text-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}

/* ===== Details Two-Column Grid Setup ===== */
.detail-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-card-panel {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* Override detail-gallery margins when nested in grid */
.detail-grid-layout .detail-gallery {
  margin: 0 0 24px 0;
  max-width: 100%;
}

.sidebar-sticky-box {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.detail-price-box {
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .detail-grid-layout {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
  }
  .sidebar-sticky-box {
    position: sticky;
    top: 90px; /* Sits below header height */
  }
}

/* ===== Desktop Navigation Enhancements ===== */
@media (min-width: 768px) {
  .nav-list {
    justify-content: center;
    gap: 12px;
  }
  .main-nav {
    overflow-x: visible;
  }
  .search-fields {
    align-items: flex-end;
  }
}

/* ===== Mobile Header Responsiveness ===== */
@media (max-width: 480px) {
  .header-top {
    padding: 10px 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
  }
  .brand .brand-name {
    font-size: 1.1rem;
  }
  .brand .brand-sub {
    font-size: 0.52rem;
    letter-spacing: 0.5px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .action-btn {
    font-size: 0 !important; /* Hide text label on mobile screens */
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  .header-actions .action-btn i {
    font-size: 1rem !important; /* Keep icon visible */
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Footer Content Layout Scaling (Middle-size layout for mobile) */
  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px 20px !important;
    padding-top: 30px !important;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
  .footer-contact-col {
    grid-column: span 2;
  }
  .footer-links-col h4,
  .footer-contact-col h4 {
    font-size: 0.92rem !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }
  .footer-desc {
    font-size: 0.78rem !important;
    margin-bottom: 14px !important;
    line-height: 1.5 !important;
  }
  .footer-links-col ul li {
    margin-bottom: 8px !important;
  }
  .footer-links-col ul li a {
    font-size: 0.78rem !important;
  }
  .footer-contact-col p {
    font-size: 0.78rem !important;
    margin-bottom: 8px !important;
    gap: 8px !important;
    line-height: 1.4 !important;
  }
  .footer-socials a {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }
  .footer-copyright {
    margin-top: 24px !important;
    font-size: 0.7rem !important;
    line-height: 1.5 !important;
  }
}

/* ===== Hamburger Menu Controls ===== */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-accent);
}

.nav-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex !important;
  }

  .main-nav {
    position: fixed !important;
    top: 60px !important;
    right: -100% !important; /* Slide in from the right */
    left: auto !important;
    width: 280px !important;
    height: calc(100vh - 60px) !important;
    background: rgba(10, 14, 20, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid var(--clr-border) !important; /* Left border for clean slide edge */
    border-right: none !important;
    z-index: 999 !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 24px !important;
    overflow-y: auto !important;
    box-shadow: -15px 0 35px rgba(0,0,0,0.65) !important; /* Shadow casting leftwards */
    display: block !important;
  }

  .main-nav.active {
    right: 0 !important;
    left: auto !important;
  }

  .nav-list {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }

  .nav-item {
    width: 100% !important;
    padding: 12px 20px !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
  }

  .nav-item.active {
    background: var(--gold-gradient) !important;
    color: var(--clr-primary-dark) !important;
    box-shadow: var(--shadow-gold) !important;
  }
}

/* ===== Authentication Headers styling ===== */
.user-profile-pill {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #d4af37;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.05);
}

.user-profile-pill i {
  font-size: 1rem;
}

.logout-btn {
  background: none;
  border: none;
  color: #ff5252;
  cursor: pointer;
  padding: 0 4px;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-btn:hover {
  transform: scale(1.15);
}

@media (max-width: 480px) {
  .user-profile-pill span {
    display: none;
  }
  .user-profile-pill {
    padding: 8px 10px;
  }
}

/* ===== Property Status Tags ===== */
.tag-sold {
  background: linear-gradient(135deg, #ff5252, #c62828) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(255, 82, 82, 0.25) !important;
}

.tag-rented {
  background: linear-gradient(135deg, #ff9800, #ef6c00) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.25) !important;
}

.tag-pending {
  background: linear-gradient(135deg, #2196f3, #1565c0) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.25) !important;
}

/* ===== Contact Agent Button Styling ===== */
.contact-btn {
  background: var(--gold-gradient);
  border: 1px solid rgba(197, 168, 92, 0.4);
  color: var(--clr-primary-dark);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.contact-btn:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
  border-color: var(--clr-accent-light);
}

.contact-btn:active {
  transform: translateY(0);
}

.contact-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: shimmerSweep 6s infinite ease-in-out;
}

/* ===== Premium Stacking Toasts ===== */
#premium-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.premium-toast {
  pointer-events: auto;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.premium-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.premium-toast.hide {
  transform: translateX(50px);
  opacity: 0;
}

.premium-toast-success { border-left: 4px solid #4caf50; }
.premium-toast-error { border-left: 4px solid #f44336; }
.premium-toast-warning { border-left: 4px solid #ffeb3b; }
.premium-toast-info { border-left: 4px solid #2196f3; }
.premium-toast-lock { border-left: 4px solid #c5a85c; }
.premium-toast-heart { border-left: 4px solid #e91e63; }
.premium-toast-heart-broken { border-left: 4px solid #888888; }

.premium-toast i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.premium-toast-text {
  flex: 1;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.premium-toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-toast-close:hover {
  color: #ffffff;
}

@media (max-width: 480px) {
  #premium-toast-container {
    top: 16px;
    right: 16px;
    max-width: none;
    width: calc(100% - 32px);
  }
}


