/* Front-end motion only. Native editor content remains still and visible. */
@media (prefers-reduced-motion: no-preference) {
  /* Keep hero copy and its CTA still; animate only the landscape behind them. */
  :is(.hero__photo, .page-hero__photo) img {
    animation: uniq-landscape-arrival 6500ms cubic-bezier(.2,.65,.3,1) backwards;
  }
  .uniq-motion-pending { transform: translate3d(0,22px,0); }
  .wp-block-button__link::after, .text-link a::after, .contact-card a::after {
    transition: transform 220ms cubic-bezier(.22,1,.36,1);
  }
  :is(.wp-block-button__link, .text-link a, .contact-card a):is(:hover,:focus-visible)::after { transform: translateX(3px); }
  .detail-dialog[open] { animation: uniq-dialog-enter 240ms cubic-bezier(.22,1,.36,1); }
  .detail-dialog[open]::backdrop { animation: uniq-backdrop-enter 220ms ease-out; }
  .detail-dialog.is-closing::backdrop { animation: uniq-backdrop-leave 140ms ease-in forwards; }
  .detail-dialog__close { transition: background-color 180ms ease, border-color 180ms ease; }
  .detail-dialog__close:is(:hover,:focus-visible) { background: #eee9dc; border-color: var(--gold); }
  .wp-block-uniq-form :is(input,select,textarea) { transition: border-color 160ms ease, box-shadow 160ms ease; }
  @media (hover: hover) and (pointer: fine) {
    .destination-card__photo img, .place-card > .wp-block-image img { transition: transform 600ms cubic-bezier(.22,1,.36,1); }
    .destination-card:hover .destination-card__photo img, .place-card:hover > .wp-block-image img { transform: scale(1.025); }
    .place-card > .wp-block-image { overflow: hidden; }
    .contact-card { transition: box-shadow 240ms ease, border-color 240ms ease; }
    .contact-card:hover { border-color: #c7b494; box-shadow: 0 5px 20px rgb(16 37 31 / 6%); }
  }
}
@keyframes uniq-landscape-arrival { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes uniq-dialog-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes uniq-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes uniq-backdrop-leave { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .detail-dialog, .detail-dialog::backdrop { animation: none !important; }
  .uniq-motion-pending { transform: none !important; }
}
@media print {
  :is(.hero__content, .page-hero__content) > *, :is(.hero__photo, .page-hero__photo) img, .uniq-motion-pending { animation: none !important; transform: none !important; }
}
