/* Color Palette System (Dark & Light) */
:root[data-theme="dark"] {
  --bg-nav: rgba(13, 27, 23, 0.85);
  --bg-dropdown: #0D241E;
  --bg-card: #13332A;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-green: #00F5D4;
  --accent-gold: #D4AF37;
  --border-color: rgba(255, 255, 255, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  --bg-nav: rgba(255, 255, 255, 0.90);
  --bg-dropdown: #FFFFFF;
  --bg-card: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --accent-green: #0D3B2E;
  --accent-gold: #B38F2A;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix navbar overflow container */
.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: hidden; /* Stops off-screen children from expanding page width */
}

/* Sticky Navbar Base */
.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Nav Item Elements */
.nav-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  text-decoration: none;
  /* z-index: 100000000000000000000000000000000000000000000000000000000000000; */
}

.nav-item:hover {
  color: var(--accent-green);
  background: rgba(255, 255, 255, 0.05);
}

.search-trigger-btn {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
}

/* Mega Menus Dropdown Styling */
.dropdown-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-dropdown);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 40px var(--shadow-color);
  padding: 1.8rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.dropdown-item.active .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.mega-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 700;
}

.close-dropdown-btn, .close-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.close-dropdown-btn:hover, .close-search-btn:hover {
  color: var(--text-main);
}

.mega-grid {
  display: grid;
  gap: 2rem;
}

.three-columns { grid-template-columns: repeat(3, 220px); }
.two-columns { grid-template-columns: repeat(2, 220px); }

.mega-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.mega-col h4.mt-section {
  margin-top: 1.2rem;
}

.mega-col ul {
  list-style: none;
  padding: 0;
}

.mega-col li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.mega-col li a:hover {
  color: var(--accent-green);
}

/* Search Modal Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  padding-top: 5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  z-index: 100000000000000000000000000000000000000000000000000000000000;
}

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

.search-box-card {
  background: var(--bg-dropdown);
  width: 90%;
  max-width: 750px;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  height: fit-content;
  max-height: 80vh;
  overflow-y: auto;
}

.search-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--text-muted);
}

.search-input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.search-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
  font-weight: 600;
}

.search-results-container {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  min-height: 100px;
}

.search-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  gap: 0.4rem;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
  color: #000;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- FIXED STICKY NAVBAR STYLES --- */

.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Keeps Left Logo, Center Nav, Right Actions separated */
}

/* Brand Logo */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

/* Center Menu Links & Triggers */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Reset ALL Button Defaults for Nav Items */
.nav-item, 
.dropdown-trigger {
  all: unset; /* Completely clears standard browser button borders/backgrounds */
  box-sizing: border-box;
  color: #58b99d;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-item:hover, 
.dropdown-trigger:hover {
  background: rgba(13, 59, 46, 0.08);
  color: #0D3B2E;
}

/* Search Trigger Button */
.search-trigger-btn {
  border: 1.5px solid rgba(13, 59, 46, 0.2);
  background: transparent;
}

.search-trigger-btn:hover {
  border-color: #0D3B2E;
}

/* Arrow rotation indicator */
.arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown-item.active .arrow {
  transform: rotate(180deg);
}

/* --- RIGHT SIDE ACTIONS (THEME TOGGLE + CONTACT US) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem; /* Creates clean horizontal breathing room */
}

/* Theme Switcher Pill */
.theme-toggle-btn {
  all: unset;
  box-sizing: border-box;
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
  background: #E2E8F0;
}

/* Contact Us Button */
.nav-cta-btn {
  background: linear-gradient(135deg, #0D3B2E 0%, #8C7323 100%);
  color: #FFFFFF !important;
  padding: 0.65rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap; /* Prevents text wrapping */
  box-shadow: 0 4px 15px rgba(13, 59, 46, 0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 59, 46, 0.35);
}

/* --- MOBILE SIDEBAR & TOGGLE STYLES --- */

/* Hide hamburger and close button on desktop */
.mobile-toggle-btn,
.close-sidebar-btn {
  display: none;
}

/* Dark Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.sidebar-backdrop.active {
  display: block;
}

/* Mobile & Tablet Styles (Screens under 992px) */
@media (max-width: 992px) {

  .nav-container{
    /* z-index: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; */
  }

  header{
    z-index: 10000;
  }
  
  /* Show Hamburger Button on Header */
  .mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
  }

  .mobile-toggle-btn .bar {
    width: 24px;
    height: 2.5px;
    background-color: #498b78;
    border-radius: 2px;
  }

  /* Show Close 'X' Button inside Sidebar */
  .close-sidebar-btn {
    display: block;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #0D3B2E;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 1rem;
  }

  /* Transform .nav-menu into a Right-Sliding Sidebar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off the right edge */
    width: 82%;
    max-width: 340px;
    height: 100vh;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    z-index: 999;
    
    /* Layout inside sidebar */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.8rem;
    gap: 1.2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    
    /* Smooth slide animation */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  /* Active class when toggled */
  .nav-menu.mobile-active {
    right: 0; /* Slides into view */
  }

  /* Full width items inside mobile sidebar */
  .nav-menu .nav-item, 
  .nav-menu .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
  }

  /* Mega menu dropdown adaptation inside sidebar */
  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    box-shadow: none;
    border: none;
    padding: 0.8rem 0;
    display: none;
    width: 100%;
  }

  .dropdown-item.active .mega-menu {
    display: block;
  }

  .mega-grid {
    grid-template-columns: 1fr !important;
  }
}
/* --- MOBILE SIDEBAR & FULL-WIDTH DROPDOWN ACCORDIONS --- */

@media (max-width: 992px) {
  
  /* Ensure the sidebar menu takes proper width */
  .nav-menu {
    z-index: 9999;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px; /* Slightly wider drawer for comfortable tap targets */
    height: 100vh;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem 1.2rem; /* Reduced horizontal padding to give mega-menu max room */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Forces all items inside to fill 100% width */
    gap: 0.8rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  /* Make Dropdown Item Containers stretch 100% width */
  .dropdown-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Dropdown Trigger Buttons */
  .dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(13, 59, 46, 0.04);
    border-radius: 10px;
  }

  /* --- MEGA MENU ACCORDION BOX (PROPERTIES & AGENTS) --- */
  .mega-menu {
    position: static !important; /* Disables absolute/desktop positioning */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    box-shadow: none !important;
    border: 1px solid rgba(13, 59, 46, 0.12) !important;
    border-radius: 12px;
    background: #F8FAFC !important; /* Subtle contrast background */
    padding: 1.2rem 1rem !important;
    margin-top: 0.5rem;
    width: 100% !important; /* Force full width inside sidebar */
    box-sizing: border-box !important;
    display: none; /* Controlled by accordion click */
  }

  /* Show when dropdown parent is active */
  .dropdown-item.active .mega-menu {
    display: block !important;
  }

  /* Hide redundant desktop close button inside mobile mega menu */
  .mega-header .close-dropdown-btn {
    display: none !important;
  }

  .mega-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
  }

  .mega-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8C7323; /* Accent Gold color */
    font-weight: 800;
  }

  /* Reset Mega Grid Layout to Single-Column Full Width */
  .mega-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    width: 100% !important;
  }

  .mega-col {
    width: 100% !important;
  }

  .mega-col h4 {
    font-size: 0.9rem;
    color: #0D3B2E;
    margin-bottom: 0.5rem;
    font-weight: 700;
    border-left: 3px solid #0D3B2E;
    padding-left: 0.5rem;
  }

  .mega-col ul {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mega-col ul li a {
    text-decoration: none;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.2s;
  }

  .mega-col ul li a:hover {
    color: #0D3B2E;
  }
}

/* ================= HERO SECTION STYLES ================= */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
  background: #080D1A; /* Dark fallback background */
}

/* --- Slideshow Engine --- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease-in-out, transform 7s ease;
}

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

.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(8, 13, 26, 0.65) 0%, 
    rgba(13, 59, 46, 0.75) 100%
  );
  z-index: 2;
}

/* --- Dynamic Location Pin Badge --- */
.location-badge-container {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 36, 30, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: all 0.4s ease;
}

.location-badge svg {
  color: #8C7323; /* Gold Icon */
}

.location-divider {
  opacity: 0.4;
}

.property-title-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Hero Center Content --- */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #00F5D4;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00F5D4;
  border-radius: 50%;
  box-shadow: 0 0 10px #00F5D4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 245, 212, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}

/* --- Floating Glassmorphic Search Engine --- */
.hero-search-card {
  background: rgba(13, 36, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
  margin-bottom: 2.5rem;
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.search-tabs .tab-btn {
  all: unset;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.search-tabs .tab-btn.active,
.search-tabs .tab-btn:hover {
  background: #0D3B2E;
  border: 1px solid #8C7323;
  color: #FFFFFF;
  z-index: 1000000000000000000000000;
}

.search-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 1rem;
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #8C7323; /* Accent Gold */
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #8C7323;
}

.form-group select option {
  background: #0D241E;
  color: #FFFFFF;
}

.hero-search-submit {
  all: unset;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0D3B2E 0%, #8C7323 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(140, 115, 35, 0.4);
}

/* --- Proof & Trust Bar --- */
.hero-trust-bar {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.8rem 2rem;
  border-radius: 50px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.trust-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Slide Dots Indicators --- */
.slide-indicators {
  position: absolute;
  bottom: 1.2rem;
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.slide-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicators .indicator.active {
  background: #8C7323;
  width: 28px;
  border-radius: 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .search-form-grid {
    grid-template-columns: 1fr;
  }

  .location-badge-container {
    top: 1rem;
    right: 1rem;
  }

  .hero-trust-bar {
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }
}

/* ================= BRAND INTRO SECTION ================= */

/* Default Light Mode Styles */
.brand-intro-section {
  padding: 6rem 2rem;
  background-color: var(--bg-main, #FFFFFF);
  color: var(--text-main, #0D241E);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.brand-intro-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.brand-intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8C7323; /* Accent Gold */
  font-weight: 800;
  margin-bottom: 0.8rem;
}

/* Heading & Paragraph (Light Mode default) */
.brand-intro-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.gold-accent-line {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #8C7323 0%, #D4AF37 100%);
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

.brand-intro-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted, #475569);
  margin-bottom: 2.2rem;
  transition: color 0.4s ease;
}

.brand-intro-description strong {
  color: var(--heading-color, #0D3B2E);
  transition: color 0.4s ease;
}

/* CTA Buttons */
.brand-intro-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.primary-gold-btn {
  background: linear-gradient(135deg, #0D3B2E 0%, #8C7323 100%);
  color: #FFFFFF !important;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(13, 59, 46, 0.2);
  transition: all 0.3s ease;
}

.primary-gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(140, 115, 35, 0.35);
}

.secondary-outline-btn {
  color: var(--heading-color, #0D3B2E);
  border: 1.5px solid var(--heading-color, #0D3B2E);
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.secondary-outline-btn:hover {
  background: rgba(13, 59, 46, 0.08);
}

/* Image Frame */
.brand-intro-media {
  position: relative;
}

.media-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.4s ease;
}

.brand-featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.media-frame:hover .brand-featured-img {
  transform: scale(1.03);
}

.media-overlay-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(13, 36, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #D4AF37;
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 140px;
}


/* ================= ALL DARK MODE TARGETS ================= */
/* 
   Covers HTML data-theme="dark", 
   body.dark-mode, html.dark-mode, body.dark, and html.dark 
*/

[data-theme="dark"] .brand-intro-section,
body.dark-mode .brand-intro-section,
html.dark-mode .brand-intro-section,
body.dark .brand-intro-section,
html.dark .brand-intro-section {
  background-color: #080D1A !important;
}

[data-theme="dark"] .brand-intro-title,
body.dark-mode .brand-intro-title,
html.dark-mode .brand-intro-title,
body.dark .brand-intro-title,
html.dark .brand-intro-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .brand-intro-description,
body.dark-mode .brand-intro-description,
html.dark-mode .brand-intro-description,
body.dark .brand-intro-description,
html.dark .brand-intro-description {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .brand-intro-description strong,
body.dark-mode .brand-intro-description strong,
html.dark-mode .brand-intro-description strong,
body.dark .brand-intro-description strong,
html.dark .brand-intro-description strong {
  color: #FFFFFF !important;
}

[data-theme="dark"] .secondary-outline-btn,
body.dark-mode .secondary-outline-btn,
html.dark-mode .secondary-outline-btn,
body.dark .secondary-outline-btn,
html.dark .secondary-outline-btn {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .secondary-outline-btn:hover,
body.dark-mode .secondary-outline-btn:hover,
html.dark-mode .secondary-outline-btn:hover,
body.dark .secondary-outline-btn:hover,
html.dark .secondary-outline-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #8C7323 !important;
}

[data-theme="dark"] .media-frame,
body.dark-mode .media-frame,
html.dark-mode .media-frame,
body.dark .media-frame,
html.dark .media-frame {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .brand-intro-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .brand-featured-img {
    height: 380px;
  }
}

/* ================= STORY & NETWORK SECTION ================= */

.story-network-section {
  padding: 6rem 2rem;
  background-color: var(--bg-main, #FFFFFF);
  color: var(--text-main, #0D241E);
  transition: background-color 0.4s ease, color 0.4s ease;
  border-top: 1px solid rgba(13, 59, 46, 0.08);
}

.story-network-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- TOP GRID: Story Left + Stats Right --- */
.story-top-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

/* Story Left Column */
.story-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8C7323; /* Accent Gold */
  font-weight: 800;
  display: block;
  margin-bottom: 0.8rem;
}

.story-main-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 1.2rem;
  transition: color 0.4s ease;
}

.story-gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8C7323 0%, #D4AF37 100%);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.story-body-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted, #475569);
  margin-bottom: 2rem;
  transition: color 0.4s ease;
}

.story-body-text strong {
  color: var(--heading-color, #0D3B2E);
  transition: color 0.4s ease;
}

/* Technical Link Arrow */
.story-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #8C7323;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.story-link-arrow:hover {
  gap: 1rem;
  color: #0D3B2E;
}

.story-link-arrow .arrow-icon {
  transition: transform 0.3s ease;
}

.story-link-arrow:hover .arrow-icon {
  transform: translateX(4px);
}

/* Stats Right Column */
.story-right-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.stat-big-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  font-weight: 700;
  color: var(--heading-color, #0D3B2E);
  line-height: 1;
  margin-bottom: 0.4rem;
  transition: color 0.4s ease;
}

.stat-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8C7323;
  margin-bottom: 0.3rem;
}

.stat-cities {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 0.4rem;
  transition: color 0.4s ease;
}

.stat-line-divider {
  width: 100%;
  height: 1px;
  background: rgba(13, 59, 46, 0.12);
  margin-top: 1.2rem;
  transition: background-color 0.4s ease;
}

/* --- SECTION TECHNICAL FULL DIVIDER LINE --- */
.section-full-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(140, 115, 35, 0.3) 50%, transparent 100%);
  margin: 1rem 0 4rem;
}

/* --- BOTTOM GRID: 2 Sub-Cards --- */
.story-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.feature-subcard {
  position: relative;
  background: rgba(13, 59, 46, 0.03);
  border: 1px solid rgba(13, 59, 46, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.4s ease;
}

.feature-subcard:hover {
  transform: translateY(-4px);
  border-color: #8C7323;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.subcard-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8C7323;
  display: block;
  margin-bottom: 0.8rem;
}

.subcard-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 0.8rem;
  transition: color 0.4s ease;
}

.subcard-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted, #475569);
  margin-bottom: 1.8rem;
  transition: color 0.4s ease;
}

.subcard-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading-color, #0D3B2E);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.subcard-explore-btn:hover {
  gap: 0.9rem;
  color: #8C7323;
}

.subcard-explore-btn .arrow-icon {
  transition: transform 0.3s ease;
}

.subcard-explore-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Bottom Gold Line Highlight on Hover */
.subcard-accent-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0D3B2E 0%, #8C7323 100%);
  transition: width 0.4s ease;
}

.feature-subcard:hover .subcard-accent-border {
  width: 100%;
}


/* ================= ALL DARK MODE TARGETS ================= */

[data-theme="dark"] .story-network-section,
body.dark-mode .story-network-section,
html.dark-mode .story-network-section,
body.dark .story-network-section,
html.dark .story-network-section {
  background-color: #080D1A !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .story-main-heading,
[data-theme="dark"] .stat-big-number,
[data-theme="dark"] .subcard-title,
body.dark-mode .story-main-heading,
body.dark-mode .stat-big-number,
body.dark-mode .subcard-title,
html.dark-mode .story-main-heading,
html.dark-mode .stat-big-number,
html.dark-mode .subcard-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .story-body-text,
[data-theme="dark"] .subcard-desc,
body.dark-mode .story-body-text,
body.dark-mode .subcard-desc,
html.dark-mode .story-body-text,
html.dark-mode .subcard-desc {
  color: rgba(255, 255, 255, 0.72) !important;
}

[data-theme="dark"] .story-body-text strong,
[data-theme="dark"] .stat-cities,
body.dark-mode .story-body-text strong,
body.dark-mode .stat-cities {
  color: #D4AF37 !important;
}

[data-theme="dark"] .stat-line-divider,
body.dark-mode .stat-line-divider {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .feature-subcard,
body.dark-mode .feature-subcard {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .feature-subcard:hover,
body.dark-mode .feature-subcard:hover {
  border-color: #8C7323 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .story-link-arrow:hover,
[data-theme="dark"] .subcard-explore-btn,
body.dark-mode .story-link-arrow:hover,
body.dark-mode .subcard-explore-btn {
  color: #FFFFFF !important;
}

[data-theme="dark"] .subcard-explore-btn:hover,
body.dark-mode .subcard-explore-btn:hover {
  color: #D4AF37 !important;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .story-top-grid, 
  .story-bottom-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ================= EXCLUSIVE LOCAL EXPERTS SECTION ================= */

.experts-section {
  position: relative;
  /* Deep Luxury Navy background by default for contrast, matching reference */
  background-color: #061826; 
  color: #FFFFFF;
  padding: 6rem 2rem 7rem;
  /* margin-top: 100px; Leave breathing space for image overlap */
  transition: background-color 0.4s ease, color 0.4s ease;
}

.experts-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

/* --- Left Column & Overlap Magic --- */
.experts-media-col {
  position: relative;
  z-index: 20; /* Pulls image above the previous section */
}

.experts-image-wrapper {
  position: relative;
  margin-top: -140px; /* Pulls the image 140px into the section above */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  background: #080D1A;
  
  /* Initial State for Scroll Animation */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Active Trigger Class */
.experts-image-wrapper.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.experts-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.experts-image-wrapper:hover .experts-img {
  transform: scale(1.03);
}

.experts-media-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: rgba(13, 36, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  color: #D4AF37; /* Accent Gold */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Right Column Typography --- */
.experts-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1rem;
}

.experts-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #D4AF37; /* Gold */
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.experts-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  font-family: inherit;
}

.experts-gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8C7323 0%, #D4AF37 100%);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.experts-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}

.experts-description strong {
  color: #D4AF37;
}

.experts-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: #D4AF37;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.experts-cta-btn:hover {
  gap: 1rem;
  color: #FFFFFF;
}

.experts-cta-btn svg {
  transition: transform 0.3s ease;
}

.experts-cta-btn:hover svg {
  transform: translateX(4px);
}


/* ================= ALL DARK / LIGHT MODE TARGETS ================= */

/* Light Mode Overrides (if background needs to adapt cleanly) */
[data-theme="light"] .experts-section,
body.light-mode .experts-section {
  background-color: #0D241E !important; /* Deep Milagro Forest Green for Light Mode */
}

/* Dark Mode Overrides */
[data-theme="dark"] .experts-section,
body.dark-mode .experts-section,
html.dark-mode .experts-section,
body.dark .experts-section {
  background-color: #050B14 !important; /* Ultra-deep obsidian navy for dark mode */
}


/* ================= MOBILE VIEW RESPONSIVENESS ================= */

@media (max-width: 992px) {
  .experts-section {
    margin-top: 0; /* Remove top offset on mobile to prevent overflow bugs */
    padding: 4rem 1.5rem;
  }

  .experts-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .experts-image-wrapper {
    margin-top: -60px; /* Reduced gentle overlap for mobile screen height */
  }

  .experts-img {
    height: 340px; /* Compact height for mobile */
  }
}

/* ================= CURATED LIFESTYLES & INSIGHTS SECTION ================= */

.lifestyles-section {
  padding: 6rem 2rem;
  background-color: var(--bg-main, #FFFFFF);
  color: var(--text-main, #0D241E);
  transition: background-color 0.4s ease, color 0.4s ease;
  border-top: 1px solid rgba(13, 59, 46, 0.08);
}

.lifestyles-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Header Section --- */
.lifestyles-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lifestyles-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--heading-color, #0D3B2E);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  transition: color 0.4s ease;
}

.lifestyles-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted, #475569);
  margin-bottom: 2rem;
  max-width: 680px;
  transition: color 0.4s ease;
}

.lifestyles-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading-color, #0D3B2E);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--heading-color, #0D3B2E);
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lifestyles-main-link:hover {
  gap: 1rem;
  color: #8C7323; /* Accent Gold */
  border-color: #8C7323;
}

.lifestyles-main-link .arrow-icon {
  transition: transform 0.3s ease;
}

.lifestyles-main-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* --- 3-Column Grid --- */
.lifestyles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.lifestyle-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  group: card;
}

.card-image-wrapper {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  background-color: rgba(13, 59, 46, 0.05);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lifestyle-card:hover .card-img {
  transform: scale(1.06);
}

.card-content {
  text-align: center;
  padding: 0 0.5rem;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.lifestyle-card:hover .card-title {
  color: #8C7323; /* Gold highlight on card hover */
}

.card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted, #64748B);
  transition: color 0.4s ease;
}


/* ================= ALL DARK MODE TARGETS ================= */

[data-theme="dark"] .lifestyles-section,
body.dark-mode .lifestyles-section,
html.dark-mode .lifestyles-section,
body.dark .lifestyles-section {
  background-color: #080D1A !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .lifestyles-title,
[data-theme="dark"] .card-title,
body.dark-mode .lifestyles-title,
body.dark-mode .card-title,
html.dark-mode .lifestyles-title,
html.dark-mode .card-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .lifestyles-subtitle,
[data-theme="dark"] .card-desc,
body.dark-mode .lifestyles-subtitle,
body.dark-mode .card-desc,
html.dark-mode .lifestyles-subtitle,
html.dark-mode .card-desc {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .lifestyles-main-link,
body.dark-mode .lifestyles-main-link {
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

[data-theme="dark"] .lifestyles-main-link:hover,
body.dark-mode .lifestyles-main-link:hover {
  color: #D4AF37 !important;
  border-color: #D4AF37 !important;
}

[data-theme="dark"] .lifestyle-card:hover .card-title,
body.dark-mode .lifestyle-card:hover .card-title {
  color: #D4AF37 !important;
}

[data-theme="dark"] .card-image-wrapper,
body.dark-mode .card-image-wrapper {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}


/* ================= MOBILE & TABLET RESPONSIVENESS ================= */

@media (max-width: 992px) {
  .lifestyles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .lifestyles-section {
    padding: 4rem 1.25rem;
  }

  .lifestyles-header {
    margin-bottom: 3rem;
  }

  .lifestyles-grid {
    grid-template-columns: 1fr; /* Single column stack for mobile view */
    gap: 2.5rem;
  }

  .card-image-wrapper {
    height: 260px; /* Slightly shorter image frames for small screens */
  }
}

/* ================= POPULAR DISCOVERY & ABOUT SECTION ================= */

.discovery-about-section {
  padding: 6rem 2rem 5rem;
  background-color: var(--bg-main, #FFFFFF);
  color: var(--text-main, #0D241E);
  transition: background-color 0.4s ease, color 0.4s ease;
  border-top: 1px solid rgba(13, 59, 46, 0.08);
}

.discovery-about-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- 3-Column Discovery Grid --- */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.discovery-col {
  display: flex;
  flex-direction: column;
}

.discovery-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 0.3rem;
  transition: color 0.4s ease;
}

.discovery-subheading {
  font-size: 0.88rem;
  color: var(--text-muted, #64748B);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

/* List Styling */
.discovery-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discovery-link {
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--heading-color, #0D3B2E);
  font-weight: 500;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.discovery-link:hover {
  color: #8C7323; /* Accent Gold */
  padding-left: 4px;
}

/* Technical See All Link */
.see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #8C7323;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s ease, color 0.3s ease;
}

.see-all-btn:hover {
  gap: 0.8rem;
  color: var(--heading-color, #0D3B2E);
}

.see-all-btn .arrow-icon {
  transition: transform 0.3s ease;
}

.see-all-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* --- Technical Section Divider --- */
.section-full-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(140, 115, 35, 0.3) 50%, transparent 100%);
  margin: 1rem 0 4rem;
}

/* --- About Milagro Corporate Box --- */
.about-brand-box {
  background: rgba(13, 59, 46, 0.03);
  border: 1px solid rgba(13, 59, 46, 0.08);
  border-radius: 16px;
  padding: 3rem;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.about-brand-header {
  margin-bottom: 1.5rem;
}

.about-brand-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8C7323;
  display: block;
  margin-bottom: 0.5rem;
}

.about-brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--heading-color, #0D3B2E);
  transition: color 0.4s ease;
}

.about-brand-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-brand-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted, #475569);
  transition: color 0.4s ease;
}

.about-brand-body strong {
  color: var(--heading-color, #0D3B2E);
  transition: color 0.4s ease;
}


/* ================= ALL DARK MODE TARGETS ================= */

[data-theme="dark"] .discovery-about-section,
body.dark-mode .discovery-about-section,
html.dark-mode .discovery-about-section,
body.dark .discovery-about-section {
  background-color: #080D1A !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .discovery-heading,
[data-theme="dark"] .discovery-link,
[data-theme="dark"] .about-brand-title,
body.dark-mode .discovery-heading,
body.dark-mode .discovery-link,
body.dark-mode .about-brand-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .discovery-subheading,
[data-theme="dark"] .about-brand-body p,
body.dark-mode .discovery-subheading,
body.dark-mode .about-brand-body p {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .about-brand-body strong,
body.dark-mode .about-brand-body strong {
  color: #D4AF37 !important;
}

[data-theme="dark"] .discovery-link:hover,
body.dark-mode .discovery-link:hover {
  color: #D4AF37 !important;
}

[data-theme="dark"] .see-all-btn,
body.dark-mode .see-all-btn {
  color: #D4AF37 !important;
}

[data-theme="dark"] .see-all-btn:hover,
body.dark-mode .see-all-btn:hover {
  color: #FFFFFF !important;
}

[data-theme="dark"] .about-brand-box,
body.dark-mode .about-brand-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}


/* ================= MOBILE & TABLET RESPONSIVENESS ================= */

@media (max-width: 992px) {
  .discovery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .discovery-about-section {
    padding: 4rem 1.25rem 3.5rem;
  }

  .discovery-grid {
    grid-template-columns: 1fr; /* Stack vertically on small mobile screens */
    gap: 2.5rem;
  }

  .about-brand-box {
    padding: 1.8rem;
  }
}

/* ================= MAIN SITE FOOTER ================= */

.site-footer {
  background-color: #061826; /* Deep luxury navy background */
  color: #FFFFFF;
  padding: 5rem 2rem 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2); /* Subtle Gold border top */
  font-family: inherit;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Top Section Grid --- */
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.logo-text-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFFFFF;
  line-height: 1;
}

.logo-text-sub {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #D4AF37; /* Accent Gold */
  margin-top: 4px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.8rem;
}

.footer-lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-size: 0.82rem;
  color: #D4AF37;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-lang-selector:hover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
}

/* Navigation Columns */
.footer-col-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #D4AF37;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a .nav-arrow {
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #D4AF37;
}

.footer-links a:hover {
  color: #D4AF37;
  transform: translateX(3px);
}

.footer-links a:hover .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Social Bar Section --- */
.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D4AF37;
}

.social-icon-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.social-btn:hover {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #061826;
  transform: translateY(-3px);
}

/* --- Divider Line --- */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
  margin-bottom: 2.5rem;
}

/* --- Disclaimer Box --- */
.footer-disclaimer-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.disclaimer-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.disclaimer-text strong {
  color: #FFFFFF;
}

.disclaimer-text.micro-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}


/* ================= ALL DARK / LIGHT MODE TARGETS ================= */

/* Light Mode Theme Adjustments */
[data-theme="light"] .site-footer,
body.light-mode .site-footer {
  background-color: #0D241E !important; /* Milagro Deep Forest Green */
  border-top-color: #8C7323 !important;
}

/* Dark Mode Theme Adjustments */
[data-theme="dark"] .site-footer,
body.dark-mode .site-footer,
html.dark-mode .site-footer,
body.dark .site-footer {
  background-color: #040810 !important; /* Obsidian Ultra-Dark */
  border-top-color: rgba(212, 175, 55, 0.2) !important;
}


/* ================= MOBILE & TABLET RESPONSIVENESS ================= */

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column stack */
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-social-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .social-icon-group {
    flex-wrap: wrap;
  }
}

/* ================= SEARCH OVERLAY MODAL ================= */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.search-box-card {
  width: 90%;
  max-width: 720px;
  background: var(--bg-card, #FFFFFF);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active .search-box-card {
  transform: translateY(0);
}

.search-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-box-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--heading-color, #0D3B2E);
}

.close-search-btn {
  background: rgba(13, 59, 46, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main, #0D241E);
  transition: background 0.3s ease;
}

.close-search-btn:hover {
  background: #8C7323;
  color: #FFFFFF;
}

/* Input Control */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  color: #8C7323;
}

.search-input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.2rem;
  border-radius: 30px;
  border: 1px solid var(--border-color, rgba(13, 59, 46, 0.15));
  background: var(--input-bg, rgba(13, 59, 46, 0.03));
  font-size: 1rem;
  color: var(--text-main, #0D241E);
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input-wrapper input:focus {
  border-color: #8C7323;
}

/* Filter Pills */
.search-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted, #64748B);
  margin-right: 0.3rem;
}

.filter-btn {
  border: 1px solid var(--border-color, rgba(13, 59, 46, 0.15));
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main, #0D241E);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: #0D3B2E;
  color: #FFFFFF;
  border-color: #0D3B2E;
}

/* Live Results Drawer */
.search-results-container {
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color, rgba(13, 59, 46, 0.1));
  padding-top: 1rem;
}

.search-hint {
  font-size: 0.88rem;
  color: var(--text-muted, #64748B);
  text-align: center;
  padding: 1.5rem 0;
}

.live-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.live-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.live-result-item:hover {
  background: var(--input-bg, rgba(13, 59, 46, 0.05));
}

.live-result-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.live-result-info {
  flex: 1;
}

.live-result-info h4 {
  font-size: 0.92rem;
  color: var(--heading-color, #0D3B2E);
  margin-bottom: 0.2rem;
}

.live-result-info p {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
}

.live-result-price {
  font-weight: 700;
  font-size: 0.88rem;
  color: #8C7323;
}

.see-all-btn, .live-results-footer a {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8C7323;
  text-decoration: none;
}

/* Mobile Responsiveness for Overlay */
@media (max-width: 640px) {
  .search-overlay {
    padding-top: 0;
  }

  .search-box-card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
  }

  .search-results-container {
    flex: 1;
    max-height: none;
  }

  .search-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
  }
}


/* --- FIXED STICKY NAVBAR STYLES --- */

.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav, #ffffff);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  /* DO NOT PUT overflow: hidden HERE */
}

/* Base Body Containment to prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Dark Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998; /* Under drawer, above page content */
}

.sidebar-backdrop.active {
  display: block;
}


/* --- SINGLE CLEAN MOBILE MEDIA QUERY --- */
@media (max-width: 992px) {

  /* Show Hamburger Button */
  .mobile-toggle-btn {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
  }

  .mobile-toggle-btn .bar {
    width: 24px;
    height: 2.5px;
    background-color: #0D3B2E;
    border-radius: 2px;
  }

  /* Show Close Button inside Sidebar */
  .close-sidebar-btn {
    display: block !important;
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0D3B2E;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 1rem;
  }

  /* MOBILE DRAWER (NAV MENU) */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    transform: translateX(100%); /* Keeps off-screen without expanding page width */
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: #FFFFFF !important;
    z-index: 9999 !important; /* Forces drawer on top of everything */
    padding: 2rem 1.5rem !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
  }

  /* Slide-in class added by JS */
  .nav-menu.mobile-active {
    transform: translateX(0) !important;
  }

  /* Force links and items to show inside drawer */
  .nav-menu .nav-item,
  .nav-menu .dropdown-item,
  .nav-menu .dropdown-trigger {
    width: 100%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #0D3B2E !important;
    font-size: 1rem !important;
    /* z-index: 1000999999999999999999999999999999999999999999999999999999999999999999999999999999999 !important; */
  }

  /* Accordion Megamenu adjustment */
  .dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mega-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: 1px solid rgba(13, 59, 46, 0.12) !important;
    border-radius: 12px;
    background: #F8FAFC !important;
    padding: 1rem !important;
    margin-top: 0.5rem;
    width: 100% !important;
    display: none;
  }

  .dropdown-item.active .mega-menu {
    display: block !important;
  }
}

/* Ensure the parent sticky navbar does not restrict fixed elements */
.navbar-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav, #ffffff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible !important; /* Prevents drawer clipping */
}

/* Sidebar Dark Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
}

.sidebar-backdrop.active {
  display: block !important;
}

/* Default state: Hide mobile-only buttons on desktop */
.mobile-toggle-btn,
.close-sidebar-btn {
  display: none;
}

/* ================= MOBILE NAVIGATION DRAWER (Screen width <= 992px) ================= */
@media (max-width: 992px) {

  /* Display Hamburger Button */
  .mobile-toggle-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .mobile-toggle-btn .bar {
    width: 25px;
    height: 2.5px;
    background-color: #98cfbf; /* Update matching your theme color */
    border-radius: 2px;
  }

  /* Mobile Drawer Box Setup */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 85% !important;
    max-width: 380px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #FFFFFF !important;
    z-index: 9999 !important;
    padding: 2rem 1.5rem !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3) !important;
    
    /* Off-screen by default via translateX for smooth hardware accelerated animation */
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    overflow-y: auto !important;
  }

  /* Slide In State Triggered by JS */
  .nav-menu.mobile-active {
    transform: translateX(0) !important;
  }

  /* Inside Drawer Close Button */
  .close-sidebar-btn {
    display: block !important;
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: #0D3B2E;
    cursor: pointer;
    margin-bottom: 0.5rem;
  }

  /* Mobile Mega Menu Sub-lists Accordion Display */
  .mega-menu {
    display: none;
    position: static !important;
    box-shadow: none !important;
    padding: 1rem !important;
    background: #F8FAFC !important;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .dropdown-item.open .mega-menu {
    display: block !important;
  }
}

/* Ensure Search Overlay sits ABOVE the Mobile Sidebar Drawer */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  /* Priority z-index higher than sidebar (9999) */
  z-index: 100000000000000000000000000000000000000000000000000000000000000000000000000 !important; 
  
  display: none; /* Controlled by active class or JS */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Active state when search is triggered */
.search-overlay.active {
  display: flex !important;
}