/* Main CSS File */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --accent: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Navigation */
.navbar {
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* =========================================
   HERO PARALLAX STYLES
   ========================================= */
.hero-parallax {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;

}

/* Common Layer Styles */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  /* Slightly taller to prevent gaps on scroll */
  pointer-events: none;
  /* Let clicks pass through to buttons */
}

.parallax-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layer Specifics */
.layer-bg {
  z-index: 1;
}

.layer-mid {
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

/* Text Content - Centered */
.hero-content {
  position: relative;
  z-index: 10;
  /* Above mountains, behind foreground mist */
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  margin-top: -50px;
  /* Slight optical adjustment */
}

.hero-title {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--brand-orange);
  /* Use your brand color */
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  pointer-events: auto;
  /* Re-enable clicks */
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: var(--brand-blue);
}

/* Layer 4 - Foreground Mist/Gradient */
.layer-front {
  z-index: 20;
  display: flex;
  align-items: flex-end;
}

.gradient-overlay {
  width: 100%;
  height: 30%;
  background: linear-gradient(to top,
      #f4f4f4 0%,
      transparent 100%);
  /* Matches your body bg */
}

/* Placeholder for mountain if no image */
.placeholder-mountain {
  width: 100%;
  height: 60%;
  background-image: url("https://png.pngtree.com/png-vector/20230906/ourmid/pngtree-mountains-range-silhouette-png-image_9961689.png");
  background-size: cover;
  background-position: bottom center;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Tour Cards */
.tour-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: white;
  margin-bottom: 2rem;
  height: 100%;
}

.tour-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

/* =========================================
   RESPONSIVE HEADER & MOBILE MENU
   ========================================= */

/* Mobile Toggler Styles (Hidden on Desktop) */
.navbar-toggler {
  display: none;
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: row;
    /* Keep logo and burger side-by-side */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping for the dropdown */
  }

  /* Make header relative to contain absolute position menu */
  header#mainNav {
    position: relative;
  }

  .navbar-toggler {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    padding: 5px;
    cursor: pointer;
  }

.nav-links {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
  }

  /* Show menu when body has menu-open class */
  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

.nav-links a {
  justify-content: center;
  font-size: 1.1rem;
  padding: 10px;
  width: 100%;
}


  /* Mega Menu Fixes for Mobile */
  .mega-menu {
    position: relative;
    top: 0;
    width: 100%;
    box-shadow: none;
    border-top: 1px solid #eee;
    display: none;
    /* Hidden until toggled via JS or CSS logic */
  }

  /* When hovering or active on mobile */
  .menu-item:hover .mega-menu,
  .menu-item.active .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .menu-promo {
    display: none;
  }
}

/* =========================================
   DESTINATION PAGE RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .fact-item:nth-child(2) {
    border-right: none;
  }

  .fact-item:nth-child(3) {
    border-right: 1px solid #eee;
  }
}

@media (max-width: 768px) {

  /* Destination Hero */
  .destination-title {
    font-size: 2.5rem;
  }

  .destination-subtitle {
    font-size: 1.1rem;
  }

  .destination-hero {
    height: 50vh;
    min-height: 400px;
  }

  /* Quick Facts */
  .quick-facts {
    width: 90%;
    margin-top: -30px;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .fact-item {
    border-right: none !important;
    /* Remove all borders on small screens */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Blog Content */
  .blog-container {
    padding: 2rem 0;
  }

  .blog-main h2 {
    font-size: 1.8rem;
  }

  /* Sidebar */
  .booking-widget {
    margin-top: 2rem;
    position: static;
    /* Stack naturally on mobile */
  }
}

/* Multi-Item Carousel Styles */
#destinationsCarousel .carousel-inner .carousel-item {
  transition: transform 0.5s ease;
}

/* Ensure items are hidden by default (Bootstrap standard) */
#destinationsCarousel .carousel-inner .carousel-item {
  display: none;
  margin-right: 0;
  flex: 0 0 100%;
}

/* Only display active or directional items as flexbox */
#destinationsCarousel .carousel-inner .carousel-item.active,
#destinationsCarousel .carousel-inner .carousel-item-next,
#destinationsCarousel .carousel-inner .carousel-item-prev {
  display: flex;
}

/* Internal divs (cards) setup */
/* Mobile: By default hide all (specifically clones) */
#destinationsCarousel .carousel-inner .carousel-item>div {
  display: none;
  width: 100%;
  padding: 0 10px;
}

/* Carousel Row Standard */
#destinationsCarousel .carousel-inner .row {
  margin: 0;
  width: 100%;
}

/* Multi-Item Carousel Overrides (Consolidated to match head styles) */
@media (min-width: 992px) {
  #destinationsCarousel .carousel-inner .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    width: 100% !important;
  }

  #destinationsCarousel .carousel-inner .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    padding: 0 10px !important;
    display: block !important;
  }
}

@media (max-width: 991px) {
  #destinationsCarousel .carousel-inner .col-lg-4:not(:first-child) {
    display: none !important;
  }

  #destinationsCarousel .carousel-inner .col-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 768px) {
  .destination-card {
    height: 350px !important;
  }
}

/* Adjust images to look professional */
.destination-card {
  height: 400px;
  /* Fixed height for consistency */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.destination-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}