/* ==========================================================================
   Royal Homepage — Cinematic Scroll Videos
   Full-width stacked video panels with responsive luxury layout.
   ========================================================================== */

.royal-cinema {
  --cinema-bg: var(--royal-navy-950, #04101f);
  --cinema-white: var(--royal-white, #ffffff);
  --cinema-gold: var(--royal-gold-200, #f3d77b);
  --cinema-ease: var(--ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
  --cinema-duration: var(--duration, 420ms);

  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--cinema-bg);
  color: var(--cinema-white);
}

.royal-cinema__slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  background: var(--cinema-poster) center / cover no-repeat;
}

@supports (min-height: 100dvh) {
  .royal-cinema__slide {
    min-height: 100dvh;
  }
}

.royal-cinema__media,
.royal-cinema__shade,
.royal-cinema__grain,
.royal-cinema__video {
  position: absolute;
  inset: 0;
}

.royal-cinema__media {
  z-index: 0;
  background: var(--cinema-poster) center / cover no-repeat;
}

.royal-cinema__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: none;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: opacity 850ms var(--cinema-ease);
}

.royal-cinema__video.is-loaded {
  opacity: 1;
}

.royal-cinema__shade {
  z-index: 1;
  pointer-events: none;
  background: var(--rhf-central-hero-shade) !important;
}

.royal-cinema__grain {
  z-index: 2;
  display: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Content grid
   -------------------------------------------------------------------------- */

.royal-cinema__content {
  position: relative;
  z-index: 3;
  display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  width: min(calc(100% - 2rem), var(--container-wide, 1320px));
  min-height: 100%;
  margin-inline: auto;
  padding: clamp(7rem, 12vh, 10rem) 0 clamp(3.5rem, 8vh, 6rem);
}

/* --------------------------------------------------------------------------
   Hero text
   -------------------------------------------------------------------------- */

.royal-cinema__copy {
  grid-column: 1;
  max-width: 780px;
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition:
    opacity 720ms var(--cinema-ease),
    transform 720ms var(--cinema-ease);
}

.royal-cinema__slide.is-active .royal-cinema__copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.royal-cinema__copy.is-copy-hidden {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  pointer-events: none;
}

.royal-cinema .royal-kicker {
  margin: 0 0 clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--cinema-gold);
  font-size: clamp(0.72rem, 0.66rem + 0.22vw, 0.86rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.royal-cinema__heading {
  max-width: 10.8ch;
  margin: 0;
  color: var(--cinema-white);
  font-size: clamp(3.4rem, 8.5vw, 8.5rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 22px 90px rgba(0, 0, 0, 0.42);
}

.royal-cinema__lede {
  max-width: 54ch;
  margin: clamp(1rem, 2vw, 1.4rem) 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 1rem + 0.28vw, 1.24rem);
  line-height: 1.62;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
}

/* --------------------------------------------------------------------------
   Plugin panels
   Hero controls placement/animation only.
   Booking plugin and sale plugin control their own card styling.
   -------------------------------------------------------------------------- */

.cinema-panel {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 480px);
  max-width: 480px;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 1.6rem, 0) scale(0.985);
  transition:
    opacity 760ms var(--cinema-ease),
    transform 760ms var(--cinema-ease);
}

.royal-cinema__slide.is-panel-visible .cinema-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.cinema-panel--booking,
.cinema-panel--sale {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.cinema-panel__body {
  padding: 0;
}

.cinema-panel,
.cinema-panel * {
  box-sizing: border-box;
}

.royal-cinema .appointment-wizard-container,
.royal-cinema .sale-banner {
  width: 100%;
  max-width: 100%;
}

/* Force sale panel on third video / sale slide to the right column */
.royal-cinema__slide--sale .cinema-panel--sale {
  grid-column: 2;
  justify-self: end;
  align-self: center;
}

/* --------------------------------------------------------------------------
   Progress dots
   -------------------------------------------------------------------------- */

.royal-cinema__progress {
  position: fixed;
  z-index: 30;
  top: 50%;
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  gap: 0.65rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.royal-cinema__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition:
    width var(--cinema-duration) var(--cinema-ease),
    height var(--cinema-duration) var(--cinema-ease),
    background var(--cinema-duration) var(--cinema-ease);
}

.royal-cinema__dot.is-active {
  height: 1.8rem;
  background: var(--cinema-gold);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .royal-cinema__content {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  }

  .cinema-panel {
    width: min(100%, 460px);
    max-width: 460px;
  }
}

@media (max-width: 900px) {
  .royal-cinema__content {
    grid-template-columns: 1fr;
    align-content: end;
    align-items: end;
    gap: 1.35rem;
    width: min(calc(100% - 2rem), var(--container, 760px));
    padding: 6.8rem 0 4.75rem;
  }

  .royal-cinema__shade {
    background: var(--rhf-central-hero-shade) !important;
  }

  .royal-cinema__copy,
  .cinema-panel,
  .royal-cinema__slide--sale .cinema-panel--sale {
    grid-column: 1;
  }

  .royal-cinema__heading {
    max-width: 11ch;
    font-size: clamp(2.55rem, 12vw, 5rem);
  }

  .royal-cinema__lede {
    max-width: 48ch;
  }

  .cinema-panel {
    justify-self: stretch;
    width: 100%;
    max-width: 620px;
  }

  .royal-cinema__progress {
    top: auto;
    right: 1rem;
    bottom: 1.1rem;
    grid-auto-flow: column;
    transform: none;
  }

  .royal-cinema__dot.is-active {
    width: 1.8rem;
    height: 0.45rem;
  }
}

@media (max-width: 720px) {
  .royal-cinema__content {
    width: min(calc(100% - 1.5rem), var(--container, 680px));
    padding: 6.25rem 0 4.25rem;
  }

  .royal-cinema__heading {
    font-size: clamp(2.25rem, 11vw, 4rem);
    letter-spacing: -0.07em;
  }

  .royal-cinema__lede {
    font-size: 1rem;
    line-height: 1.55;
  }

  .cinema-panel {
    max-width: 100%;
  }
}

@media (max-width: 460px) {
  .royal-cinema__content {
    padding-top: 5.9rem;
  }

  .royal-cinema__heading {
    font-size: clamp(2.1rem, 12vw, 3.6rem);
  }

  .royal-cinema__progress {
    right: 0.85rem;
    bottom: 0.9rem;
  }
}

@media (max-height: 720px) and (max-width: 900px) {
  .royal-cinema__content {
    padding-top: 5.4rem;
    padding-bottom: 3.6rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .royal-cinema__video {
    display: none;
  }

  .royal-cinema__copy,
  .cinema-panel {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .royal-cinema__dot {
    transition: none !important;
  }
}