.db-map-status {
    position: absolute;
    z-index: 1000;
    top: 0.85rem;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 1.7rem);
    margin: 0;
    padding: 0.55rem 0.75rem;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    font-size: 0.8rem;
}

.db-filter-status {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
}

.db-station-marker::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--page);
}

.db-station-marker--ice::before {
    width: 9px;
    height: 9px;
    background: var(--red);
}

.db-station-marker:hover::before,
.db-station-marker:focus-visible::before {
    box-shadow: 0 0 0 2px var(--ink);
}

.db-departure-popup .station-lines[hidden] {
    display: none;
}

.db-page .leaflet-control-attribution {
    max-width: 100%;
}

.db-train-marker .vehicle-badge {
    display: grid;
    place-items: center;
    width: max-content;
    min-width: 44px;
    transform: translateX(-50%) scale(0.72);
    margin-left: 50%;
}

.db-train-marker:has(.db-overview-train) .vehicle-badge {
    height: 24px;
}

.db-overview-train {
    width: 19px;
    height: 11px;
    border-bottom: 3px solid var(--red);
    border-radius: 999px;
    background: #f5f7fb;
}

.db-train-leaflet-popup .vehicle-timeline:has(.vehicle-destination-stop:only-child)::before {
    display: none;
}

.db-train-details {
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-height: 650px) {
    .db-departure-popup .station-departures {
        max-height: max(90px, calc(100dvh - 18rem));
    }
}

@media (max-width: 700px) {
    .db-station-marker::before {
        width: 5px;
        height: 5px;
    }

    .db-station-marker--ice::before {
        width: 7px;
        height: 7px;
    }
}
