/* Responsive Design Breakpoints */

/* ==========================================================================
   1. Large Desktop (1440px and above)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    --container-max: 1380px;
  }

  .hero-section {
    min-height: 96vh;
  }
}

/* ==========================================================================
   2. Desktop (1024px – 1439px)
   ========================================================================== */
@media (max-width: 1240px) {
  .destinations-layout {
    grid-template-columns: 280px 1fr 160px;
    gap: var(--space-xl);
  }

  .intro-editorial-row {
    grid-template-columns: 200px 1fr 180px;
    gap: var(--space-xl);
  }

  .planning-panel {
    gap: var(--space-xl);
    padding: 36px;
  }
}

/* ==========================================================================
   3. Tablet (768px – 1023px)
   ========================================================================== */
@media (max-width: 1180px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Navigation */
  .nav-menu,
  .btn-nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

  /* Hero */
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2xl);
  }

  .hero-float-card {
    width: 100%;
    max-width: 360px;
  }

  /* Intro Section */
  .intro-editorial-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-photo-left,
  .intro-photo-right {
    display: none;
  }

  .intro-center-content {
    padding: 0;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Destinations */
  .destinations-layout {
    grid-template-columns: 1fr;
  }

  .destinations-left {
    position: static;
    margin-bottom: var(--space-xl);
  }

  .destinations-sidebar-nav {
    display: none;
  }

  /* Packages / Services */
  .package-grid,
  .home-services-grid,
  .services-summary-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Planning Services Accordion */
  .service-acc-row {
    padding: 11px 20px;
    gap: 14px;
  }

  .service-acc-item.is-active .service-acc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 20px;
    gap: 14px;
  }

  .service-acc-item.is-active .service-acc-media {
    width: 100%;
    height: 160px;
    max-height: 160px;
    margin-top: 6px;
  }

  .service-acc-item.is-active .service-acc-media img {
    width: 100%;
    height: 160px;
  }

  /* Experience Categories */
  .experience-grid,
  .exp-journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .experience-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  /* Gallery Carousel */
  .gallery-slider-viewport {
    height: 420px;
  }

  .gallery-item {
    width: 250px;
    height: 380px;
  }

  /* Testimonial */
  .testi-card-panel {
    grid-template-columns: 240px 1fr 80px;
  }

  .testi-photo-wrap {
    height: 280px;
  }
}

/* ==========================================================================
   4. Mobile (375px – 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --container-padding: 16px;
    --space-5xl: 64px;
    --space-4xl: 48px;
  }

  .hero-section {
    padding-top: 100px;
    min-height: 85vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-text-content {
    max-width: 100%;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 11, 24, 0.75) 0%,
      rgba(2, 11, 24, 0.70) 40%,
      rgba(2, 11, 24, 0.94) 100%
    ) !important;
  }

  .package-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .package-card-media {
    width: 100%;
    height: 180px;
  }

  .service-summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 14px;
  }

  .service-summary-media {
    width: 100%;
    height: 190px;
  }

  .service-summary-body {
    min-height: auto;
  }

  .service-acc-row {
    padding: 10px 14px;
    gap: 12px;
    min-height: 46px;
  }

  .service-acc-num {
    font-size: 0.82rem;
    width: 24px;
  }

  .service-acc-title {
    font-size: 0.98rem;
  }

  .service-acc-item.is-active .service-acc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px;
    gap: 10px;
  }

  .service-acc-item.is-active .service-acc-media {
    width: 100%;
    height: 150px;
    max-height: 150px;
    margin-top: 6px;
  }

  .service-acc-item.is-active .service-acc-media img {
    width: 100%;
    height: 150px;
  }

  .experience-grid,
  .exp-journey-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-slider-viewport {
    height: 380px;
  }

  .gallery-item {
    width: 230px;
    height: 330px;
  }

  .testi-card-panel {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .testi-photo-col {
    padding: 14px 14px 0 14px;
  }

  .testi-photo-wrap {
    height: 240px;
  }

  .testi-content-col {
    padding: 20px 20px 16px 20px;
  }

  .testi-controls-col {
    border-left: none;
    border-top: 1px solid #f1f5f9;
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    height: 56px;
  }

  .testi-nav-btn.is-next {
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
  }
}

/* ==========================================================================
   5. Small Mobile (320px – 374px)
   ========================================================================== */
@media (max-width: 374px) {
  .hero-display-title {
    font-size: 3.2rem;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
