/* Zentrale MapLibre-Basis fuer radtouren-opr.de */
.rt-maplibre-map {
    min-height: 420px;
    border-radius: 16px;
    border: 1px solid #cbdcc5;
    overflow: hidden;
    background: #edf4e9;
}

.rt-maplibre-map.is-loading::before {
    content: "Karte wird geladen ...";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    color: #43543b;
    font-weight: 700;
}

.rt-maplibre-fallback,
.rt-maplibre-error {
    background: #fff8e8;
    border: 1px solid #efdca6;
    border-radius: 14px;
    padding: 14px 16px;
    color: #4b3a12;
}

.rt-maplibre-marker {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid #fff;
    background: #2f7d32;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    cursor: pointer;
}

.rt-maplibre-marker:hover,
.rt-maplibre-marker:focus {
    transform: scale(1.08);
    outline: 2px solid rgba(47,125,50,.35);
}

.rt-maplibre-marker-label {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #2f7d32;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    padding: 0 5px;
}

.rt-maplibre-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0,0,0,.78);
}

.rt-maplibre-lightbox.is-open {
    display: flex;
}

.rt-maplibre-lightbox figure {
    position: relative;
    margin: 0;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
}

.rt-maplibre-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 12px 36px rgba(0,0,0,.55);
}

.rt-maplibre-lightbox button {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #17351f;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.45);
}

.rt-maplibre-lightbox figcaption {
    margin-top: 8px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 760px) {
    .rt-maplibre-map {
        min-height: 60vh;
    }
}