/* Africa.Luxury v1.7.314 — Search popovers must cover result-card controls.
   Raise the real topbar stacking context while a Home picker is open.
   The shared/header/sticky geometry and normal Room-card controls are unchanged. */
body.sr-stays .sr-stay-topbar:has(.al-ds-stage:not([hidden])) {
  position: relative !important;
  z-index: 2200 !important;
  isolation: isolate !important;
  overflow: visible !important;
}
body.sr-stays .sr-stay-topbar:has(.al-ds-stage:not([hidden])) .sr-search-home-host-v310,
body.sr-stays .sr-stay-topbar:has(.al-ds-stage:not([hidden])) .sr-home-search-shell-v310,
body.sr-stays .sr-stay-topbar:has(.al-ds-stage:not([hidden])) .al-ds-root {
  overflow: visible !important;
}
body.sr-stays .sr-stay-topbar:has(.al-ds-stage:not([hidden])) .al-ds-stage:not([hidden]) {
  z-index: 2400 !important;
  background: #fff !important;
  isolation: isolate !important;
}
/* Result-card favourite, share, photo-arrow and rating controls remain under
   an open search picker; they retain their own normal stacking when it closes. */
body.sr-stays:has(.sr-stay-topbar .al-ds-stage:not([hidden])) .sr-quickbar,
body.sr-stays:has(.sr-stay-topbar .al-ds-stage:not([hidden])) .sr-layout {
  position: relative;
  z-index: 0 !important;
}
/* Keep the Home logo/account header above the dropdown when scrolling, but
   don't impose new dimensions, columns or fixed positioning on the header. */
body.sr-stays #alx-search-global-header-v310 {
  z-index: 3000 !important;
}
/* Docked selectors live inside that existing shared header, not the topbar.
   They must still outrank listing/photo controls without extra click shields. */
body.sr-stays.alx312-search-docked #alx-search-global-header-v310 .al-ds-stage:not([hidden]) {
  z-index: 3200 !important;
  background: #fff !important;
  isolation: isolate !important;
}
