/* Genrivrealty — Custom Stylesheet (styles.css) */
:root {
      --glass-bg: rgba(255, 255, 255, 0.86);
      --glass-border: rgba(255, 255, 255, 0.35);
    }
    .dark {
      --glass-bg: rgba(15, 23, 42, 0.86);
      --glass-border: rgba(148, 163, 184, 0.18);
    }
    body {
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }
    h1, h2, h3, h4, .font-display {
      font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    }
    .glass-panel {
      background: var(--glass-bg);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--glass-border);
    }
    .hero-overlay {
      background: linear-gradient(180deg, rgba(15, 10, 40, 0.65) 0%, rgba(15, 10, 40, 0.78) 65%, rgba(15, 23, 42, 0.96) 100%);
    }
    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: transparent;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: rgba(132, 61, 255, 0.35);
      border-radius: 9999px;
    }
    .map-pin-pulse {
      animation: pinPulse 2.4s infinite ease-in-out;
    }
    @keyframes pinPulse {
      0%, 100% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-4px) scale(1.06); }
    }
    .card-hover {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card-hover:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 38px -12px rgba(97, 4, 235, 0.16), 0 8px 16px -8px rgba(0, 120, 219, 0.12);
    }
    input[type="range"] {
      accent-color: #7316ff;
    }
    /* Multi-Screen PC & Mobile Responsive Enhancements */
    *, *::before, *::after {
      box-sizing: border-box;
    }
    html, body {
      max-width: 100vw;
      overflow-x: hidden;
    }
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    /* Standard Laptop / PC (1024px - 1366px) compact spacing */
    @media (min-width: 1024px) and (max-width: 1366px) {
      .pc-compact-nav {
        gap: 0.65rem !important;
        font-size: 0.75rem !important;
      }
      .pc-compact-tab {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.72rem !important;
      }
    }
    /* Wide Desktop Monitors (1536px+) */
    @media (min-width: 1536px) {
      .max-w-7xl {
        max-width: 86rem !important;
      }
    }
    /* Small Mobile Screens (< 400px) */
    @media (max-width: 400px) {
      .xs-stack {
        flex-direction: column !important;
        align-items: stretch !important;
      }
    }

/* =========================================================================
   Genriv-Grade MEGA-MENU & DROPDOWN NAVIGATION STYLES
   ========================================================================= */
header.glass-panel,
.glass-panel {
  overflow: visible !important;
}

.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.22), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 0.65rem;
  margin-top: 0.25rem;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark .nav-dropdown-menu {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.65);
}

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



/* Featured Projects 1-Line Slider */
#featured-projects-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

#featured-projects-grid > div {
  flex-shrink: 0 !important;
  width: 320px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  #featured-projects-grid > div {
    width: 350px;
  }
}


@media (min-width: 1024px) {
  #main-12-tabs-nav {
    overflow: visible !important;
  }
  .tabs-nav-container {
    overflow: visible !important;
  }
}

.nav-dropdown-item {
  position: relative !important;
}

.nav-dropdown-menu {
  display: none;
}



/* =========================================================================
   CLEAN NON-OVERLAPPING MEGA-DROPDOWNS
   ========================================================================= */
header.glass-panel,
header {
  overflow: visible !important;
}

.magic-nav-dropdown {
  position: relative;
  display: inline-block;
}

.magic-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.22), 0 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  z-index: 99999;
  margin-top: 0.25rem;
}

.dark .magic-dropdown-panel {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* STRICT DIRECT-CHILD HOVER: Only hovered item displays its own dropdown panel */
.magic-nav-dropdown:hover > .magic-dropdown-panel {
  display: block !important;
}

.magic-dropdown-panel:hover {
  display: block !important;
}

.magic-dropdown-panel.show-panel {
  display: block !important;
}


/* =========================================================================
   UNIVERSAL 1-LINE PROPERTY SLIDERS (Prev / Next Smooth Track)
   ========================================================================= */
.property-slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
}

.property-slider-track::-webkit-scrollbar {
  height: 6px;
}

.property-slider-track::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
  border-radius: 9999px;
}

.property-slider-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
}

.property-slider-card {
  flex-shrink: 0 !important;
  width: 310px !important;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .property-slider-card {
    width: 345px !important;
  }
}


/* Mobile Responsive Contact Popover Card & Customer Support Spacing */
@media (max-width: 640px) {
  #contact-popover-card {
    position: fixed !important;
    top: 66px !important;
    left: 12px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: 360px !important;
    min-width: unset !important;
    margin: 0 auto !important;
    z-index: 999999 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45) !important;
  }
  #tab-portal-section {
    padding-bottom: 7.5rem !important;
  }
}
