/*
 * The White Wood — subtle animation additions
 * Scope: listing cards/gallery, reviews/maps, booking platform cards.
 * Intentionally excludes the hero and does not alter layout dimensions.
 */
.ww-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 680ms cubic-bezier(.2,.7,.2,1),
    transform 680ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--ww-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.ww-reveal.ww-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Interactive gallery: visual polish only; existing swipe/slider logic remains intact. */
.listing-gallery .gallery-slide img,
.modal-gallery .gallery-slide img {
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .listing-gallery:hover .gallery-slide img,
  .modal-gallery:hover .gallery-slide img {
    transform: scale(1.025);
  }

  .platform-card {
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  }

  .platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold, #b08a32);
    box-shadow: 0 8px 22px rgba(23, 23, 23, .07);
  }
}

/* Subtle entrance for the existing booking modal, without changing its dimensions. */
#modal.ww-modal-animated:not(.hidden) .modal-card {
  animation: ww-modal-enter 280ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes ww-modal-enter {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ww-reveal,
  .ww-reveal.ww-revealed,
  .listing-gallery .gallery-slide img,
  .modal-gallery .gallery-slide img,
  .platform-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
}
