/* Consent-Overlay */
.map-consent-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    text-align: center;
}

.map-consent-inner {
    max-width: 400px;
    padding: 2rem;
}

.map-consent-inner p {
    margin-bottom: 1rem;
}

.map-consent-hint {
    margin-top: 1rem;
    color: #666;
}

/* Map-Container braucht definierte Höhe */
#map-wrapper {
    position: relative;
}

#map {
    width: 100%;
    height: 500px;
}

/* InfoWindow Styling */
.gmap-info h3 {
    margin: 0 0 0.25em;
    font-size: 1rem;
}

.gmap-info p {
    margin: 0;
    font-size: 0.875rem;
}

.gm-style .gm-style-iw {
    border-radius: 0;
    box-shadow: 0 2px 4px 1px rgba(0,0,0,.1);
    max-width: 290px !important;
    width: 290px !important;
}
.gmap-module {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.gmap-module #map {
    width: 100%;
    height: 635px;
    margin-bottom: var(--font-margin-p);
    z-index: 1;
}

.gmap-module .location-selector {
    margin: 15px 0;
    padding: 8px;
    width: 300px;
    border: 1px solid var(--text-color);
    background-color: #fff;
}

.gmap-module .location-selector:focus-visible {
    outline-color: var(--light-blue);
}

.gmap-module .gmap-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gmap-module .location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 600px;
}

.gmap-module .location-list .gmap-location {
    position: relative;
    padding: 0;
    margin-bottom: var(--font-margin-p);
    cursor: pointer;
}

.gmap-module .location-list .gmap-location .gmap-location-infos {
    position: relative;
    z-index: 2;
}

.gmap-module .location-list .gmap-location .gmap-location-infos p {
    margin-bottom: 0;
}

.gmap-module .location-list .gmap-location .gmap-location-infos p a.btn {
    margin-top: 1rem;
}

.gmap-module .location-list .gmap-location::before {
    z-index: -1;
    content: '';
    position: absolute;
    top: -1rem;
    right: -2rem;
    bottom: -1rem;
    left: -2rem;
    transition: ease 0.3s all;
}

.gmap-module .location-list .gmap-location:hover::before {
    background: var(--light-gray);
}

.gmap-module .location-list .gmap-location.active::before {
    background: var(--light-blue);
    z-index: 0;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
}

.leaflet-popup-content-wrapper h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.leaflet-popup-content-wrapper p {
    margin: 0;
    white-space: nowrap;
}