/* ============================================
   BASE HEADER (GLOBAL)
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #1e3c72;
  font-size: 1.1rem;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Landing-page brand variant (when you use .logo.brand) */
.logo.brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.logo.brand span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

/* ============================================
   NAV CONTAINER & LIST
   ============================================ */

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

/* Links / buttons inside nav items */
.nav-item > a,
.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1e3c72;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Hover + focus states */
.nav-item > a:hover,
.nav-link.dropdown-toggle:hover {
  background-color: rgba(30, 60, 114, 0.08);
  color: #1e3c72;
  text-decoration: none;
}

.nav-item > a:focus-visible,
.nav-link.dropdown-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  background-color: rgba(37, 99, 235, 0.08);
}

/* Dropdown arrow indicator */
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.375rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 100;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #1f2933;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-menu li a:hover {
  background-color: rgba(30, 60, 114, 0.06);
  color: #1e3c72;
  padding-left: 1.2rem;
}

.dropdown-menu li a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background-color: rgba(37, 99, 235, 0.08);
}

/* ============================================
   DROPDOWN SECTION HEADERS & DIVIDERS
   ============================================ */

/* Dropdown section headers */
.dropdown-header {
  padding: 0.5rem 1rem 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
  list-style: none;
}

/* Dropdown dividers */
.dropdown-divider {
  height: 1px;
  margin: 0.5rem 1rem;
  background-color: #e5e7eb;
  list-style: none;
  pointer-events: none;
}

/* Remove hover effects from headers and dividers */
.dropdown-menu .dropdown-header:hover,
.dropdown-menu .dropdown-divider:hover {
  background-color: transparent;
  padding-left: 1rem;
}

/* Ensure proper spacing for links after headers */
.dropdown-header + li a {
  padding-left: 1rem;
}

/* ============================================
   MEGA MENU (Destinations)
   ============================================ */

.dropdown-mega {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  min-width: 720px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
}

.has-dropdown:hover > .dropdown-mega,
.has-dropdown:focus-within > .dropdown-mega {
  transform: translateX(-50%) translateY(0);
}

.dropdown-column h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.dropdown-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-column li a {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

/* ============================================
   MOBILE NAV (HAMBURGER + SLIDE-IN)
   ============================================ */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-toggle i {
  color: #1e3c72;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(30, 60, 114, 0.25);
    background: #ffffff;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 25px rgba(15, 23, 42, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  .main-nav.is-open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  .nav-item > a,
  .nav-link.dropdown-toggle {
    width: 100%;
    border-radius: 0;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
  }

  /* Mobile dropdown content collapses */
  .dropdown-menu,
  .dropdown-mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    width: 100%;
    min-width: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f9fafb;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.is-open > .dropdown-menu,
  .has-dropdown.is-open > .dropdown-mega {
    max-height: 600px;
    padding: 0.25rem 0 0.5rem;
  }

  .dropdown-mega {
    display: block;
  }

  .dropdown-column {
    width: 100%;
  }

  .dropdown-column h3 {
    padding: 0.5rem 1.25rem 0.35rem;
  }

  .dropdown-menu li a,
  .dropdown-column li a {
    padding-left: 2rem;
  }

  /* Mobile adjustments for headers and dividers */
  .dropdown-header {
    padding: 0.5rem 1.25rem 0.35rem 2rem;
  }
  
  .dropdown-divider {
    margin: 0.5rem 1.25rem;
  }
  
  .dropdown-header + li a {
    padding-left: 2rem;
  }

  /* Dimmed overlay when nav open */
  body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9998;
  }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  .main-nav {
    max-width: 85vw;
  }
}