/* Mobile home carousel layout for MACHUPICCHU BEST - stable mobile layout + exact 509x337 images for tours and packages */
.mb-home-carousels{display:none;}
/* Evita el parpadeo inicial: en móvil no se muestra primero la grilla de PC mientras carga el JS móvil. */
@media(max-width:768px){
  html.mb-mobile-boot #tourFilters,
  html.mb-mobile-boot #toursGrid,
  html.mb-mobile-boot #packagesGrid{display:none!important;}
  html.mb-mobile-boot #tours-section{min-height:760px;}
  html.mb-mobile-boot #packages-grid{min-height:540px;}
  #toursGrid,#packagesGrid{contain:layout paint;}
}

@media(max-width:768px){
  body.mb-carousels-ready #tourFilters,
  body.mb-carousels-ready #toursGrid,
  body.mb-carousels-ready #packagesGrid{display:none!important;}
  body.mb-carousels-ready .mb-home-carousels{display:block;}
  #tours-section .section-inner,
  #packages-grid .section-inner{display:block;}
  #tours-section .section-header,
  #packages-grid .section-header{margin-bottom:1.25rem;text-align:left;}
  #tours-section .section-title,
  #packages-grid .section-title{font-size:1.65rem;line-height:1.15;margin-bottom:.45rem;}
  #tours-section .section-sub,
  #packages-grid .section-sub{margin:0;max-width:none;font-size:.92rem;line-height:1.55;color:var(--text2);}
  #tours-section .section-badge,
  #packages-grid .section-badge{display:none;}
  .mb-carousel-block{margin:1.35rem 0 1.75rem;}
  .mb-package-carousels .mb-carousel-block{margin-top:.35rem;}
  .mb-carousel-title{font-family:'Playfair Display',serif;font-size:1.22rem;line-height:1.2;color:var(--text);margin:0 0 .8rem;padding:0 .05rem;}
  .mb-tour-carousel{--mb-card-w:509px;display:flex;gap:1rem;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;padding:.15rem 1rem 1.05rem;margin:0 -1rem;scrollbar-width:none;overscroll-behavior-x:contain;overscroll-behavior-y:auto;}
  .mb-tour-carousel::-webkit-scrollbar{display:none;}
  .mb-tour-carousel .tour-card{flex:0 0 509px;width:509px;min-width:509px;max-width:509px;scroll-snap-align:start;scroll-snap-stop:normal;margin:0;touch-action:pan-x pan-y;contain:layout paint;}
  .mb-tour-carousel .tour-img{width:509px!important;height:337px!important;aspect-ratio:509/337;min-height:337px;max-height:337px;}
  .mb-tour-carousel .tour-img-bg{width:509px!important;height:337px!important;aspect-ratio:509/337;object-fit:cover;display:block;}
  .mb-tour-carousel .tour-body{padding:1rem;}
  .mb-tour-carousel .tour-title{font-size:1rem;line-height:1.28;}
  .mb-tour-carousel .tour-meta{font-size:.72rem;gap:.35rem .65rem;}
  .mb-tour-carousel .tour-foot{display:flex;gap:.55rem;}
  .mb-tour-carousel .btn-detail,
  .mb-tour-carousel .btn-book{min-height:42px;font-size:.78rem;}
  .mb-carousel-empty{flex:0 0 calc(100vw - 2rem);min-height:110px;border:1px dashed rgba(201,168,76,.35);border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--text3);font-size:.88rem;padding:1rem;text-align:center;background:rgba(255,255,255,.03);}
  #packages-grid{padding-top:2.75rem;}
  #mobileTourCarousels .mb-tour-carousel .tour-card,
  #mobilePackageCarousel .mb-tour-carousel .tour-card{flex:0 0 509px;width:509px;min-width:509px;max-width:509px;}
  #mobileTourCarousels .mb-tour-carousel .tour-img,
  #mobilePackageCarousel .mb-tour-carousel .tour-img{width:509px!important;height:337px!important;min-height:337px;max-height:337px;}
  #mobileTourCarousels .mb-tour-carousel .tour-img-bg,
  #mobilePackageCarousel .mb-tour-carousel .tour-img-bg{width:509px!important;height:337px!important;}
}
@media(min-width:769px){
  .mb-home-carousels{display:none!important;}
}
