/* YouGoTrip V12.18.2 — mobile viewport containment and layout repair.
   Add this LAST, after the existing site CSS. Does not alter API or carousel logic. */
html { max-width:100%; }
body { margin:0; width:100%; max-width:100%; min-width:0; }
html, body { overflow-x:clip; }
main, .v11-header, .v11-footer { width:100%; max-width:100%; min-width:0; }
.wrap, .header-inner, .footer-grid, .footer-bottom { min-width:0; }
/* Allow shrinkable flex/grid children to wrap instead of forcing the document wider. */
.header-inner > *, .header-acts > *, .footer-grid > *,
.ygt-live-inner > *, .ygt-live-stage > * { min-width:0; }
img, video { max-width:100%; }
/* The horizontal movement belongs INSIDE the carousel viewport, not on the page. */
#liveGroupStrip { width:100%;max-width:100%;overflow:hidden; }
#liveGroupStrip .ygt-live-inner { max-width:100%; min-width:0; }
#liveGroupStrip .ygt-live-stage { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
#liveGroupStrip .ygt-live-track { width:100%; max-width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; }
#liveGroupStrip .ygt-live-heading h2 { overflow-wrap:anywhere; }
#liveGroupStrip .ygt-showcase-filters { max-width:100%; min-width:0; }
.v11-footer, .v11-footer .footer-grid, .v11-footer .footer-bottom { box-sizing:border-box; }
.v11-footer a, .v11-footer p { overflow-wrap:anywhere; }

@media(max-width: 767px) {
  /* Compact header: preserve logo, search, WhatsApp, CTA and hamburger. */
  .v11-header .header-inner { width:100%;max-width:100%;box-sizing:border-box;
    padding:0 10px !important;gap:5px !important;min-height:65px; }
  .v11-header .logo { width:clamp(106px,31vw,165px) !important;
    flex:0 1 clamp(106px,31vw,165px) !important; height:64px !important;min-width:0; }
  .v11-header .logo img {max-width:100% !important;width:100% !important;object-fit:contain;}
  .v11-header .header-acts {display:flex;flex:0 0 auto;gap:4px !important;align-items:center;margin-left:auto;}
  .v11-header .icon-btn {width:25px;min-width:25px;padding:0;font-size:19px;}
  .v11-header .whatsapp-icon {width:29px;height:29px;flex:0 0 29px;}
  .v11-header .header-acts .btn {font-size:10px;line-height:1.15;
    padding:9px 7px !important;min-height:35px;white-space:nowrap;}
  .v11-header .mobile-menu {flex:0 0 29px;width:29px;min-width:29px;padding:0;font-size:22px;}
  .v11-header .v11-nav {max-width:100%;box-sizing:border-box;}
  .wrap {width:calc(100% - 28px);max-width:100%;}
  #liveGroupStrip .ygt-live-inner {width:calc(100% - 28px) !important;margin:0 auto;}
  #liveGroupStrip .ygt-live-stage {padding:0 29px !important;}
  #liveGroupStrip .ygt-live-item.ygt-luxe-card {flex:0 0 100% !important;
    min-width:0;max-width:100%;height:360px;}
  #liveGroupStrip .ygt-live-arrow {width:27px;height:38px;}
  #liveGroupStrip .ygt-showcase-filters {display:flex;flex-wrap:wrap;gap:8px;}
  #liveGroupStrip .ygt-showcase-filter {max-width:100%;white-space:normal;text-align:center;}
  .v11-footer {width:100% !important;max-width:100%;margin:0 !important;}
  .v11-footer .footer-grid {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:22px 14px !important;width:calc(100% - 28px);max-width:100%;margin:0 auto;}
  .v11-footer .footer-grid > div {grid-column:auto !important;min-width:0;}
  .v11-footer .footer-grid > div:first-child {grid-column:1/-1 !important;}
  .v11-footer .footer-grid img {width:min(210px,100%) !important;height:auto !important;}
  .v11-footer .footer-bottom {width:calc(100% - 28px);max-width:100%;margin-left:auto;margin-right:auto;}
  .v11-footer .footer-bottom div {display:flex;flex-wrap:wrap;gap:7px 14px;}
  .detail-layout, .detail-main, .detail-panel, .package-intro, .content-panel,
  .detail-photo, .package-hero, .tour-card {min-width:0;max-width:100%;}
}
@media(max-width:360px) {
  .v11-header .header-inner {padding:0 7px !important;gap:3px !important;}
  .v11-header .logo {width:104px !important;flex-basis:104px !important;height:59px !important;}
  .v11-header .header-acts {gap:3px !important;}
  .v11-header .header-acts .btn {font-size:9px;padding:8px 5px !important;}
  .v11-header .icon-btn {width:22px;min-width:22px;}
  .v11-header .whatsapp-icon {width:26px;height:26px;flex-basis:26px;}
  .v11-header .mobile-menu {width:25px;min-width:25px;flex-basis:25px;}
  .v11-footer .footer-grid {grid-template-columns:minmax(0,1fr) !important;}
  .v11-footer .footer-grid > div:first-child {grid-column:auto !important;}
}
