.nockregion-map-wrap {
    width: 100%;
    position: relative;
}

.nockregion-map {
    width: 100%;
    min-height: 280px;
    background: #f3f3f1;
    border-radius: 2px;
    overflow: hidden;
}

.nockregion-map.leaflet-container,
.nockregion-map .leaflet-container {
    font-family: inherit;
}

.nockregion-label-icon {
    background: transparent;
    border: 0;
    width: auto !important;
    height: auto !important;
}

.nockregion-label {
    display: inline-block;
    transform: translate(-50%, -50%);
    padding: 4px 7px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
    pointer-events: none;
}

.nockregion-label.is-active {
    font-weight: 600;
}

.nockregion-tooltip {
    font-family: inherit;
    font-size: 13px;
}

.nockregion-popup {
    font-family: inherit;
    min-width: 190px;
    color: #3a3a3a;
}

.nockregion-popup-title {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: #333;
}

.nockregion-municipality-popup table {
    border-collapse: collapse;
    width: 100%;
    margin: 0;
}

.nockregion-municipality-popup th,
.nockregion-municipality-popup td {
    padding: 4px 6px;
    border: 0;
    vertical-align: top;
    text-align: left;
    font-size: 13px;
}

.nockregion-municipality-popup th {
    width: 72px;
    background: rgba(0,0,0,.035);
    font-weight: 700;
}

.nockregion-popup a {
    text-decoration: none;
}

.nockregion-popup a:hover,
.nockregion-popup a:focus {
    text-decoration: underline;
}

.nockregion-contact-address {
    margin-bottom: 8px;
    line-height: 1.45;
}

.nockregion-contact-line {
    margin-top: 3px;
    line-height: 1.4;
}

.nockregion-contact-marker {
    background: transparent;
    border: 0;
}

.nockregion-contact-marker-inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
    overflow: hidden;
}

.nockregion-contact-marker-inner img {
    display: block;
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.nockregion-map-error {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f5f5;
    color: #555;
    text-align: center;
}

@media (max-width: 767px) {
    .nockregion-label {
        font-size: 10px;
        padding: 3px 5px;
    }

    .nockregion-popup-title {
        font-size: 15px;
    }
}


/* 0.2.1: kompaktere Kontaktbox */
.nockregion-contact-leaflet-popup .leaflet-popup-content {
    margin: 13px 16px 12px;
    line-height: 1.35;
}

.nockregion-contact-leaflet-popup .nockregion-popup-title {
    margin-bottom: 9px;
}

.nockregion-contact-leaflet-popup .nockregion-contact-address {
    margin-bottom: 6px;
}

.nockregion-contact-leaflet-popup .nockregion-contact-line {
    margin-top: 2px;
}


/* 0.2.4: Browser-Fokusrahmen bei Gemeinde-Polygonen entfernen; Auswahl erfolgt per Füllfarbe. */
.nockregion-map .leaflet-interactive:focus {
    outline: none !important;
}

/* 0.2.8: Checkbox-Filter für institutionelle Kartentypen */
.nockregion-map-filters {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.nockregion-map-filter-title {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: inherit;
}

.nockregion-map-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.nockregion-map-filter-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
    user-select: none;
}

.nockregion-map-filter-option input[type="checkbox"] {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

@media (max-width: 767px) {
    .nockregion-map-filter-options {
        gap: 8px 12px;
    }

    .nockregion-map-filter-option {
        width: calc(50% - 6px);
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nockregion-map-filter-option {
        width: 100%;
    }
}
