/* Ensure modals appear above all map elements */
.modal-backdrop {
  z-index: 9990 !important;
}

.modal {
  z-index: 9999 !important;
}

/* Prevent pointer events from passing through to map */
.modal.show {
  pointer-events: auto;
}

.modal-dialog {
  pointer-events: auto;
}

/* Ensure the map settings modal specifically is above everything */
#map-settings-modal {
  z-index: 10000 !important;
}

#map-settings-modal + .modal-backdrop {
  z-index: 9999 !important;
}
