/* Sayyarati v8799 — map popup stacking hardening.
   Map governorate selectors live outside the isolated map canvas so their
   positive z-index can sit above the fixed place-details backdrop. Whenever
   a map place card is open, hide those map-only controls until the card closes.
   This keeps the details dialog/backdrop as the true top layer on brokers,
   workshops, tow trucks, sonar, Dalili and fuel maps. */

.brokers-map-v8769__governorate,
.workshop-map-v8719__governorate,
.tow-map-v8759__governorate,
.car-sonar-map-v8762__governorate,
.dalili-map-governorate-v8708,
.fuel-map-governorate-v8777 {
  transition: opacity .14s ease, visibility .14s ease, transform .14s ease;
}

html.fuel-map-v8681-popup-open .brokers-map-v8769__governorate,
html.fuel-map-v8681-popup-open .workshop-map-v8719__governorate,
html.fuel-map-v8681-popup-open .tow-map-v8759__governorate,
html.fuel-map-v8681-popup-open .car-sonar-map-v8762__governorate,
html.fuel-map-v8681-popup-open .dalili-map-governorate-v8708,
html.fuel-map-v8681-popup-open .fuel-map-governorate-v8777 {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}

/* Defensive fallback: if a browser paints a fixed descendant of the isolated
   canvas in a separate compositor layer, promote the map popup backdrop/card
   themselves above ordinary page chrome while preserving their existing UI. */
html.fuel-map-v8681-popup-open .fuel-map-v8681-selected-backdrop {
  z-index: 2147483000 !important;
}
html.fuel-map-v8681-popup-open .fuel-map-v8680-selected:not([hidden]) {
  z-index: 2147483001 !important;
}
