/* Generated from site/motion.ts by scripts/build-ui-css.ts. Edit the source, then run pnpm ui:css. */
:root{--motion-feedback:150ms;--motion-photo:200ms;--motion-open:180ms;--motion-close:140ms;--motion-spring:320ms;--motion-chart:420ms;--motion-stagger:40ms;--ease-out:cubic-bezier(.23,1,.32,1);--ease-spring:linear(0, 0.081 5%, 0.258 10%, 0.46 15%, 0.644 20%, 0.793 25%, 0.901 30%, 0.972 35%, 1.013 40%, 1.033 45%, 1.038 50%, 1.036 55%, 1.029 60%, 1.021 65%, 1.014 70%, 1.008 75%, 1.004 80%, 1.001 85%, 1)}
@media (prefers-reduced-motion:reduce){:root{--motion-feedback:0ms;--motion-photo:0ms;--motion-open:0ms;--motion-close:0ms;--motion-spring:0ms;--motion-chart:0ms;--motion-stagger:0ms}}

/* Hover and press feedback */
:where(.button,.home-card,.home-route,.home-provider,.home-finder,.place-link,.pf-row,.pf-sample,.pf-region-plan,.pw-airport-card,.ux-choice,.ux-option,.ux-matches a,.hub-links a,.browse-columns a,.directory-nav a,.alphabet a,.trip-field > summary,.pw-countries a,.pw-letters a,.pw-jumps a,.cookie-actions .button){transition:background-color var(--motion-feedback) var(--ease-out),border-color var(--motion-feedback) var(--ease-out),color var(--motion-feedback) var(--ease-out),box-shadow var(--motion-feedback) var(--ease-out),transform var(--motion-feedback) var(--ease-out)}
:where(.button,.home-card,.home-route,.home-provider,.home-finder,.place-link,.pf-row,.pf-sample,.pf-region-plan,.pw-airport-card,.ux-choice,.ux-option,.ux-matches a,.hub-links a,.browse-columns a,.directory-nav a,.alphabet a,.trip-field > summary,.pw-countries a,.pw-letters a,.pw-jumps a,.cookie-actions .button):active{transform:scale(.98)}
:where(.button,.home-finder):active{transform:scale(.97)}
/* Sheet openers are <summary> elements whose ::before is the open sheet's fixed backdrop. A transform would make the summary
   the backdrop's containing block, so a tap on the backdrop would land on the page (stage B QA, B1). They fade, never scale. */
:where(.ux-search,.sheet-menu > summary){transition:background-color var(--motion-feedback) var(--ease-out),border-color var(--motion-feedback) var(--ease-out),color var(--motion-feedback) var(--ease-out)}

/* Disclosures and menus: the chevron turns, the content fades in below its summary */
:where(summary .lucide-chevron-down,summary > svg,.ux-search .lucide-chevron-down,summary .pw-icon){transition:transform var(--motion-open) var(--ease-out)}
@media (prefers-reduced-motion:no-preference){
  details[open]>:not(summary):not(.bs-scroll){animation:sc-reveal var(--motion-open) var(--ease-out) both}
  .bs[open]>.bs-scroll:not([aria-modal]){animation:sc-pop var(--motion-spring) var(--ease-spring) both;transform-origin:top center}
}
@keyframes sc-reveal{from{opacity:0;transform:translateY(-4px)}}
@keyframes sc-pop{from{opacity:0;transform:translateY(-6px) scale(.98)}}

/* Gallery photos */
:where(.home-card img,.pw-picture img){transition:transform var(--motion-photo) var(--ease-out)}
@media (hover:hover) and (pointer:fine){:where(.home-card:hover img,.pw-picture:hover img){transform:scale(1.035)}}
:where(.home-card,.pw-picture){overflow:hidden}

/* Charts: bars draw in once, row by row */
@media (prefers-reduced-motion:no-preference){
  :where(.ux-meter rect + rect){transform-box:fill-box;transform-origin:left center;animation:sc-grow var(--motion-chart) var(--ease-out) both}
  :where(.pf-track){transform-origin:left center;animation:sc-grow var(--motion-chart) var(--ease-out) both}
  :where(.ux-bars > :nth-child(2),[data-popular-prices] > :nth-child(2)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(1 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(3),[data-popular-prices] > :nth-child(3)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(2 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(4),[data-popular-prices] > :nth-child(4)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(3 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(5),[data-popular-prices] > :nth-child(5)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(4 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(6),[data-popular-prices] > :nth-child(6)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(5 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(7),[data-popular-prices] > :nth-child(7)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(6 * var(--motion-stagger))}
  :where(.ux-bars > :nth-child(8),[data-popular-prices] > :nth-child(8)) :where(.ux-meter rect + rect,.pf-track){animation-delay:calc(7 * var(--motion-stagger))}
}
@keyframes sc-grow{from{transform:scaleX(0)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0ms!important;animation-delay:0ms!important;scroll-behavior:auto!important}
}

/* Bottom sheet (site/components/sheet.ts) */
.bs-head{display:none}.bs-sheet,.bs-body,.bs-foot{display:contents}
.bs-scroll:focus{outline:none}
.bs-title{margin:0;font-weight:var(--weight-700);font-size:1rem;color:var(--ink)}
.bs-x{all:unset;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--muted);background:var(--tint);cursor:pointer;transition:background-color var(--motion-feedback) var(--ease-out),transform var(--motion-feedback) var(--ease-out)}.bs-x svg{display:block}.bs-x:active{transform:scale(.94)}
.bs-x:focus-visible{outline:2px solid var(--accent-text)}
@media (hover:hover){.bs-x:hover{background:var(--tint)}}
@media (scripting:none){.bs-x{display:none}}
@media (max-width:650px){
  /* The backdrop runs on below the viewport: Safari's toolbar can collapse over it. */
  .bs[open]>summary::before{content:"";position:fixed;top:0;left:0;right:0;bottom:-50vh;z-index:40;background:var(--scrim);opacity:var(--bs-p,1);cursor:default}
  /* A caller's own z-index on the <details> (Home's open field) would trap the backdrop under the site header. */
  .bs[open]:has(>:is(.bs-scroll,#bs-scroll)){z-index:41}
  :root:has(.bs[open]>.bs-scroll){overflow:hidden}
  .bs[open]>:is(.bs-scroll,#bs-scroll){position:fixed;inset:0;z-index:41;display:flex;width:auto;min-width:0;max-width:none;height:auto;max-height:none;margin:0;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;transform:none;translate:none;animation:none;pointer-events:none;flex-direction:column;justify-content:flex-end;padding:0}
  .bs-sheet{position:relative;display:flex;flex:none;flex-direction:column;max-height:92vh;max-height:92svh;padding-bottom:env(safe-area-inset-bottom);pointer-events:auto;
    background:var(--white);border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;box-shadow:0 -8px 40px var(--ink-shadow);transform:translate3d(0,0,0)}
  /* A page-coloured skirt under the sheet, for the same toolbar. */
  .bs-sheet::after{content:"";position:absolute;top:100%;left:0;right:0;height:50vh;background:var(--white)}
  .bs-head{position:relative;flex:none;display:flex;align-items:center;justify-content:space-between;padding:var(--space-16) var(--space-12) var(--space-16) var(--space-16);border-bottom:1px solid var(--line);touch-action:none}
  .bs-head::before{content:"";position:absolute;top:var(--space-8);left:0;right:0;width:36px;height:4px;margin:0 auto;border-radius:999px;background:var(--control-line)}
  .bs-body{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-16)}
  .bs[open] .bs-body *{overscroll-behavior-y:auto}
  .bs-foot{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:var(--space-16);padding:var(--space-12) var(--space-16);border-top:1px solid var(--line);background:var(--white)}
  .bs-foot:not(:has(>:not([hidden]))){display:none}
}
@media (min-width:651px){
  .bs[open]:has(>.bs-dlg)>summary::before{content:"";position:fixed;top:0;left:0;right:0;bottom:-50vh;z-index:40;background:var(--scrim);opacity:var(--bs-p,1);cursor:default}
  .bs[open]:has(>:is(.bs-dlg,#bs-scroll)){z-index:41}
  :root:has(.bs[open]>.bs-dlg){overflow:hidden}
  .bs[open]>:is(.bs-dlg,#bs-scroll){position:fixed;inset:0;z-index:41;display:flex;width:auto;min-width:0;max-width:none;height:auto;max-height:none;margin:0;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;transform:none;translate:none;animation:none;pointer-events:none;align-items:center;justify-content:center;padding:var(--space-24)}
  .bs-dlg>.bs-sheet{display:flex;flex-direction:column;width:min(var(--bs-dialog-w,780px),100%);max-height:86vh;max-height:86dvh;pointer-events:auto;
    background:var(--white);border-radius:var(--radius-popover);box-shadow:var(--shadow-popover)}
  .bs-dlg .bs-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:var(--space-12) var(--space-12) var(--space-12) var(--space-20);border-bottom:1px solid var(--line)}
  .bs-dlg .bs-body{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-20)}
  .bs-dlg .bs-foot{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:var(--space-16);padding:var(--space-12) var(--space-20);border-top:1px solid var(--line)}
  .bs-dlg .bs-foot:not(:has(>:not([hidden]))){display:none}
}
