/* Homepage presentation only. Load after the existing hero / booking styles.
   Media spans both existing rows; copy still determines its natural height.
   Booking markup, controls, popovers and loading behavior are unchanged. */
#main > .hero > .hero-photo.cinematic-hero.exterior-hero {
  isolation: isolate;
}

#main .hero-photo.cinematic-hero.exterior-hero > .cinematic-poster,
#main .hero-photo.cinematic-hero.exterior-hero > .cinematic-video {
  grid-row: 1 / 3;
  z-index: 0;
}

#main .hero-photo.cinematic-hero.exterior-hero::after {
  grid-row: 1 / 3;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgb(9 18 11 / 16%),
    transparent 35%,
    rgb(14 30 25 / 8%));
}

#main .hero-photo.cinematic-hero.exterior-hero > .cinematic-copy {
  z-index: 2;
  background: linear-gradient(180deg,
    rgb(14 30 25 / 70%),
    rgb(14 30 25 / 84%));
}

#main .hero-photo.cinematic-hero.exterior-hero > .cinematic-logo {
  z-index: 3;
}

/* The former 680px cap plus fixed side margins left an unused strip at the
   right of wide screens. Preserve narrow-screen caps and center every card. */
html:root body #main > .hero > form.booking-search {
  box-sizing: border-box;
  min-width: 0;
  justify-self: center;
  margin-inline: auto !important;
}

@media (min-width: 961px) {
  html:root body #main > .hero > form.booking-search {
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }

  /* Keep the existing facade photograph filled when the card grows wider. */
  html:root body #main > .hero > form.booking-search::before {
    background-size: 100% 100%, 100% 100%, cover;
  }
}

@media (max-width: 960px) {
  #main .hero-photo.cinematic-hero.exterior-hero > .cinematic-copy {
    background: linear-gradient(180deg,
      rgb(14 30 25 / 76%),
      rgb(14 30 25 / 88%));
  }
}
