/* Mobile-first enhancements. Base layout lives in style.css. */

@media (min-width: 720px) {
  .container { width: min(var(--max), calc(100% - 48px)); }

  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }

  .card-grid,
  .post-grid { grid-template-columns: 1fr 1fr; }

  .dest-grid,
  .cat-grid { grid-template-columns: 1fr 1fr; }

  .reason-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

  .legal-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }

  .footer-base {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .enquiry-card,
  .panel { padding: 32px 28px; }

  .quote { padding: 40px 40px 20px; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 980px) {
  :root { --header-h: 132px; }

  .brand picture {
    width: 112px;
    height: 112px;
  }

  .hero-inner { margin-bottom: 7rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .pkg-catalog { grid-template-columns: repeat(3, 1fr); }
  .pkg-facts { grid-template-columns: repeat(4, 1fr); }
  .pkg-highlights,
  .pkg-guide { grid-template-columns: 1fr 1fr; }
  .pkg-split,
  .pkg-note-grid,
  .about-split,
  .enquiry-layout { grid-template-columns: 1.35fr 0.75fr; }
  .step-list,
  .arrange-grid,
  .route-links { grid-template-columns: repeat(2, 1fr); }
  .step-list,
  .arrange-grid { grid-template-columns: repeat(3, 1fr); }

  #international .card-grid,
  .section-abroad .card-grid { grid-template-columns: 1fr 1fr; }

  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .featured {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .featured-media { aspect-ratio: 4 / 5; min-height: 520px; }

  .detail {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .section-head .link-more { margin-left: auto; }
}

@media (min-width: 1180px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    inset: auto;
    height: 100%;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    overflow: visible;
  }

  .nav ul {
    height: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 2px;
  }

  .has-mega {
    position: relative;
    display: flex;
    align-items: stretch;
  }

  .nav-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    gap: 0;
  }

  .nav ul a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.01em;
    line-height: 1;
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
  }

  .nav ul a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav ul a[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    color: #fff;
  }

  .nav ul a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: #f0c14a;
  }

  .nav ul a { position: relative; }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    height: 100%;
  }

  .brand { justify-self: start; align-self: center; }

  .nav {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
  }

  a.nav-cta,
  .nav-cta { display: none !important; }

  .fab-stack {
    position: fixed;
    top: 0;
    right: max(16px, calc((100vw - 1440px) / 2));
    bottom: auto;
    height: var(--header-h);
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 70;
  }

  .fab {
    width: 42px;
    height: 42px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.35) inset,
      0 10px 18px rgba(7, 22, 16, 0.28);
  }

  .fab.fab-wa { background: #25d366; color: #fff; }
  .fab.fab-call { background: linear-gradient(160deg, #f0c14a, #c4922a); color: #10241c; }
  .fab.fab-enquiry { background: #ea4335; color: #fff; }

  .fab:hover {
    transform: translateY(-3px);
  }

  .nav-mobile-actions { display: none; }

  .nav-item { gap: 0; }

  .mega-toggle { color: rgba(255, 255, 255, 0.88); }

  .has-mega { position: relative; }

  .mega {
    display: block;
    position: absolute;
    left: 0;
    right: auto;
    width: min(680px, calc(100vw - 32px));
    top: calc(100% - 8px);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    padding-top: 8px;
    container-type: inline-size;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
  }

  .has-mega:hover > .mega,
  .has-mega:focus-within > .mega,
  .has-mega.is-open > .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-panel {
    grid-template-columns: 210px 1fr;
    gap: 16px;
    margin: 0;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(2, 28, 22, 0.22);
    transform: translateY(8px);
    transition: transform 0.28s var(--ease);
  }

  .has-mega:hover > .mega .mega-panel,
  .has-mega:focus-within > .mega .mega-panel,
  .has-mega.is-open > .mega .mega-panel {
    transform: translateY(0);
  }

  .mega-intro h2 { font-size: 1.7rem; }

  .mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  @container (max-width: 640px) {
    .mega-panel {
      grid-template-columns: 1fr;
    }

    .mega-intro h2 { font-size: 1.45rem; }

    .mega-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav .mega-tile {
      grid-template-columns: 44px 1fr;
      min-height: 52px;
      gap: 8px;
      padding: 6px;
    }

    .nav .mega-tile img,
    .nav .mega-swatch {
      width: 44px;
      height: 36px;
    }
  }
}

@media (min-width: 1200px) {
  .dest-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .reason-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1.1fr; }
}

@media (min-width: 1440px) {
  .hero h1 { font-size: 6.4rem; }
}

@media (max-width: 720px) {
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .float-orb { display: none; }

  .fab-stack {
    flex-direction: row;
    left: auto;
    right: 12px;
  }

  .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); }

  .hero-inner { margin-bottom: 7.25rem; }
}

@media (max-width: 480px) {
  .brand picture {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 359px) {
  .brand picture {
    width: 68px;
    height: 68px;
  }
  .hero-actions .btn { width: 100%; }
  .nav ul a { font-size: 1.2rem; }
}
