/**
 * Booking focus mode (CD prototype: hero / strip presentation at rest).
 * html.booking-focus-open - mask stays in place; page dims/blurs except the host.
 */

html.booking-focus-open {
  overflow: hidden;
}

/* Legacy scrim lived on html::before; never re-enable (breaks header-hosted strips). */
html.booking-focus-open::before {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

/*
 * Scrim on body (not html). html::before fixed layers above in-flow header content
 * in WebKit/Blink, which breaks Ironmonger header strip focus.
 * Header-hosted strip: no full-page scrim (booking-focus--header-strip); blur dim only.
 */
html.booking-focus-open:not(.booking-focus--header-strip):not(:has(#hero-booking.booking-focus-host)) body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 35, 0.42);
  pointer-events: auto;
}

html.booking-focus-open.booking-focus--header-strip body::before,
html.booking-focus-open:has(#hero-booking.booking-focus-host) body::before {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

html.booking-focus-open.booking-focus--header-strip .site-header:has(.booking-focus-host),
html.booking-focus-open:has(#hero-booking.booking-focus-host) .site-header {
  z-index: 60;
}

html.booking-focus-open .hero-wrapper--editorial:has(.booking-focus-host),
html.booking-focus-open .hero-wrapper--split:has(.booking-focus-host),
html.booking-focus-open .hero-wrapper--arch:has(.booking-focus-host) {
  position: relative;
  z-index: 60;
}

html.booking-focus-open .booking-focus-host {
  position: relative;
  z-index: 2;
}

/* Hero/header strip + easepick while focus scrim is up (Ironmonger, Nocturne, etc.). */
html.booking-focus-open.booking-hero-picker-open .booking-focus-host {
  z-index: 110;
}

html.booking-focus-open .booking-focus-host .hero__panel,
html.booking-focus-open .booking-focus-host.booking-mask,
html.booking-focus-open .site-header__booking.booking-focus-host,
html.booking-focus-open #hero-booking.booking-focus-host,
html.booking-focus-open .site-header__booking.booking-focus-host .booking-mask {
  outline: 2px solid var(--dv-color-accent-ink, var(--dv-color-accent));
  outline-offset: 4px;
}

html.booking-focus-open .site-header__booking.booking-focus-host,
html.booking-focus-open #hero-booking.booking-focus-host {
  isolation: isolate;
}

html.booking-focus-open .booking-focus-dim {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
  transition: filter 0.28s ease, opacity 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.booking-focus-open .booking-focus-dim {
    filter: none;
    opacity: 0.65;
  }
}
