.mapbox-control-container, .mapbox-logo, a.mapboxgl-ctrl-logo, .mapboxgl-ctrl-bottom-right {
    display: none; !important
}

/* Blue location dot (home + live), matching the replay playhead */
.marker {
    --halo: 12, 177, 232;
    --halo-speed: 2.2s;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0cb1e8;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
}

/* Pulsing halo (colour + rate set from JS via --halo / --halo-speed) */
.marker::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: pulse-ring var(--halo-speed) infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(var(--halo), 0.6); }
    70%  { box-shadow: 0 0 0 16px rgba(var(--halo), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--halo), 0); }
}

/* Live dot lies on the map plane: a touch bigger so the tilted disc stays legible */
.marker.live {
    width: 22px;
    height: 22px;
}

/* Speed + transport mode pill: its own upright marker floating above the dot.
   Must stay absolutely positioned (Mapbox places marker elements with a
   transform); a relative/static position would drop it into normal flow as a
   full-width band. */
.marker-label {
    position: absolute;
    width: max-content;
    white-space: nowrap;
    background: rgba(31, 41, 55, 0.85);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 9999px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Direction-of-travel cone that orbits the live marker (rotated from JS) */
.marker-heading {
    position: absolute;
    inset: 0;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease-out;
    pointer-events: none;
}

.marker-heading::before {
    content: '';
    position: absolute;
    bottom: 100%;
    margin-bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 0 3px rgba(12, 177, 232, 0.9));
}


/* Replay playhead marker: a speed-tinted glowing dot with a soft pulse */
.replay-marker {
    --rc: #0cb1e8;
    position: relative;   /* hosts the heading cone */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rc);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--rc) 30%, transparent), 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: background 0.3s linear, box-shadow 0.3s linear, opacity 0.3s ease-out;
    cursor: pointer;
}

/* Sport icon inside the replay marker during a FIT activity (running, cycling…) */
.replay-marker .marker-sport {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 10px;
    line-height: 1;
    color: #0b1017;
    pointer-events: none;
}

/* Guessed playhead: emulated travel between two far-apart fixes (no data in
   between). A dashed ring + soft pulse marks it as inferred, not measured. */
.replay-marker.guessing {
    border-style: dashed;
    animation: guess-pulse 1.4s ease-in-out infinite;
}
@keyframes guess-pulse {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--rc) 24%, transparent), 0 2px 8px rgba(0, 0, 0, 0.5); }
    50%      { box-shadow: 0 0 0 8px color-mix(in oklch, var(--rc) 8%, transparent), 0 2px 8px rgba(0, 0, 0, 0.5); }
}

.mapboxgl-popup {
    max-width: 200px;
    opacity: 80%;
}

.mapboxgl-popup-tip {
    max-width: 200px;
    opacity: 80%;
}

.mapboxgl-popup-content {
    text-align: center;
}

.blinker {
    animation: blinker 2s linear infinite;
}
  
@keyframes blinker {
    50% {
        opacity: .4;
    }
}

