/* 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);

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

    .location-selector {
        margin: 15px 0;
        padding: 8px;
        width: 300px;
        border: 1px solid var(--text-color);
        background-color: #fff;
    }
    .location-selector:focus-visible {
        outline-color: var(--light-blue);
    }


    .gmap-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .location-list {
        list-style: none;
        padding: 0;
        margin: 0;
        max-width: 600px;
    }

    .location-list .gmap-location {
        position: relative;
        padding: 0;
        margin-bottom: var(--font-margin-p);
    
        cursor: pointer;
        .gmap-location-infos {
            position: relative;
            z-index: 2;
            p {
                margin-bottom: 0;
            }
            p a.btn {
                margin-top: 1rem;
            }
        }
        
        &::before {
            z-index: -1;
            content: '';
            position: absolute;
            top: -1rem;
            right: -2rem;
            bottom: -1rem;
            left: -2rem;
            transition: ease 0.3s all;
        }
    }

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

    .location-list .gmap-location.active {
         &::before {
            background: var(--light-blue);
            z-index: 0;
        }
    }
    .leaflet-popup-content-wrapper {
        border-radius: 0;
        h3 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        p {
            margin: 0;
            white-space: nowrap;
        }
    }
}