/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Breakpoint Overrides
   ══════════════════════════════════════════════════════════════ */

/* ── Max 1200px ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ── Max 1024px (Tablet Landscape) ──────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
    --fs-3xl: 2rem;
  }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .about-home { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .about-home__img { height: auto !important; object-fit: contain !important; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }

  .detail-content { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }

  .contact-grid { grid-template-columns: 1fr; }

  .about-story { grid-template-columns: 1fr; }

  .guide-services { grid-template-columns: repeat(2, 1fr); }

  .custom-process { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Universal Overflow Protection ────────────────────────── */
html, body {
  overflow-x: hidden;
  width: 100%;
}

img, video, iframe {
  max-width: 100%;
}

/* ── Max 992px (Tablets & Mobile Devices) ─────────────────────────── */
@media (max-width: 992px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.625rem;
    --fs-2xl: 1.375rem;
  }

  .section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-md); }

  /* Navigation → mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4xl) var(--space-lg) var(--space-lg);
    z-index: 999;
    overflow-y: auto;
    transition: right var(--duration-slow) var(--ease-out);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: var(--fs-base);
  }

  .nav-cta {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 8px !important;
  }

  .nav-cta-btn {
    font-size: 0.76rem !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
  }

  /* Dropdown → accordion */
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
    padding: 0;
  }

  .nav-item.open .nav-dropdown {
    max-height: 500px;
    padding: var(--space-sm) 0;
  }

  .dropdown-link {
    padding-left: var(--space-xl);
    border-radius: 0;
  }

  /* Hero */
  .hero, .hero .swiper { min-height: 70vh; height: 70vh; }
  .hero-title { font-size: var(--fs-3xl); }
  .hero-desc { font-size: var(--fs-base); }
  .hero-buttons { flex-direction: column; align-items: center; }

  .hero .swiper-button-next,
  .hero .swiper-button-prev {
    display: none;
  }

  /* Booking */
  .booking-bar { margin-top: -40px; }
  .booking-card { padding: var(--space-lg); }
  .booking-tabs { overflow-x: auto; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-actions { flex-direction: column; }
  .booking-actions .btn { width: 100%; }

  /* Trust strip */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid .trust-item:last-child {
    grid-column: 1 / -1;
  }

  /* Grids */
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .tours-grid { grid-template-columns: 1fr; }
  .fleet-page-grid { grid-template-columns: 1fr; }

  .about-features { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Mobile bar & Floating CTAs */
  .mobile-bar { display: block; }
  .whatsapp-float {
    display: flex !important;
    bottom: calc(var(--mobile-bar-height) + 16px) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
    z-index: 998 !important;
  }
  .phone-float {
    display: flex !important;
    bottom: calc(var(--mobile-bar-height) + 110px) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.15rem !important;
    z-index: 998 !important;
  }
  .back-to-top { bottom: calc(var(--mobile-bar-height) + 170px); }

  /* Page header */
  .page-header { padding: var(--space-2xl) 0; }
  .page-header h1 { font-size: var(--fs-2xl); }

  /* Topbar */
  .topbar-item:nth-child(3) { display: none; }
  .topbar-left { gap: var(--space-md); }
}

/* ── Max 480px (Small Phones) ───────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --fs-5xl: 1.875rem;
    --fs-4xl: 1.625rem;
    --fs-3xl: 1.375rem;
  }

  .topbar-left { flex-direction: column; gap: var(--space-xs); }
  .topbar { padding: var(--space-xs) 0; font-size: var(--fs-xs); }

  .logo-icon { height: 32px !important; }
  .logo-name { font-size: 0.88rem !important; font-weight: 800; white-space: nowrap; }
  .logo-tagline { display: none; }

  .booking-tabs { gap: 0; }
  .booking-tab { padding: var(--space-sm) var(--space-sm); font-size: var(--fs-xs); }

  .trust-grid { grid-template-columns: 1fr; }

  .custom-process { grid-template-columns: 1fr; }

  .guide-services { grid-template-columns: 1fr; }

  .filter-bar { gap: var(--space-xs); }
  .filter-btn { padding: 6px 14px; font-size: var(--fs-xs); }

  .section-header { margin-bottom: var(--space-2xl); }

  .hero-label { font-size: var(--fs-xs); letter-spacing: 2px; }
}

/* ── Max 360px (Smallest screens) ───────────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero, .hero .swiper { min-height: 60vh; height: 60vh; }
  .hero-title { font-size: var(--fs-2xl); }
}
