/* Oval Chalet — public-site motion (the admin page does not load this file) */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* smooth page-to-page transition (browsers without support simply ignore it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ocVtOut .22s ease-in both; }
::view-transition-new(root) { animation: ocVtIn .38s var(--ease-out) both; }
@keyframes ocVtOut { to { opacity: 0; } }
@keyframes ocVtIn { from { opacity: 0; transform: translateY(8px); } }

/* scroll reveal — the class is added by motion.js only, so content stays visible without JS */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--rvd, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* buttons: gentle lift on hover (mouse only), press feedback everywhere */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .btn-gold:hover, .btn-out:hover { transform: translateY(-2px); }
}
.btn:active, .btn-gold:active, .btn-out:active { transform: scale(.97); transition-duration: .08s; }

/* hero photo: slow Ken Burns zoom while each photo is on screen */
.kb { animation: ocKb 11s ease-out forwards; }
@keyframes ocKb { from { transform: scale(1); } to { transform: scale(1.08); } }

/* dialogs slide up softly */
dialog[open] { animation: ocDlgIn .32s var(--ease-out); }
dialog[open]::backdrop { animation: ocFade .3s ease-out; }
@keyframes ocDlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes ocFade { from { opacity: 0; } }

/* booking wizard: step slide + selection pop */
.step-in { animation: ocStepIn .34s var(--ease-out); }
@keyframes ocStepIn { from { opacity: 0; transform: translateX(var(--sx, 24px)); } }
.pop, .cal-d.selected { animation: ocPop .3s var(--ease-out); }
@keyframes ocPop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.tick { animation: ocTick .5s var(--ease-out); }
@keyframes ocTick { 40% { color: var(--gold, #C5A880); } }

/* gallery: photos sharpen as they load */
.blur-up { filter: blur(14px); opacity: .55; transition: filter .6s var(--ease-out), opacity .6s var(--ease-out); }
.blur-up.ld { filter: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kb, .step-in, .pop, .cal-d.selected, .tick, dialog[open], dialog[open]::backdrop { animation: none !important; }
  .blur-up { filter: none; opacity: 1; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
