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

:root {
  --font-primary: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body, html, input, button, select, textarea,
h1, h2, h3, h4, h5, h6, p, div, li, label, table, th, td,
.btn, .serif-font, .brand-font, .n99-logo-text, .n99-accent, .card-title, .card-price, .footer-heading {
  font-family: var(--font-primary);
}

/* Explicit FontAwesome Icon Protection */
i, .fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

:root {
  --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);

  --font-primary: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --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;
}

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

h1, h2, h3, h4, h5, h6, .serif-font, .brand-font {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

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

.custom-cursor-dot, .custom-cursor-ring {
  display: none !important;
}

#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-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: 1360px !important; margin: 0 auto; padding: 0 1.5%; }
.n99-header-container { width: 100% !important; max-width: 1400px !important; margin: 0 auto; padding: 0 1rem !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 0.5rem !important; box-sizing: border-box !important; overflow: hidden !important; }
.inPageSearchBox { width: 90% !important; max-width: 520px !important; margin: 0 auto !important; }

/* 99ACRES ULTRA-LUXURY NAVBAR SYSTEM (STRICT ZERO OVERFLOW & 100% RESPONSIVE) */
.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-sticky-search-dock {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 0.25rem 0.4rem 0.25rem 0.85rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  max-width: 280px !important;
  width: 100% !important;
  margin: 0 0.5rem !important;
  flex: 0 1 280px !important;
  min-width: 0 !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 !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

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

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

.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.25rem 0.55rem;
  color: #ffffff;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

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

.n99-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  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 !important;
  align-items: center !important;
  gap: 0.4rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.n99-post-free-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.n99-seo-tag {
  background: #fbbf24;
  color: #041533;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  text-transform: uppercase;
  margin-left: 2px;
}

.n99-admin-btn {
  background: #22c55e;
  color: #ffffff;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.n99-fav-icon {
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.3rem 0.4rem;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.n99-login-btn {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0.32rem 0.65rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

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

.n99-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.n99-hamburger:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

@media (max-width: 992px) {
  .n99-post-free-btn { display: none !important; }
  .n99-sticky-search-dock { max-width: 200px !important; flex: 0 1 200px !important; }
}

@media (max-width: 640px) {
  .n99-header { height: 62px !important; }
  .n99-header-container { padding: 0 0.5rem !important; gap: 0.25rem !important; }
  .n99-logo-text { font-size: 1.05rem !important; }
  .n99-city-selector { padding: 0.18rem 0.35rem !important; font-size: 0.72rem !important; }
  .n99-city-selector select { font-size: 0.72rem !important; max-width: 95px !important; }
  .n99-sticky-search-dock { display: none !important; }
  .n99-login-btn .login-text { display: none !important; }
  .n99-login-btn { padding: 0.35rem 0.45rem !important; font-size: 0.85rem !important; }
  .n99-hamburger { padding: 0.3rem 0.45rem !important; font-size: 1.05rem !important; }
}

/* MOBILE NAVIGATION DRAWER & BACKDROP */
.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-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 37, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999998 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: fixed; top: 0; right: 0;
  width: 320px; max-width: 85vw; height: 100vh;
  background: #071325; color: #ffffff;
  z-index: 999999 !important; padding: 2rem 1.5rem;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), visibility 0.35s;
  display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto;
  box-sizing: border-box;
}

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

/* COMPREHENSIVE 100% MOBILE FRIENDLY RESPONSIVE ENGINE */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem !important;
    min-height: auto !important;
  }
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.3 !important;
  }
  .property-grid, .grid-3, .grid-4, .n99-search-grid {
    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 !important;
    gap: 1rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  input, select, textarea {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
