.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;
} .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;
} .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; }
} .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;
} .lv-float-divider {
width: 32px;
height: 1px;
background: rgba(255,255,255,.25);
margin: 2px 0;
pointer-events: none;
} .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); } .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); } .lv-sat-btn svg { width: 22px; height: 22px; color: #fff; } .lv-speed-toggle-btn { font-size: 18px; }
.lv-speed-toggle-btn.disabled { opacity: 0.4; } .lv-darkmode-btn { font-size: 18px; }
.lv-darkmode-btn.active { background: #1e1b4b; border-color: #6366f1; } .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} } .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; } .lv-alert-panel {
position: absolute;
display: flex;
align-items: center;
gap: 14px;
background: var(--lv-alert-bg);
color: var(--lv-alert-text);
z-index: 300;
border-radius: 0;
pointer-events: none;
}
.lv-alert-panel .lv-alert-icon img {
width: 48px; height: 48px;
object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
display: block;
}
.lv-alert-info { flex: 1; }
.lv-alert-name { font-size:16px; font-weight:700; line-height:1.2; }
.lv-alert-dist { font-size:24px; font-weight:800; margin-top:2px; }
.lv-alert-badge {
display: flex; flex-direction:column; align-items:center; gap:2px;
background: rgba(0,0,0,.2);
border-radius: 8px; padding:8px 12px;
font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
}
.lv-alert-badge > :first-child { font-size:22px; }
.lv-alert-badge img { width:28px; height:28px; object-fit:contain; } .lv-alert-panel { transform: translateY(120%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.lv-alert-panel.active { transform: translateY(0); } .lv-style-banner .lv-alert-panel {
bottom: 0; left: 0; right: 0;
padding: 12px 20px;
border-top: 3px solid rgba(0,0,0,.2);
} .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: 280px;
border-radius: 12px;
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;
} .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; } .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; } .lv-road-name {
position: absolute;
left: 70px;
bottom: 108px; 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; align-items: center;
gap: 5px;
}
.lv-road-name.visible { display: flex; }
.lv-ui-map .lv-road-name { display: none !important; } .lv-style-banner .lv-road-name { bottom: 200px; }  .lv-speed-panel {
position: absolute;
left: 70px;
bottom: 24px;
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; } .lv-style-banner .lv-speed-panel { bottom: 96px; } .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; } .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; } .lv-nearby-count { 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; } .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;
} .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; } .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;
} .lv-ui-map .lv-gps-btn { }  .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; } .lv-popup { font-family: inherit; } .lv-popup-head {
display: flex; align-items: center; gap: 10px;
background: var(--popup-color, #2563eb);
padding: 12px 36px 12px 14px; 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; } .lv-popup-body { padding: 10px 14px 12px; background: #fff; } .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; } .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; } .lv-popup-badge {
display: inline-block; padding: 1px 8px; border-radius: 8px;
font-size: 12px; font-weight: 600;
} .lv-popup-muted { font-size: 11px; color: #94a3b8; padding: 4px 0; }  .lv-carte-wrapper .maplibregl-ctrl-attrib,
.lv-carte-wrapper .maplibregl-ctrl-attrib-button,
.lv-carte-wrapper .maplibregl-ctrl-attrib-inner { display: none !important; } .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; }
.lv-legend.visible { display: block; } .lv-legend-title { font-weight: 700; color: #1e293b; margin-bottom: 6px; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; }
.lv-legend-row   { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; color: #334155; }
.lv-legend-row:last-child { margin-bottom: 0; }
.lv-legend-row svg { flex-shrink: 0; }
.lv-legend-label { font-size: 12px; }
.lv-legend-btn { }
.lv-legend-btn svg { width: 22px; height: 22px; color: #fff; }
.lv-ui-map .lv-legend-btn { display: none; }  .lv-vehicle-btn svg { width: 22px; height: 22px; color: #fff; }
.lv-ui-map .lv-vehicle-btn { display: none; } .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; } @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; } .lv-float-left button { width: 42px; height: 42px; }
.lv-speed-panel    { width: 62px; height: 62px; font-size: 18px; left: 64px; bottom: 16px; }
}