/* Step 58: strictly mobile/tablet presentation of the original Step 54 DOM.
   Desktop >= 1025px and original site elements remain untouched. */
@media(max-width:1024px){
 html,body{max-width:100%;overflow-x:clip}
 *,*::before,*::after{box-sizing:border-box}
 img,video,svg{max-width:100%}
 .container{width:calc(100% - 40px)!important;max-width:100%!important;margin-inline:auto!important}
 .site-header{position:relative!important;z-index:1000!important}
 .site-header .header-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:78px!important;gap:12px!important}
 .site-header .wordmark{position:relative!important;inset:auto!important;transform:none!important;flex:0 1 auto!important;min-width:0!important;max-width:calc(100% - 84px)!important}
 .site-header .brand-symbol{max-width:48px!important;max-height:55px!important;object-fit:contain!important}
 .site-header .brand-wording{max-width:100%!important}
 .site-header .mobile-menu{display:grid!important;place-items:center!important;position:relative!important;inset:auto!important;transform:none!important;flex:0 0 50px!important;width:50px!important;height:50px!important;margin:0 0 0 auto!important;padding:0!important;border:1px solid #c2dcd6!important;border-radius:14px!important;background:#f0faf5!important;color:#08685e!important;box-shadow:none!important;cursor:pointer!important;font-size:0!important;line-height:1!important;z-index:1005!important}
 .site-header .mobile-menu::before{content:'☰';font-size:27px!important;line-height:1!important;color:#08685e!important}
 .site-header .mobile-menu[aria-expanded="true"]::before{content:'×';font-size:38px!important;font-weight:300!important}
 .site-header .main-nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:none!important;height:auto!important;max-height:calc(100dvh - 82px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:12px 20px 24px!important;margin:0!important;background:#fff!important;border-top:1px solid #e2eae8!important;box-shadow:0 18px 35px #002b2929!important;z-index:1002!important;visibility:visible!important;opacity:1!important}
 .site-header .main-nav.nav-open{display:flex!important}
 .site-header .main-nav>a,.site-header .tours-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:49px!important;padding:12px 2px!important;margin:0!important;color:#123b37!important;background:transparent!important;border:0!important;border-bottom:1px solid #e7efec!important;border-radius:0!important;font-size:15px!important;font-weight:700!important;text-align:left!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
 .site-header .main-nav .nav-dropdown{position:relative!important;display:block!important;width:100%!important;transform:none!important}
 .site-header .nav-dropdown .mega-menu{display:none!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;box-shadow:none!important;background:#f0f8f5!important;overflow:visible!important}
 .site-header .nav-dropdown.is-open .mega-menu{display:block!important}
 .site-header .mega-menu>*{display:none!important}
 .site-header .mega-menu .step58-mobile-links{display:flex!important;flex-direction:column!important;gap:0!important;padding:7px 14px!important}
 .site-header .step58-mobile-links a{display:block!important;padding:12px 8px!important;font-size:14px!important;font-weight:650!important;color:#155a51!important;text-decoration:none!important;border-bottom:1px solid #dce9e5!important}
 .site-header .step58-mobile-links a:last-child{border:0!important}
 .site-header .tours-toggle[aria-expanded="true"]{color:#087f71!important}
 .site-header .tours-toggle .tiny-chevron{margin-left:auto!important}
 .site-header .header-cta,.site-header .header-phone{display:none!important}
 .site-header .brand-top-strip{display:none!important}
 /* Preserve desktop hero; constrain only mobile copy, never shift it off screen. */
 body:has(.at-hero) .at-hero{width:100%!important;max-width:100%!important;min-height:680px!important;height:min(820px,100svh)!important;overflow:hidden!important}
 body:has(.at-hero) .at-hero-slide,body:has(.at-hero) .at-hero-slides{width:100%!important;max-width:100%!important}
 body:has(.at-hero) .at-hero-copy{position:absolute!important;left:20px!important;right:20px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:auto!important;max-width:calc(100% - 40px)!important;margin:0!important;padding:0!important;text-align:left!important}
 body:has(.at-hero) .at-hero-copy h1{font-size:clamp(42px,8vw,75px)!important;max-width:100%!important;line-height:1.05!important;overflow-wrap:normal!important;word-break:normal!important}
 body:has(.at-hero) .at-hero-copy p{font-size:clamp(15px,2.6vw,19px)!important;line-height:1.55!important;max-width:100%!important}
 body:has(.at-hero) .at-hero-label{max-width:100%!important;white-space:normal!important;font-size:11px!important;letter-spacing:.15em!important}
 body:has(.at-hero) .at-hero-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;max-width:100%!important}
 body:has(.at-hero) .at-hero-actions a{display:inline-flex!important;max-width:100%!important;min-height:50px!important;align-items:center!important;justify-content:center!important;padding:12px 16px!important;font-size:13px!important;white-space:normal!important}
 body:has(.at-hero) .at-search-shell{max-width:calc(100% - 28px)!important;margin-inline:auto!important}
 .at-search-shell form,.trip-finder,.finder-fields{max-width:100%!important}
 /* Inner hero and common section elements */
 :is(.svc40-hero-inner,.ab34-hero-grid,.cc-hero-inner,.g35-hero-inner){max-width:100%!important}
 :is(.svc40-hero,.ab34-hero,.cc-hero,.g35-hero) h1{font-size:clamp(38px,7.5vw,70px)!important;overflow-wrap:break-word!important}
 main :is(h1,h2,h3,p),.g35-main :is(h1,h2,h3,p){max-width:100%}
 main :is(input,textarea,select,button){max-width:100%}
 main :is(.tour-card,.experience-card,.svc40-card,.g35-card,.booking-card){min-width:0}
 main :is(.tour-grid,.experience-grid,.svc40-grid,.g35-grid){max-width:100%}
 .footer,.site-footer{max-width:100%;overflow:hidden}
}
@media(max-width:767px){
 .container{width:calc(100% - 32px)!important}
 .site-header .header-inner{min-height:70px!important}
 .site-header .brand-symbol{max-width:42px!important}
 .site-header .mobile-menu{flex-basis:46px!important;width:46px!important;height:46px!important}
 body:has(.at-hero) .at-hero{min-height:630px!important;height:88svh!important;max-height:790px!important}
 body:has(.at-hero) .at-hero-copy{left:18px!important;right:18px!important;max-width:calc(100% - 36px)!important;top:48%!important}
 body:has(.at-hero) .at-hero-copy h1{font-size:clamp(37px,10vw,57px)!important;letter-spacing:-.055em!important}
 body:has(.at-hero) .at-hero-copy p{font-size:15px!important}
 body:has(.at-hero) .at-hero-actions{flex-direction:column!important;align-items:stretch!important}
 body:has(.at-hero) .at-hero-actions a{width:100%!important;min-height:48px!important}
 body:has(.at-hero) .at-search-shell{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important}
 :is(.svc40-hero,.ab34-hero,.cc-hero,.g35-hero) h1{font-size:clamp(35px,9vw,52px)!important}
 main :is(.tour-grid,.experience-grid,.svc40-grid,.g35-grid){grid-template-columns:minmax(0,1fr)!important}
 .footer .container,.site-footer .container{max-width:100%!important}
}
@media(max-width:370px){
 body:has(.at-hero) .at-hero-copy h1{font-size:35px!important}
 body:has(.at-hero) .at-hero-copy{top:49%!important}
 .site-header .brand-wording{font-size:12px!important}
}
