/* Final mobile layout pass — loaded after each page stylesheet. */
@media (min-width: 961px) {
  .hamburger { display: none !important; }
}

@media (max-width: 700px) {
  html, body { width: 100%; overflow-x: clip; }
  img, video, iframe { max-width: 100%; }

  .container, .nav-container, .page-hero-content,
  .section-header, .footer-grid {
    width: min(100% - 32px, 1180px);
  }

  section { overflow: clip; }
  .section, .page-section { padding-block: clamp(3.25rem, 10vw, 4.5rem); }

  .navbar { min-height: 64px; }
  .nav-container { min-height: 64px; gap: .55rem; }
  .nav-logo { min-width: 0; }
  .logo-img { width: 38px; height: 38px; }
  .logo-text { font-size: 1rem; white-space: nowrap; }
  .theme-toggle { width: 38px; height: 38px; min-width: 38px; }
  .hamburger { width: 40px; height: 40px; min-width: 40px; }

  /* The menu stays off canvas until the hamburger opens it; its own scrolling
     keeps every navigation item reachable on compact phones. */
  .nav-menu {
    width: min(84vw, 330px);
    max-width: 330px;
    min-height: 100dvh;
    padding: 5.5rem 1.25rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-menu li, .nav-menu .nav-link { width: 100%; }
  .nav-menu .nav-link { min-height: 46px; display: flex; align-items: center; }

  .page-hero { min-height: 300px; padding: 6.25rem 0 3.25rem; }
  .page-hero-content h1 { font-size: clamp(2rem, 10vw, 2.75rem); line-height: 1.05; }
  .page-hero-content p { font-size: .9rem; }

  .footer { padding-top: 2.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .footer-bottom { flex-direction: column; gap: .35rem; text-align: center; padding-block: 1rem; }

  .btn { min-height: 44px; justify-content: center; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 420px) {
  .container, .nav-container, .page-hero-content,
  .section-header, .footer-grid { width: min(100% - 24px, 1180px); }
  .logo-text { font-size: .9rem; }
  .nav-menu { width: min(88vw, 320px); }
}

/* Homepage: preserve a clear visual rhythm on narrow screens. */
@media (max-width: 700px) {
  .hero {
    min-height: 680px;
    padding: 7.25rem 16px 3rem;
    display: flex !important;
    align-items: flex-start;
  }
  .hero-content { width: min(100%, 540px); margin-inline: auto; }
  .hero-eyebrow { font-size: .62rem; letter-spacing: .7px; }
  .hero-title { font-size: clamp(2.45rem, 12vw, 3.5rem); line-height: .98; }
  .hero-subtitle { font-size: .84rem; line-height: 1.7; }
  .hero-subtitle br { display: none; }
  .hero-trust-strip { width: 100%; flex-wrap: wrap; justify-content: center; gap: .4rem .65rem; }
  .hero-btns { width: 100%; flex-direction: column; gap: .75rem; }
  .hero-btns .btn { width: 100%; }
  .hero-wa-link { font-size: .78rem; text-align: center; }
  .hero-stats { width: 100%; margin-top: 1.6rem; }
  .hero-stat { min-width: 50%; padding: .75rem .35rem; }
  .hero-scroll { display: none; }

  .visa-finder-section { padding-inline: 16px; }
  .visa-finder-container { width: min(100%, 680px); }
  .visa-search-panel { padding: 1rem; }
  .visa-search-shell { border-radius: 16px; }
  .section-title { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05; }
  .dest-mosaic, .gallery-row, .upcoming-luxury-grid { width: 100%; }
}

@media (max-width: 420px) {
  .hero { min-height: 650px; padding-inline: 12px; }
  .hero-title { font-size: clamp(2.25rem, 12vw, 3rem); }
  .hero-trust-strip { padding: .6rem; font-size: .67rem; }
  .hero-trust-strip .hts-divider { display: none; }
}

/* ============================================================
   MOBILE PASS 2 — clipped headlines, scroll rows, tap targets,
   legible micro-type, and clearance for the floating buttons.
============================================================ */

@media (max-width: 700px) {
  /* The desktop headline is set `white-space: nowrap` at ~48px, which
     clips "Explore the world" on a phone. Let it wrap and scale down. */
  .visa-finder-copy h2 {
    white-space: normal;
    font-size: clamp(2.15rem, 9.6vw, 3rem);
    line-height: 1.02;
    letter-spacing: -1.1px;
  }

  /* Any horizontal rail: keep the swipe, drop the grey scrollbar that
     renders as a hard bar across the panel on Android/desktop Chrome. */
  .visa-popular,
  .booking-tabs,
  .ota-service-tabs,
  .test-track,
  .dest-mosaic,
  .gallery-row {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .visa-popular::-webkit-scrollbar,
  .booking-tabs::-webkit-scrollbar,
  .ota-service-tabs::-webkit-scrollbar,
  .test-track::-webkit-scrollbar,
  .dest-mosaic::-webkit-scrollbar,
  .gallery-row::-webkit-scrollbar { width: 0; height: 0; display: none; }

  /* Four booking tabs cannot fit 375px, so the row scrolls. A masked
     right edge is the cue that "Holidays" is still there. */
  .booking-tabs {
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .booking-tabs a { scroll-snap-align: start; min-width: 96px; }
  .visa-popular { scroll-snap-type: x proximity; }
  .visa-popular > * { scroll-snap-align: start; }

  /* Micro-type floors: nothing below ~10px on a phone. */
  .booking-field label { font-size: .63rem; letter-spacing: 1px; }
  .booking-note { font-size: .7rem; }
  .multi-city-head { font-size: .7rem; }
  .pkg-badge, .pkg-country, .pkg-price-lbl,
  .fp-old-price, .fp-save,
  .dest-package-badge, .dest-package-kicker,
  .svc-badge, .svc-card-tag,
  .gi-badge, .exec-label, .exec-rank-badge,
  .photo-badge, .tc-badge, .ps-step-badge, .pm-badge,
  .hero-stat-lbl { font-size: .66rem; letter-spacing: .6px; }

  /* Tap targets: 44px is the comfortable minimum on touch. */
  .social-link {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
  }
  .soc-btn, .tc-view-btn, .dm-btn,
  .contact-social-btn, .checklist-link, .svc-mini-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-links a, .footer-services a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* The chat launcher and contact stack are fixed at bottom:16px and are
     ~50px tall, so the last rows of content need room to clear them. */
  .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .booking-hero { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .cta-section { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Small phones ── */
@media (max-width: 380px) {
  .visa-finder-copy h2 { font-size: clamp(2rem, 9.2vw, 2.6rem); letter-spacing: -.9px; }
  .hero-title { font-size: clamp(2.15rem, 11.5vw, 2.9rem); }
  .booking-tabs a { min-width: 88px; font-size: .66rem; }
  .trip-types label { font-size: .72rem; }
  .hero-stat { min-width: 50%; }
}

/* ── Landscape phones: the tall hero would otherwise fill the screen ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero, .booking-hero, .visa-finder-section { min-height: auto; }
  .hero { padding-block: 5.5rem 2.5rem; }
  .hero-stats { margin-top: 1rem; }
  .hero-scroll { display: none; }
  .page-hero { min-height: auto; padding: 5.5rem 0 2.5rem; }
}

/* ── Tablets: two columns read better than one stretched column ── */
@media (min-width: 701px) and (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .hero-title { font-size: clamp(2.8rem, 7vw, 4rem); }
  .visa-finder-copy h2 { white-space: normal; font-size: clamp(2.6rem, 7vw, 3.8rem); }
  .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Visa search panel: the homepage's main conversion widget, so its
      labels and country chips need to be readable and thumb-sized. ── */
@media (max-width: 700px) {
  .ota-service-tabs a span,
  .ota-service-tabs button span { font-size: .72rem; }

  .visa-search-input-wrap span { font-size: .66rem; letter-spacing: 1px; }

  .visa-popular span { font-size: .7rem; }
  .visa-popular button {
    min-height: 38px;
    padding-inline: .85rem;
    font-size: .74rem;
  }

  .hero-eyebrow span { font-size: .72rem; }
  .hero-wa-link a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
  }
  .upcoming-luxury-badge { font-size: .68rem; }

  /* Chatbot quick-reply chips render from JS at 9.3px. */
  .cb-quick-label { font-size: .68rem; }

  /* Breadcrumbs and tap-to-call / mailto links. */
  .breadcrumb a,
  .info-card-text a,
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* ── Destinations: region pills and price labels ── */
@media (max-width: 700px) {
  .dest-region-pill { font-size: .66rem; letter-spacing: .5px; }
  .dest-price-lbl,
  .dest-upcoming-label small,
  .upcoming-luxury-card small { font-size: .68rem; }
}
