.radarx-tooltip {
    position: absolute;
    display: none;              /* default hidden */
   /* opacity: 1;                  niet doorzichtig */
    background: rgba(255, 255, 255, 0.76);
    border: 2px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: Segoe UI, sans-serif;
    font-size: 12px;
    color: #222;
    pointer-events: none;
    white-space: nowrap;        /* voorkomt wrapping */
    min-width: 170px;           /* voorkomt te smal */
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transform: translate(-50%, -115%);
    z-index: 9999;
}

.radarx-tooltip-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radarx-tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.radarx-tooltip-row i.bi {
    font-size: 14px;
    width: 16px;               /* icons netjes uitlijnen */
    text-align: center;
    flex: 0 0 16px;
    opacity: 0.9;
}

.radarx-tooltip-sim {
    font-weight: 700;
}

.radarx-tooltip-loco {
    opacity: 0.75;
}

.radarx-tooltip-speed {
    font-size: 16px;
    font-weight: 400;
}

.radarx-bubble {
    background: rgba(30,30,30,0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.radarx-bubble:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(30,30,30,0.9) transparent transparent transparent;
}

#radarx-message-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: auto;
}

.radarx-message {
    min-width: 180px;
    max-width: 700px;
    padding: 6px 12px;
    border-radius: 14px;
    color: #fff;
    font: 12px "Segoe UI", sans-serif;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    animation: radarx-rise 0.25s ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	pointer-events: auto;
}

.radarx-message-followed {
    background: rgba(255,106,0,0.92);
}

.radarx-message-tsw {
    background: rgba(254,32,95,0.92);
}

.radarx-message-tsc {
    background: rgba(244,228,40,0.92);
    color: #222;
}
.radarx-message-default {
    background: rgba(30,30,30,0.92);
}

.radarx-message-system {
    background: rgba(60,60,60,0.92);
    color: #eee;
}

.radarx-message-enter {
	background: rgba(50,160,90,0.92);
}

.radarx-message-leave {
	background: rgba(200,70,70,0.92);
}

@keyframes radarx-rise {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}