@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --bg-color: #090a10;
  --bg-card: rgba(18, 20, 32, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Primary & Accent Colors */
  --accent: #38bdf8;
  --accent-light-blue: #38bdf8;
  --accent-blue-dark: #0284c7;
  --accent-amber: #f59e0b;
  --accent-orange: #ea580c;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  
  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 50%, #6366f1 100%);
  --accent-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --mpesa-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  
  /* Text Colors (High Contrast WCAG Compliant) */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows & Glows */
  --shadow-dark: 0 10px 35px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  
  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Dynamic Ambient Glow Background */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 15% 25%, rgba(56, 189, 248, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   3. Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) var(--bg-color);
}

/* ==========================================================================
   4. Typography & Utility Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   5. Layout & Containers
   ========================================================================== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   6. Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(9, 10, 16, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand .brand-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.navbar-link:hover, .navbar-link.active {
  color: var(--accent);
}

.navbar-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.navbar-link:hover::after, .navbar-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  position: relative;
}

.hero-content {
  max-width: 850px;
  width: 100%;
  z-index: 10;
}

.hero-title {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

.hero-search {
  background: rgba(18, 20, 32, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1.1rem 1.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search input:focus {
  outline: none;
}

.hero-search button {
  background: var(--accent-gradient);
  color: #090a10;
  border: none;
  padding: 1rem 2.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.hero-search button:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 3.5rem auto 0;
}

.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-dark);
}

.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-glow);
}

.hero-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.hero-stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* ==========================================================================
   8. Filter Bar
   ========================================================================== */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
  box-shadow: var(--shadow-dark);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 160px;
}

.filter-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-self: flex-end;
}

/* ==========================================================================
   9. Listings Grid
   ========================================================================== */
.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

#no-results {
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

/* ==========================================================================
   10. House Card
   ========================================================================== */
.house-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35 ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  position: relative;
}

.house-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.house-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.house-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.house-card:hover .house-card-image img {
  transform: scale(1.08);
}

.house-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.image-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(9, 10, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.no-image {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.1));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.house-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.house-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
}

.house-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.house-card-price span.period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.house-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex: 1;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.meta-icon {
  color: var(--accent);
}

.house-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.house-card-actions button {
  flex: 1;
}

/* ==========================================================================
   11. Badges & Indicators
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-available {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-occupied {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   12. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #090a10;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #090a10;
  font-weight: 700;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.825rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* M-PESA Custom Styled Button */
.btn-mpesa {
  background: var(--mpesa-gradient);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
}

.btn-mpesa:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* WhatsApp Custom Button */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   13. Modals & Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #11131f;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(17, 19, 31, 0.95);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(17, 19, 31, 0.95);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: rotate(90deg);
}

/* ==========================================================================
   14. Image Carousel
   ========================================================================== */
.image-carousel {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090a10;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
}

.carousel-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  z-index: 5;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 10, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-weight: bold;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #090a10;
  border-color: var(--accent);
}

.carousel-counter {
  background: rgba(9, 10, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border: 1px solid var(--glass-border);
}

.carousel-placeholder {
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.05));
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 3rem;
}

/* ==========================================================================
   15. Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select option {
  background: #11131f;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox-group input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: block;
}

.image-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.image-upload-area:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.upload-icon {
  font-size: 2rem;
  color: var(--accent);
}

.upload-text {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--glass-border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.3s;
}

.image-preview-remove:hover {
  background: #dc2626;
}

/* ==========================================================================
   16. Contact Section Cards
   ========================================================================== */
.contact-grid {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.75rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.contact-item {
  margin-bottom: 1.75rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.contact-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  color: var(--accent-light-blue);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   17. Admin Dashboard & Stats Grid
   ========================================================================== */
.admin-panel {
  padding: 2rem 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-dark);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
}

.icon-amber { background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(234,88,12,0.25)); border: 1px solid rgba(245,158,11,0.4); }
.icon-green { background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(5,150,105,0.25)); border: 1px solid rgba(16,185,129,0.4); }
.icon-red { background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(220,38,38,0.25)); border: 1px solid rgba(239,68,68,0.4); }
.icon-blue { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.25)); border: 1px solid rgba(59,130,246,0.4); }

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

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-houses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-house-row {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.admin-house-row:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.admin-house-image {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.admin-house-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-house-info {
  flex: 1;
  min-width: 0;
}

.admin-house-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-house-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.admin-house-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-house-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   18. About Section & Feature Cards
   ========================================================================== */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text {
  color: var(--text-secondary);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.65rem;
}

.feature-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.footer {
  background: rgba(9, 10, 16, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.footer-admin-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.footer-admin-link:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   20. Animations & Keyframes
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.fade-in { animation: fadeIn 0.6s ease-out both; }
.slide-up { animation: slideUp 0.6s ease-out both; }
.scale-in { animation: scaleIn 0.4s ease-out both; }

/* ==========================================================================
   21. Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  background: rgba(17, 19, 31, 0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.4s ease-out forwards;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

.toast-info {
  border-left: 4px solid var(--accent);
}

/* ==========================================================================
   22. Detail Modal & Visiting Fee Styles
   ========================================================================== */
.detail-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.detail-description {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.detail-contact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.detail-map-link {
  color: var(--accent);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.visiting-fee-notice-box {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(56, 189, 248, 0.03);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.fee-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.spinner-loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   23. Developer & Empty State
   ========================================================================== */
.admin-login-form {
  max-width: 400px;
  margin: 0 auto;
}

.login-icon {
  font-size: 3.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-desc {
  color: var(--text-secondary);
}

/* ==========================================================================
   24. Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: rgba(9, 10, 16, 0.98);
    backdrop-filter: var(--glass-blur);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  
  .navbar-links.mobile-open {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .grid-listings {
    grid-template-columns: 1fr;
  }
  
  .about-grid, .about-features, .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-house-row {
    flex-direction: column;
    text-align: center;
  }

  .admin-house-info h4 {
    justify-content: center;
  }
  
  .admin-house-meta {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 95%;
    margin: 0.5rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .image-carousel {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem;
  }
  
  h2 {
    font-size: 1.85rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .house-card-image {
    height: 190px;
  }
}

/* ==========================================================================
   25. Utilities
   ========================================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
