:root {
  --bg-deep: #050a18;
  --bg-card: rgba(255,255,255,0.05);
  --gold: #f5c842;
  --gold-light: #fde87b;
  --teal: #00d4b4;
  --text-primary: #f0f0f0;
  --text-muted: #a0aec0;
  --gradient-hero: linear-gradient(135deg, rgba(5,10,24,0.8), rgba(13,31,64,0.6));
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Bebas Neue', sans-serif;
  --glass-border: 1px solid rgba(255,255,255,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
}

/* Background Particle/Gradient Layer */
.bg-layer {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 15% 50%, rgba(0,212,180,0.05), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(245,200,66,0.05), transparent 25%);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* 1. Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 5%;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(5, 10, 24, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.top-bar-left, .top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar a {
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--gold);
}

/* 2. Sticky Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5,10,24,0.9);
  backdrop-filter: blur(10px);
  padding: 12px 5%;
  border-bottom: var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.5vw, 25px);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -5px; left: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245,200,66,0.3);
}

/* 3. Hero Section */
.hero {
  height: 100vh;
  min-height: 640px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: -100px; /* pull up behind nav */
  padding: 0 clamp(20px, 5%, 80px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* Ken Burns zoom effect on each slide */
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Multi-layer overlay: dramatic vignette + brand gradient */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(to bottom, rgba(5,10,24,0.25) 0%, transparent 35%, transparent 60%, rgba(5,10,24,0.7) 100%),
    var(--gradient-hero);
  z-index: 0;
  pointer-events: none;
}

/* Hero content entrance animation */
.hero-content {
  z-index: 1;
  max-width: clamp(600px, 80vw, 960px);
  padding-top: 60px;
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Editorial headline: "Discover" in Playfair, typewriter word in accent color */
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  line-height: 1.08;
  margin-bottom: 22px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
}

/* Refined typewriter cursor */
.hero .typewriter {
  color: var(--gold);
  border-right: 3px solid var(--gold);
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(245,200,66,0.35);
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Subtitle: slightly brighter, wider tracking for luxury feel */
.hero p {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(224, 232, 244, 0.85);
  margin-bottom: 44px;
  letter-spacing: 0.02em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: heroFadeUp 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.4s ease, transform 0.3s ease, width 0.4s ease;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(245,200,66,0.5);
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.65;
  animation: bounceDown 2.2s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll-hint i {
  font-size: 1.1rem;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(10,18,40,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50px;
  padding: 8px;
  width: 100%;
  max-width: 780px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: heroFadeUp 1.1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-bar:focus-within {
  border-color: rgba(245,200,66,0.4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 3px rgba(245,200,66,0.1);
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.search-input:last-child {
  border-right: none;
}

.search-input i {
  color: var(--gold);
  margin-right: 10px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.search-input input, .search-input select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.search-input input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-input select option {
  background: #0a1228;
  color: #fff;
}

.search-btn {
  background: linear-gradient(135deg, var(--gold) 0%, #e8a817 100%);
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,200,66,0.3);
  flex-shrink: 0;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.45);
}

.search-btn:active {
  transform: translateY(0);
}

/* Destination chips */
.popular-searches {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.chip:hover {
  background: rgba(245,200,66,0.15);
  color: var(--gold);
  border-color: rgba(245,200,66,0.5);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(245,200,66,0.15);
}

/* Discovery Hub & Sticky Nav Styling */
.discovery-hub {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.3) 0%, rgba(5, 10, 24, 0.6) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  scroll-behavior: smooth;
}

.hub-nav {
  position: sticky;
  top: 92px; /* Sits cleanly below sticky navbar */
  z-index: 99; /* Below navbar (1000) but above content */
  max-width: fit-content;
  margin: 32px auto 0;
  background: rgba(8, 15, 36, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 8px;
}

.hub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hub-nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hub-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.hub-nav-link.active {
  color: #000;
  background: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 200, 66, 0.2);
}

.hub-nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  display: inline-block;
}

/* Responsive Hub Nav */
@media (max-width: 768px) {
  .hub-nav {
    top: 80px;
    margin: 20px auto 0;
    max-width: 90%;
  }
  .hub-nav-link {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .hub-nav-divider {
    margin: 0 2px;
  }
}

/* Section Globals */
.section-padding {
  padding: clamp(60px, 8vw, 100px) 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 3rem;
}

/* 4. Best Offer Packages — premium card rail */
#packages.section-padding {
  padding-top: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.discovery-hub .section-padding {
  padding-top: clamp(30px, 4vw, 50px);
  padding-bottom: clamp(30px, 4vw, 50px);
}

.discovery-hub #packages.section-padding {
  padding-top: clamp(16px, 2vw, 24px);
}

#packages .section-header {
  margin-bottom: 56px;
}

#packages .section-title {
  letter-spacing: 0.02em;
  font-size: 3.2rem;
}

/* Premium filter pill strip */
.packages-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
}

.filter-btn:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #00d4b4 0%, #00b49b 100%);
  color: #031018;
  box-shadow: 0 4px 16px rgba(0, 212, 180, 0.28);
}

/* Premium cards grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

/* Package card — layered glass with gold accent on hover */
.package-card {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, rgba(20, 38, 76, 0.6) 0%, rgba(11, 24, 50, 0.5) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 6px 28px rgba(0, 0, 0, 0.26),
    0 1px 8px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(245,200,66,0.0) 0%, rgba(245,200,66,0.0) 100%);
  transition: background 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.package-card:hover {
  transform: translateY(-8px) scale(1.005);
  border-color: rgba(245, 200, 66, 0.28);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(245, 200, 66, 0.16),
    0 2px 0 rgba(255,255,255,0.07) inset;
}

.package-card a {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

/* Image container with subtle vignette */
.package-img-wrap {
  position: relative;
  overflow: hidden;
}

.package-img {
  width: 100%;
  height: 248px;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  display: block;
}

.package-card:hover .package-img {
  transform: scale(1.1);
  filter: brightness(1.06);
}

/* Gold accent bar on top of card on hover */
.package-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,200,66,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.package-card:hover::after {
  opacity: 1;
}

/* Badge */
.discount-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #000;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.3) inset;
}

/* Content area */
.package-content {
  padding: 28px 28px 30px;
  position: relative;
  z-index: 1;
}

/* Gold micro-rule separating image from content */
.package-content::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 18px;
  border-radius: 2px;
}

.package-title {
  font-size: 1.38rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.package-title a {
  transition: color 0.3s ease;
}

.package-title a:hover {
  color: var(--gold) !important;
}

.package-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.package-meta i {
  color: var(--teal);
  margin-right: 6px;
  font-size: 0.78rem;
}

/* Price row */
.package-price {
  font-size: 1.75rem;
  color: var(--gold);
  font-family: var(--font-accent);
  margin: 18px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.04em;
}

.package-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  text-decoration: line-through;
  font-weight: 400;
  letter-spacing: 0;
}

/* Action row */
.package-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.22s ease;
  flex: 1;
  text-align: center;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(245, 200, 66, 0.5);
  color: var(--gold);
  transform: translateY(-2px);
}

.package-actions .btn-primary,
.package-actions button.btn-primary {
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(245, 200, 66, 0.18);
  flex: 1;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.package-actions .btn-primary:hover,
.package-actions button.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(245, 200, 66, 0.3);
  transform: translateY(-2px);
}

/* 5. Top Destinations — clean luxury, full-card clickable */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  /* Establish a local stacking context to isolate from modal z-index */
  isolation: isolate;
}

/* The anchor IS the card — must be a solid block-level hit target */
.dest-card {
  position: relative;
  z-index: 1;            /* local stacking within isolation context */
  display: block;        /* block so width/height apply correctly */
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
  height: 300px;
  cursor: pointer;
  /* Critical: pointer-events must be auto on the card itself */
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.4s ease,
    box-shadow 0.45s ease,
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  /* Ensure card never becomes invisible to pointer events */
  -webkit-tap-highlight-color: transparent;
}

.dest-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 200, 66, 0.28);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(245,200,66,0.14);
}

.dest-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Image fills the card — must not block pointer events above the anchor */
.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
  pointer-events: none;  /* image must not capture click — anchor does */
}

.dest-card:hover img {
  transform: scale(1.07);
}

/* Overlay is decorative only — must NOT block the anchor's click region */
.dest-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 48px 22px 22px;
  background: linear-gradient(
    transparent 0%,
    rgba(5, 10, 24, 0.45) 40%,
    rgba(5, 10, 24, 0.93) 100%
  );
  pointer-events: none;  /* must never intercept clicks */
  z-index: 2;            /* above img, below nothing that matters */
}

.dest-title {
  font-size: 1.38rem;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.dest-count {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* 7. Statistics */
.stats-section {
  background: linear-gradient(rgba(5,10,24,0.9), rgba(5,10,24,0.9)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=2021&q=80') fixed center/cover;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.stat-circle {
  width: 112px; height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 180, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-accent);
  font-size: 2.75rem;
  color: var(--gold);
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.15);
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 8. Testimonials */
.testimonials-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
  min-width: 400px;
  padding: 30px;
  border-radius: 20px;
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.testi-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testi-name { font-weight: bold; font-size: 1.1rem; }
.testi-loc { color: var(--text-muted); font-size: 0.9rem; }
.testi-stars { color: var(--gold); margin-top: 5px; }

.testi-text {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
}

/* 9. Newsletter */
.newsletter-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  margin-top: 30px;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 30px;
  border: var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
}

.newsletter-form button {
  padding: 15px 40px;
}

/* 10. Footer */
.footer {
  background: #02050d;
  padding: 80px 5% 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about p {
  color: var(--text-muted);
  margin: 20px 0;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: #000;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  background: var(--teal);
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--teal);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Homepage destination cards — fade-in only, no translateY.
   KEY FIX: explicitly reset transition-delay to 0.
   The global .reveal-delay-N classes set transition-delay,
   which caused Dubai / Maldives / Kashmir to stay invisible
   (opacity:0) if the IntersectionObserver fired while those cards
   were near the -50px rootMargin boundary. All 4 cards now
   fade in together with no delay offset. */
#destinations .dest-card.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0s !important;  /* override .reveal-delay-N */
}
#destinations .dest-card.reveal.active {
  opacity: 1;
  transform: none;
}

#home,
#about {
  scroll-margin-top: 96px;
}

#packages,
#destinations,
#categories {
  scroll-margin-top: 135px;
}

/* Categories Tab Switcher */
.categories-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-content.active {
  display: grid;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .search-bar { flex-direction: column; border-radius: 20px; max-width: 600px; }
  .search-input { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 18px; width: 100%; }
  .search-input:last-of-type { border-bottom: none; }
  .search-btn { margin: 8px; width: calc(100% - 16px); border-radius: 14px; padding: 14px; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .hero p { font-size: 1rem; margin-bottom: 32px; }
  .hero-content { padding-top: 0; }
  .search-bar { max-width: 100%; border-radius: 18px; }
  .popular-searches { gap: 8px; }
  .chip { padding: 7px 14px; font-size: 0.8rem; }
  .hero-scroll-hint { display: none; }
  .destinations-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .popular-searches { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 0.78rem; }
}

/* Skeleton Loading Cards */
.loading-cards {
  display: contents; /* makes children part of the grid */
}

.skeleton-card {
  border-radius: 20px;
  height: 380px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   PREMIUM BOOKING MODAL
   ============================================================ */
.booking-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.booking-modal-content {
  background: rgba(13, 27, 54, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: 100%;
  max-width: 540px;
  padding: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-modal.active .booking-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}

.modal-close:hover {
  background: rgba(245, 200, 66, 0.15);
  color: var(--gold);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.modal-header h2 {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 8px;
}

#modalPackageTitle {
  color: var(--teal);
  font-size: 1.05rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(5, 10, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  border-color: var(--teal);
  background: rgba(5, 10, 24, 0.8);
  box-shadow: 0 0 12px rgba(0, 212, 180, 0.25);
}

.form-price-display {
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 10px 0;
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn-outline-modal {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-modal:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--teal);
  color: var(--teal);
}

.booking-form .btn-primary {
  margin-top: 8px;
  padding: 13px 20px;
  font-size: 1rem;
}

/* Global booking modal (#global-booking-modal) — must not intercept clicks when closed */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 28px);
  background: rgba(5, 10, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Closed global booking layer must never sit above page links (defensive against cascade bugs) */
#global-booking-modal:not(.active) {
  pointer-events: none;
}

.booking-modal-card {
  background: rgba(13, 27, 54, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  padding: 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-overlay.active .booking-modal-card {
  transform: translateY(0) scale(1);
}

.booking-success-stage {
  text-align: center;
  padding: 8px 4px 12px;
}

.booking-success-icon {
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 16px;
  line-height: 1;
}

.booking-success-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 12px auto 24px;
  max-width: 36em;
}

.booking-success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-success-actions .btn-primary,
.booking-success-actions .btn-outline-modal {
  width: 100%;
  justify-content: center;
}

#modal-error-wa-btn {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.modal-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--gold);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-form .form-group {
  margin-bottom: 20px;
}

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-form .form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(5, 10, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.modal-form .form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(0, 212, 180, 0.2);
}

.modal-form textarea.form-input {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.modal-form .input-error {
  border-color: #ff4d4d !important;
}

.modal-form .field-hint {
  display: block;
  font-size: 0.75rem;
  color: #ff4d4d;
  margin-top: 4px;
}

.modal-spinner {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13, 27, 54, 0.9);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  display: none;
}

.modal-spinner .spinner-ring {
  width: 50px; height: 50px;
  border: 3px solid rgba(0, 212, 180, 0.1);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin-modal 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin-modal {
  100% { transform: rotate(360deg); }
}

/* User Profile Dropdown Styles */
.user-profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s;
}

.profile-dropdown-toggle:hover {
  color: var(--gold);
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background: #0b1329;
  border: var(--glass-border);
  border-radius: 12px;
  padding: 10px 0;
  margin-top: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 1100;
}

.profile-dropdown-menu.show {
  display: flex;
}

.profile-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.profile-dropdown-menu li a:hover {
  color: var(--bg-deep) !important;
  background: var(--gold);
}

.profile-dropdown-menu li a i {
  font-size: 0.95rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

.btn-login-nav {
  background: var(--teal) !important;
  color: #050a18 !important;
  padding: 6px 16px !important;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: all 0.3s;
}

.btn-login-nav:hover {
  background: #00e6c3 !important;
  box-shadow: 0 0 10px rgba(0, 212, 180, 0.2);
}

/* Responsive Mobile Navigation (Dynamic Navbar Support) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
    order: 3;
  }
  .menu-toggle:hover {
    color: var(--gold);
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #050a18;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 100px 30px 30px 30px;
    gap: 20px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0 !important;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
    padding: 10px 0;
  }
  
  .nav-actions {
    margin-right: 15px;
    order: 2;
  }
  
  .navbar .logo {
    order: 1;
  }
}
