.nsm-wrap {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.nsm-map {
    width: 100%;
    height: var(--nsm-map-height, 720px);
    min-height: 480px;
    overflow: hidden;
    background: #d0b9ab;
}

/* OpenFreeMap Bright sa farebne prepisuje cez MapLibre v JS podľa vizuálu Nové Šúty. */

.nsm-map .leaflet-control-container {
    position: relative;
    z-index: 1200;
    pointer-events: none;
}

.nsm-map .leaflet-control-container .leaflet-control {
    pointer-events: auto;
}

.nsm-map .leaflet-control-container {
    font-family: inherit;
}

.nsm-map .leaflet-control-zoom {
    margin-top: 22px;
    margin-left: 22px;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(38, 20, 8, .13);
}

.nsm-map .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    line-height: 38px;
    border: 0;
    color: #261408;
    background: #fff;
}

.nsm-map .leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0;
}

.nsm-map .leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px;
}

.nsm-map .leaflet-control-attribution {
    padding: 2px 5px;
    font-size: 9px;
    line-height: 1.25;
    background: rgba(255,255,255,.72);
    color: #5a4a40;
}

.nsm-map .leaflet-control-attribution a {
    color: inherit;
}

.nsm-accessibility {
    position: absolute;
    z-index: 800;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, max-content);
    align-items: center;
    gap: 38px;
    max-width: calc(100% - 80px);
    padding: 18px 30px;
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 40px rgba(38, 20, 8, .08);
    color: #261408;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.nsm-accessibility strong {
    font-weight: 700;
}

.nsm-map .nsm-project-icon,
.nsm-map .nsm-location-icon {
    background: transparent;
    border: 0;
}

.nsm-map .nsm-project-icon img,
.nsm-map .nsm-location-icon img {
    display: block;
}

.nsm-map .nsm-location-icon {
    filter: drop-shadow(0 5px 8px rgba(38,20,8,.16));
}

.nsm-map .nsm-project-icon {
    filter: drop-shadow(0 10px 18px rgba(38,20,8,.12));
}

.nsm-tooltip.leaflet-tooltip {
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: #261408;
    box-shadow: 0 5px 18px rgba(38,20,8,.18);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.nsm-tooltip.leaflet-tooltip-top::before {
    border-top-color: #261408;
}

.nsm-tooltip--project.leaflet-tooltip {
    display: none;
}

.nsm-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 7px 28px rgba(38,20,8,.18);
}

.nsm-leaflet-popup .leaflet-popup-content {
    margin: 11px 14px;
    color: #261408;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
}

.nsm-leaflet-popup .leaflet-popup-tip {
    box-shadow: none;
}

.nsm-popup strong {
    font-weight: 600;
}

@media (max-width: 1100px) {
    .nsm-accessibility {
        gap: 22px;
        max-width: calc(100% - 40px);
        padding: 15px 22px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .nsm-map {
        height: min(var(--nsm-map-height, 620px), 72vh);
        min-height: 520px;
    }

    .nsm-accessibility {
        top: 14px;
        left: 14px;
        right: 14px;
        transform: none;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
        max-width: none;
        padding: 13px 15px;
        border-radius: 12px;
        white-space: normal;
        font-size: 11px;
    }

    .nsm-accessibility__item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .nsm-map .nsm-project-icon {
        transform-origin: 50% 100%;
    }

    .nsm-map .leaflet-control-zoom {
        margin-top: 100px;
        margin-left: 14px;
    }
}
