/* Soft page-to-page transitions (cross-document View Transitions, Chrome/Edge 126+, Safari 18.2+).
   Linked from the home page, the journal, parking and the policy pages; a transition runs only when
   both pages link this file. Browsers without support navigate exactly as before. Not on reserve.html:
   the booking hand-off is tuned to show the form as fast as possible.
   The old page fades out with a slight lift, the new one fades in as it settles; the subpage header
   (.sh) is held still between subpages. Reduced motion: a short fade, no movement. */
@view-transition{navigation:auto;}

::view-transition-old(root){animation:pt-out .3s cubic-bezier(.4,0,1,1) both;}
::view-transition-new(root){animation:pt-in .55s cubic-bezier(.22,1,.36,1) both;}
@keyframes pt-out{to{opacity:0;transform:translateY(-8px);}}
@keyframes pt-in{from{opacity:0;transform:translateY(12px);}}

.sh{view-transition-name:site-header;}
::view-transition-group(site-header){animation-duration:.55s;animation-timing-function:cubic-bezier(.22,1,.36,1);}

@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root){animation:pt-fade-out .18s linear both;}
  ::view-transition-new(root){animation:pt-fade-in .18s linear both;}
  ::view-transition-group(*){animation-duration:0s;}
  @keyframes pt-fade-out{to{opacity:0;}}
  @keyframes pt-fade-in{from{opacity:0;}}
}
