/* MB-WORLD 2.6 v0.3.5 · responsive finishing pass.
 * Only mobile/tablet presentation and touch behavior. No CRM or content changes.
 * Loaded LAST to override legacy media-query declarations safely.
 */
@media (max-width: 800px) {
  body.mbw26-body .navbox,
  body.mbw26-body .site-header .container,
  body.mbw26-body .catalog-layout,
  body.mbw26-body .mbw33-calendar__event,
  body.mbw26-body .mbw26-tour-hero-layout { min-width: 0; }
  body.mbw26-body .navlinks a,
  body.mbw26-body .menu-toggle { -webkit-tap-highlight-color: transparent; }
  body.mbw26-body .menu-toggle,
  body.mbw26-body .mobile-filters-toggle { min-height: 44px; }
  body.mbw26-body .mbw26-tour-hero-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }
  body.mbw26-body .mbw26-tour-gallery__stage,
  body.mbw26-body .mbw26-tour-hero-layout .tour-cover { height: auto; aspect-ratio: 3 / 2; }
  body.mbw26-body .mbw26-hero-booking__panel { height:auto; }
  body.mbw26-body .mbw26-follow__actions { gap: 10px; }
}
@media (max-width: 600px) {
  body.mbw26-body .container { width: calc(100% - 32px); max-width: 100%; }
  body.mbw26-body .hero { min-height: 0; }
  body.mbw26-body .hero__inner { padding-top: 77px; padding-bottom: 115px; }
  body.mbw26-body .hero h1 {
    font-size: clamp(38px, 10.4vw, 47px);
    max-width: 100%;
    line-height: 1.07;
    letter-spacing: -.045em;
  }
  body.mbw26-body .hero__desc { font-size: 15px; line-height: 1.58; }
  body.mbw26-body .hero__actions { gap: 10px; }
  body.mbw26-body .hero__actions a { min-height: 46px; display:inline-flex; align-items:center; }
  body.mbw26-body .search-panel { margin-top: -55px; }
  body.mbw26-body .search-panel .search-grid { grid-template-columns: minmax(0,1fr); }
  body.mbw26-body .search-field { min-width: 0; }
  body.mbw26-body .search-field select,
  body.mbw26-body .filters-panel select,
  body.mbw26-body .filters-panel input,
  body.mbw26-body .mbw33-calendar__country-form select,
  body.mbw26-body .mbw34-catalog__sort select { font-size: 16px; } /* prevents iOS focus zoom */
  body.mbw26-body .search-panel__head span { line-height: 1.45; }
  body.mbw26-body .filter-strip { -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  body.mbw26-body .filter-chip,
  body.mbw26-body .mbw34-catalog__month,
  body.mbw26-body .mbw33-calendar__month { min-height: 44px; display:inline-flex; align-items:center; justify-content:center; }
  body.mbw26-body .section-title h2 { line-height:1.12; overflow-wrap:break-word; }
  body.mbw26-body .tourcard,
  body.mbw26-body .mbw33-calendar__event { min-width:0; }
  body.mbw26-body .tourcard__body { min-width:0; }
  body.mbw26-body .mbw34-catalog__toolbar { gap: 10px; }
  body.mbw26-body .mbw34-catalog__sort { min-width:0; }
  body.mbw26-body .mbw34-catalog__sort select { min-width:0; }
  body.mbw26-body .mbw34-catalog .mobile-filters-toggle { width:100%; text-align:left; }
  body.mbw26-body .mbw33-calendar__booking { min-width:0; }
  body.mbw26-body .mbw33-calendar__price { overflow-wrap:anywhere; }
  body.mbw26-body .mbw26-tour-hero-layout .mbw26-tour-gallery__stage,
  body.mbw26-body .mbw26-tour-hero-layout .tour-cover { height:auto; aspect-ratio:3/2; }
  body.mbw26-body .mbw26-tour-hero-layout .mbw26-hero-thumbs {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px;
  }
  body.mbw26-body .mbw26-tour-hero-layout .mbw26-hero-thumbs > a,
  body.mbw26-body .mbw26-tour-hero-layout .mbw26-hero-thumbs > button,
  body.mbw26-body .mbw26-tour-hero-layout .mbw26-hero-thumbs > .mbw26-hero-empty-tile {
    width:100%; min-width:0; height:auto; aspect-ratio:3/2;
  }
  body.mbw26-body .mbw26-tour-gallery__prev,
  body.mbw26-body .mbw26-tour-gallery__next { width:44px;height:44px; }
  body.mbw26-body .mbw26-hero-booking__panel { padding:20px; }
  body.mbw26-body .mbw26-hero-booking__places,
  body.mbw26-body .mbw26-hero-booking__dates { overflow-wrap:break-word; }
  body.mbw26-body .mbw26-hero-booking__purchase a.mbw26-hero-booking__ask,
  body.mbw26-body .mbw26-hero-booking__purchase a.mbw26-hero-booking__request { min-height:48px; }
  body.mbw26-body .day-item summary { gap:8px 10px; }
  body.mbw26-body .day-item summary strong { flex:1 1 55%; line-height:1.35; }
  body.mbw26-body .tour-details { padding-bottom:55px; }
  body.mbw26-body .mbw26-follow__actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.mbw26-body .mbw26-follow__button { min-width:0; width:100%; }
}
@media (max-width: 360px) {
  body.mbw26-body .brand strong { font-size:17px; }
  body.mbw26-body .hero h1 { font-size: 37px; }
  body.mbw26-body .hero__actions { align-items:stretch; flex-direction:column; }
  body.mbw26-body .hero__actions a { width:100%; justify-content:center; }
  body.mbw26-body .mbw26-follow__actions { grid-template-columns:1fr; }
  body.mbw26-body .mbw26-footer__main { grid-template-columns:1fr; row-gap:23px; }
  body.mbw26-body .mbw26-footer__identity,
  body.mbw26-body .mbw26-footer__connect { grid-column:1; }
}
@media (prefers-reduced-motion: reduce) {
  body.mbw26-body :is(.mbw26-tour-gallery__thumb,.tourcard,.mbw26-photo-story) { transition:none !important; }
}

/* MB-WORLD 0.3.6 — a larger, legible search icon on phones. */
@media (max-width:600px) {
  body.mbw26-body .search-field .mbw-search-icon--destination {
    flex-basis:38px; width:38px; height:38px;
  }
  body.mbw26-body .search-field .mbw-search-icon--destination svg {
    width:36px; height:36px;
  }
  body.mbw26-body .search-field:has(.mbw-search-icon--destination) {
    column-gap:16px; padding-left:18px;
  }
}

/* v0.3.7: match the mobile search icon dimensions for the month field. */
@media (max-width:600px) {
  body.mbw26-body .search-field .mbw-search-icon--month {
    flex-basis:38px; width:38px; height:38px;
  }
  body.mbw26-body .search-field .mbw-search-icon--month svg {
    width:36px; height:36px;
  }
  body.mbw26-body .search-field:has(.mbw-search-icon--month) {
    column-gap:16px; padding-left:18px;
  }
}
