.rwp-layer-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 0;
    border-radius: 20px;
    background: #000;
    box-shadow: none;
    pointer-events: auto;
}

.rwp-layer-switcher button {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 4px 12px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    appearance: none;
}

.rwp-layer-switcher button:hover,
.rwp-layer-switcher button:focus,
.rwp-layer-switcher button.active,
.rwp-layer-switcher button[aria-pressed="true"] {
    background: #fff;
    color: #000;
}

.rwp-layer-switcher button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#rwp_map .leaflet-control-zoom a {
    text-decoration: none;
}

#rwp_map .rwp-leaflet-marker {
    overflow: visible;
    background: transparent;
    border: 0;
}

#rwp_map .rwp-map__marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--label-bg, #10283a);
    box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}

#rwp_map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: var(--border-radius-0, 10px);
}

#rwp_map .leaflet-popup-content {
    width: min(360px, calc(100vw - 80px));
    min-width: 0;
    max-width: 360px;
    margin: 0;
    white-space: normal;
}

#rwp_map .leaflet-popup-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--popup-close-button-size, 1.5em);
    height: var(--popup-close-button-size, 1.5em);
    padding: 0;
    background: var(--col-dark, #000);
    color: var(--col-light, #fff);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

#rwp_map .leaflet-popup-close-button:hover,
#rwp_map .leaflet-popup-close-button:focus-visible {
    background: var(--col-light, #fff);
    color: var(--col-dark, #000);
}

/* Keep Leaflet controls above tile/vector panes. */
#rwp_map .leaflet-control-container .leaflet-top,
#rwp_map .leaflet-control-container .leaflet-bottom {
    z-index: var(--map-controls-zindex, 1000);
    pointer-events: none;
}

#rwp_map .leaflet-control-container .leaflet-control {
    display: block;
    pointer-events: auto;
}

#rwp_map .leaflet-control-zoom {
    visibility: visible;
    opacity: 1;
}

#rwp_map .leaflet-control-zoom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    text-decoration: none;
}

#rwp_map .leaflet-control-attribution {
    display: block;
    visibility: visible;
    max-width: calc(100% - 20px);
    opacity: 1;
    font-size: 10px;
    line-height: 1.35;
}

