/* LV Carte — Frontend Styles v2.0 */

/* ================================================================
   CSS Variables
   ================================================================ */
.lv-carte-wrapper {
    --lv-accent:         #2563eb;
    --lv-accent-rgb:     37,99,235;
    --lv-alert-bg:       #dc2626;
    --lv-alert-text:     #ffffff;
    --lv-speed-alert-bg: #f97316;
}

/* ================================================================
   Layout — map fills the full wrapper (no header bar)
   ================================================================ */
.lv-carte-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lv-map-container {
    position: absolute;
    inset: 0;
}

/* ================================================================
   Mode chooser (split screen) — shortcode [lv_carte]
   Top half = Navigateur GPS · Bottom half = Carte
   ================================================================ */
.lv-mode-select {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    background: #0b1220;
}
.lv-mode-select.hidden { display: none; }

.lv-mode-select-half {
    flex: 1;
    border: none;
    margin: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: #fff;
    text-align: center;
    background: transparent;
    transition: filter .2s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.lv-mode-select-gps { background: linear-gradient(135deg, var(--lv-accent), color-mix(in srgb, var(--lv-accent) 55%, #000)); }
.lv-mode-select-map { background: linear-gradient(135deg, #1e293b, #0f172a); }
.lv-mode-select-half:hover  { filter: brightness(1.08); }
.lv-mode-select-half:active { transform: scale(.99); }

.lv-mode-select-ic { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; }
.lv-mode-select-ic svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.lv-mode-select-title { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.lv-mode-select-sub   { font-size: 13px; font-weight: 500; opacity: .82; max-width: 300px; line-height: 1.4; }

.lv-mode-select-divider { position: relative; height: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lv-mode-select-divider span {
    position: absolute;
    transform: translateY(-50%);
    background: #0b1220;
    color: #94a3b8;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 480px) {
    .lv-mode-select-title { font-size: 17px; }
    .lv-mode-select-sub   { font-size: 12px; }
    .lv-mode-select-ic    { width: 46px; height: 46px; }
}

/* ================================================================
   Floating controls — LEFT side column (all controls, uniform circles)
   ================================================================ */
.lv-float-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 200;
}

/* Thin separator between groups */
.lv-float-divider {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,.25);
    margin: 2px 0;
    pointer-events: none;
}

/* Shared circle button base — all buttons in left column inherit this */
.lv-float-left button {
    background: rgba(10,20,40,.72);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
    color: #fff;
    transition: background .15s, border-color .15s, box-shadow .15s;
    flex-shrink: 0;
}
.lv-float-left button:hover { background: rgba(30,58,95,.9); }

/* 2D / 3D mode buttons */
.lv-mode-btn {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}
.lv-mode-btn.active { background: var(--lv-accent); border-color: var(--lv-accent); }

/* Satellite button has an SVG instead of text — size the SVG */
.lv-sat-btn svg { width: 22px; height: 22px; color: #fff; }

/* Speed alert toggle button */
.lv-speed-toggle-btn { font-size: 18px; }
.lv-speed-toggle-btn.disabled { opacity: 0.4; }

/* Dark mode button */
.lv-darkmode-btn { font-size: 18px; }
.lv-darkmode-btn.active { background: #1e1b4b; border-color: #6366f1; }

/* GPS button */
.lv-gps-btn svg { width: 22px; height: 22px; color: #fff; }
.lv-gps-btn.active   { background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.35), 0 2px 12px rgba(0,0,0,.4); }
.lv-gps-btn.recenter { background: #ea580c; border-color: #ea580c; animation: lv-blink .8s ease-in-out infinite; }
.lv-gps-btn.searching { animation: lv-blink .8s ease-in-out infinite; }

@keyframes lv-blink { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ================================================================
   Geolocation consent overlay
   ================================================================ */
.lv-consent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}
.lv-consent-overlay.hidden { display: none; }
.lv-consent-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.lv-consent-icon { font-size:48px; margin-bottom:12px; }
.lv-consent-box h3 { margin:0 0 12px; font-size:20px; color:#1e3a5f; }
.lv-consent-box p  { margin:0 0 8px; color:#374151; font-size:14px; line-height:1.6; }
.lv-consent-note   { font-size:12px !important; color:#9ca3af !important; }
.lv-consent-buttons { display:flex; gap:10px; margin-top:20px; justify-content:center; flex-wrap:wrap; }
.lv-btn { padding:10px 20px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; border:none; transition:all .15s; }
.lv-btn-primary   { background: var(--lv-accent); color:#fff; }
.lv-btn-primary:hover   { background: color-mix(in srgb, var(--lv-accent) 85%, #000); }
.lv-btn-secondary { background:#f1f5f9; color:#374151; }
.lv-btn-secondary:hover { background:#e2e8f0; }

/* ================================================================
   RADAR ALERT PANEL — Base
   ================================================================ */
.lv-alert-panel {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--lv-alert-bg);
    color: var(--lv-alert-text);
    z-index: 300;
    border-radius: 0;            /* banner is edge-to-edge; corner variants set their own */
    pointer-events: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
/* Icon sits in a white circle so any icon (incl. dark/custom) stays readable. */
.lv-alert-panel .lv-alert-icon {
    flex: 0 0 auto;
    background: #fff;
    border-radius: 50%;
    padding: 9px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.lv-alert-panel .lv-alert-icon img {
    width: 48px; height: 48px;
    object-fit: contain;
    display: block;
}
.lv-alert-info { flex: 1; min-width: 0; }
.lv-alert-name { font-size:13px; font-weight:600; letter-spacing:.3px; line-height:1.2; text-transform:uppercase; opacity:.92; }
.lv-alert-dist { font-size:28px; font-weight:900; margin-top:1px; line-height:1.05; }
.lv-alert-badge {
    flex: 0 0 auto;
    display: flex; flex-direction:column; align-items:center; gap:3px;
    background: rgba(0,0,0,.18);
    border-radius: 12px; padding:8px 12px;
    font-size:11px; font-weight:800; letter-spacing:.5px; text-transform:uppercase;
}
.lv-alert-badge > :first-child { font-size:22px; }
.lv-alert-badge img { width:26px; height:26px; object-fit:contain; }

/* Hidden by default */
.lv-alert-panel { transform: translateY(120%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.lv-alert-panel.active { transform: translateY(0); }

/* ================================================================
   STYLE: banner
   ================================================================ */
.lv-style-banner .lv-alert-panel {
    bottom: 0; left: 0; right: 0;
    padding: 12px 20px;
    border-top: 3px solid rgba(0,0,0,.2);
}

/* ================================================================
   STYLE: corner variants
   ================================================================ */
.lv-style-corner-tr .lv-alert-panel,
.lv-style-corner-tl .lv-alert-panel,
.lv-style-corner-br .lv-alert-panel,
.lv-style-corner-bl .lv-alert-panel {
    max-width: 300px;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transform: scale(.6);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.lv-style-corner-tr .lv-alert-panel.active,
.lv-style-corner-tl .lv-alert-panel.active,
.lv-style-corner-br .lv-alert-panel.active,
.lv-style-corner-bl .lv-alert-panel.active {
    transform: scale(1);
    opacity: 1;
}

/* Top corners start from the very top (no header bar anymore);
   left corners offset by the controls column width (48px + 12px + gap ≈ 70px) */
.lv-style-corner-tr .lv-alert-panel { top: 12px; right: 12px; }
.lv-style-corner-tl .lv-alert-panel { top: 12px; left: 70px; }
.lv-style-corner-br .lv-alert-panel { bottom: 12px; right: 12px; }
.lv-style-corner-bl .lv-alert-panel { bottom: 12px; left: 70px; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.lv-anim-flash .lv-alert-panel.active { animation: lv-flash 1.2s ease-in-out infinite; }
@keyframes lv-flash { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.25)} }

.lv-anim-pulse .lv-alert-panel.active { animation: lv-pulse-anim 1s ease-in-out infinite; }
@keyframes lv-pulse-anim {
    0%,100% { transform: translateY(0) scale(1); }
    50%     { transform: translateY(-3px) scale(1.015); }
}
.lv-style-corner-tr.lv-anim-pulse .lv-alert-panel.active,
.lv-style-corner-tl.lv-anim-pulse .lv-alert-panel.active,
.lv-style-corner-br.lv-anim-pulse .lv-alert-panel.active,
.lv-style-corner-bl.lv-anim-pulse .lv-alert-panel.active {
    animation: lv-pulse-corner 1s ease-in-out infinite;
}
@keyframes lv-pulse-corner { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

.lv-anim-shake .lv-alert-panel.active { animation: lv-shake 0.6s ease-in-out infinite; }
@keyframes lv-shake {
    0%,100% { transform: translateY(0) translateX(0); }
    20%     { transform: translateY(0) translateX(-4px); }
    40%     { transform: translateY(0) translateX(4px); }
    60%     { transform: translateY(0) translateX(-4px); }
    80%     { transform: translateY(0) translateX(4px); }
}

.lv-anim-none .lv-alert-panel.active { animation: none; }

/* ================================================================
   Current road name badge (GPS mode, above speed panel)
   ================================================================ */
.lv-road-name {
    position: absolute;
    top: 12px;
    left: 12px;                           /* top-left, aligned with the control column */
    background: rgba(15,23,42,.80);
    color: #fff;
    padding: 4px 11px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    z-index: 210;
    pointer-events: none;
    display: none;                        /* hidden by default, shown in GPS mode */
    align-items: center;
    gap: 5px;
}
.lv-road-name.visible { display: flex; }
.lv-ui-map .lv-road-name { display: none !important; }  /* never shown in map mode */

/* ================================================================
   Speed panel — circle speedometer (bottom-left, right of controls)
   ================================================================ */
.lv-speed-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10,20,40,.82);
    color: #fff;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.lv-speed-panel.visible { opacity: 1; }
.lv-speed-value { line-height: 1; }
.lv-speed-unit  { font-size:9px; font-weight:400; letter-spacing:.5px; color:#93c5fd; margin-top:-2px; }

/* In GPS the speed panel sits top-right; push the zoom +/- controls below it. */
.lv-ui-gps .maplibregl-ctrl-top-right { top: 92px; }

/* ================================================================
   Speed limit alert (top-center, slides down when active)
   ================================================================ */
.lv-speed-alert {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    background: var(--lv-speed-alert-bg);
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 310;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    white-space: nowrap;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.lv-speed-alert.active {
    transform: translateX(-50%) translateY(0);
    animation: lv-speed-flash .8s ease-in-out infinite;
}
@keyframes lv-speed-flash { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.3)} }
.lv-speed-alert-icon  { font-size: 26px; line-height: 1; }
.lv-speed-alert-body  { display: flex; flex-direction: column; }
.lv-speed-alert-kmh   { font-size: 28px; font-weight: 900; line-height: 1; }
.lv-speed-alert-label { font-size: 11px; font-weight: 600; opacity: .9; }

/* ================================================================
   Loading / error status (top-center)
   ================================================================ */
.lv-map-status {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,23,42,.82);
    color: #fff;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    z-index: 400;
    pointer-events: none;
    transition: opacity .5s ease;
    backdrop-filter: blur(4px);
}
.lv-map-status:empty            { display: none; }
.lv-map-status.lv-status-hidden { opacity: 0; }

/* ================================================================
   Nearby radar count badge (inside lv-float-left column)
   ================================================================ */
.lv-nearby-count {
    /* Absolute fallback if somehow placed outside float-left */
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(15,23,42,.82);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    z-index: 200;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.lv-nearby-count.visible { opacity: 1; }

/* Inside the left control column — overrides absolute positioning */
.lv-float-left .lv-nearby-count {
    position: static;
    top: auto; right: auto;
    width: 48px;
    padding: 6px 4px;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   User location markers
   ================================================================ */
.lv-user-marker { pointer-events: none; }

.lv-user-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--lv-accent);
    border: 3px solid #fff;
    animation: lv-user-pulse 2s ease-out infinite;
}
@keyframes lv-user-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--lv-accent-rgb),.5); }
    70%  { box-shadow: 0 0 0 14px rgba(var(--lv-accent-rgb),0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--lv-accent-rgb),0); }
}

.lv-user-arrow { width: 40px; height: 50px; }
.lv-user-arrow svg { width: 100%; height: 100%; display: block; }

.lv-user-car { width: 36px; height: 58px; }
.lv-user-car svg { width: 100%; height: 100%; display: block; }

/* ================================================================
   Map-mode (consultation) — hide navigator-only controls
   ================================================================ */
.lv-ui-map .lv-speed-toggle-btn,
.lv-ui-map .lv-speed-panel,
.lv-ui-map .lv-speed-alert,
.lv-ui-map .lv-alert-panel {
    display: none !important;
}
/* In consultation mode the GPS button means "center on me" */
.lv-ui-map .lv-gps-btn { }

/* ================================================================
   Popups — unified redesign
   ================================================================ */

/* Override MapLibre's default popup frame */
.lv-popup-wrap .maplibregl-popup-content {
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 0 0 2px #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 220px;
}
.lv-popup-wrap .maplibregl-popup-tip {
    border-top-color: var(--popup-color, #2563eb) !important;
    border-bottom-color: var(--popup-color, #2563eb) !important;
}
.lv-popup-wrap .maplibregl-popup-close-button {
    color: rgba(255,255,255,.85); font-size: 18px; padding: 4px 8px;
    top: 4px; right: 4px; z-index: 2; line-height: 1;
    background: transparent; border: none; cursor: pointer;
}
.lv-popup-wrap .maplibregl-popup-close-button:hover { color: #fff; }

/* Popup root */
.lv-popup { font-family: inherit; }

/* Colored header band */
.lv-popup-head {
    display: flex; align-items: center; gap: 10px;
    background: var(--popup-color, #2563eb);
    padding: 12px 36px 12px 14px;  /* right pad for close ×  */
    color: #fff;
}
.lv-popup-head-text { flex: 1; min-width: 0; }
.lv-popup-title    { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-popup-subtitle { font-size: 11px; opacity: .82; margin-top: 1px; }

/* Body */
.lv-popup-body { padding: 10px 14px 12px; background: #fff; }

/* Row */
.lv-popup-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px; color: #334155;
}
.lv-popup-row:last-child { border-bottom: 0; }
.lv-popup-label { color: #94a3b8; font-size: 11px; flex-shrink: 0; }

/* Price chips (fuel) */
.lv-popup-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 8px; }
.lv-popup-chip  {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 10px; color: #fff;
    font-size: 11px; font-weight: 500;
}
.lv-popup-chip strong { font-size: 12px; font-weight: 700; }

/* Colored badge (power, seats…) */
.lv-popup-badge {
    display: inline-block; padding: 1px 8px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
}

/* Muted note */
.lv-popup-muted { font-size: 11px; color: #94a3b8; padding: 4px 0; }

/* Link to the published Lieu page (injected async after coordinate lookup) */
.lv-popup-lieu { margin-top: 8px; }
.lv-popup-lieu-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 8px;
    background: var(--popup-color, #2563eb); color: #fff !important;
    font-size: 12px; font-weight: 600; text-decoration: none;
    transition: filter .15s;
}
.lv-popup-lieu-link:hover { filter: brightness(1.1); }

/* ================================================================
   MapLibre overrides
   ================================================================ */
/* Hide the attribution entirely (button + text) — never shown. */
.lv-carte-wrapper .maplibregl-ctrl-attrib,
.lv-carte-wrapper .maplibregl-ctrl-attrib-button,
.lv-carte-wrapper .maplibregl-ctrl-attrib-inner { display: none !important; }

/* ================================================================
   Legend panel (bottom-right). Always visible in map mode,
   togglable via the button in GPS mode.
   ================================================================ */
.lv-legend {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,.92);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    z-index: 250;
    max-width: 220px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
    display: none;            /* hidden by default everywhere */
}
.lv-legend.visible { display: block; }   /* shown in map mode, or via the (i) button */
.lv-legend-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lv-legend-title { font-weight: 700; color: #1e293b; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; }
.lv-legend-close { border: 0; background: transparent; color: #94a3b8; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 3px; border-radius: 4px; }
.lv-legend-close:hover { color: #1e293b; background: #f1f5f9; }
.lv-legend-row   { display: flex; align-items: center; gap: 8px; margin: 0 -4px 3px; padding: 2px 4px; color: #334155; cursor: pointer; border-radius: 6px; user-select: none; }
.lv-legend-row:last-child { margin-bottom: 0; }
.lv-legend-row:hover { background: #f1f5f9; }
.lv-legend-row.off { opacity: .45; }
.lv-legend-row.off .lv-legend-label { text-decoration: line-through; }
.lv-legend-row svg { flex-shrink: 0; }
.lv-legend-label { font-size: 12px; }

.lv-legend-btn { /* re-uses .lv-float-left button base — available in every mode */ }
.lv-legend-btn svg { width: 22px; height: 22px; color: #fff; }

/* Vehicle type button — only relevant in GPS mode */
.lv-vehicle-btn svg { width: 22px; height: 22px; color: #fff; }
.lv-ui-map .lv-vehicle-btn { display: none; }

/* Vehicle chooser overlay */
.lv-vehicle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.72);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 510;
}
.lv-vehicle-overlay.hidden { display: none; }
.lv-vehicle-box {
    background: #fff; border-radius: 16px; padding: 28px 26px; max-width: 440px; width: 92%;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.lv-vehicle-box h3 { margin: 0 0 6px; font-size: 20px; color: #1e3a5f; }
.lv-vehicle-box p  { margin: 0 0 18px; font-size: 14px; color: #64748b; }
.lv-vehicle-buttons { display: flex; gap: 14px; }
.lv-veh-choice {
    flex: 1; border: 2px solid #e5e7eb; background: #f8fafc; border-radius: 12px;
    padding: 16px 10px; cursor: pointer; transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.lv-veh-choice:hover { border-color: var(--lv-accent); background: #fff; }
.lv-veh-choice strong { font-size: 15px; color: #1e293b; }
.lv-veh-choice small  { font-size: 11px; color: #6b7280; line-height: 1.3; }
.lv-veh-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.lv-veh-skip { margin-top: 16px; background: none; border: none; color: #64748b; font-size: 13px; cursor: pointer; text-decoration: underline; }
.lv-veh-skip:hover { color: #1e293b; }
@media (max-width: 480px) { .lv-vehicle-buttons { flex-direction: column; } }
.maplibregl-ctrl-bottom-right { bottom: 16px !important; }

/* ================================================================
   Responsive — small screens
   ================================================================ */
@media (max-width: 480px) {
    .lv-alert-name     { font-size: 13px; }
    .lv-alert-dist     { font-size: 18px; }
    .lv-alert-icon img { width: 36px !important; height: 36px !important; }
    .lv-consent-box    { padding: 24px 16px; }
    .lv-speed-alert    { padding: 8px 14px; }
    .lv-speed-alert-kmh{ font-size: 22px; }

    /* Slightly smaller controls on narrow screens */
    .lv-float-left button { width: 42px; height: 42px; }
    .lv-speed-panel    { width: 62px; height: 62px; font-size: 18px; top: 10px; right: 10px; left: auto; bottom: auto; }
}
