/* MOVARA Frontend Surface 1.9.67 — desktop Step-1 overlay authority.
 * Presentation only. Flow owns Places/time state and popup positioning.
 * The approved 1.9.64 reference landing introduces a z-index:20 Search stacking
 * context; temporarily elevate that context only while a Step-1 overlay is open.
 */
@media (min-width:821px){
  body.mfs-landing-vnext-active .mfs-acq-search-wrap:focus-within,
  body.mfs-landing-vnext-active .mfs-acq-search-wrap:has(.movara-autocomplete-panel:not([hidden])),
  body.mfs-landing-vnext-active .mfs-acq-search-wrap:has(.movara-timepicker-panel:not([hidden])){
    position:relative!important;
    z-index:1100!important;
  }

  body.mfs-landing-vnext-active .mfs-vnext-template:has(.mfs-acq-search-wrap:focus-within),
  body.mfs-landing-vnext-active .mfs-vnext-template:has(.movara-autocomplete-panel:not([hidden])),
  body.mfs-landing-vnext-active .mfs-vnext-template:has(.movara-timepicker-panel:not([hidden])){
    overflow:visible!important;
  }

  body.mfs-landing-vnext-active .mfs-acq-booking__frame,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"],
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-page-shell,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-step1-shell,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-search-hero,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-step1-panel,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-step1-fields,
  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-layer-root{
    overflow:visible!important;
  }

  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-layer-root{
    position:relative!important;
    z-index:2147481000!important;
  }

  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-autocomplete-panel{
    z-index:2147481300!important;
  }

  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-timepicker-backdrop{
    z-index:2147481100!important;
  }

  body.mfs-landing-vnext-active .mfs-acq-booking__frame #movara-frontend-app[data-page-mode="search"] .movara-timepicker-panel{
    z-index:2147481300!important;
    filter:none!important;
    -webkit-filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}

/* MOVARA Frontend Surface 1.9.70 — hero stacking-context bridge.
 * The landing hero intentionally uses isolation:isolate so its negative hero media
 * remains contained. That also traps the embedded Flow layer root inside the hero
 * stacking context. Raise the hero itself only while a Step-1 overlay is open so
 * autocomplete/time/passenger panels can paint above the following transport cards,
 * while the sticky navigation (z-index:900) remains above the hero (z-index:800).
 */
@media (min-width:821px){
  body.mfs-landing-vnext-active .mfs-acq-hero:has(.movara-autocomplete-panel:not([hidden])),
  body.mfs-landing-vnext-active .mfs-acq-hero:has(.movara-timepicker-panel:not([hidden])),
  body.mfs-landing-vnext-active .mfs-acq-hero:has(.movara-passenger-panel:not([hidden])){
    z-index:800!important;
  }
}
