/* ==========================================================================
   components/page-banner.css
   The full-width image banner at the top of the inner pages:
     components/common/PageBanner.jsx      .page-banner
     components/common/InternalBanner.jsx  .page-banner
                                           (room / restaurant / facility /
                                           offer / venue / news detail pages)
     components/common/ThanksBanner.jsx    .page-banner.page-banner--cover
                                           + title and button on the image

   Desktop: 82% of the screen height (680px min), image cropped to fill it,
   slow zoom, dark gradient on top.
   Tablet & phone (<= 1024px): the tablet / mobile image is shown whole at its
   own size; --cover banners (thanks page) keep the cropped, zooming image.

   Note: rules are written as html[data-cc-page] .x — that prefix only gives
   them the weight they need over globals.css / CSS modules / library CSS.
   ========================================================================== */

html[data-cc-page] .page-banner {
  position: relative;
  height: 82svh !important;
  min-height: 680px !important;
  color: #fff !important;
  background: #111;
  overflow: hidden;
}

/* Overlay: a strong shade in the top strip behind the header (~210px) so the
   white menu stays readable, plus a very light tint over the whole photo.
   Phones/tablets: none at all (the header sits above the image there). */
html[data-cc-page] .page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.42) 100px, rgba(0,0,0,0) 210px),
    linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14));
}

@media (max-width: 820px) {
  html[data-cc-page] .page-banner:not(.page-banner--cover)::after {
    content: none;
  }
}

/* Thanks page banner has its title on the photo: keep the full shade so
   the white text stays readable */
html[data-cc-page] .page-banner--cover::after {
  bottom: 0;
  height: auto;
  background:
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.10) 45%, rgba(0,0,0,.58)),
    linear-gradient(90deg, rgba(0,0,0,.42), transparent 58%);
}

html[data-cc-page] .page-banner .hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: page-banner-zoom 9s ease-in-out both;
}

/* Text on the banner (thanks page) */
html[data-cc-page] .page-banner .hero-inner {
  position: relative !important;
  z-index: 2 !important;
  height: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  padding-top: 0 !important;
  padding-bottom: 90px !important;
}

html[data-cc-page] .page-banner .hero-copy {
  max-width: 800px !important;
}

html[data-cc-page] .page-banner .hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: #fff !important;
}

html[data-cc-page] .page-banner .hero-kicker::before {
  content: "";
  width: 46px;
  height: 2px;
  background: #fff !important;
}

html[data-cc-page] .page-banner h1 {
  font-family: var(--display);
  font-size: clamp(60px,6vw,96px);
  line-height: .96;
  font-weight: 400;
  letter-spacing: -.045em;
  color: #fff !important;
}

html[data-cc-page] .page-banner .hero-copy p {
  max-width: 580px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
}

html[data-cc-page] .page-banner .hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@keyframes page-banner-zoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.12) translateX(-1.2%); }
}

/* ---- Tablet & phone ---- */
@media (max-width: 1024px) {
  /* listing pages: the (tablet / mobile) image is shown whole */
  html[data-cc-page] .page-banner:not(.page-banner--cover) {
    height: auto !important;
    min-height: 0 !important;
  }

  html[data-cc-page] .page-banner:not(.page-banner--cover) picture {
    display: block;
  }

  html[data-cc-page] .page-banner:not(.page-banner--cover) .hero-bg {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
    animation: none !important;
    transform: none !important;
  }
}

/* room for the fixed header */
@media (max-width: 820px) {
  html[data-cc-page] .page-banner {
    padding-top: 72px !important;
  }

  html[data-cc-page] .page-banner--cover {
    min-height: 620px !important;
  }

  html[data-cc-page] .page-banner .hero-inner {
    padding-bottom: 70px !important;
  }

  html[data-cc-page] .page-banner h1 {
    font-size: clamp(46px,12vw,62px);
  }

  html[data-cc-page] .page-banner .hero-copy p {
    font-size: 13px;
    max-width: 92%;
  }
}

@media (max-width: 560px) {
  html[data-cc-page] .page-banner--cover {
    min-height: 600px !important;
  }

  html[data-cc-page] .page-banner h1 {
    font-size: 45px;
  }

  html[data-cc-page] .page-banner .hero-actions .btn {
    width: 100%;
  }
}
