/* Our own mobile off-canvas menu -- the real theme's mmenu-based mobile
   nav wasn't brought over (out of scope for now), so this is original
   scaffolding just for small screens. Hidden by default; shown only
   below the breakpoint where the real desktop nav (.traveltour-main-menu)
   hides itself. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
}

.nav-toggle span {
  top: 11px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #17130f;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 100000;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 24px;
  cursor: pointer;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 99999;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media only screen and (max-width: 999px) {
  .nav-toggle {
    display: block;
  }

  /* The real theme hides the entire desktop header below 999px because
     it expects its own mmenu-based #traveltour-mobile-header to take
     over (compiled CSS, wpfc-minified/m0pwrkrk/7y0b8.css) -- we didn't
     bring that mmenu system over, so without this override the header
     (including the logo) simply disappears at mobile widths with
     nothing replacing it. Force it back on and let the rules below hide
     just the desktop-only pieces (full menu, currency switcher, login)
     in favor of the nav-toggle + off-canvas .mobile-nav above. */
  .traveltour-header-wrap.traveltour-header-style-plain,
  .traveltour-header-background-transparent,
  .traveltour-sticky-navigation {
    display: block !important;
  }

  .traveltour-main-menu,
  .traveltour-main-menu-right-wrap {
    display: none !important;
  }

  .traveltour-navigation {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
}
