/* ============================================================
   IZETICKET — MOBILE NAVIGATION
   ------------------------------------------------------------
   Adds a hamburger menu + slide-out panel for screens under
   768px, where the desktop nav links are hidden. On mobile,
   the top bar shows only the logo + hamburger button; the
   Login/Book Travel buttons move into the slide-out panel
   alongside the nav links.
   ============================================================ */

:root {
  --mnav-navy: #1A3A5C;
  --mnav-blue: #2B6CB0;
  --mnav-yellow: #F5A623;
  --mnav-yellow-light: #FFF3D6;
  --mnav-text-soft: #5A7A9A;
}

/* Hamburger button — hidden on desktop by default */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 600;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--mnav-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Overlay behind the panel */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, .45);
  z-index: 550;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

/* Slide-out panel */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -85%;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(26,58,92,.18);
  z-index: 600;
  transition: right .3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.mobile-menu-panel.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1.5px solid rgba(43,108,176,.1);
}
.mobile-menu-header .logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mnav-navy);
  cursor: pointer;
  padding: .25rem .5rem;
}

.mobile-menu-links {
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  flex: 1;
}
.mobile-menu-links > li > a,
.mobile-menu-links > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--mnav-navy);
  text-decoration: none;
  background: none;
  border: none;
  padding: .95rem 1.2rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(43,108,176,.06);
  text-align: left;
}
.mobile-menu-links > li > button::after {
  content: '\25BE';
  font-size: .8rem;
  color: var(--mnav-text-soft);
  transition: transform .2s ease;
}
.mobile-menu-links > li.mobile-submenu-open > button::after {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  background: var(--mnav-yellow-light);
}
.mobile-submenu.open {
  display: flex;
}
.mobile-submenu a {
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--mnav-navy);
  text-decoration: none;
  padding: .8rem 1.2rem .8rem 2.1rem;
  border-bottom: 1px solid rgba(43,108,176,.08);
}
.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-menu-actions {
  padding: 1.1rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-top: 1.5px solid rgba(43,108,176,.1);
}
.mobile-menu-actions a {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1rem;
  border-radius: 8px;
}
.mobile-menu-actions .mm-login {
  color: var(--mnav-blue);
  border: 1.5px solid var(--mnav-blue);
}
.mobile-menu-actions .mm-book {
  background: var(--mnav-blue);
  color: #FFFFFF;
}

/* ---------- Breakpoint: show mobile nav, hide desktop bits ---------- */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-right {
    display: none !important;
  }
}
