/* ═══════════════════════════════════════════════════
   BEYOND AZORES — HEADER v2
   Single source of truth for all header/nav styling
   ═══════════════════════════════════════════════════ */

/* Hide old nav when new header is present */
#site-header ~ .nav,
#site-header ~ nav.nav,
body > .nav:not(.desktop-nav),
nav#nav { display: none !important; }

/* ─── HEADER BASE ─── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}
#site-header.transparent {
  background: transparent;
  color: white;
}
#site-header.solid {
  background: white;
  color: #1a1a1a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-logo {
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* ─── DESKTOP NAV ─── */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.desktop-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}
.desktop-nav a:hover {
  background: rgba(255,255,255,0.15);
}
#site-header.solid .desktop-nav a:hover {
  background: #f5f5f5;
}
/* Dot indicator for key items */
.desktop-nav .nav-dot {
  position: relative;
}
.desktop-nav .nav-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0e5259;
}
#site-header.transparent .desktop-nav .nav-dot::after {
  background: white;
}

/* ─── NAV DROPDOWNS ─── */
.nav-dropdown {
  position: relative;
}
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-drop-btn:hover {
  background: rgba(255,255,255,0.15);
}
#site-header.solid .nav-drop-btn:hover {
  background: #f5f5f5;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  min-width: 190px;
  padding: 8px 0;
  z-index: 100;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown:hover .nav-drop-menu {
  display: block;
}
.nav-drop-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.1s;
  white-space: nowrap;
}
.nav-drop-menu a:hover {
  background: #f5f5f5;
  color: #0e5259;
}

/* ─── MEGA MENU PANELS (Geneva.com style) ─── */
.nav-mega-wrap { position: static; }
.nav-drop-btn.active { color: #0e5259 !important; }
#site-header.transparent .nav-drop-btn.active { color: white !important; opacity: 1; }

.mega-panel {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 68px;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-top: 1px solid #f0f0f0;
  animation: megaSlide 0.2s ease;
  z-index: 999;
}
.mega-panel.open { display: block; }

/* Force header to solid white when mega menu is open */
#site-header.mega-open {
  background: white !important;
  color: #1a1a1a !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
#site-header.mega-open .header-logo,
#site-header.mega-open .desktop-nav a,
#site-header.mega-open .nav-drop-btn,
#site-header.mega-open .header-btn { color: #1a1a1a !important; }
#site-header.mega-open .desktop-nav a:hover,
#site-header.mega-open .nav-drop-btn:hover,
#site-header.mega-open .header-btn:hover { background: #f5f5f5 !important; }
@keyframes megaSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mega-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
}
.mega-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 14px;
}
.mega-col a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s;
}
.mega-col a:hover { color: #0e5259; }
.mega-feat {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}
.mega-feat img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.mega-feat p { font-size: 13px; color: #6b7280; margin-bottom: 8px; line-height: 1.5; }
.mega-feat a { font-size: 13px; font-weight: 700; color: #0e5259; text-decoration: none; }

/* ─── HEADER ACTIONS (right icons) ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.header-btn:hover {
  background: rgba(255,255,255,0.15);
}
#site-header.solid .header-btn:hover {
  background: #f5f5f5;
}
.header-btn .hdr-badge {
  position: absolute;
  top: 0px; right: -2px;
  min-width: 18px; height: 18px;
  background: #d75d5c;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.btn-book {
  background: #0e5259;
  color: white !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
  transition: background 0.15s;
}
.btn-book:hover { background: #0a3d42; }

/* ─── HAMBURGER ─── */
.hamburger {
  width: 40px; height: 40px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: inherit;
  margin-left: 8px;
  margin-right: -8px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 17px; }
.hamburger span:nth-child(3) { width: 12px; }
.hamburger.open span:nth-child(1) {
  width: 20px;
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  width: 20px;
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .btn-book-desktop { display: none !important; }
  .hamburger { display: flex !important; }
  .header-container { gap: 12px; }
  .header-actions { gap: 2px; }
}

/* ─── DRAWER OVERLAY ─── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* ─── MOBILE DRAWER ─── */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 85vw;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: white;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #1a1a1a;
}
.mobile-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.drawer-logo {
  font-weight: 800;
  font-size: 18px;
  color: #0e5259;
}
.drawer-close {
  width: 36px; height: 36px;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

/* Drawer Hero */
.drawer-hero {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.drawer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-hero-text {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Drawer Nav */
.drawer-nav {
  flex: 1;
}
.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.drawer-link:hover { background: #f9f9f9; }
/* no highlight — all links equal */
.drawer-link svg { flex-shrink: 0; color: #ccc; }
.drawer-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0e5259;
  padding: 20px 24px 8px;
  border-top: 1px solid #f0f0f0;
}
.drawer-section-label:first-child {
  border-top: none;
}

/* Language */
.drawer-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.drawer-lang svg { color: #888; flex-shrink: 0; }
.lang-pill {
  background: none;
  border: 1.5px solid #e5e5e5;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.15s;
}
.lang-pill:hover { border-color: #0e5259; color: #0e5259; }
.lang-pill.active {
  color: white;
  background: #0e5259;
  border-color: #0e5259;
}

/* Drawer CTA — promo banner with photo */
.drawer-cta {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.drawer-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14,82,89,0.75), rgba(14,82,89,0.9));
}
.btn-book-drawer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  background: white;
  color: #0e5259;
  text-align: center;
  text-decoration: none;
  padding: 16px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.15s;
}
.btn-book-drawer:hover { background: #f0f0f0; }
.drawer-guarantee {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin: 8px 0 0;
}
