/* ================================================
   PANDA MENU — Frontend Styles
   Author: Naveed
   Matches: Tourism/Travel mega menu style
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Variables (defaults, overridden by inline style block) ---- */
:root {
  --panda-bg:      #ffffff;
  --panda-text:    #333333;
  --panda-accent:  #1a6fc4;
  --panda-cta:     #e53935;
  --panda-border:  #e8e8e8;
  --panda-mega-bg: #ffffff;
  --panda-shadow:  0 4px 24px rgba(0,0,0,.10);
  --panda-radius:  4px;
  --panda-h:       68px;
}

/* ---- Base Nav ---- */
.panda-nav {
  background: var(--panda-bg);
  border-bottom: 1px solid var(--panda-border);
  width: 100%;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.panda-nav.panda-sticky {
  position: sticky;
  top: 0;
  transition: box-shadow .3s;
}
.panda-nav.panda-shadow { box-shadow: var(--panda-shadow); }
.panda-nav.panda-sticky.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.12); }

.panda-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--panda-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ---- Logo ---- */
.panda-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.panda-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panda-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
}
.panda-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--panda-text);
  white-space: nowrap;
}
.panda-logo-img {
  max-height: 44px;
  width: auto;
}

/* ---- Nav List ---- */
.panda-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

/* ---- Nav Item ---- */
.panda-nav-item {
  position: static; /* mega uses fixed container */
}

.panda-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--panda-text);
  text-decoration: none;
  border-radius: var(--panda-radius);
  transition: color .2s, background .2s;
  white-space: nowrap;
  position: relative;
}
.panda-nav-link:hover { color: var(--panda-accent); background: rgba(26,111,196,.06); }
.panda-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--panda-accent);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px;
}
.panda-nav-item:hover .panda-nav-link::after,
.panda-nav-link:focus::after { transform: scaleX(1); }

/* chevron */
.panda-chevron {
  width: 10px;
  height: 6px;
  fill: currentColor;
  transition: transform .25s;
  flex-shrink: 0;
}
.panda-nav-item:hover .panda-chevron,
.panda-nav-item.open .panda-chevron { transform: rotate(180deg); }

/* ---- Mega Menu ---- */
.panda-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--panda-h);
  background: var(--panda-mega-bg);
  border-top: 2px solid var(--panda-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  display: none;
  z-index: 9998;
  animation: megaFadeIn .2s ease;
}
.panda-nav-item:hover .panda-mega,
.panda-nav-item.open .panda-mega { display: block; }

@keyframes megaFadeIn {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}

.panda-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 32px;
  display: flex;
  gap: 0;
}

/* ---- Mega Column ---- */
.panda-mega-col {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--panda-border);
}
.panda-mega-col:first-child { padding-left: 0; }
.panda-mega-col:last-child  { padding-right: 0; border-right: none; }

.panda-mega-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--panda-accent);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--panda-accent);
  display: inline-block;
}

.panda-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.panda-mega-list li {
  position: relative;
  padding: 5px 0 5px 16px;
}
.panda-mega-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panda-accent);
}
.panda-mega-list li a {
  font-size: 13.5px;
  color: #444;
  text-decoration: none;
  font-weight: 400;
  transition: color .2s, padding-left .2s;
  display: block;
}
.panda-mega-list li a:hover { color: var(--panda-accent); padding-left: 4px; }

/* "View All" link style */
.panda-mega-list li.panda-view-all::before { display: none; }
.panda-mega-list li.panda-view-all { padding-left: 0; margin-top: 6px; }
.panda-mega-list li.panda-view-all a {
  color: var(--panda-accent);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.panda-mega-list li.panda-view-all a::after { content: '→'; }
.panda-mega-list li.panda-view-all a:hover { text-decoration: underline; }

/* ---- Right section ---- */
.panda-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.panda-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--panda-text);
  text-decoration: none;
  transition: color .2s;
}
.panda-phone:hover { color: var(--panda-accent); }
.panda-phone svg {
  width: 16px;
  height: 16px;
  color: var(--panda-accent);
  flex-shrink: 0;
}

.panda-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--panda-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--panda-radius);
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.panda-cta:hover { opacity: .9; transform: translateY(-1px); }
.panda-cta:active { transform: translateY(0); }

/* ---- Hamburger ---- */
.panda-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--panda-border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  order: 10;
}
.panda-hamburger span {
  display: block;
  height: 2px;
  background: var(--panda-text);
  border-radius: 2px;
  transition: all .3s;
}
.panda-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.panda-hamburger.open span:nth-child(2) { opacity: 0; }
.panda-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .panda-hamburger { display: flex; }
  .panda-nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }

  .panda-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-bottom: 12px;
    order: 20;
  }
  .panda-nav-list.open { display: flex; }

  .panda-nav-link { border-radius: 6px; }

  .panda-mega {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--panda-border);
    display: none !important;
  }
  .panda-nav-item.open .panda-mega {
    display: block !important;
    animation: none;
  }

  .panda-mega-inner { flex-direction: column; padding: 12px 8px; }
  .panda-mega-col {
    border-right: none;
    border-bottom: 1px solid var(--panda-border);
    padding: 12px 8px;
  }
  .panda-mega-col:last-child { border-bottom: none; }

  .panda-nav-right { display: none; }
  .panda-logo-link { order: 0; }
}

/* ---- Accessibility ---- */
.panda-nav-link:focus-visible {
  outline: 2px solid var(--panda-accent);
  outline-offset: 2px;
}
