/* PROD-V16: direct booking bar and restrained, accessible motion. */

.hero-quickbook {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: clamp(1.25rem, 2.4vw, 2rem);
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero-quickbook .container {
  display: flex;
  justify-content: center;
}

.hero-quickbook__panel {
  width: min(100%, 34rem);
  min-height: 5.65rem;
  padding: 0.6rem;
  border: 1px solid rgba(36, 37, 37, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(35, 32, 27, 0.24);
  pointer-events: auto;
}

.hero-quickbook__status {
  display: grid;
  min-height: 4.35rem;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.hero-quickbook__panel.is-ready .hero-quickbook__status {
  display: none;
}

.hero-quickbook .d21-quickbook {
  width: 100%;
  min-height: 4.35rem;
  margin: 0 !important;
}

.hero-quickbook .d21-widget-container {
  width: 100%;
  max-width: none;
  margin: 0 auto !important;
}

.v16-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-page="home"] .hero__content {
  padding-bottom: clamp(8.75rem, 15vw, 10.5rem);
}

@media (max-width: 900px) {
  body[data-page="home"] .hero__content {
    padding-bottom: 2rem;
  }

  body[data-page="home"] .hero__media {
    order: 3;
  }

  .hero-quickbook {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    order: 2;
    width: var(--container);
    margin: 0 auto 1.5rem;
    pointer-events: auto;
  }

  .hero-quickbook .container {
    width: 100%;
  }

  .hero-quickbook__panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-quickbook {
    margin-top: 0;
  }

  .hero-quickbook__panel {
    min-height: 10.5rem;
    padding: 0.45rem;
  }

  .hero-quickbook .d21-quickbook {
    min-height: 9.4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.motion-ready .reveal-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
  }

  .hero__media img,
  .page-hero__image img,
  .simple-hero picture img,
  .feature-split__media img,
  .location-feature picture img,
  .gallery-grid img,
  .fresh-photo-card img,
  .location-gallery__item img {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .feature-split__media:hover img,
  .location-feature picture:hover img,
  .gallery-grid picture:hover img,
  .fresh-photo-card:hover img,
  .location-gallery__item:hover img {
    transform: scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item.is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }
}
