#myModalSeatMap.modal { padding: 0 !important; }
#myModalSeatMap .modal-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; }
#myModalSeatMap .modal-content { height: 100%; max-height: none; border: 0; border-radius: 0; background: var(--bo-bg, #f5f6f8); }
#myModalSeatMap .modal-header { flex-shrink: 0; background: var(--bo-panel, #fff); }
#myModalSeatMap .modal-body { display: flex; min-height: 0; padding: 0; overflow: hidden; }
#myModalSeatMap .modal-body > .row, #myModalSeatMap #map_wrapper { width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; }
.sale-map-layout { height: 100%; min-height: 0; margin: 0; flex-wrap: nowrap; }
.sale-map-layout > [id^="map_wrapper_"] { display: flex; flex-direction: column; flex: 1 1 auto; width: 65%; min-width: 0; padding: .75rem; }
.sale-map-layout > [id^="legend_wrapper_"] { width: 35%; max-width: 480px; min-width: 320px; padding: 1rem; overflow-y: auto; border-left: 1px solid var(--bo-border, #dee2e6); background: var(--bo-panel, #fff); }
.sale-map-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; flex-shrink: 0; }
.sale-map-toolbar [hidden], .sale-map-message[hidden] { display: none !important; }
.sale-map-message { margin: 0; padding: .375rem .75rem; font-size: .8125rem; }
.sale-map-layout .zemap { flex: 1; min-height: 0; margin: 0 !important; border-radius: var(--bo-radius, .375rem) !important; overflow: hidden; }
.sale-map-layout [id^="zoom_handle_"] { top: 4rem !important; }
.sale-map-3d { display: none; flex: 1; width: 100%; min-height: 0; border: 1px solid var(--bo-border, #dee2e6); border-radius: var(--bo-radius, .375rem); background: var(--bo-bg, #f5f6f8); }
.sale-map-layout[data-view="3d"] .sale-map-3d { display: block; }
.sale-map-layout[data-view="3d"] .zemap,
.sale-map-layout[data-view="3d"] [id^="zoom_handle_"],
.sale-map-layout[data-view="3d"] #explanation { display: none !important; }
.sale-map-layout:not(.sale-map-selection-modes)[data-view="3d"] [id^="byseat_"],
.sale-map-layout:not(.sale-map-selection-modes)[data-view="3d"] [id^="zeseats_"] { display: none !important; }
.sale-map-selection-modes .zechoice { display: block !important; }
.sale-map-layout #zearticles { max-width: 100%; }
.sale-map-layout .zelegend svg { max-width: 100%; }
.sale-map-layout .zelegend { max-width: none !important; }
.sale-map-3d-help { display: none; }
.sale-map-layout[data-view="3d"] .sale-map-3d-help { display: block; }
@media (max-width: 767px) {
    .sale-map-layout { flex-direction: column; overflow-y: auto; }
    .sale-map-layout > [id^="map_wrapper_"] { flex: 0 0 65%; min-height: 380px; width: 100%; padding: .5rem; }
    .sale-map-layout > [id^="legend_wrapper_"] { flex: 1 0 auto; width: 100%; max-width: none; min-width: 0; overflow: visible; border-left: 0; border-top: 1px solid var(--bo-border, #dee2e6); }
    .sale-map-toolbar { flex-wrap: wrap; gap: .5rem; }
}
