/* Clio mobile layer: shorter page, swipe rows, light header, sticky booking bar */
.mbar{display:none}
@media (max-width: 760px){
  html,body{overflow-x:hidden}
  body:has(.mbar){padding-bottom:76px}
  .svc{position:static!important}

  /* header: compact and not sticky, so the page gets the whole screen */
  header{position:static!important;backdrop-filter:none!important}
  header nav{padding:12px 18px!important;gap:10px!important}
  header nav > div{gap:10px!important}
  header nav a[href^="#"],header nav a[aria-label="Also on KAYAK"],header nav a.btn{display:none!important}
  header nav span[style*="font-size: 24px"]{font-size:20px!important}

  /* sections: less air */
  section[style*="padding: 110px"]{padding-top:56px!important;padding-bottom:56px!important;padding-left:18px!important;padding-right:18px!important}
  #tours{padding:56px 18px 24px!important}
  #boat{padding:40px 18px!important}
  #boat > div{padding:26px!important;border-radius:28px!important;gap:28px!important}
  #included{padding:8px 18px 48px!important}
  div[style*="margin-bottom: 56px"],div[style*="margin-bottom: 48px"],div[style*="margin-bottom: 64px"]{margin-bottom:26px!important}

  /* hero */
  #top{min-height:0!important;perspective:none!important}
  #top > div[style*="padding: 96px"]{padding:36px 18px 24px!important;gap:26px!important}
  #top div[style*="height: 560px"]{height:320px!important;flex-basis:100%!important;transform:none!important}
  #top > div[style*="bottom: 96px"]{position:relative!important;bottom:auto!important;padding-bottom:70px}
  #top > div[style*="bottom: 96px"] > div{padding:0 18px!important}
  #top > div[style*="bottom: 96px"] div[style*="flex: 1 1 200px"]{flex:0 0 50%!important;box-sizing:border-box;padding:14px 16px!important;border-right:0!important}
  #top > div[style*="bottom: 96px"] div[style*="flex: 1 1 200px"] > div:first-child{font-size:24px!important}
  #top h1{font-size:44px!important}
  #top p{font-size:17px!important}

  /* swipe rows instead of long stacks */
  section[style*="FFE8EF"] div[style*="grid-template-columns"],
  #tours > div[style*="grid-template-columns"],
  #reviews div[style*="column-width"]{
    display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    gap:14px!important;columns:auto!important;column-width:auto!important;
    margin:0 -18px!important;padding:6px 18px 18px!important;scrollbar-width:none;overscroll-behavior-x:contain}
  section[style*="FFE8EF"] div[style*="grid-template-columns"]::-webkit-scrollbar,
  #tours > div[style*="grid-template-columns"]::-webkit-scrollbar,
  #reviews div[style*="column-width"]::-webkit-scrollbar{display:none}
  section[style*="FFE8EF"] div[style*="grid-template-columns"] > *{flex:0 0 68%!important;scroll-snap-align:center;transform:none!important}
  #tours > div[style*="grid-template-columns"] > *{flex:0 0 84%!important;scroll-snap-align:center}
  #reviews div[style*="column-width"] > *{flex:0 0 84%!important;scroll-snap-align:center;margin:0!important;break-inside:auto}
  .swipe-hint{display:block!important}

  /* tours: quote bar stacks neatly */
  #tours div[style*="padding: 26px 30px"]{padding:20px!important;gap:16px!important}
  #tours div[style*="padding: 26px 30px"] div[style*="width: 1px"]{display:none}
  #tours div[style*="padding: 26px 30px"] div[style*="text-align: right"]{text-align:left!important}

  /* swim + racoon */
  #swim figure[style*="height: 520px"]{height:280px!important;flex-basis:100%!important}
  #swim figure[style*="height: 251px"]{height:170px!important;flex:1 1 0!important;min-width:0}
  #swim div[style*="flex: 1 1 300px"][style*="flex-direction: column"]{flex-direction:row!important;gap:12px!important}
  #swim figcaption{font-size:12px!important;left:10px!important;bottom:10px!important;padding:6px 10px!important}
  #swim div[style*="min-height: 340px"],#swim figure[style*="min-height: 340px"]{min-height:240px!important}
  #swim h3{font-size:36px!important}

  /* reviews intro */
  #reviews p[style*="clamp(26px"]{font-size:22px!important}

  /* tour pages: tour tabs swipe in one row */
  header nav div[role="group"][aria-label="Choose a tour page"]{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;max-width:100%}
  header nav div[role="group"][aria-label="Choose a tour page"] button{flex:0 0 auto;white-space:nowrap}

  /* sticky booking bar */
  .mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(244,237,225,.96);backdrop-filter:blur(10px);border-top:1px solid rgba(11,34,48,.1)}
  .mbar a{flex:1;display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:999px;font:600 16px Inter,system-ui,sans-serif;text-decoration:none}
  .mbar .b{background:#E0245E;color:#fff}
  .mbar .w{background:#25D366;color:#0B2230;flex:0 0 auto;padding:0 20px}
}
/* reviews as a list */
@media (max-width: 760px){
  #reviews div[style*="column-width"]{display:block!important;overflow:visible!important;columns:1!important;column-width:auto!important;margin:0!important;padding:0!important}
  #reviews div[style*="column-width"] > *{margin:0 0 14px!important;flex:none!important}
}

/* quote bar alignment */
#tours div[style*="padding: 26px 30px"]{align-items:flex-end!important}
#tours div[style*="padding: 26px 30px"] > div{align-items:flex-end!important}
#tours div[style*="padding: 26px 30px"] div[style*="width: 1px"]{align-self:center}
