/* --- KONTENER MAPY Z ZOOMEM --- */
.mapa-sekcja {
    width: 100%;
    /* Elastyczna wysokość */
    height: 65vh;
    min-height: 400px;
    max-height: 800px;

    /* ZMIANA: Tło białe, żeby zlało się z mapą */
    background: #ffffff;
    border: 1px solid #ddd;

    overflow: hidden; /* Ukrywamy to, co wyjeżdża przy zoomowaniu */
    position: relative;
    cursor: grab;

    /* Centrowanie */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-sekcja:active {
    cursor: grabbing;
}

/* --- SVG I VIEWPORT --- */
.mapa-svg, .svg-pan-zoom_viewport {
    width: 100% !important;
    height: 100% !important;
    display: block;
    /* Usuwamy ograniczenia rozmiaru samego obrazka */
    max-width: none !important;
    max-height: none !important;
}

/* Fix dla przycisków sterowania biblioteki */
#svg-pan-zoom-controls {
    transform: translate(0, 0) !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
    top: auto !important;
    opacity: 0.7;
}
#svg-pan-zoom-controls:hover { opacity: 1; }

/* --- POZOSTAŁE STYLE (Bez zmian) --- */
:root {
    --map-wall: #000000;
    --map-bg: #ffffff;
    --map-hover: #ffb700;
    --map-active: #00449E;
    --accent: #FF6300;
}

/* KLASY LOGICZNE */
.klikalne {
    cursor: pointer !important;
    fill: var(--map-bg) !important;
    stroke: var(--map-wall) !important;
    stroke-width: 1.5px !important;
    opacity: 1 !important;
    transition: fill 0.2s;
}

.klikalne:hover {
    fill: var(--map-hover) !important;
    stroke-width: 2px !important;
}

.klikalne.wybrane {
    fill: var(--map-active) !important;
    stroke: #000 !important;
    stroke-width: 2px !important;
}

.klikalne.nieaktywne {
    fill: #fff !important;
    stroke: #bbb !important;
    pointer-events: none;
}

.klikalne.grupa-aktywna {
    stroke: var(--accent) !important;
    stroke-width: 2px !important;
    fill: rgba(255, 99, 0, 0.1) !important;
}

.lista-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.lista-item:hover { background-color: #f4f4f4; color: var(--accent); }
.lista-item.aktywna { background-color: #e8e8e8; font-weight: bold; border-left: 5px solid var(--map-active); }

.tab-btn.active { background-color: #00449E; color: white; }
.btn-filter.aktywny { background-color: var(--map-active); color: white; border-color: var(--map-active); }

.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { height: 100%; display: flex; align-items: center; justify-content: center; color: #555; }