/* ==========================================================
   🚀 DELIGHT TRIPS WORLD-CLASS NAV ENGINE
   - Standard: 2026 Travel Industry Elite
   - Optimization: Hardware-Accelerated (GPU) Transitions
   - Preserved: Exact structure, position, and class hierarchy
========================================================== */

:root {
  --navbar-height: 70px;
}

/* 1. NAVBAR BASE (STRICT POSITIONING)
   ---------------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* Use hardware-accelerated transforms for smooth hide/show */
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s var(--ease-in-out),
    box-shadow 0.3s var(--ease-in-out);
  will-change: transform;
}

.navbar {
  height: var(--navbar-height);
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  /* Ensuring rendering isolation */
  contain: layout style;
}

#site-header.is-sticky {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#site-header.scroll-down {
  transform: translateY(-100%);
}

#site-header.scroll-up {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 2. LOGO (PRESERVED LOGIC)
   ---------------------------------------------------------- */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-elastic);
}

.navbar-logo:hover {
  transform: scale(1.02);
}

.navbar-logo img {
  width: 50px;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* 3. DESKTOP NAVIGATION (UI POLISH)
   ---------------------------------------------------------- */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navbar-links a {
  font-size: 15px;
  font-weight: 600;
  color: #050303;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: var(--primary, #0077ff);
}

/* Elite Active Link Styling */
.active-link {
  color: var(--primary, #0077ff) !important;
  font-weight: 700;
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--primary, #0077ff);
  border-radius: 100px;
}

.navbar-btn {
  background: #0077ff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition:
    transform 0.2s var(--ease-elastic),
    box-shadow 0.2s ease;
}

.navbar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
}

/* 4. MOBILE TOGGLE & OVERLAY
   ---------------------------------------------------------- */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0; /* Changed to 0 for full-screen feel */
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

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

/* 5. MOBILE MENU (REFINED TOP SHEET)
   ---------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; /* Starts from top for cleaner entry */
  left: 0;
  width: 100%;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 0 0 32px 32px;
  transform: translateY(-110%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1001;
  padding: calc(var(--navbar-height) + 20px) 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  visibility: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  visibility: visible;
  transform: translateY(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* 6. MOBILE LINKS & SOCIAL
   ---------------------------------------------------------- */
.mobile-nav-list {
  list-style: none;
}

.mobile-nav-list li {
  margin-bottom: 20px;
}

.mobile-nav-list a {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.2s ease;
}

.mobile-menu-social {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  gap: 24px;
}

.mobile-menu-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-elastic);
}

.mobile-menu-social a:hover {
  transform: translateY(-4px);
}

/* 7. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .navbar-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .logo-text small {
    display: none;
  }
  .logo-text {
    font-size: 24px;
  }
}
