/* ==========================================
   RENTIFY by Tuzabox - Main Stylesheet
   ========================================== */

/* ----- CSS Variables ----- */
:root {
  --primary: #0a1628;
  --primary-light: #0d1b3e;
  --primary-dark: #060e1a;
  --secondary: #1e88e5;
  --secondary-light: #42a5f5;
  --secondary-dark: #1565c0;
  --accent: #1a3a6b;
  --accent-light: #2a5a9b;
  --white: #ffffff;
  --off-white: #f0f4f8;
  --light-gray: #e3e8ef;
  --gray: #64748b;
  --dark-gray: #1e293b;
  --dark: #0f172a;
  --body-bg: #ffffff;
  --body-color: #475569;
  --heading-color: #0a1628;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 32px rgba(10, 22, 40, 0.08);
  --card-shadow-hover: 0 16px 48px rgba(10, 22, 40, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --navbar-bg: rgba(10, 22, 40, 0.95);
  --section-padding: 100px 0;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --gradient-primary: linear-gradient(135deg, #0a1628 0%, #0d1b3e 50%, #1a3a6b 100%);
  --gradient-secondary: linear-gradient(135deg, #1e88e5 0%, #42a5f5 50%, #1565c0 100%);
  --gradient-accent: linear-gradient(135deg, #0d1b3e 0%, #1a3a6b 100%);
  --gradient-hero: linear-gradient(135deg, #060e1a 0%, #0a1628 30%, #0d1b3e 60%, #1a3a6b 100%);
  --gradient-blue: linear-gradient(135deg, #1e88e5, #42a5f5, #1e88e5);
  --gradient-text: linear-gradient(135deg, #1e88e5, #42a5f5);
  --toast-success: #10b981;
  --toast-error: #ef4444;
  --toast-warning: #f59e0b;
  --toast-info: #3b82f6;
}

/* ----- Dark Mode Colors ----- */
[data-theme="dark"] {
  --body-bg: #0a0e17;
  --body-color: #c0c4cc;
  --heading-color: #ffffff;
  --card-bg: #131a2b;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
  --off-white: #0d1224;
  --light-gray: #1a2138;
  --glass-bg: rgba(19, 26, 43, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --navbar-bg: rgba(10, 14, 23, 0.98);
  --dark: #ffffff;
  --gray: #8892a4;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--body-color);
  background-color: var(--body-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

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

/* ----- Preloader ----- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.preloader-logo span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.loader {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  position: relative;
}

.loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(212, 168, 83, 0.1);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ----- Loading Spinner ----- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-light {
  border-color: rgba(255,255,255,0.2);
  border-top-color: #fff;
}

/* ----- Typography ----- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 12px;
  position: relative;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--secondary);
  margin-right: 12px;
  vertical-align: middle;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.text-blue {
  color: var(--secondary) !important;
}

.text-gold {
  color: var(--secondary) !important;
}

/* ----- 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: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

/* ----- Gradient Utilities ----- */
.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-secondary {
  background: var(--gradient-secondary);
}

/* ----- Navigation ----- */
.navbar {
  background: var(--navbar-bg);
  padding: 16px 0;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary) !important;
  letter-spacing: 1px;
}

.navbar-brand .brand-sub {
  display: block;
  font-size: 0.55rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: -4px;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.navbar .nav-link:hover {
  color: var(--secondary) !important;
}

.navbar .nav-link.active {
  color: var(--secondary) !important;
}

/* Dark mode toggle */
.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  transform: rotate(30deg);
}

/* Auth buttons */
.btn-login {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 8px 20px !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.btn-login:hover {
  color: var(--secondary) !important;
}

.btn-register {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary) !important;
  font-weight: 600;
  padding: 8px 24px !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.btn-register:hover {
  background: var(--secondary);
  color: var(--primary) !important;
}

/* ----- Auth Page ----- */
.auth-page {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.auth-header .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.auth-header .brand-sub {
  font-family: var(--font-body);
  font-size:.75rem;
  font-weight: 300;
  color: var(--secondary);
  display: block;
  letter-spacing: 2px;
  margin-top: -2px;
}

.auth-header .back-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.auth-header .back-link:hover {
  color: var(--secondary);
}

.auth-footer a:hover {
  color: var(--secondary) !important;
}

/* Auth Card */
.auth-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.auth-brand-section {
  background: var(--gradient-accent);
  padding: 48px 36px;
  display: flex;
  align-items: center;
}

.brand-content {
  color: #fff;
}

.brand-content .brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.brand-content h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.brand-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li i {
  color: var(--secondary);
  font-size: 1rem;
}

.auth-card .card-body {
  padding: 36px 32px;
}

.auth-card .brand-section-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

/* Floating Label Groups */
.floating-label-group {
  margin-bottom: 20px;
}

.floating-label-group .form-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}

.input-icon-wrap .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 14px 12px 42px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.input-icon-wrap .form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
  color: #fff;
}

.input-icon-wrap .form-control::placeholder {
  color: rgba(255,255,255,0.25);
}

.input-icon-wrap .form-control.is-invalid {
  border-color: #f87171;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  z-index: 2;
}

.toggle-password:hover {
  color: rgba(255,255,255,0.6);
}

/* Auth Form Check */
.auth-card .form-check-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.auth-card .form-check-input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.auth-card .form-check-input:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.auth-card a:not(.btn-social) {
  color: var(--secondary-light);
  text-decoration: none;
  transition: var(--transition);
}

.auth-card a:not(.btn-social):hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Auth Button */
.btn-auth {
  background: var(--gradient-secondary);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,136,229,0.35);
  color: var(--primary) !important;
}

.btn-auth:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* Social Buttons */
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn-social:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* Auth Page Alert Overrides */
.auth-card .alert {
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  padding: 12px 14px;
}

/* Auth Page Responsive */
@media (max-width: 991px) {
  .auth-brand-section {
    padding: 32px 24px;
  }

  .auth-card .card-body {
    padding: 28px 24px;
  }

  .brand-content .brand-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .brand-content h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 575px) {
  .auth-header {
    padding: 12px 0;
  }

  .auth-header .navbar-brand {
    font-size: 1.25rem;
  }

  .auth-card {
    border-radius: var(--border-radius-sm);
  }

  .auth-card .card-body {
    padding: 24px 18px;
  }

  .auth-brand-section {
    padding: 24px 18px;
  }

  .btn-auth {
    padding: 11px 24px;
    font-size: 0.9rem;
  }

  .btn-social {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

/* Dark mode adjustments for auth (fallback when data-theme=dark) */
[data-theme="dark"] .auth-page {
  background: var(--gradient-primary);
}

[data-theme="dark"] .auth-card {
  background: rgba(255,255,255,0.03);
}

/* Post Property Button */
.btn-post-property {
  background: var(--gradient-secondary);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 10px 28px !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border: none;
  font-size: 0.9rem;
}

.btn-post-property:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.35);
}

/* Mobile Toggle */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 12px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Hero Slider Section (Deep Blue) ----- */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 920px;
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease;
  transform: scale(1.05);
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-bg-0 {
  background: linear-gradient(135deg, #060e1a 0%, #0a1628 30%, #0d1b3e 60%, #1a3a6b 100%);
}

.slide-bg-1 {
  background: linear-gradient(135deg, #0a0e17 0%, #0a1628 40%, #0d1b3e 70%, #1a3a6b 100%);
}

.slide-bg-2 {
  background: linear-gradient(135deg, #050c1a 0%, #0a1628 30%, #0d1b3e 60%, #1a3a6b 100%);
}

.slide-bg-0::before, .slide-bg-1::before, .slide-bg-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(30, 136, 229, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(66, 165, 245, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(10, 22, 40, 0.4) 0%, transparent 50%);
  animation: heroAmbient 8s ease-in-out infinite alternate;
}

@keyframes heroAmbient {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-slide-text {
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(30, 136, 229, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.2);
  color: var(--secondary-light);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.8;
  text-shadow: 0 1px 20px rgba(0,0,0,0.2);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.3);
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(30, 136, 229, 0.45);
  color: #fff;
}

/* Slider Controls */
.hero-slider-controls {
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  transform: translateY(50%);
}

.hero-slider-arrow {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

.hero-slider-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: scale(1.1);
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 200px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(30, 136, 229, 0.5);
}

/* Search Overlay - Glassmorphism */
.hero-search-overlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0 16px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 22, 40, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(30, 136, 229, 0.15);
  border-radius: 16px;
  padding: 6px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  flex: 1;
  position: relative;
}

.search-field::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.search-field:last-of-type::after { display: none; }

.search-field i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-input, .search-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  padding: 4px 0;
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }

.search-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.search-select option { background: #0a1628; color: #fff; }

.search-submit-btn {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30, 136, 229, 0.35);
}

/* Stats Bar on Hero */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  padding: 40px 0 20px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-light);
  display: block;
  text-shadow: 0 0 20px rgba(30, 136, 229, 0.3);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Search Section (below hero) */
.search-section {
  background: var(--off-white);
  padding: 32px 0;
  position: relative;
}

[data-theme="dark"] .search-section {
  background: var(--card-bg);
}

.search-section .search-row {
  background: var(--card-bg);
  border: 1px solid var(--light-gray);
  box-shadow: 0 8px 32px rgba(10,22,40,0.08);
  max-width: 960px;
}

[data-theme="dark"] .search-section .search-row {
  background: var(--off-white);
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-section .search-field i {
  color: var(--secondary);
}

.search-section .search-input,
.search-section .search-select {
  color: var(--body-color);
}

.search-section .search-input::placeholder {
  color: var(--gray);
}

.search-section .search-select option {
  background: var(--card-bg);
  color: var(--body-color);
}

.search-section .search-field::after {
  background: var(--light-gray);
}

/* Cinematic Divider */
.hero-divider {
  height: 6px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-light) 20%, 
    var(--secondary) 50%, 
    var(--secondary-light) 80%, 
    transparent
  );
  position: relative;
}

.hero-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(30,136,229,0.15) 30%,
    rgba(30,136,229,0.3) 50%,
    rgba(30,136,229,0.15) 70%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .hero-slider-section { min-height: 100vh; max-height: none; height: auto; }
  .hero-slide-content { padding-top: 100px; padding-bottom: 260px; }
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }
  .search-row { flex-wrap: wrap; padding: 12px;}
  .search-field { width: 100%; flex: none; }
  .search-field::after { display: none; }
  .search-submit-btn { width: 100%; justify-content: center; margin-top: 8px; }
  .search-section .search-row { padding: 12px; }
  .hero-slider-controls { display: none; }
  .hero-slider-dots { bottom: 180px; }
  .hero-stats-bar { position: relative; margin-top: -80px; background: var(--primary-dark); }
  .stats-row { gap: 20px; padding: 16px 0; }
  .hero-stat-value { font-size: 1.3rem; }
  .hero-cta-btn { padding: 14px 28px; font-size: 0.9rem; }
  .hero-slider-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .hero-slider-prev { left: 12px; }
  .hero-slider-next { right: 12px; }
}

/* ----- Buttons ----- */
.btn {
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-blue {
  background: var(--gradient-secondary);
  color: var(--white) !important;
  border: none;
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3);
}

.btn-outline-blue {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary) !important;
}

.btn-outline-blue:hover {
  background: var(--secondary);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary) !important;
  border: none;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-gold { background: var(--gradient-secondary); color: var(--white) !important; border: none; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30, 136, 229, 0.3); }
.btn-outline-gold { background: transparent; border: 2px solid var(--secondary); color: var(--secondary) !important; }
.btn-outline-gold:hover { background: var(--secondary); color: var(--white) !important; transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white) !important;
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ----- Section Styling ----- */
.section-padding {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ----- Trust Bar ----- */
.trust-bar {
  background: var(--primary);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
}

.trust-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.trust-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: rgba(255,255,255,0.08);
}

.trust-item:last-child::after {
  display: none;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.trust-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.trust-stars {
  color: var(--secondary);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ----- Category Cards ----- */
.category-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(212, 168, 83, 0.08);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 168, 83, 0.2);
}

.category-icon {
  width: 72px;
  height: 72px;
  background: rgba(212, 168, 83, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: var(--gradient-secondary);
  color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.category-card h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.category-count {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ----- Property Cards ----- */
.property-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid rgba(212, 168, 83, 0.06);
  height: 100%;
}

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

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

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

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

.property-card-image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.8) 100%);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-secondary);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-badge.featured {
  background: var(--gradient-primary);
  color: var(--secondary);
  left: auto;
  right: 16px;
}

.property-price {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.property-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--heading-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-location {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.property-location i {
  color: var(--secondary);
  margin-right: 6px;
}

.property-meta {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(212, 168, 83, 0.1);
  margin-top: 12px;
}

.property-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
}

.property-meta-item i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.property-card-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.property-agent img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.property-agent span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading-color);
}

.property-type {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-type.for-sale {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.property-type.for-rent {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

/* No Image Placeholder */
.property-card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: var(--secondary);
  font-size: 3rem;
}

/* ----- Slick / Carousel Overrides ----- */
.property-carousel .slick-track {
  display: flex;
  padding: 16px 0;
}

.property-carousel .slick-slide {
  height: auto;
  padding: 0 10px;
}

.property-carousel .slick-slide > div {
  height: 100%;
}

.property-carousel .slick-dots {
  bottom: -40px;
}

.property-carousel .slick-dots li button::before {
  color: var(--secondary);
  font-size: 10px;
}

.property-carousel .slick-dots li.slick-active button::before {
  color: var(--secondary);
}

.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  background: var(--card-bg) !important;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--heading-color) !important;
}

.slick-arrow:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
}

.slick-prev {
  left: -20px;
}

.slick-next {
  right: -20px;
}

/* ----- How It Works ----- */
.how-it-works {
  background: var(--off-white);
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.step-connector {
  position: absolute;
  top: 36px;
  right: -30%;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  opacity: 0.2;
}

.step-card:last-child .step-connector {
  display: none;
}

.step-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.step-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 280px;
  margin: 0 auto;
}

/* ----- Testimonials ----- */
.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(212, 168, 83, 0.06);
  margin: 16px;
  transition: var(--transition);
}

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

.testimonial-stars {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-color);
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.testimonial-author h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ----- Stats Counter ----- */
.stats-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212, 168, 83, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(26, 58, 107, 0.1) 0%, transparent 60%);
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----- CTA Section ----- */
.cta-section {
  background: var(--gradient-hero);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Mobile App Section ----- */
.app-section {
  background: var(--off-white);
}

.app-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.app-content p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 480px;
}

.app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  min-width: 180px;
}

.app-button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 22, 40, 0.2);
}

.app-button i {
  font-size: 1.8rem;
}

.app-button-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 400;
}

.app-button-text strong {
  font-size: 1rem;
  display: block;
}

.app-mockup {
  position: relative;
  text-align: center;
}

.app-mockup img {
  max-height: 500px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15));
}

/* ----- Newsletter ----- */
.newsletter-section {
  padding: 80px 0;
}

.newsletter-wrapper {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.newsletter-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(30, 136, 229, 0.06) 0%, transparent 60%);
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter-content h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-content p {
  color: rgba(255,255,255,0.6);
}

.newsletter-form {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .input-group {
  background: rgba(255,255,255,0.08);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.newsletter-form .form-control {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 16px 20px;
  font-size: 0.95rem;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form .form-control:focus {
  box-shadow: none;
}

.newsletter-form .btn-subscribe {
  background: var(--gradient-secondary);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-weight: 700;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  transition: var(--transition);
  cursor: pointer;
}

.newsletter-form .btn-subscribe:hover {
  opacity: 0.9;
}

/* ----- Footer ----- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-secondary);
}

.footer-main {
  padding: 80px 0 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline-block;
  margin-bottom: 4px;
}

.footer-brand-sub {
  display: block;
  font-size: 0.55rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.5);
}

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

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 4px;
  font-size: 1rem;
  min-width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-text a {
  color: var(--secondary);
}

.footer-bottom-text a:hover {
  color: var(--secondary-light);
}

/* ----- Toast Notifications ----- */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 420px;
  pointer-events: auto;
  animation: slideInRight 0.4s ease;
  border-left: 4px solid var(--toast-info);
}

.toast-notification.success {
  border-left-color: var(--toast-success);
}

.toast-notification.error {
  border-left-color: var(--toast-error);
}

.toast-notification.warning {
  border-left-color: var(--toast-warning);
}

.toast-notification.info {
  border-left-color: var(--toast-info);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-notification.success .toast-icon { color: var(--toast-success); }
.toast-notification.error .toast-icon { color: var(--toast-error); }
.toast-notification.warning .toast-icon { color: var(--toast-warning); }
.toast-notification.info .toast-icon { color: var(--toast-info); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--gray);
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--heading-color);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ----- Cookie Consent ----- */
.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  z-index: 9998;
  display: none;
  animation: slideInUp 0.5s ease;
  border: 1px solid rgba(212, 168, 83, 0.1);
}

.cookie-consent.show {
  display: block;
}

.cookie-consent h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

.cookie-consent p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.cookie-consent .btn-accept {
  background: var(--gradient-secondary);
  color: var(--primary);
  border: none;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-consent .btn-accept:hover {
  opacity: 0.9;
}

/* ----- Dashboard Sidebar (for later use) ----- */
.dashboard-sidebar {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  min-height: 600px;
}

.dashboard-sidebar .nav-link {
  color: var(--body-color);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  font-weight: 500;
}

.dashboard-sidebar .nav-link:hover {
  background: rgba(212, 168, 83, 0.08);
  color: var(--secondary);
}

.dashboard-sidebar .nav-link.active {
  background: rgba(212, 168, 83, 0.12);
  color: var(--secondary);
}

.dashboard-sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

/* ----- Lazy Load ----- */
.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* AOS Override */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ----- Geolocation Notice (Fixed Overlay) ----- */
.geo-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 560px;
  width: calc(100% - 32px);
}

.geo-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.geo-notice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  position: relative;
}

[data-theme="dark"] .geo-notice-card {
  background: rgba(20, 20, 30, 0.98);
}

.geo-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 136, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.geo-notice-icon i {
  font-size: 1.3rem;
  color: var(--secondary);
}

.geo-notice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.geo-notice-text strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.geo-notice-text span {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.3;
}

.geo-notice-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.geo-notice .btn-geo-accept {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.geo-notice .btn-geo-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.35);
}

.geo-notice .btn-geo-dismiss {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.geo-notice .btn-geo-dismiss:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.geo-notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: none;
}

.geo-notice-close:hover { color: #fff; }

@media (max-width: 576px) {
  .geo-notice-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .geo-notice-actions { width: 100%; }
  .geo-notice .btn-geo-accept,
  .geo-notice .btn-geo-dismiss { flex: 1; text-align: center; }
  .geo-notice-icon { display: none; }
}

/* ----- No Properties Message ----- */
.no-properties {
  text-align: center;
  padding: 60px 20px;
}

.no-properties i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.no-properties h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

.no-properties p {
  color: var(--gray);
}

/* ----- Pagination ----- */
.pagination {
  justify-content: center;
  gap: 6px;
}

.pagination .page-link {
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(212, 168, 83, 0.15);
  color: var(--body-color);
  background: var(--card-bg);
  font-weight: 500;
  transition: var(--transition);
}

.pagination .page-link:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--secondary);
  color: var(--secondary);
}

.pagination .page-item.active .page-link {
  background: var(--gradient-secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

/* ----- Empty States ----- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state h4 {
  font-family: var(--font-body);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray);
}

/* ----- Responsive ----- */
@media (max-width: 1400px) {
  .hero-title { font-size: 3.6rem; }
}

@media (max-width: 1200px) {
  .hero-title { font-size: 3.2rem; }
  .section-title { font-size: 2.4rem; }
  .cta-title { font-size: 2.4rem; }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2rem; }
  .section-padding { padding: 80px 0; }
  .stat-number { font-size: 2.4rem; }
  .navbar .navbar-collapse {
    background: rgba(10, 22, 40, 0.98);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 12px;
    backdrop-filter: blur(20px);
  }
  .navbar .nav-link::after { display: none; }
  .trust-item::after { display: none; }
  .step-connector { display: none; }
  .newsletter-wrapper { padding: 40px 24px; }
  .app-mockup { margin-top: 40px; }
  .hero-stats { gap: 24px; }
  .slick-prev { left: 0; }
  .slick-next { right: 0; }
  .cookie-consent {
    left: 16px;
    right: 16px;
    max-width: none;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .section-padding { padding: 60px 0; }
  .trust-bar { padding: 24px 0; }
  .trust-number { font-size: 1.8rem; }
  .cta-title { font-size: 1.8rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .app-content h2 { font-size: 1.8rem; }
  .app-content p { max-width: 100%; }
  .app-buttons { justify-content: center; }
  .app-button { min-width: 160px; }
  .toast-notification { min-width: auto; max-width: calc(100vw - 32px); }
  .toast-container { right: 16px; left: 16px; }
  .footer-main { padding: 60px 0 20px; }
  .hero-search { padding: 16px; }
  .hero-search .btn-search { margin-top: 8px; }
  .stat-number { font-size: 2rem; }
  .newsletter-content h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.8rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 16px; }
  .section-title { font-size: 1.5rem; }
  .section-tag { font-size: 0.75rem; }
  .category-card { padding: 24px 16px; }
  .hero-search-wrapper { padding: 0 8px; }
  .newsletter-form .btn-subscribe { padding: 16px 20px; font-size: 0.85rem; }
  .property-card-image { height: 180px; }
}

/* ----- Homepage Map Section ----- */
.map-section {
  background: var(--off-white);
}

[data-theme="dark"] .map-section {
  background: var(--card-bg);
}

.homepage-map {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(212, 168, 83, 0.1);
  z-index: 1;
  position: relative;
}

.homepage-map .map-fallback,
#nearbyMap .map-fallback,
#propertyDetailMap .map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--gray);
}

[data-theme="dark"] .homepage-map .map-fallback,
[data-theme="dark"] #nearbyMap .map-fallback,
[data-theme="dark"] #propertyDetailMap .map-fallback {
  background: var(--card-bg);
}

.homepage-map .map-fallback i,
#nearbyMap .map-fallback i,
#propertyDetailMap .map-fallback i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.homepage-map .map-fallback p,
#nearbyMap .map-fallback p,
#propertyDetailMap .map-fallback p {
  margin: 0;
  font-size: 0.95rem;
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-content {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  margin: 12px 16px !important;
}

.leaflet-popup-content strong {
  color: var(--heading-color);
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}

.leaflet-container {
  font-family: 'Inter', sans-serif !important;
}

@media (max-width: 768px) {
  .homepage-map { height: 280px; }
}

/* PWA Home Button */
.app-button.pwa-home-btn {
  background: linear-gradient(135deg,#1565c0,#1e88e5) !important;
  border: 2px solid rgba(255,255,255,0.15) !important;
  transition: all 0.3s ease;
}

.app-button.pwa-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.4) !important;
}

@media (max-width: 576px) {
  .app-button.pwa-home-btn {
    padding: 12px 16px;
  }
}

/* ----- Print Styles ----- */
@media print {
  .navbar, .footer, .cta-section, .newsletter-section, #preloader,
  .toast-container, .cookie-consent, .hero-floating {
    display: none !important;
  }
  .hero-section { min-height: auto; padding: 40px 0; }
  body { color: #000; background: #fff; }
}
