/* Flyvis phone-only styles (Nov 2026).
   Every rule that touches existing parts of the site sits inside @media (max-width:767px),
   so the desktop site is unchanged. The one rule outside it hides the new tab bar on larger screens. */
.fv-tabbar,.fv-ff-bar,.fv-ff-head,.fv-ff-foot,.fv-ff-backdrop{display:none}

@media (max-width:767px){
  /* stop half-animated cards (e.g. the tilted help card on Visas) from widening the page,
     which made phones zoom the whole page out slightly and pushed the tab bar off the bottom */
  html,body{overflow-x:clip}

  /* home: the "Somewhere worth the window seat" destination slider is desktop-only */
  .sky-home #destinations.destinations-section{display:none}

  /* home "why bother with us?": the grid column grew wider than the screen and cut the text off at the right */
  .sky-home .why-human-grid{grid-template-columns:minmax(0,1fr)}
  .sky-home .why-human-grid>*{min-width:0}
  .sky-home .why-human-support>p{flex:1 1 100%}
  .sky-home .why-human-support>button{margin-left:46px}

  /* ---------- bottom tab bar ---------- */
  .fv-tabbar{
    --tb-h:68px;
    display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch;
    position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:65;
    height:var(--tb-h);padding:0 4px;
    background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
    border:1.5px solid #0e2d37;border-radius:22px;
    box-shadow:4px 5px 0 #a6d9cf,0 14px 32px rgba(14,45,55,.16);
    font-family:'Instrument Sans',system-ui,-apple-system,sans-serif;
    transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .2s;
  }
  .fv-tab{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;
    color:#56727d;text-decoration:none;-webkit-tap-highlight-color:transparent;
    font-size:11.5px;font-weight:600;letter-spacing:-.1px;line-height:1.1;
  }
  .fv-tab-icon{display:flex;align-items:center;justify-content:center;width:52px;height:34px;border-radius:17px;transition:background .25s,box-shadow .25s}
  .fv-tab-icon svg{width:30px;height:30px;overflow:visible;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
  .fv-tab-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .fv-tab.is-active{color:#0e2d37;font-weight:700}
  .fv-tab.is-active .fv-tab-icon{background:#e3f3ef;box-shadow:inset 0 0 0 1.5px #0e2d37,2px 2px 0 #a6d9cf}
  .fv-tab.is-active .fv-tab-icon svg{transform:translateY(-2px) scale(1.08)}
  .fv-tab.is-active .fv-ti-floor{opacity:.24}
  .fv-tab:active .fv-tab-icon svg{transform:translateY(1px) scale(.9);transition-duration:.08s}
  .fv-tab:focus-visible{outline:none}
  .fv-tab:focus-visible .fv-tab-icon{box-shadow:0 0 0 2px #fff,0 0 0 4px #14857c}
  body.fv-typing .fv-tabbar{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}

  /* room at the end of the page so the bar never covers the last lines */
  body.fv-has-tabbar footer#flyvis-site-footer.fv-footer{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
  body.fv-has-tabbar:not(:has(#flyvis-site-footer)){padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}

  /* things that used to float at the bottom edge now sit above the bar */
  /* the floating "Find your flight" sticker on Explore covered headings on phones; the Flights tab does its job */
  body.fv-has-tabbar .xp-sticker{display:none}
  body.fv-has-tabbar .toast-container{bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
  body.fv-has-tabbar #flyvis-auth-toast{bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;right:16px!important;left:16px!important;text-align:center}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){.fv-tabbar,.fv-tab-icon,.fv-tab-icon svg{transition:none}}

/* ---------- flight results: filters as a bottom sheet (phones only) ---------- */
@media (max-width:767px){
  /* the "Filters" button row at the top of the results */
  #flight-exact-results .fv-ff-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;
    position:sticky;top:73px;z-index:30;margin:0 -14px 4px;padding:10px 14px;
    background:linear-gradient(#f6faf9 78%,rgba(246,250,249,0))}
  .fv-ff-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 14px;
    border:1.5px solid #0e2d37;border-radius:999px;background:#fff;color:#0e2d37;
    font:600 15px/1 'Instrument Sans',system-ui,sans-serif;box-shadow:3px 3px 0 #a6d9cf;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .fv-ff-btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #a6d9cf}
  .fv-ff-btn svg{width:20px;height:20px;fill:#f6c445;stroke:#0e2d37;stroke-width:1.8;stroke-linecap:round}
  .fv-ff-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#e8704f;color:#fff;font-size:12.5px;font-weight:700}
  .fv-ff-badge[hidden]{display:none}
  .fv-ff-count{font:500 14px 'Instrument Sans',system-ui,sans-serif;color:#56727d;text-align:right}

  /* the filter panel becomes a sheet that slides up from the bottom */
  #flight-exact-results .exact-results-layout>aside{
    position:fixed!important;left:0;right:0;bottom:0;top:auto;z-index:1001;
    max-height:min(86vh,calc(100vh - 60px));max-height:min(86dvh,calc(100dvh - 60px));
    display:block;margin:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
    background:#fff;border:1.5px solid #0e2d37;border-bottom:0;border-radius:26px 26px 0 0;
    box-shadow:0 -18px 50px rgba(14,45,55,.22);
    transform:translateY(105%)!important;visibility:hidden;
    transition:transform .38s cubic-bezier(.2,.85,.25,1),visibility 0s linear .38s}
  body.fv-ff-open #flight-exact-results .exact-results-layout>aside{transform:none!important;visibility:visible;transition:transform .38s cubic-bezier(.2,.85,.25,1),visibility 0s}
  /* the whole sheet scrolls (Safari will not scroll inside a <details> element) */
  #flight-exact-results .exact-results-layout>aside>details{display:block;overflow:visible;
    margin:0;padding:4px 18px 18px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
  #flight-exact-results .exact-results-layout>aside>details>summary{display:none!important}
  #flight-exact-results .exact-results-layout>aside .results-filter-title{display:none}

  .fv-ff-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3;background:#fff;touch-action:none;padding:22px 18px 12px;border-bottom:1px solid #e3ecea}
  .fv-ff-head strong{font:600 20px/1.2 'Instrument Sans',system-ui,sans-serif;letter-spacing:-.3px;color:#0e2d37}
  .fv-ff-grab{position:absolute;top:8px;left:50%;width:42px;height:5px;margin-left:-21px;border-radius:3px;background:#cfdcd9}
  .fv-ff-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d8e5e2;border-radius:50%;background:#fff;color:#0e2d37;cursor:pointer}
  .fv-ff-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

  .fv-ff-foot{display:flex;gap:10px;position:sticky;bottom:0;z-index:3;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e3ecea;background:#fff}
  .fv-ff-reset{flex:0 0 auto;min-height:50px;padding:0 20px;border:1px solid #cfdcd9;border-radius:16px;background:#fff;color:#0e2d37;font:600 15px 'Instrument Sans',system-ui,sans-serif;cursor:pointer}
  .fv-ff-apply{flex:1;min-height:50px;border:0;border-radius:16px;background:linear-gradient(135deg,#14857c,#0e4f56);color:#fff;font:600 16px 'Instrument Sans',system-ui,sans-serif;box-shadow:0 8px 20px rgba(15,107,102,.28);cursor:pointer}
  .fv-ff-apply:active,.fv-ff-reset:active{transform:scale(.98)}

  .fv-ff-backdrop{display:block;position:fixed;inset:0;z-index:1000;background:rgba(14,45,55,.46);opacity:0;pointer-events:none;transition:opacity .3s}
  body.fv-ff-open .fv-ff-backdrop{opacity:1;pointer-events:auto}
  body.fv-ff-open{overflow:hidden}
  body.fv-ff-open .fv-tabbar{transform:translateY(calc(100% + 24px));opacity:0}

  /* comfortable tap sizes inside the sheet */
  #flight-exact-results .exact-results-layout>aside .results-stops-filter label{min-height:44px}
  #flight-exact-results .exact-results-layout>aside input[type=number]{min-height:46px;font-size:16px}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce){#flight-exact-results .exact-results-layout>aside,.fv-ff-backdrop{transition:none!important}}

/* ---------- flight results: lighter search box and date strip (phones only) ---------- */
@media (max-width:767px){
  /* each field gets its own small outlined tile instead of one big box */
  body #flight-exact-results .results-quick-search{padding:12px!important;gap:10px!important;background:#fff!important;border-radius:20px!important;box-shadow:0 0 0 1px #e0ebe7,0 10px 26px rgba(14,45,55,.06)!important}
  body #flight-exact-results .quick-route-cluster,
  body #flight-exact-results .quick-date-cluster{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;position:relative;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
  body #flight-exact-results :is(.quick-field-origin,.quick-field-dest,.quick-field-date,.quick-field-return){
    min-width:0;min-height:64px;justify-content:flex-start;gap:5px;padding:9px 12px!important;margin:0!important;
    border:1px solid #d8e5e2!important;border-radius:14px!important;background:#fbfdfc!important;box-shadow:none!important}
  body #flight-exact-results .quick-field-dest{padding-left:18px!important}
  body #flight-exact-results :is(.quick-field-origin,.quick-field-dest,.quick-field-date,.quick-field-return):focus-within{border-color:#14857c!important;background:#fff!important;box-shadow:0 0 0 3px #14857c1f!important}
  body #flight-exact-results .quick-cluster-divider{display:none!important}
  body #flight-exact-results .quick-field-label{font-size:11px!important;letter-spacing:.6px;gap:6px}
  body #flight-exact-results .quick-field-input-row{gap:6px;min-width:0}
  body #flight-exact-results .quick-field-input-row>svg{width:16px;height:16px;flex:none}
  body #flight-exact-results :is(#quick-origin,#quick-destination){font-size:16px!important;font-weight:600;min-width:0;width:100%;text-overflow:ellipsis}
  body #flight-exact-results .quick-date-trigger{font-size:14px!important;font-weight:600;min-width:0;white-space:nowrap}
  body #flight-exact-results .quick-date-trigger>span{overflow:hidden;text-overflow:ellipsis}
  body #flight-exact-results .quick-date-trigger>svg,
  body #flight-exact-results .quick-field-date .quick-field-input-row>svg{display:none}
  body #flight-exact-results .quick-return-btn{font-size:14px!important;font-weight:600;text-align:left}
  body #flight-exact-results .quick-swap-btn{position:absolute!important;left:50%;top:50%;z-index:2;width:32px!important;height:32px!important;margin:0!important;
    transform:translate(-50%,-50%)!important;background:#fff!important;border:1.5px solid #0e2d37!important;color:#0e2d37;box-shadow:2px 2px 0 #a6d9cf}
  body #flight-exact-results .quick-search-submit{min-height:48px}

  /* dates: small chips in a sideways-scrolling row instead of tall blocks */
  body #flight-exact-results .results-date-navigation{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px!important;align-items:center;gap:6px;
    padding:0!important;margin-top:12px;background:none!important;box-shadow:none!important;border:0!important;overflow:visible!important}
  body #flight-exact-results .date-strip-arrow{width:32px!important;height:32px!important;padding:0!important;display:grid!important;place-items:center;
    border:1px solid #d8e5e2!important;border-radius:50%!important;background:#fff!important;color:#0f6b66;font-size:20px!important;line-height:1!important}
  body #flight-exact-results .results-date-strip{display:flex!important;gap:8px;overflow-x:auto!important;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px 2px 6px!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 10px),transparent)}
  body #flight-exact-results .results-date-strip::-webkit-scrollbar{display:none}
  body #flight-exact-results .result-date-cell{flex:0 0 auto!important;width:auto!important;min-width:84px;min-height:0!important;padding:8px 12px!important;gap:2px;scroll-snap-align:center;
    border:1px solid #d8e5e2!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;align-items:center;text-align:center}
  body #flight-exact-results .result-date-cell span{font-size:11.5px!important;line-height:1.2;white-space:nowrap;color:#56727d}
  body #flight-exact-results .result-date-cell strong{font-size:13px!important;line-height:1.25!important;font-weight:600!important;white-space:nowrap;color:#0f6b66}
  body #flight-exact-results .result-date-cell small{display:none!important}
  body.fv-shared-nav #flight-exact-results .result-date-cell.is-selected{background:#f6c445!important;border:1.5px solid #0e2d37!important;box-shadow:2px 2px 0 #0e2d37!important}
  body.fv-shared-nav #flight-exact-results .result-date-cell.is-selected span{color:#0e2d37!important;opacity:.8}
  body.fv-shared-nav #flight-exact-results .result-date-cell.is-selected strong{color:#0e2d37!important;font-weight:700!important;font-size:14px!important}
  body #flight-exact-results .result-date-cell.is-selected::before,
  body #flight-exact-results .result-date-cell.is-selected::after{display:none!important}
}
