/* Permanent public header actions: never hide Tour packages or Car rental. */
@media (max-width: 850px) {
  .site-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: .55rem !important;
    min-height: 58px !important;
    padding: 6px 12px !important;
  }

  .menu-button { display: none !important; }

  .site-nav,
  .site-nav.is-open {
    position: static !important;
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .4rem !important;
    width: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-nav .nav-action {
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: .55rem .72rem !important;
    font-size: .76rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

/* Dense layout for a typical five-inch phone (360-390 CSS pixels wide). */
@media (max-width: 600px) {
  html, body { overflow-x: hidden !important; }

  .site-header {
    gap: .35rem !important;
    min-height: 54px !important;
    padding: 5px 8px !important;
  }

  .brand img,
  body .site-header .brand > img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    flex-basis: 38px !important;
  }

  .site-nav,
  .site-nav.is-open { gap: 4px !important; }

  .site-nav .nav-action {
    padding: .46rem .52rem !important;
    font-size: .66rem !important;
    letter-spacing: -.01em !important;
  }

  /* Homepage: one-line route, 12 stops, then the 3D title and photos. */
  .route-gallery-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .45rem !important;
    padding: .75rem 10px .8rem !important;
  }

  .route-gallery-top .route-gallery-copy { display: contents !important; }
  .route-gallery-top .route-gallery-copy > .eyebrow { order: 1; margin: 0 0 .1rem !important; }
  .route-gallery-top .route-gallery-copy > h1 {
    order: 2;
    max-width: none !important;
    font-size: clamp(1.45rem, 6.6vw, 1.85rem) !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
    white-space: nowrap !important;
  }
  .route-gallery-top .route-gallery-copy > h1 br { display: none !important; }
  .route-gallery-top .route-gallery-copy > h1 [data-route-to]::before { content: " "; }
  .route-gallery-top .route-gallery-description { order: 3; margin: .4rem 0 .55rem !important; }
  .route-gallery-top .route-gallery-actions { order: 4; gap: .65rem !important; }
  .route-gallery-top .route-gallery-stage {
    order: 5;
    width: 100% !important;
    min-height: 350px !important;
    margin: -.45rem auto 0 !important;
  }
  .route-gallery-top .route-gallery-picks {
    order: 6;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 4px !important;
    margin-top: 0 !important;
  }
  .route-gallery-top .route-gallery-picks button {
    min-height: 42px !important;
    width: 100% !important;
    padding: .34rem .18rem !important;
    gap: .14rem !important;
    font-size: .57rem !important;
    line-height: 1.05 !important;
    letter-spacing: -.015em !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  .route-gallery-top .route-gallery-picks button span {
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.05 !important;
  }
  .route-gallery-top .route-gallery-picks b { font-size: .66rem !important; }
  .route-gallery-top .route-gallery-word-layer {
    top: 0 !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 8 !important;
  }
  .route-gallery-top .route-gallery-word { font-size: 3.35rem !important; }
  .route-gallery-top .route-plate { top: -9% !important; }
  .route-gallery-top .route-gallery-rings { top: -11% !important; }
  .route-gallery-top .route-gallery-postcard-layer {
    left: 4% !important;
    right: auto !important;
    top: 18% !important;
  }
  .route-gallery-top .route-gallery-actions .button { padding: .65rem .9rem !important; font-size: .72rem !important; }
  .route-gallery-top .route-gallery-actions > span { font-size: .57rem !important; }

  /* Remove dead vertical space while retaining readable text. */
  .intro-strip { padding: .65rem 10px !important; gap: .45rem !important; }
  .section,
  .service-section { padding: 1.15rem 10px !important; }
  .page-hero { padding: .85rem 10px 1rem !important; gap: .7rem !important; }
  .page-hero-visual,
  .page-hero-visual img { min-height: 190px !important; height: 190px !important; }
  .service-heading,
  .section-heading,
  .rental-preview-top,
  .booking-layout { gap: .65rem !important; margin-bottom: .7rem !important; }
  .rental-preview.section { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  #journeys,
  #rental-overview,
  #promise,
  #stories,
  #planner { margin-top: 0 !important; padding-top: 1rem !important; padding-bottom: 1rem !important; }
  #rental-overview .rental-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
  #rental-overview .rental-preview-card { height: 205px !important; min-height: 0 !important; }
  #rental-overview .rental-preview-card > div { padding: .65rem !important; }
  #rental-overview .rental-preview-card h3 { font-size: 1.28rem !important; }
  #rental-overview .rental-preview-card p { display: none !important; }

  .package-grid,
  .rental-card-grid { gap: 6px !important; }
  .package-card > div,
  .rental-card > div { padding: .6rem !important; }
  .detail-grid { padding: 1rem 10px !important; }

  .car-rental-page .fare-section,
  .car-rental-page .independent-cars { padding-left: 6px !important; padding-right: 6px !important; }
  .car-rental-page .catalog-toolbar { margin-bottom: 5px !important; }
  .car-rental-page .independent-car-grid { gap: 4px !important; }

  .footer-owner-registration { padding: .7rem 6px !important; }
  .footer-owner-heading { gap: .45rem !important; margin-bottom: .5rem !important; }
  .owner-registration-form { gap: .4rem !important; }
  footer { padding: 1rem 10px !important; gap: .65rem !important; }
}

@media (max-width: 360px) {
  .site-nav .nav-action { padding-inline: .42rem !important; font-size: .62rem !important; }
  .site-nav .nav-action span { display: none !important; }
}
