.meteone-station-marker {
    border: 0;
    background: transparent;
    filter: drop-shadow(0 3px 3px rgb(0 0 0 / 28%));
}

.meteone-station-marker__pin {
    position: relative;
    z-index: 0;
    display: block;
    box-sizing: border-box;
    width: 44px;
    height: 29px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: #087aaa;
    transition: filter 120ms ease, scale 120ms ease;
}

.meteone-station-marker:hover .meteone-station-marker__pin {
    filter: brightness(1.16);
    scale: 1.07;
}

.meteone-station-marker:focus-visible .meteone-station-marker__pin {
    filter: brightness(1.12);
    outline: 3px solid #006c9e;
    outline-offset: 2px;
    scale: 1.07;
}

.meteone-station-marker__pin::after {
    position: absolute;
    z-index: -1;
    bottom: -6px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 2px;
    background: inherit;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.meteone-station-marker__wind-shape {
    display: none;
}

.meteone-station-marker__value {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    color: var(--meteone-marker-text, #fff);
    font: 700 12px/1 var(--meteone-map-font);
    letter-spacing: -0.2px;
    pointer-events: none;
    place-items: center;
}

.meteone-station-marker__value[hidden] {
    display: none;
}

.meteone-station-marker.is-compact-value .meteone-station-marker__value {
    font-size: 10px;
    letter-spacing: -0.35px;
}

.meteone-station-marker__direction {
    position: absolute;
    z-index: 2;
    top: 3px;
    right: 3px;
    display: block;
    width: 9px;
    height: 9px;
    color: var(--meteone-marker-text, #fff);
    font: 700 9px/9px var(--meteone-map-font);
    pointer-events: none;
    text-align: center;
    transform: rotate(var(--meteone-wind-angle, 0deg));
    transform-origin: center;
}

.meteone-station-marker__direction[hidden] {
    display: none;
}

.meteone-station-marker.has-wind-direction .meteone-station-marker__value {
    padding-right: 8px;
    font-size: 10.5px;
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__pin {
    top: -1px;
    width: 54px;
    height: 37px;
    margin-left: -5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 2px 2px rgb(0 0 0 / 34%));
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__pin::after {
    display: none;
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__wind-shape {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: var(--meteone-marker-fill, #087aaa);
    stroke: #fff;
    stroke-linejoin: round;
    stroke-width: 2.4px;
    transform: rotate(calc(var(--meteone-wind-angle, 0deg) - 90deg));
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__value {
    inset: 0;
    z-index: 3;
    padding: 0;
    font-size: 11.5px;
    transform: translate(
        var(--meteone-wind-label-x, 0),
        var(--meteone-wind-label-y, 0)
    );
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__direction {
    display: none;
}

.meteone-station-marker.is-certified .meteone-station-marker__pin {
    background: #087aaa;
}

.meteone-station-marker.is-community .meteone-station-marker__pin {
    background: #5d6870;
}

.meteone-station-marker.has-measurement .meteone-station-marker__pin {
    background: var(--meteone-marker-fill, #087aaa);
}

.meteone-station-marker.has-measurement.is-wind-marker .meteone-station-marker__pin {
    background: transparent;
}

.meteone-station-marker.is-wind-marker.is-compact-value .meteone-station-marker__value {
    font-size: 10.5px;
}

.meteone-station-marker.is-wind-marker .meteone-station-marker__wind-shape path {
    vector-effect: non-scaling-stroke;
}

.meteone-station-marker.is-calm-wind .meteone-station-marker__pin {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.meteone-station-marker.is-calm-wind .meteone-station-marker__pin::after,
.meteone-station-marker.is-calm-wind .meteone-station-marker__wind-shape,
.meteone-station-marker.is-calm-wind .meteone-station-marker__direction {
    display: none;
}

.meteone-station-marker.is-calm-wind .meteone-station-marker__value {
    inset: 0;
    padding: 0;
    font-size: 12px;
    transform: none;
}

.meteone-station-marker.is-webcam .meteone-station-marker__pin {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    border: 0;
    border-radius: 0;
    background: transparent url('../images/webcam-v5.svg') center / contain no-repeat;
    transform: none;
}

.meteone-station-marker.is-webcam .meteone-station-marker__pin::after {
    display: none;
}

.meteone-station-marker.is-webcam .meteone-station-marker__webcam-count {
    position: absolute;
    top: -6px;
    right: -7px;
    z-index: 3;
    display: grid;
    box-sizing: border-box;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #123b52;
    box-shadow: 0 2px 5px rgb(0 0 0 / 30%);
    color: #fff;
    font: 700 10px/15px var(--meteone-map-font);
    pointer-events: none;
    place-items: center;
}

.meteone-station-marker.is-webcam .meteone-station-marker__webcam-count[hidden] {
    display: none;
}

/*
 * Il radar resta sotto i marker. Quando e visibile, soltanto il colore di
 * riempimento dei marker meteo lascia intravedere il layer sottostante:
 * bordo, valore, direzione, ombra e area interattiva rimangono pieni.
 */
.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker:not(.is-webcam) {
    --meteone-radar-marker-fill: #087aaa;
}

.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker.is-community:not(.is-webcam) {
    --meteone-radar-marker-fill: #5d6870;
}

.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker.has-measurement:not(.is-webcam) {
    --meteone-radar-marker-fill: var(--meteone-marker-fill, #087aaa);
}

.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker:not(.is-webcam)
    .meteone-station-marker__pin {
    background-color: color-mix(
        in srgb,
        var(--meteone-radar-marker-fill) 90%,
        transparent
    );
}

.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker.is-wind-marker:not(.is-webcam)
    .meteone-station-marker__pin {
    background-color: transparent;
}

.meteone-live-stations__map.has-radar-overlay
    .meteone-station-marker.is-wind-marker:not(.is-webcam)
    .meteone-station-marker__wind-shape {
    fill-opacity: 0.9;
}

.meteone-station-marker.is-overlapped {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.meteone-station-marker.is-data-pending {
    display: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.leaflet-dragging .meteone-live-stations .meteone-station-marker,
.leaflet-dragging .meteone-live-stations .meteone-station-marker__pin,
.meteone-live-stations .leaflet-pan-anim .meteone-station-marker,
.meteone-live-stations .leaflet-pan-anim .meteone-station-marker__pin,
.meteone-live-stations .leaflet-zoom-anim .meteone-station-marker,
.meteone-live-stations .leaflet-zoom-anim .meteone-station-marker__pin {
    filter: none !important;
}

.leaflet-dragging .meteone-live-stations .meteone-station-marker__pin,
.meteone-live-stations .leaflet-pan-anim .meteone-station-marker__pin,
.meteone-live-stations .leaflet-zoom-anim .meteone-station-marker__pin {
    transition: none;
    scale: 1;
}

.meteone-live-stations .leaflet-tooltip {
    border: 0;
    border-radius: 7px;
    background: rgb(19 43 58 / 94%);
    box-shadow: 0 4px 18px rgb(19 43 58 / 24%);
    color: #fff;
    font: 600 12px/1.35 var(--meteone-map-font);
}

.meteone-live-stations .leaflet-tooltip-top::before {
    border-top-color: rgb(19 43 58 / 94%);
}

.meteone-user-location-icon__heading {
    position: absolute;
    z-index: 0;
    top: -4px;
    left: -4px;
    display: block;
    width: 30px;
    height: 30px;
    fill: rgb(22 141 226 / 82%);
    stroke: #fff;
    stroke-linejoin: round;
    stroke-width: 1.7;
    opacity: 0;
    pointer-events: none;
    transform: rotate(var(--meteone-user-heading, 0deg));
    transform-origin: 50% 50%;
    transition: transform 180ms linear, opacity 120ms ease;
}

.meteone-user-location-icon.has-heading .meteone-user-location-icon__heading {
    opacity: 1;
}

.meteone-user-location-icon {
    overflow: visible;
}

.meteone-user-location-icon > span {
    z-index: 1;
}

@media (forced-colors: active) {
    .meteone-station-marker__value,
    .meteone-station-marker__direction {
        color: CanvasText;
    }
}
