/* ========================================
   TIKI TAN – CONSOLIDATED NAV
   Dropdowns, mobile accordion, active page
   ======================================== */

/* --- Base nav overrides (ensures consistency across all pages) --- */
.site-header {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a,
.nav-dropdown-toggle {
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open > .nav-dropdown-toggle {
  color: #f5f5f5;
  background: rgba(255,255,255,0.05);
}

/* Active page highlight */
.nav-links > a.active,
.nav-dropdown-toggle.active {
  color: #ff9c31;
}

/* Coral accent for My Account */
.nav-dropdown-toggle.highlight-coral {
  color: #EE6C4D;
}
.nav-dropdown-toggle.highlight-coral:hover,
.nav-dropdown.open > .nav-dropdown-toggle.highlight-coral {
  color: #ff8a6a;
}

/* --- Chevron icon --- */
.nav-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown.open > .nav-dropdown-toggle .nav-chevron {
  transform: rotate(180deg);
}

/* --- Desktop Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.nav-dropdown.open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d1d5db;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,156,49,0.1);
  color: #ff9c31;
}

.nav-dropdown-menu a.active {
  color: #ff9c31;
}

/* --- Book Now button --- */
.btn-book {
  background: #ff9c31;
  color: #111;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-book:hover {
  background: #ffb347;
  transform: translateY(-1px);
}

/* --- Mobile toggle --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Mobile Navigation --- */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border-bottom: 1px solid #2a2a2a;
  padding: 12px 16px 16px;
  flex-direction: column;
  gap: 2px;
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav > a {
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9ca3af;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.mobile-nav > a:hover {
  background: rgba(255,255,255,0.05);
  color: #f5f5f5;
}

.mobile-nav > a.active {
  color: #ff9c31;
}

/* --- Mobile Accordion --- */
.mobile-accordion {
  border-radius: 8px;
}

.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9ca3af;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mobile-accordion-toggle:hover {
  background: rgba(255,255,255,0.05);
  color: #f5f5f5;
}

.mobile-accordion-toggle.active {
  color: #ff9c31;
}

.mobile-accordion-toggle.highlight-coral {
  color: #EE6C4D;
}

.mobile-accordion-toggle .nav-chevron {
  transition: transform 0.25s ease;
}

.mobile-accordion.open > .mobile-accordion-toggle .nav-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px 16px;
}

.mobile-accordion.open > .mobile-accordion-panel {
  display: flex;
}

.mobile-accordion-panel a {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #9ca3af;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.mobile-accordion-panel a:hover {
  background: rgba(255,255,255,0.05);
  color: #f5f5f5;
}

.mobile-accordion-panel a.active {
  color: #ff9c31;
}

/* Mobile Book Now */
.mobile-book-btn {
  display: block;
  margin-top: 8px;
  padding: 12px 16px;
  background: #ff9c31;
  color: #111 !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s;
}

.mobile-book-btn:hover {
  background: #ffb347;
}

/* --- Responsive breakpoint --- */
@media (max-width: 1024px) {
  .nav-links,
  .btn-book {
    display: none !important;
  }
  .mobile-toggle {
    display: block;
  }
}
