/* ==========================================================================
   NUSAFARA LUXURY MEGA-MENU NAVBAR STYLESHEET
   Flawless Hover Bridge & Refined Architectural Luxury Aesthetic
   Universal Standard for Landing Page and All Subpages
   ========================================================================== */

:root {
  --nav-bg: rgba(7, 26, 19, 0.65);
  --nav-bg-scrolled: rgba(4, 18, 13, 0.82);
  --nav-border: rgba(255, 255, 255, 0.18);
  --nav-border-hover: rgba(226, 206, 155, 0.5);
  
  --gold-primary: #C29F5D;
  --gold-light: #E2CE9B;
  --gold-dark: #8E7036;
  --gold-glow: rgba(194, 159, 93, 0.35);
  --gold-subtle: rgba(194, 159, 93, 0.12);
  
  --emerald-deep: #071F17;
  --emerald-card: rgba(10, 36, 27, 0.98);
  --emerald-hover: rgba(194, 159, 93, 0.14);
  
  --pearl-white: #FAF9F6;
  --silk-muted: #A3B5AE;
  --charcoal-black: #0E1613;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   NAVBAR WRAPPER (FIXED)
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 28px;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none; /* Let clicks pass outside the nav pill */
}

.nav-wrap.scrolled {
  padding: 10px 24px;
}

/* Main Pill Container */
.nav {
  pointer-events: auto;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(10, 34, 25, 0.68) 0%, rgba(5, 20, 15, 0.58) 100%);
  backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 14px 6px 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35), inset 0 0 20px rgba(194, 159, 93, 0.08), 0 0 25px rgba(194, 159, 93, 0.12);
  transition: all 0.35s ease;
  box-sizing: border-box !important;
}

.nav-wrap.scrolled .nav {
  background: linear-gradient(135deg, rgba(8, 28, 20, 0.82) 0%, rgba(4, 16, 12, 0.75) 100%);
  border-color: rgba(194, 159, 93, 0.35);
  border-top-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.38), inset 0 0 20px rgba(194, 159, 93, 0.1);
}

/* --------------------------------------------------------------------------
   LOGO
   -------------------------------------------------------------------------- */
.nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav .logo-img {
  height: 42px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav .logo:hover .logo-img {
  transform: scale(1.03);
}

.nav .logo-fallback {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--pearl-white);
  text-transform: uppercase;
}

.nav .logo-fallback span {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   NAV LINKS & HOVER ANCHORS
   -------------------------------------------------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav item container has padded bottom extension to prevent mouse leaving */
.nav-links > li {
  position: relative;
  padding: 8px 0;
  margin: -8px 0;
}

.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(250, 249, 246, 0.9);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links > li:hover > a,
.nav-links > li.active > a,
.nav-links > li.is-open > a {
  color: var(--gold-light);
  background: var(--gold-subtle);
  border: 1px solid rgba(194, 159, 93, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Caret indicator */
.nav-item > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.nav-item:hover > a::after,
.nav-item.is-open > a::after {
  transform: rotate(-135deg) translateY(-2px);
  border-color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   DROPDOWN MEGA-MENU WITH INVISIBLE HOVER BRIDGE (100% SOLID OPAQUE LUXURY)
   -------------------------------------------------------------------------- */
.dropdown {
  position: absolute;
  top: 100%; /* Sits directly flush with nav item hover zone */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(135deg, rgba(7, 33, 24, 0.98) 0%, rgba(3, 18, 12, 0.99) 100%) !important;
  backdrop-filter: blur(32px) saturate(190%) contrast(105%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) contrast(105%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.42) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 24px !important;
  padding: 28px 32px !important;
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.75), 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 0 24px rgba(194, 159, 93, 0.08), 0 0 35px rgba(194, 159, 93, 0.15) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  min-width: 660px !important; /* Expansive luxury width */
  z-index: 1010;
  overflow: hidden;
}

/* Diagonal Specular Glass Glare across dropdown surface */
.dropdown::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Invisible Hover Bridge: Covers any tiny gap so mouse never loses hover */
.dropdown::before {
  content: "";
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 32px;
  background: transparent;
  cursor: pointer;
}

.dropdown.wide {
  min-width: 880px !important;
}

/* Trigger on hover OR when JavaScript adds .is-open class */
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

/* Dropdown Grid Content */
.dropdown-grid {
  display: grid;
  gap: 32px;
}

.dropdown-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dropdown-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-col h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(194, 159, 93, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-col > a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--pearl-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-col > a span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--silk-muted);
  margin-top: 3px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.dropdown-col > a:hover {
  background: var(--emerald-hover);
  border-color: rgba(194, 159, 93, 0.25);
  color: var(--gold-light);
  transform: translateX(3px);
}

.dropdown-col > a:hover span {
  color: rgba(250, 249, 246, 0.9);
}

/* --------------------------------------------------------------------------
   NAV ACTIONS (SELECTORS + CTA + BURGER)
   -------------------------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-selectors {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--pearl-white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C29F5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 11px;
  padding-right: 24px;
}

.select-pill:hover,
.select-pill:focus {
  background-color: rgba(194, 159, 93, 0.2);
  border-color: var(--gold-primary);
  border-top-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 14px rgba(194, 159, 93, 0.25);
}

.select-pill option {
  background-color: #071F17;
  color: var(--pearl-white);
  padding: 8px;
}

/* Lounge Now CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #E2CE9B 0%, #C29F5D 50%, #8E7036 100%);
  color: #061A13;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(194, 159, 93, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 159, 93, 0.55);
  filter: brightness(1.06);
}

/* Burger Button for Mobile */
.nav-burger {
  display: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 159, 93, 0.3);
  color: var(--pearl-white);
  font-size: 20px;
  transition: all 0.2s ease;
}

.nav-burger:hover {
  background: rgba(194, 159, 93, 0.2);
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (UNIFIED MASTER SPECIFICATION)
   Identical across Landing Page and All 12 Subpages
   -------------------------------------------------------------------------- */

/* Hidden mobile-only elements on desktop */
.mobile-nav-selectors,
.mobile-menu-cta {
  display: none;
}

/* LAPTOP / SMALL DESKTOP (max-width: 1180px) */
@media (max-width: 1180px) {
  .nav-links > li > a {
    padding: 8px 10px;
    font-size: 12px;
  }
  .dropdown {
    min-width: 580px !important;
  }
  .dropdown.wide {
    min-width: 760px !important;
  }
}

/* TABLET BREAKPOINT (max-width: 992px) */
@media (max-width: 992px) {
  .nav-wrap {
    padding: 10px 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }
  .nav-wrap.scrolled {
    padding: 8px 12px !important;
  }
  .nav {
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }
  .nav .logo-img {
    height: 34px !important;
    max-width: 120px !important;
  }
  .nav-actions {
    gap: 8px !important;
  }
  .nav-cta {
    padding: 7px 14px !important;
    font-size: 11.5px !important;
  }
  .nav-burger {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
  }
  .nav-selectors {
    display: none !important;
  }
  .mobile-nav-selectors {
    display: block !important;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(194, 159, 93, 0.2);
  }
  .mobile-menu-cta {
    display: block !important;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(194, 159, 93, 0.2);
  }
  .nav-links {
    position: fixed !important;
    top: 66px !important;
    left: 12px !important;
    right: 12px !important;
    background: rgba(6, 26, 19, 0.98) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid var(--nav-border) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005 !important;
  }
  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  .nav-links > li > a {
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    justify-content: space-between !important;
  }
  .nav-item.open-mobile > a::after {
    transform: rotate(-135deg) translateY(-2px);
    border-color: var(--gold-primary);
  }
  .dropdown,
  .dropdown.wide {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(4, 18, 13, 0.96) !important;
    border: 1px solid rgba(194, 159, 93, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 6px 0 !important;
    min-width: unset !important;
    box-shadow: none !important;
    display: none !important;
  }
  .dropdown::before {
    display: none !important;
  }
  .nav-item.open-mobile .dropdown {
    display: block !important;
  }
  .dropdown-grid.cols-2,
  .dropdown-grid.cols-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .dropdown-col h4 {
    font-size: 13px !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
  }
  .dropdown-col > a {
    padding: 8px 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    margin-bottom: 4px !important;
  }
}

/* SMARTPHONE BREAKPOINT (max-width: 480px) */
@media (max-width: 480px) {
  .nav-wrap {
    padding: 8px 8px !important;
  }
  .nav-wrap.scrolled {
    padding: 6px 8px !important;
  }
  .nav {
    padding: 5px 10px !important;
  }
  .nav .logo-img {
    height: 30px !important;
    max-width: 100px !important;
  }
  .nav-cta {
    padding: 6px 11px !important;
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
  }
  .nav-burger {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
  .nav-links {
    top: 58px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   ADMIN LOGIN BUTTON (ICON-ONLY LUXURY GATEWAY)
   -------------------------------------------------------------------------- */
.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(194, 159, 93, 0.12);
  border: 1px solid rgba(194, 159, 93, 0.38);
  color: var(--gold-light);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-admin-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-light);
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.nav-admin-btn:hover {
  background: rgba(194, 159, 93, 0.3);
  border-color: var(--gold-primary);
  color: var(--pearl-white);
  box-shadow: 0 6px 18px rgba(194, 159, 93, 0.35);
  transform: translateY(-2px);
}

.nav-admin-btn:hover svg {
  stroke: #FFFFFF;
  transform: scale(1.1);
}
