/* ======================================================
   Royal Top Hero
   Fast-load image hero for desktop + mobile
   Use with a single <picture> element when possible.
   ====================================================== */

.royal-hero-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: 680px;
  overflow: hidden;
  background: #ffffff;
}

.royal-hero-section .hero-media,
.royal-hero-section .hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.royal-hero-section .hero-picture,
.royal-hero-section .hero-image-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.royal-hero-section .hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* Overlay */
.royal-hero-section .video-dim-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 18, 0.14) 0%,
    rgba(8, 12, 18, 0.18) 45%,
    rgba(8, 12, 18, 0.22) 100%
  );
}

/* Layout */
.royal-hero-section .hero-overlay-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(320px, 520px);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}

.royal-hero-section .sale-banner-shortcode,
.royal-hero-section .appointment-shortcode {
  width: 100%;
  min-width: 0;
}

/* Width constraints */
.royal-hero-section .sale-banner-shortcode {
  max-width: 560px;
}

.royal-hero-section .appointment-shortcode {
  max-width: 460px;
  justify-self: end;
}

/* Prevent stretching */
.royal-hero-section .sale-banner-shortcode .sale-banner,
.royal-hero-section .appointment-shortcode #appointment-wizard-container,
.royal-hero-section .appointment-shortcode #booking-form,
.royal-hero-section .appointment-shortcode .appointment-wizard-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.royal-hero-section .sale-banner-shortcode .sale-banner {
  margin: 0;
}

.royal-hero-section .appointment-shortcode .appointment-wizard-container {
  min-height: auto;
  padding: clamp(20px, 3vw, 32px);
}

/* Visibility helpers */
.royal-hero-section .desktop-only {
  display: block;
}

.royal-hero-section .mobile-only {
  display: none;
}

/* Large screens */
@media (min-width: 1280px) {
  .royal-hero-section {
    min-height: 680px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .royal-hero-section {
    min-height: auto;
  }

  .royal-hero-section .hero-overlay-content {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
    gap: 20px;
    padding: 24px 16px 32px;
  }

  .royal-hero-section .sale-banner-shortcode,
  .royal-hero-section .appointment-shortcode {
    max-width: 100%;
    justify-self: stretch;
  }

  .royal-hero-section .desktop-only {
    display: none !important;
  }

  .royal-hero-section .mobile-only {
    display: block !important;
  }

  .royal-hero-section .hero-image {
    object-position: center top;
  }

  .royal-hero-section .video-dim-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 18, 0.10) 0%,
      rgba(8, 12, 18, 0.14) 55%,
      rgba(8, 12, 18, 0.20) 100%
    );
  }
}

/* Mobile */
@media (max-width: 767px) {
  .royal-hero-section .hero-overlay-content {
    padding: 20px 12px 28px;
  }

  .royal-hero-section .appointment-shortcode .appointment-wizard-container {
    padding: 18px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .royal-hero-section .hero-overlay-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .royal-hero-section .appointment-shortcode .appointment-wizard-container {
    padding: 14px;
  }
}