.map-zones-page {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 16px;
    height: 100%;
    min-height: 0;
    padding: 16px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .map-zones-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

.map-zones-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 100%;
    overflow-y: auto;
}

.map-zones-list {
    margin: 0;
}

.map-zones-list__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: none;
}

.map-zones-list__item.is-selected {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.map-zones-list__name {
    font-weight: 600;
    border-left: 4px solid #c9a227;
    padding-left: 8px;
}

.map-zones-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.map-zones-map-wrap {
    position: relative;
    min-height: 360px;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
}

@media (max-width: 768px) {
    .map-zones-map-wrap {
        height: 60vh;
        min-height: 360px;
    }
}

.map-zones-map {
    width: 100%;
    height: 100%;
}

/* Keep name modal above the map canvas */
#zoneNameModal.modal {
    z-index: 2000;
}

.modal-backdrop.show {
    z-index: 1990;
}

.map-zones-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #fff;
}