:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --light: #f8fafc;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --font-family: 'Poppins', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
  --primary: #60a5fa;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --secondary: #f1f5f9;
  --light: #0f172a;
  --dark: #f8fafc;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-300: #64748b;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --gray-700: #f1f5f9;
  --gray-800: #f8fafc;
  --gray-900: #ffffff;
  --white: #1e293b;
  --glass-bg: rgba(30,41,59,0.8);
  --glass-border: rgba(255,255,255,0.1);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.dark-mode body,
body.dark-mode {
  color: var(--gray-800);
  background: var(--gray-50);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* Dark Mode Dropdown */
.dark-mode .dropdown-menu {
  background: #1e293b;
  border-color: #334155;
}
.dark-mode .dropdown-menu .dropdown-item {
  color: #cbd5e1;
}
.dark-mode .dropdown-menu .dropdown-item:hover {
  background: rgba(96,165,250,0.1);
  color: #f1f5f9;
}
.dark-mode .dropdown-menu .dropdown-item-text {
  color: #f1f5f9;
}
.dark-mode .dropdown-menu .dropdown-divider {
  border-color: #334155;
}

/* Btn Pop Animation */
@keyframes btnPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.btn-pop { animation: btnPop 0.3s ease; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

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

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Soft Shadows */
.shadow-soft { box-shadow: var(--shadow); }
.shadow-soft-md { box-shadow: var(--shadow-md); }
.shadow-soft-lg { box-shadow: var(--shadow-lg); }
.shadow-soft-xl { box-shadow: var(--shadow-xl); }

/* =====================
   HEADER / NAVBAR
   ===================== */
.navbar-custom {
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  z-index: 1050;
  /* Default: dark overlay for hero pages */
  background: linear-gradient(180deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.0) 100%);
}

/* When no hero (non-hero pages): always show solid header */
.navbar-custom.solid,
.navbar-custom.scrolled {
  background: #ffffff !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0;
}

.navbar-custom .nav-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
  transition: height 0.3s ease;
}

.navbar-custom.scrolled .nav-wrapper {
  height: 62px;
}

/* Brand Logo */
.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-custom .navbar-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  transition: filter 0.3s ease;
}

.navbar-custom.scrolled .navbar-brand img,
.navbar-custom.solid .navbar-brand img {
  filter: none;
}

.navbar-custom .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar-custom.scrolled .brand-name,
.navbar-custom.solid .brand-name {
  color: #0f172a;
}

/* Nav Links */
.navbar-custom .navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500;
  font-size: 0.925rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: calc(100% - 28px);
}

.navbar-custom .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.12);
}

.navbar-custom .nav-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

/* Scrolled / Solid state nav links */
.navbar-custom.scrolled .nav-link,
.navbar-custom.solid .nav-link {
  color: #334155 !important;
}

.navbar-custom.scrolled .nav-link::after,
.navbar-custom.solid .nav-link::after {
  background: var(--primary);
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.solid .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(37,99,235,0.08);
}

.navbar-custom.scrolled .nav-link.active,
.navbar-custom.solid .nav-link.active {
  color: var(--primary) !important;
  background: rgba(37,99,235,0.1);
  font-weight: 600;
}

/* Dropdown arrow styling */
.navbar-custom .dropdown-toggle::after {
  display: none !important;
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.mega-menu-item:hover .nav-arrow,
.dropdown:hover .nav-arrow,
.show > .nav-arrow {
  transform: rotate(180deg);
}

/* Navbar Toggler (Mobile) */
.navbar-custom .navbar-toggler {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9);
  font-size: 1.3rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.08);
}

.navbar-custom.scrolled .navbar-toggler,
.navbar-custom.solid .navbar-toggler {
  border-color: #cbd5e1;
  color: #334155;
  background: transparent;
}

.navbar-custom .navbar-toggler:focus { box-shadow: none; }

/* Right-side Action Buttons */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.navbar-actions .nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
}

.navbar-actions .nav-icon-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  transform: scale(1.08);
}

.navbar-custom.scrolled .navbar-actions .nav-icon-btn,
.navbar-custom.solid .navbar-actions .nav-icon-btn {
  background: #f1f5f9;
  color: #475569;
}

.navbar-custom.scrolled .navbar-actions .nav-icon-btn:hover,
.navbar-custom.solid .navbar-actions .nav-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Dark Mode Toggle specific */
.dark-mode-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.dark-mode-toggle:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  transform: scale(1.08);
}

.navbar-custom.scrolled .dark-mode-toggle,
.navbar-custom.solid .dark-mode-toggle {
  background: #f1f5f9;
  color: #475569;
}

.navbar-custom.scrolled .dark-mode-toggle:hover,
.navbar-custom.solid .dark-mode-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Login Button */
.navbar-actions .btn-login {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-actions .btn-login:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.navbar-custom.scrolled .navbar-actions .btn-login,
.navbar-custom.solid .navbar-actions .btn-login {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.navbar-custom.scrolled .navbar-actions .btn-login:hover,
.navbar-custom.solid .navbar-actions .btn-login:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* User Avatar Dropdown */
.navbar-actions .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.25s ease;
  object-fit: cover;
}

.navbar-custom.scrolled .navbar-actions .user-avatar,
.navbar-custom.solid .navbar-actions .user-avatar {
  border-color: var(--primary);
}

.navbar-actions .user-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}

.navbar-custom.scrolled .navbar-actions .user-initials,
.navbar-custom.solid .navbar-actions .user-initials {
  background: var(--primary);
  border-color: var(--primary);
}

.dropdown-toggle.d-flex {
  color: rgba(255,255,255,0.9) !important;
}

.navbar-custom.scrolled .dropdown-toggle.d-flex,
.navbar-custom.solid .dropdown-toggle.d-flex {
  color: #334155 !important;
}

/* =====================
   DARK MODE - HEADER
   ===================== */
.dark-mode .navbar-custom.scrolled,
.dark-mode .navbar-custom.solid {
  background: #1e293b !important;
  border-bottom-color: #334155;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.dark-mode .navbar-custom.scrolled .brand-name,
.dark-mode .navbar-custom.solid .brand-name {
  color: #f1f5f9;
}

.dark-mode .navbar-custom.scrolled .navbar-brand img,
.dark-mode .navbar-custom.solid .navbar-brand img {
  filter: brightness(0) invert(1);
}

.dark-mode .navbar-custom.scrolled .nav-link,
.dark-mode .navbar-custom.solid .nav-link {
  color: #cbd5e1 !important;
}

.dark-mode .navbar-custom.scrolled .nav-link:hover,
.dark-mode .navbar-custom.solid .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(96,165,250,0.12);
}

.dark-mode .navbar-custom.scrolled .nav-link.active,
.dark-mode .navbar-custom.solid .nav-link.active {
  color: var(--primary) !important;
  background: rgba(96,165,250,0.15);
}

.dark-mode .navbar-custom.scrolled .navbar-toggler,
.dark-mode .navbar-custom.solid .navbar-toggler {
  border-color: #475569;
  color: #cbd5e1;
}

.dark-mode .navbar-custom.scrolled .navbar-actions .nav-icon-btn,
.dark-mode .navbar-custom.solid .navbar-actions .nav-icon-btn {
  background: #334155;
  color: #94a3b8;
}

.dark-mode .navbar-custom.scrolled .navbar-actions .nav-icon-btn:hover,
.dark-mode .navbar-custom.solid .navbar-actions .nav-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.dark-mode .navbar-custom.scrolled .dark-mode-toggle,
.dark-mode .navbar-custom.solid .dark-mode-toggle {
  background: #334155;
  color: #94a3b8;
}

.dark-mode .navbar-custom.scrolled .dark-mode-toggle:hover,
.dark-mode .navbar-custom.solid .dark-mode-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

.dark-mode .navbar-custom.scrolled .navbar-actions .btn-login,
.dark-mode .navbar-custom.solid .navbar-actions .btn-login {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.dark-mode .navbar-custom.scrolled .dropdown-toggle.d-flex,
.dark-mode .navbar-custom.solid .dropdown-toggle.d-flex {
  color: #cbd5e1 !important;
}

/* =====================
   MEGA MENU
   ===================== */
.mega-menu-item { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  padding: 28px;
  min-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1060;
  pointer-events: none;
}

.mega-menu.show,
.mega-menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
  filter: drop-shadow(0 -2px 3px rgba(0,0,0,0.08));
}

.mega-menu .menu-col {
  border-right: 1px solid #f1f5f9;
  padding-right: 20px;
}

.mega-menu .menu-col:last-child {
  border-right: none;
  padding-right: 0;
}

.mega-menu .menu-col h6 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-menu .menu-col h6::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.mega-menu .menu-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #475569;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.mega-menu .menu-col a::before {
  content: '\f285';
  font-family: 'Bootstrap-Icons';
  font-size: 0.7rem;
  color: #94a3b8;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mega-menu .menu-col a:hover {
  color: var(--primary);
  background: rgba(37,99,235,0.06);
  padding-left: 14px;
}

.mega-menu .menu-col a:hover::before {
  color: var(--primary);
}

/* Dark Mode Mega Menu */
.dark-mode .mega-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
}

.dark-mode .mega-menu::before {
  border-bottom-color: #1e293b;
}

.dark-mode .mega-menu .menu-col {
  border-right-color: #334155;
}

.dark-mode .mega-menu .menu-col h6::after {
  background: #334155;
}

.dark-mode .mega-menu .menu-col a {
  color: #94a3b8;
}

.dark-mode .mega-menu .menu-col a:hover {
  color: var(--primary);
  background: rgba(96,165,250,0.1);
}

/* Mobile Navbar Collapse */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-top: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .dark-mode .navbar-custom .navbar-collapse {
    background: #1e293b;
    border-top-color: #334155;
  }

  .navbar-custom .navbar-collapse .nav-link {
    color: #334155 !important;
    padding: 10px 20px !important;
    border-radius: 0;
  }

  .dark-mode .navbar-custom .navbar-collapse .nav-link {
    color: #cbd5e1 !important;
  }

  .navbar-custom .navbar-collapse .nav-link:hover,
  .navbar-custom .navbar-collapse .nav-link.active {
    color: var(--primary) !important;
    background: rgba(37,99,235,0.06);
  }

  .dark-mode .navbar-custom .navbar-collapse .nav-link:hover,
  .dark-mode .navbar-custom .navbar-collapse .nav-link.active {
    background: rgba(96,165,250,0.1);
  }

  .navbar-actions {
    padding: 8px 20px 4px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
  }

  .dark-mode .navbar-actions {
    border-top-color: #334155;
  }

  .navbar-custom .navbar-actions .nav-icon-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
  }

  .dark-mode .navbar-custom .navbar-actions .nav-icon-btn {
    background: #334155 !important;
    color: #94a3b8 !important;
  }

  .navbar-custom .navbar-actions .dark-mode-toggle {
    background: #f1f5f9 !important;
    color: #475569 !important;
  }

  .dark-mode .navbar-custom .navbar-actions .dark-mode-toggle {
    background: #334155 !important;
    color: #94a3b8 !important;
  }

  .navbar-custom .navbar-actions .btn-login {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
  }

  .mega-menu {
    position: static;
    transform: none;
    min-width: 100%;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    padding: 16px;
    margin: 8px 20px;
    width: calc(100% - 40px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .dark-mode .mega-menu {
    border-color: #334155;
  }

  .mega-menu::before { display: none; }
  .mega-menu .menu-col { border-right: none; padding-right: 0; }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(37,99,235,0.6) 100%);
  z-index: 1;
}

.hero-section .swiper { position: absolute; inset: 0; z-index: 0; }
.hero-section .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-section .hero-content { position: relative; z-index: 2; }

/* Hero Search */
.hero-search {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: var(--shadow-xl);
}

.hero-search .nav-pills .nav-link {
  color: var(--gray-600);
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.hero-search .nav-pills .nav-link.active {
  background: var(--primary);
  color: var(--white);
}

/* Property Cards */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

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

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

.property-card .property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.property-card .badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.property-card .badge-featured { background: var(--accent); color: var(--white); }
.property-card .badge-trending { background: var(--danger); color: var(--white); }
.property-card .badge-new { background: var(--success); color: var(--white); }
.property-card .badge-sale { background: var(--primary); color: var(--white); }
.property-card .badge-rent { background: var(--info); color: var(--white); }

.property-card .wishlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-500);
}

.property-card .wishlist-btn:hover,
.property-card .wishlist-btn.active { background: var(--danger); color: var(--white); border-color: var(--danger); }

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

.property-card .property-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.property-card .property-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card .property-location {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-card .property-features {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.property-card .property-features span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.property-card .property-features i { color: var(--primary); font-size: 0.9rem; }

.property-card .builder-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Property List Card */
.property-list-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.property-list-card:hover { box-shadow: var(--shadow-lg); }

.property-list-card .property-img { width: 320px; min-height: 220px; flex-shrink: 0; position: relative; overflow: hidden; }
.property-list-card .property-img img { width: 100%; height: 100%; object-fit: cover; }
.property-list-card .property-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }

/* Section Styles */
.section { padding: 80px 0; }
.section-title { margin-bottom: 48px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.section-title p { color: var(--gray-500); font-size: 1.05rem; }
.section-title .title-line { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin-top: 12px; }

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stat-item { text-align: center; padding: 20px; }
.stat-item .stat-number { font-size: 2.5rem; font-weight: 700; color: var(--white); }
.stat-item .stat-label { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-top: 4px; }
.stat-item i { font-size: 2rem; color: var(--accent); margin-bottom: 8px; }

/* Why Choose Us */
.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.feature-card h5 { font-weight: 600; margin-bottom: 8px; color: var(--gray-800); }
.feature-card p { color: var(--gray-500); font-size: 0.9rem; }

/* City Cards */
.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}

.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.city-card:hover img { transform: scale(1.1); }

.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.city-card .city-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: var(--white);
}

.city-card .city-info h5 { font-weight: 600; margin-bottom: 2px; }
.city-card .city-info span { font-size: 0.85rem; opacity: 0.8; }

/* Testimonial Card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Bootstrap Icons';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.2;
}

.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-card .testimonial-text { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 20px; font-style: italic; }

.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .testimonial-author h6 { font-weight: 600; margin-bottom: 0; font-size: 0.9rem; }
.testimonial-card .testimonial-author span { color: var(--gray-500); font-size: 0.8rem; }

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card .blog-img { height: 200px; overflow: hidden; position: relative; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-card .blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-card .blog-content { padding: 20px; }
.blog-card .blog-title { font-weight: 600; margin-bottom: 8px; color: var(--gray-800); font-size: 1.05rem; }
.blog-card .blog-excerpt { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.blog-card .blog-meta span { display: flex; align-items: center; gap: 4px; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(37,99,235,0.8) 100%);
  padding: 100px 0 60px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,144C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
}

.page-header h1 { color: var(--white); font-weight: 700; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item.active { color: var(--white); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* Filter Sidebar */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.filter-sidebar .filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-100); }
.filter-sidebar .filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-sidebar .filter-group label { font-weight: 600; font-size: 0.9rem; color: var(--gray-700); margin-bottom: 8px; display: block; }

.filter-sidebar .bed-btn-group .btn { border: 1px solid var(--gray-200); color: var(--gray-600); border-radius: var(--radius-sm); font-weight: 500; transition: var(--transition); }
.filter-sidebar .bed-btn-group .btn.active,
.filter-sidebar .bed-btn-group .btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.filter-sidebar .amenity-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.filter-sidebar .amenity-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-sidebar .amenity-check label { font-size: 0.88rem; color: var(--gray-600); margin: 0; font-weight: 400; }

/* Forms */
.form-control, .form-select {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 24px;
  transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 10px 24px;
  transition: var(--transition);
}

.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--gray-300);
  padding-top: 80px;
}

.footer h5 { color: var(--white); font-weight: 600; margin-bottom: 20px; font-size: 1.1rem; }
.footer .footer-links { list-style: none; padding: 0; }
.footer .footer-links li { margin-bottom: 10px; }
.footer .footer-links a { color: var(--gray-400); font-size: 0.9rem; transition: var(--transition); }
.footer .footer-links a:hover { color: var(--primary-light); padding-left: 4px; }

.footer .contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.footer .contact-item i { color: var(--primary-light); font-size: 1rem; margin-top: 3px; }
.footer .contact-item span { font-size: 0.9rem; }

.footer .social-links { display: flex; gap: 10px; }
.footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
}
.footer .social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.footer .newsletter-form .input-group { border-radius: var(--radius-full); overflow: hidden; }
.footer .newsletter-form .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 12px 20px;
}
.footer .newsletter-form .form-control::placeholder { color: var(--gray-400); }
.footer .newsletter-form .btn {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 12px 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  margin-top: 40px;
}

/* Property Detail */
.property-gallery .swiper { border-radius: var(--radius-lg); overflow: hidden; }
.property-gallery .swiper-slide img { width: 100%; height: 500px; object-fit: cover; }
.property-gallery .swiper-thumbs .swiper-slide { opacity: 0.5; cursor: pointer; }
.property-gallery .swiper-thumbs .swiper-slide-thumb-active { opacity: 1; border: 2px solid var(--primary); }

.property-detail-info .info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
}

.property-detail-info .info-badge i { color: var(--primary); }

.action-buttons .btn { padding: 10px 20px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; }

/* EMI Calculator */
.emi-calculator {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-100);
}

.emi-calculator .emi-result {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.faq-item .faq-question {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-item .faq-question:hover { color: var(--primary); }

.faq-item .faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 24px 18px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Auth Pages */
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(37,99,235,0.8) 100%);
  padding: 20px;
}

/* Customer Dashboard */
.dashboard-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.dashboard-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dashboard-stat .stat-icon { width: 50px; height: 50px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--white); }
.dashboard-stat .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-800); }
.dashboard-stat .stat-title { color: var(--gray-500); font-size: 0.85rem; }

/* Job Card */
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.job-card:hover { box-shadow: var(--shadow-md); }
.job-card .job-type { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }

/* Masonry Gallery */
.gallery-masonry { columns: 4; column-gap: 16px; }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-masonry .gallery-item img { width: 100%; display: block; }
.gallery-masonry .gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: var(--transition); }
.gallery-masonry .gallery-item:hover::after { background: rgba(37,99,235,0.3); }

/* Search Results */
.search-tab .nav-link { border: none; color: var(--gray-500); font-weight: 600; padding: 12px 20px; border-bottom: 2px solid transparent; }
.search-tab .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Wishlist */
.wishlist-empty { text-align: center; padding: 80px 20px; }
.wishlist-empty i { font-size: 4rem; color: var(--gray-300); margin-bottom: 16px; }

/* Loading / Skeleton */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1040;
  box-shadow: var(--shadow-md);
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Dark Mode Toggle - handled in Header section above */

/* Table Styles */
.table-custom { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.table-custom thead { background: var(--gray-50); }
.table-custom th { font-weight: 600; font-size: 0.85rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: none; }
.table-custom td { padding: 14px 16px; vertical-align: middle; font-size: 0.9rem; }

/* Status Badges */
.badge-status { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-confirmed { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-cancelled { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-completed { background: rgba(37,99,235,0.1); color: var(--primary); }

/* Responsive Styles (Mobile, Tablet, Laptop, Desktop) */
img, iframe, video, object, embed {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

/* Horizontal scrollable nav pills for mobile */
.nav-pills-scrollable {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  gap: 8px;
}
.nav-pills-scrollable::-webkit-scrollbar {
  height: 4px;
}

/* Breakpoint: Large Desktop (1200px and below) */
@media (max-width: 1199.98px) {
  .gallery-masonry { columns: 3; }
  .container { max-width: 100%; padding-left: 20px; padding-right: 20px; }
  .property-gallery .swiper-slide img { height: 420px; }
}

/* Breakpoint: Tablet & Small Laptops (991px and below) */
@media (max-width: 991.98px) {
  /* Header & Navigation */
  .navbar-custom .nav-wrapper {
    height: auto !important;
    min-height: 64px;
    padding: 8px 0;
    flex-wrap: wrap;
  }
  .navbar-custom.scrolled .nav-wrapper {
    height: auto !important;
  }
  .navbar-custom .brand-name {
    font-size: 1.1rem;
  }
  .navbar-custom .navbar-collapse {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 20px;
    margin-top: 10px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }
  .dark-mode .navbar-custom .navbar-collapse {
    background: #1e293b !important;
    border-top-color: #334155;
  }
  .navbar-custom .navbar-nav {
    margin: 0 !important;
    width: 100%;
  }
  .navbar-custom .nav-link {
    padding: 10px 14px !important;
    display: block;
    width: 100%;
  }
  .navbar-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
  }
  .dark-mode .navbar-actions {
    border-top-color: #334155;
  }
  
  /* Mega Menu on Mobile */
  .mega-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    width: 100% !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0 !important;
  }
  .mega-menu-item.show .mega-menu,
  .mega-menu-item:hover .mega-menu {
    display: block;
  }
  .mega-menu .menu-col {
    border-right: none !important;
    padding-right: 0 !important;
    margin-bottom: 16px;
  }
  .mega-menu .menu-col:last-child {
    margin-bottom: 0;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto !important;
    padding: 110px 0 60px;
  }
  .hero-section .hero-content h1 {
    font-size: 2.25rem;
  }

  /* Layout components */
  .gallery-masonry { columns: 2; }
  .property-list-card { flex-direction: column; }
  .property-list-card .property-img { width: 100%; height: 220px; }
  .property-gallery .swiper-slide img { height: 340px; }
  .filter-sidebar { margin-bottom: 24px; }
}

/* Breakpoint: Tablets & Large Mobile (767px and below) */
@media (max-width: 767.98px) {
  .gallery-masonry { columns: 1; }
  .section { padding: 48px 0; }
  .section-title h2 { font-size: 1.65rem; }
  .section-title { margin-bottom: 32px; }
  .stat-item .stat-number { font-size: 2rem; }
  .hero-section { padding: 100px 0 40px; }
  .hero-section .hero-content h1 { font-size: 1.85rem; }
  .hero-search { padding: 20px 16px; border-radius: 16px; }
  .page-header { padding: 80px 0 40px; }
  .footer { padding-top: 50px; }
  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .dashboard-stat { padding: 18px 14px; }
  .dashboard-stat .stat-value { font-size: 1.35rem; }
  .dashboard-stat .stat-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .property-gallery .swiper-slide img { height: 280px; }
  .spec-table td:first-child { width: 140px; font-size: 0.85rem; }
  
  /* Filter bed-btn-group flex wrap */
  .filter-sidebar .bed-btn-group {
    flex-wrap: wrap;
  }
  .filter-sidebar .bed-btn-group .btn {
    flex: 1 1 calc(33.333% - 6px);
    margin-bottom: 4px;
  }
}

/* Breakpoint: Small Mobile (575px and below) */
@media (max-width: 575.98px) {
  .hero-section .hero-content h1 { font-size: 1.5rem; }
  .hero-search .nav-pills { flex-wrap: wrap; }
  .hero-search .nav-pills .nav-link { padding: 6px 14px; font-size: 0.825rem; }
  .property-card .property-img { height: 190px; }
  .property-card .property-info { padding: 14px; }
  .property-card .property-price { font-size: 1.2rem; }
  .property-card .property-title { font-size: 0.98rem; }
  .property-card .property-features { flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; font-size: 0.8rem; }
  .property-gallery .swiper-slide img { height: 220px; }
  .property-gallery .swiper-thumbs .swiper-slide img { height: 60px !important; }
  .action-buttons { gap: 6px !important; }
  .action-buttons .btn { padding: 8px 12px; font-size: 0.78rem; flex: 1 1 calc(50% - 6px); text-align: center; }
  .auth-card { padding: 22px 14px; margin: 10px 0; width: 100%; max-width: 100%; }
  .contact-form-card { padding: 20px 14px; }
  .emi-calculator { padding: 16px; }
  .emi-calculator .emi-result { padding: 14px; }
  .footer-bottom .text-md-end { text-align: center !important; margin-top: 12px; }
  .footer-bottom a { display: inline-block; margin-bottom: 6px; }
  #map { height: 260px !important; }
  .view-toggle { display: none; }
}

/* Breakpoint: Micro Mobile (375px and below) */
@media (max-width: 375px) {
  .navbar-custom .brand-name { font-size: 0.95rem; }
  .navbar-custom .navbar-brand img { height: 32px; }
  .hero-section .hero-content h1 { font-size: 1.3rem; }
  .hero-search { padding: 12px 10px; }
  .stat-item .stat-number { font-size: 1.6rem; }
  .stat-item .stat-label { font-size: 0.8rem; }
}

/* Print Styles */
@media print {
  .navbar-custom, .footer, .back-to-top, .cta-section, .action-buttons, .property-card .wishlist-btn, #filterCollapse, .d-lg-none { display: none !important; }
}

/* Animations */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Rating Stars */
.rating-stars i { color: var(--accent); }
.rating-stars i.inactive { color: var(--gray-300); }

/* Pagination */
.pagination { flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.pagination .page-link {
  border: none;
  color: var(--gray-600);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin: 0 2px;
  transition: var(--transition);
}

.pagination .page-item.active .page-link { background: var(--primary); color: var(--white); }
.pagination .page-link:hover { background: var(--gray-100); color: var(--primary); }

/* Comparison Table */
.comparison-table th { background: var(--primary); color: var(--white); padding: 12px 16px; font-weight: 600; }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }

/* Specification Table */
.spec-table tr:nth-child(even) { background: var(--gray-50); }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); }
.spec-table td:first-child { font-weight: 600; color: var(--gray-700); width: 200px; }

/* Video Player */
.video-wrapper { position: relative; padding-bottom: 56.25%; border-radius: var(--radius-lg); overflow: hidden; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Empty States */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h4 { color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { color: var(--gray-400); margin-bottom: 24px; }

/* Swiper Custom */
.swiper-button-next, .swiper-button-prev { color: var(--white) !important; background: var(--glass-bg); width: 44px !important; height: 44px !important; border-radius: 50% !important; backdrop-filter: blur(10px); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; }
.swiper-pagination-bullet { background: var(--white) !important; opacity: 0.5 !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; background: var(--primary) !important; }

