/* New Deal Acres - Unified Royal Blue & Pure White Ultra-Luxury Motion Engine */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Inter:wght@400;600;700;800&display=swap');

* { font-family: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif; scroll-behavior: smooth; }

h1, h2, h3, h4, .serif-font, .brand-font {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-weight: 800;
  color: #041533;
}

:root {
  /* Unified Royal Blue & Onyx Palette */
  --blue-dark: #071325;
  --blue-navy: #0b1e36;
  --blue-primary: #1e40af;
  --blue-royal: #2563eb;
  --blue-accent: #3b82f6;
  --blue-sky: #60a5fa;
  --blue-ice: #eff6ff;
  
  --blue-gradient: linear-gradient(135deg, #071325 0%, #1e40af 50%, #2563eb 100%);
  --blue-gradient-light: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --blue-gradient-glow: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
  
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark-surface: #071325;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-light-muted: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-blue-glow: rgba(37, 99, 235, 0.35);
  
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 18px rgba(7, 19, 37, 0.05);
  --shadow-md: 0 14px 35px rgba(7, 19, 37, 0.1);
  --shadow-lg: 0 25px 60px rgba(7, 19, 37, 0.16);
  --shadow-blue-glow: 0 14px 35px rgba(37, 99, 235, 0.35);

  --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --transition-fast: 0.25s var(--ease-out-cubic);
  --transition-normal: 0.45s var(--ease-out-cubic);
  --transition-slow: 0.85s var(--ease-out-cubic);
}

/* STRICT ZERO HORIZONTAL SCROLL & OVERFLOW-X PREVENTION ENGINE */
html {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  scrollbar-gutter: stable;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.65;
}

*, *:before, *:after {
  box-sizing: border-box !important;
}

/* STRICT UPRIGHT PHONE ICONS LOCK - NO ROTATION / FLIPPING */
i.fa-phone, i.fa-phone-alt, i.fa-mobile-alt, i.fa-phone-flip, .phone-icon {
  transform: rotate(0deg) scaleX(1) !important;
  display: inline-block !important;
  font-style: normal !important;
}

.container, .n99-header-container, .inPageSearchBox, section, div, header, footer {
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-slider-container, .hero-bg-slide, .hero-gradient-overlay, .modal-overlay, .mobile-drawer-overlay, .n99-header {
  max-width: none;
}

/* Reset & Typography */
* { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; scroll-behavior: smooth; }

h1, h2, h3, h4, .serif-font, .brand-font {
  font-family: 'Cinzel', serif;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

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

/* CUSTOM GLOWING CURSOR IN ROYAL BLUE (DISABLED) */
.custom-cursor-dot, .custom-cursor-ring {
  display: none !important;
}

/* TOP SCROLL PROGRESS BAR */
#scrollProgressBar {
  position: fixed; top: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, #1e40af, #2563eb, #3b82f6, #60a5fa, #1e40af);
  background-size: 300% 100%;
  animation: gradientFlow 3s linear infinite;
  z-index: 99999; width: 0%;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.9);
  transition: width 0.1s linear;
}

/* BLUE GRADIENT SHIMMERS */
.blue-gradient-text {
  background: var(--blue-gradient-light);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3.5s ease infinite;
  display: inline-block;
  font-weight: 800;
}

.container { width: 95% !important; max-width: 100% !important; margin: 0 auto; padding: 0 1.5%; }
.n99-header-container { width: 98% !important; max-width: 100% !important; margin: 0 auto; }
.inPageSearchBox { width: 95% !important; max-width: 100% !important; margin: 0 auto; }

/* REVEAL ANIMATIONS */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-out-cubic), transform 0.85s var(--ease-out-cubic);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s var(--ease-out-cubic), transform 0.85s var(--ease-out-cubic);
}

.reveal-fade-up.is-visible, .reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* GLASS PANEL IN ROYAL BLUE & WHITE */
.glass-panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  border-color: var(--blue-royal);
}

/* 99ACRES ULTRA-LUXURY NAVBAR SYSTEM (NON-OVERFLOW GUARANTEED) */
.n99-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #003d73 0%, #005ca8 50%, #0078db 100%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 61, 115, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.n99-header-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

/* STICKY HEADER SEARCH DOCK ON SCROLL (> 100px) */
.n99-sticky-search-dock {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 0.25rem 0.35rem 0.25rem 0.85rem !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  max-width: 280px !important;
  width: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1) !important;
}

.n99-header.scrolled .n99-sticky-search-dock {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.n99-header.scrolled .n99-nav {
  display: none !important;
}

.n99-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.n99-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.n99-logo-box {
  width: 38px; height: 38px;
  background: #ffffff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #005ca8; font-size: 1.15rem; font-weight: 900;
  box-shadow: 0 4px 15px rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.n99-logo-text {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.18rem;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.n99-accent {
  color: #60a5fa;
  font-family: 'Open Sans', sans-serif;
}

.n99-city-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 0.3rem 0.65rem;
  color: #ffffff;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.n99-city-selector i {
  margin-right: 4px;
  font-size: 0.8rem;
  color: #60a5fa;
}

.n99-city-selector select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.n99-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.2rem 0.4rem;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}

.n99-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.n99-nav a:hover, .n99-nav a.active {
  color: #004b8a;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.n99-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.n99-post-free-btn {
  background: #ffffff;
  color: #004b8a;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  white-space: nowrap;
}

.n99-free-tag {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.n99-fav-icon {
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.35rem;
  position: relative;
  text-decoration: none;
}

.n99-fav-icon .wishlist-count-badge {
  position: absolute;
  top: -2px; right: -4px;
  display: none;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  width: 17px; height: 17px;
  border-radius: 50%;
  line-height: 17px; text-align: center;
}

.n99-login-btn {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.n99-login-btn:hover {
  background: #ffffff;
  color: #004b8a;
}

.n99-hamburger {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .n99-nav { display: none; }
  .n99-hamburger { display: flex; }
}

/* HERO SLIDESHOW CROSSFADE ENGINE */
.hero-slider-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s cubic-bezier(0.33, 1, 0.68, 1), transform 2.5s ease-out;
}

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

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 37, 0.72) 0%, rgba(0, 75, 138, 0.82) 55%, rgba(4, 21, 51, 0.95) 100%);
  z-index: 2;
}

.nav-link i { color: var(--blue-royal); font-size: 0.8rem; transition: transform 0.3s ease; }
.nav-link:hover i { transform: scale(1.2) rotate(8deg); }

/* BUTTONS IN BLUE & WHITE */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 0.8rem 1.75rem; font-size: 0.9rem; font-weight: 800;
  border-radius: var(--radius-full); cursor: pointer; transition: all var(--transition-normal);
  border: none; outline: none; position: relative; overflow: hidden;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: rotate(30deg);
  animation: buttonShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.btn-blue {
  background: var(--blue-gradient-light);
  color: #ffffff;
  box-shadow: var(--shadow-blue-glow);
}

.btn-blue:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
  filter: brightness(1.08);
}

.btn-outline {
  background: #ffffff; color: var(--blue-dark);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--blue-royal);
  color: var(--blue-royal);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.site-header .btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.8rem;
}

/* HERO SECTION IN ROYAL BLUE NAVY & WHITE */
.hero-section {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
  background: var(--blue-dark);
}

#particleCanvas {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}

.hero-bg-slider { position: absolute; inset: 0; z-index: 1; }

.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 1.6s var(--ease-out-cubic), transform 9s ease-out;
}

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

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, 
    rgba(7, 19, 37, 0.78) 0%, 
    rgba(11, 30, 54, 0.65) 50%, 
    rgba(7, 19, 37, 0.92) 100%);
}

.hero-content { position: relative; z-index: 10; max-width: 900px; }

.hero-title {
  font-size: 3.9rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
  max-width: 750px;
}

/* FLOATING 3D BADGES IN BLUE & WHITE */
.floating-element {
  position: absolute; z-index: 20;
  background: rgba(11, 30, 54, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4), var(--shadow-blue-glow);
  border: 1.5px solid var(--blue-royal);
  display: flex; align-items: center; gap: 0.85rem;
  font-weight: 800; font-size: 0.92rem; color: #ffffff;
  transition: transform 0.4s var(--ease-spring);
}

.floating-element:hover { transform: scale(1.12) rotate(2deg) !important; }

.float-badge-1 { top: 16%; right: 6%; animation: floatAnim1 4.5s ease-in-out infinite; }
.float-badge-2 { bottom: 18%; left: 4%; animation: floatAnim2 5.2s ease-in-out infinite; }
.float-badge-3 { top: 44%; right: 3%; animation: floatAnim1 5.8s ease-in-out infinite 0.8s; }
.float-badge-4 { bottom: 30%; right: 12%; animation: floatAnim2 4.9s ease-in-out infinite 0.4s; }

/* HERO SEARCH DOCK IN WHITE & ROYAL BLUE */
.hero-search-box {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(28px);
  border: 2px solid var(--blue-royal);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  transition: var(--transition-normal);
}

.search-tabs {
  display: flex; gap: 0.6rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.85rem; overflow-x: auto;
}

.tab-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.92rem; font-weight: 700; cursor: pointer;
  padding: 0.6rem 1.4rem; border-radius: var(--radius-full);
  transition: all var(--transition-fast); white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
  color: #ffffff;
  background: var(--blue-gradient-light);
  box-shadow: var(--shadow-blue-glow);
  transform: translateY(-2px);
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); }

.form-control {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  padding: 0.88rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  outline: none; width: 100%; transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

/* HERO SLIDER DOTS */
.hero-slider-dots { display: flex; gap: 0.65rem; margin-top: 1.5rem; align-items: center; }

.dot-indicator {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--blue-royal);
  cursor: pointer; transition: all var(--transition-normal);
}

.dot-indicator.active {
  width: 38px; border-radius: var(--radius-full);
  background: var(--blue-royal);
  box-shadow: var(--shadow-blue-glow);
}

/* STATS COUNTER SECTION IN NAVY & WHITE */
.stats-section {
  background: var(--blue-dark);
  color: #ffffff;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  border-y: 1px solid var(--border-blue-glow);
}

.stat-card {
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--blue-royal);
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), var(--shadow-blue-glow);
}

.stat-number {
  font-size: 3.8rem;
  font-weight: 900;
  font-family: 'Cinzel', serif;
  background: var(--blue-gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* PROPERTY GRID & CARDS */
.section-padding { padding: 6rem 0; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  perspective: 1000px;
}

.property-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out-cubic), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex; flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
}

.property-card:hover {
  box-shadow: var(--shadow-lg), 0 25px 50px rgba(7, 19, 37, 0.12), var(--shadow-blue-glow);
  border-color: var(--blue-royal);
}

.card-media { position: relative; height: 260px; overflow: hidden; }

.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out-cubic), opacity 0.5s ease;
}

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

.card-badge {
  position: absolute; top: 1.1rem; left: 1.1rem;
  background: var(--blue-dark); color: #ffffff;
  border: 1px solid var(--blue-royal);
  padding: 0.45rem 1.1rem; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; z-index: 5;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.card-quickview-btn {
  position: absolute; bottom: 1.1rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--blue-gradient-light);
  color: #ffffff; font-size: 0.82rem; font-weight: 800;
  padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  border: none; cursor: pointer; z-index: 5;
  transition: all 0.35s var(--ease-spring);
  box-shadow: var(--shadow-blue-glow);
  white-space: nowrap;
}

.property-card:hover .card-quickview-btn {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.fav-btn {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: all var(--transition-fast);
}

.fav-btn.active, .fav-btn:hover {
  color: #f43f5e; border-color: #f43f5e; background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
}

.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }

.card-price {
  font-size: 1.85rem; font-weight: 900; color: var(--blue-royal);
  margin-bottom: 0.5rem; font-family: 'Cinzel', serif;
}

.card-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem;
  line-height: 1.35; color: var(--blue-dark);
  font-family: 'Outfit', sans-serif;
}

.card-title a:hover { color: var(--blue-royal); }

.card-specs {
  display: flex; gap: 1.25rem; padding-top: 1.2rem;
  margin-top: auto; border-top: 1px solid var(--border-light);
  font-size: 0.88rem; color: var(--text-muted); font-weight: 600;
}

/* QUICK VIEW GLASS MODAL IN ROYAL BLUE & WHITE */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7, 19, 37, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out-cubic);
}

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

.modal-content {
  background: #ffffff;
  border: 2px solid var(--blue-royal);
  border-radius: var(--radius-lg);
  max-width: 920px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-blue-glow);
  position: relative;
  transform: scale(0.88) translateY(30px);
  transition: transform 0.4s var(--ease-spring);
}

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

.modal-close-btn {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-dark); color: #ffffff;
  border: 1px solid var(--blue-royal); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; z-index: 10; transition: transform 0.3s ease;
}

.modal-close-btn:hover { transform: scale(1.15) rotate(90deg); }

/* MOBILE DRAWER IN BLUE & WHITE */
.mobile-hamburger-btn {
  display: none; background: var(--blue-ice);
  border: 1px solid var(--blue-royal); color: var(--blue-dark);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  font-size: 1.25rem; cursor: pointer; align-items: center; justify-content: center;
}

.mobile-drawer-overlay {
  position: fixed; top: 0; right: 0;
  width: 340px; max-width: 88vw; height: 100vh;
  background: var(--blue-dark); color: #ffffff;
  z-index: 20000; padding: 2.25rem 1.75rem;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out-cubic), visibility 0.4s;
  display: flex; flex-direction: column; gap: 1.75rem; overflow-y: auto;
}

.mobile-drawer-overlay.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* FOOTER IN ROYAL BLUE NAVY & WHITE */
.site-footer {
  background: var(--blue-dark);
  color: var(--text-light-muted);
  padding: 5rem 0 2.25rem;
  border-top: 1.5px solid var(--border-blue-glow);
  position: relative;
}

.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-heading { color: #ffffff; font-size: 1.1rem; font-weight: 700; font-family: 'Cinzel', serif; margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a:hover { color: var(--blue-accent); padding-left: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; margin-top: 3.5rem; display: flex; justify-content: space-between; font-size: 0.85rem; }

/* RICH KEYFRAMES & MOTION ENGINE */
@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes spinOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatAnim1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

@keyframes floatAnim2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(14px); }
}

@keyframes buttonShimmer {
  0% { left: -100%; }
  30%, 100% { left: 100%; }
}

@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 30px rgba(96, 165, 250, 0.8); }
}

.heart-pop {
  animation: heartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.floating-badge {
  animation: floatAnim1 4s ease-in-out infinite, badgeGlow 3s ease-in-out infinite;
}

/* FLOATING WHATSAPP & CALL ACTION BUTTONS WITH PULSING GLOW (RIGHT BOTTOM CORNER) */
.floating-action-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999;
  align-items: center;
}

.floating-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.35rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-action-btn i {
  transform: none !important;
}

.floating-action-btn.call-btn {
  background: linear-gradient(135deg, #005ca8, #0078db);
}

.floating-action-btn.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-action-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.7;
  animation: pulseRing 2.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  pointer-events: none;
}

.floating-action-btn:hover {
  transform: scale(1.18) translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVE */
.n99-search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 140px;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

/* COMPREHENSIVE 100% MOBILE FRIENDLY RESPONSIVE ENGINE */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-hamburger-btn { display: flex; }
  .site-header { top: 0; }
  .floating-element { display: none; }
  .hero-title { font-size: 2.3rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .custom-cursor-dot, .custom-cursor-ring { display: none !important; }
}

@media (max-width: 850px) {
  .n99-search-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .hero-section { padding: 4rem 0 3rem !important; min-height: auto !important; }
  .hero-title { font-size: 1.75rem !important; line-height: 1.3 !important; }
  .hero-title + p { font-size: 0.95rem !important; }
  
  .inPageSearchBox { padding: 1rem !important; border-radius: 12px !important; }
  .inPageSearchBox div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  .inPageSearchBox div[style*="border-right"] {
    border-right: none !important;
    border-bottom: 1px solid #ebecf0 !important;
    padding-right: 0 !important;
    padding-bottom: 0.75rem !important;
  }
  
  .search-tabs {
    gap: 0.5rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.75rem !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    width: 100% !important;
  }
  .search-tabs button {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.5rem !important;
    white-space: nowrap !important;
  }
  
  .property-grid, .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
  }
  
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; width: 100% !important; }

  /* Universal zero overflow protection for mobile viewports */
  div, section, header, footer, form, input, select, textarea, button, h1, h2, h3, p {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Touch target sizes & no-zoom inputs on iOS */
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* HIGH ENERGY ULTRA-LUXURY EYE-POPPING ANIMATION ENGINE */
.hover-lift, .property-card, .glass-panel {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.hover-lift:hover, .property-card:hover, .glass-panel:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 22px 50px rgba(0, 120, 219, 0.28), 0 0 25px rgba(96, 165, 250, 0.45) !important;
  border-color: #0078db !important;
}

/* HIGH-SPEED GLASS LIGHT SWEEP SHIMMER ON HOVER */
.property-card::after, .hover-lift::after, .glass-panel::after {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  transition: all 0.75s ease;
  opacity: 0;
  pointer-events: none;
}

.property-card:hover::after, .hover-lift:hover::after, .glass-panel:hover::after {
  opacity: 1;
  top: 150%;
  left: 150%;
}

/* IMAGE ULTRA ZOOM & COLOR GLOW ON HOVER */
.property-card:hover .card-img, .hover-lift:hover img {
  transform: scale(1.1) !important;
  filter: brightness(1.05) contrast(1.04) !important;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1), filter 0.35s ease !important;
}

/* BUTTONS ELECTRIC SHIMMER & SPRING POP */
button, .btn, .n99-login-btn, .n99-nav a, .tab-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

button:hover, .btn:hover, .n99-login-btn:hover, .tab-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 25px rgba(0, 120, 219, 0.4) !important;
}

/* ICON SPRING VIBRATION POP ON HOVER */
a:hover i, button:hover i, .hover-lift:hover i, .property-card:hover i {
  transform: scale(1.2) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* NEON BADGE GLOWING PULSE */
.card-badge, .n99-free-tag {
  box-shadow: 0 0 12px rgba(0, 120, 219, 0.6);
  animation: badgeNeonGlow 2.5s ease-in-out infinite alternate;
}

@keyframes badgeNeonGlow {
  0% { box-shadow: 0 0 6px rgba(0, 120, 219, 0.4); }
  100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.9), 0 0 30px rgba(0, 120, 219, 0.4); }
}

/* GLOWING INPUT FOCUS */
input:focus, select:focus, textarea:focus {
  border-color: #0078db !important;
  box-shadow: 0 0 18px rgba(0, 120, 219, 0.35) !important;
}

/* STRICT BULLETPROOF CATEGORY SCROLL SLIDER SYSTEM */
.n99-cat-scroll-container {
  display: flex !important;
  gap: 1.25rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0.75rem 0.25rem 1.25rem !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-behavior: smooth !important;
  width: 100% !important;
  align-items: stretch !important;
}

.n99-cat-scroll-container::-webkit-scrollbar {
  display: none !important;
}

.n99-cat-item-card {
  flex: 0 0 160px !important;
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 145px !important;
  min-height: 145px !important;
  max-height: 145px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

.n99-cat-item-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 120, 219, 0.18) !important;
  border-color: #0078db !important;
}

.n99-cat-img-box {
  width: 100% !important;
  height: 95px !important;
  min-height: 95px !important;
  max-height: 95px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #f8fafc !important;
  flex-shrink: 0 !important;
}

.n99-cat-img-box img {
  width: 100% !important;
  height: 100% !important;
  max-height: 95px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.n99-badge-new {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 0.6rem !important;
  font-weight: 900 !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  z-index: 5 !important;
}

.n99-cat-label {
  padding: 0.5rem 0.35rem !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #041533 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  background: #ffffff !important;
}

/* GENTLE SUBTLE FLOATING ACTION BUTTON HOVER - ZERO OVERFLOW */
.floating-action-container {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  z-index: 99999 !important;
  align-items: center !important;
}

.floating-action-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 0.98rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  text-decoration: none !important;
  position: relative !important;
  transition: all 0.2s ease-in-out !important;
  border: none !important;
  cursor: pointer !important;
}

.floating-action-btn::before {
  display: none !important;
}

.floating-action-btn:hover {
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}
