/* ========== CSS VARIABLES ========== */
:root {
    --blue:        #1e40af;
    --blue-mid:    #2563eb;
    --blue-light:  #3b82f6;
    --blue-pale:   #eff6ff;
    --blue-ring:   rgba(37, 99, 235, 0.12);
    --green:       #059669;
    --green-pale:  #ecfdf5;
    --text:        #1a2236;
    --text-soft:   #64748b;
    --text-muted:  #94a3b8;
    --border:      rgba(0, 0, 0, 0.07);
    --glass:       rgba(255, 255, 255, 0.97);
    --blur:        blur(18px);
    --pill:        50px;
    --card:        16px;
    --shadow-float: 0 4px 18px rgba(0,0,0,0.11), 0 1px 4px rgba(0,0,0,0.06);
    --shadow-lift:  0 8px 28px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.07);
    --shadow-blue:  0 4px 18px rgba(37,99,235,0.22);
    --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
.logo { display: none; }
html, body {
    height: 100%; width: 100%;
    font-family: var(--font);
    background: #eef2f7;
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== LAYOUT ========== */
.app { height: 100vh; position: relative; overflow: hidden; }

/* ========== MAPPA ========== */
#map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.price-green { color: #16a34a; font-weight: 700; }

/* ========== MARKER VERDI BRILLANTI ========== */
.leaflet-marker-icon[src*="marker-icon-green.png"] {
    filter: brightness(1.2) saturate(1.35)
        drop-shadow(0 0 3px #fff)
        drop-shadow(0 0 8px #4ade80)
        drop-shadow(0 0 16px #22c55e)
        drop-shadow(0 0 28px #86efac);
    animation: greenPulse 1.55s ease-in-out infinite;
    transition: all 0.3s ease;
    z-index: 1000 !important;
}
.leaflet-marker-icon[src*="marker-icon-green.png"]:hover {
    animation-play-state: paused;
    transform: scale(1.22);
    z-index: 2000 !important;
    filter: brightness(1.35) saturate(1.5)
        drop-shadow(0 0 4px #fff)
        drop-shadow(0 0 12px #67e8a5)
        drop-shadow(0 0 24px #4ade80)
        drop-shadow(0 0 38px #86efac)
        drop-shadow(0 0 52px rgba(163,230,69,.8));
}
@keyframes greenPulse {
    0%,100% { filter: brightness(1.2) saturate(1.35) drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #4ade80) drop-shadow(0 0 16px #22c55e) drop-shadow(0 0 28px #86efac); }
    50%     { filter: brightness(1.35) saturate(1.6) drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #67e8a5) drop-shadow(0 0 26px #4ade80) drop-shadow(0 0 42px #86efac); }
}

/* ========== BANNER CITTÀ ========== */
#city-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white; text-align: center;
    padding: 9px 12px; font-size: 0.95rem; font-weight: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
#city-banner a { color: #fff; text-decoration: underline; font-weight: 500; margin-left: 8px; }
@media (max-width: 768px) { #city-banner { font-size: 0.9rem; padding: 7px 10px; } }

/* ========== CONTROLLI IN ALTO ========== */
.map-controls {
    position: absolute; top: 14px; left: 0; right: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 0 16px; z-index: 1000;
}

/* Stile base condiviso */
.fab-select, #city-search, .more-btn {
    font-family: var(--font);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid rgba(255,255,255,0.85);
    box-shadow: var(--shadow-float);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    outline: none;
}

/* SELECT carburante */
.fab-select {
    flex: 0 1 210px; min-width: 150px; max-width: 220px;
    appearance: none;
    border-radius: var(--pill);
    padding: 11px 28px 11px 13px;
    font-size: 0.91rem; font-weight: 600; letter-spacing: 0.01em;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    cursor: pointer;
}
.fab-select:hover, .fab-select:focus {
    border-color: rgba(37,99,235,0.35);
    box-shadow: var(--shadow-lift), 0 0 0 3px var(--blue-ring);
    transform: translateY(-1px);
}

/* INPUT cerca comune */
.search-container { position: relative; flex: 1 1 320px; min-width: 160px; max-width: 190px; }
#city-search {
    border-radius: var(--pill);
    padding: 11px 15px 11px 35px;
    font-size: 0.91rem; font-weight: 500;
    width: 100%;
}
/* Icona lente */
.search-container::before {
    content: '';
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; pointer-events: none; z-index: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain; opacity: 0.75;
}
#city-search::placeholder { color: var(--text-muted); font-weight: 400; }
#city-search:hover, #city-search:focus {
    border-color: rgba(37,99,235,0.35);
    box-shadow: var(--shadow-lift), 0 0 0 3px var(--blue-ring);
    transform: translateY(-1px);
}

/* PULSANTE ⋮ */
.more-btn {
    width: 46px !important; height: 46px !important; min-width: 46px !important;
    flex-shrink: 0; padding: 0;
    border-radius: 50% !important;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.more-btn:hover {
    border-color: rgba(37,99,235,0.35);
    box-shadow: var(--shadow-lift), 0 0 0 3px var(--blue-ring);
    transform: translateY(-1px) scale(1.04);
}

/* MENU a tendina */
.more-menu {
    position: absolute; top: calc(100% + 10px); right: 16px;
    background: var(--glass); backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: var(--card);
    box-shadow: 0 16px 44px rgba(0,0,0,0.18);
    min-width: 250px; overflow: hidden; z-index: 1002; display: none;
}
.more-menu a {
    display: block; padding: 14px 20px;
    color: var(--text); text-decoration: none;
    font-size: 0.94rem; font-weight: 500; font-family: var(--font);
    transition: background 0.14s, color 0.14s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.more-menu a:last-child { border-bottom: none; }
.more-menu a:hover { background: var(--blue-pale); color: var(--blue); }

/* ========== PULSANTE POSIZIONE ========== */
#location-btn {
    position: absolute; bottom: 120px; right: 8px; z-index: 1000;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--glass);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid rgba(255,255,255,0.85);
    box-shadow: var(--shadow-float);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease;
}
#location-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lift), 0 0 0 3px var(--blue-ring);
}

/* ========== LEAFLET ZOOM ========== */
.leaflet-control-zoom {
    border: none !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: var(--shadow-float) !important;
}
.leaflet-control-zoom a {
    background: var(--glass) !important;
    backdrop-filter: var(--blur) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    color: var(--blue) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    width: 36px !important; height: 36px !important; line-height: 36px !important;
    transition: background 0.15s, color 0.15s !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover {
    background: var(--blue-pale) !important;
    color: var(--blue-mid) !important;
}

/* ========== MARKER UTENTE ========== */
.user-marker-inner {
    width: 20px; height: 20px;
    background: var(--blue-mid);
    border: 3px solid white; border-radius: 50%;
    box-shadow: 0 2px 10px rgba(37,99,235,0.45);
}

/* ========== POPUP ========== */
.leaflet-popup-pane, .leaflet-popup, .leaflet-popup-content-wrapper { z-index: 2500 !important; }
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18) !important;
}
.directions-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; padding: 10px 22px;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
    color: white !important; border-radius: 999px; text-decoration: none;
    font-size: 0.92rem; font-weight: 600;
    box-shadow: var(--shadow-blue); transition: all 0.2s ease; letter-spacing: 0.01em;
}
.directions-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.38); }

/* ========== LISTA DISTRIBUTORI ========== */
.list-container { background: var(--glass); backdrop-filter: var(--blur); overflow-y: auto; z-index: 10; }

#price-list { list-style: none; margin: 0; padding: 0; }
#price-list li {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.045);
    cursor: pointer;
    transition: background 0.14s, transform 0.14s;
    border-radius: 10px;
    margin: 2px 4px;
}
#price-list li:hover { background: var(--blue-pale); transform: translateX(3px); }

/* ========== SORT CONTROLS ========== */
.sort-controls {
    display: flex;
    background: rgba(226,232,240,0.7);
    border-radius: var(--pill);
    padding: 4px; margin: 14px 16px;
    width: fit-content;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.07);
    gap: 2px;
}
.sort-btn {
    padding: 8px 20px; border: none; background: transparent;
    border-radius: var(--pill); font-weight: 600; font-size: 0.87rem;
    cursor: pointer; color: var(--text-soft);
    transition: all 0.2s ease; letter-spacing: 0.01em; font-family: var(--font);
}
.sort-btn.active {
    background: white; color: var(--blue);
    box-shadow: 0 2px 10px rgba(30,64,175,0.13);
}
.sort-btn:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.55); }

/* ========== EV sort buttons — verde ========== */
.sort-btn.ev-active-btn {
    background: white; color: var(--green);
    box-shadow: 0 2px 10px rgba(5,150,105,0.13);
}

/* ========== AUTOCOMPLETAMENTO ========== */
#suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--glass); backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid rgba(255,255,255,0.85);
    border-radius: 14px; max-height: 300px; overflow-y: auto;
    z-index: 1001; box-shadow: 0 14px 36px rgba(0,0,0,0.16); display: none;
}
.suggestion-item {
    padding: 11px 16px; cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.045);
    font-size: 0.92rem; color: var(--text); transition: background 0.12s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--blue-pale); color: var(--blue); }

/* ========== DESKTOP SLOGAN ========== */
.desktop-slogan { display: none; }
@media (min-width: 1024px) {
    .desktop-slogan {
        display: block; text-align: center;
        font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
        color: var(--text);
        padding: 18px 16px 14px;
        background: white; border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}

/* ========== DESKTOP (≥1024px) ========== */
@media (min-width: 1024px) {
    .app { display: flex !important; flex-direction: row !important; height: 100vh !important; position: relative !important; overflow: hidden !important; }

    /* ≥1024px — aggiungi width: auto */
.logo {
    display: block !important;
    height: 42px !important;
    width: auto !important;        /* ← aggiungi questa riga */
    position: absolute !important;
    left: 420px !important;
    top: 14px !important;
    z-index: 1100 !important;
    border-radius: 10px !important;
    background: var(--glass) !important;
    padding: 4px 10px !important;
    box-shadow: var(--shadow-float) !important;
    pointer-events: none !important;
}

    .list-container {
        order: -1 !important; width: 400px !important; height: 100vh !important;
        position: relative !important; left: 0 !important; right: auto !important; bottom: auto !important;
        transform: none !important; max-height: none !important;
        background: rgba(255,255,255,0.99) !important;
        backdrop-filter: blur(24px) !important;
        box-shadow: 3px 0 32px rgba(0,0,0,0.09) !important;
        border-right: 1px solid rgba(0,0,0,0.05) !important;
        z-index: 100 !important; display: flex !important; flex-direction: column !important;
        flex-shrink: 0 !important; overflow: hidden !important; border-radius: 0 !important;
    }

    .sheet-handle { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; }

    .sort-controls { flex-shrink: 0 !important; margin: 14px 16px 10px !important; padding: 4px !important; }

    #price-list { flex: 1 1 auto !important; overflow-y: auto !important; padding: 4px 12px 30px !important; }

    #map { flex: 1 !important; position: relative !important; height: 100vh !important; }

    .map-controls { position: absolute !important; top: 14px !important; right: 22px !important; left: auto !important; z-index: 1000 !important; }

    #location-btn { right: 18px !important; bottom: 200px !important; }
    .more-menu { right: 22px !important; }
    .leaflet-control-zoom { right: 12px !important; bottom: 80px !important; }
}

/* ========== MOBILE (≤1023px) ========== */
@media (max-width: 1023px) {
    .map-controls {
        top: 12px; left: 2px; right: 5px;
        padding: 0 12px 0 8px;
        display: flex; align-items: center; gap: 4px;
        justify-content: flex-start; box-sizing: border-box;
    }
    .search-container { flex: 1 1 auto; min-width: 153px; max-width: 45%; }
    .fab-select { flex: 0 1 170px; min-width: 130px; max-width: 180px; }
    .more-btn { flex: 0 0 42px !important; margin-left: auto !important; margin-right: 0 !important; }
    .more-menu { right: 12px !important; }
    #location-btn { bottom: 250px; right: 12px; }

    /* BOTTOM SHEET */
    .list-container {
        position: fixed; left: 0; right: 0; bottom: 0;
        height: 100dvh; max-height: 100dvh;
        background: rgba(255,255,255,0.985);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-top-left-radius: 26px; border-top-right-radius: 26px;
        box-shadow: 0 -6px 40px rgba(0,0,0,0.18);
        z-index: 3000; display: flex; flex-direction: column; will-change: transform;
    }
    .list-container.dragging { user-select: none; -webkit-user-select: none; }

    /* HANDLE — più sottile e raffinato */
    .sheet-handle {
        width: 40px; height: 4px;
        background: #cbd5e1; border-radius: 999px;
        margin: 12px auto 6px; flex-shrink: 0;
        cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
        position: relative; transition: background 0.2s, width 0.2s;
    }
    .sheet-handle:active { background: #94a3b8; width: 52px; }
    .sheet-handle::before {
        content: ''; position: absolute;
        top: -10px; left: -24px; right: -24px; bottom: -10px;
    }

    #price-list { flex: 1; overflow-y: auto; padding: 0 10px 40px; -webkit-overflow-scrolling: touch; }

    .leaflet-control-zoom { bottom: 140px !important; right: 7px !important; z-index: 3200 !important; }

    .sort-controls { margin: 5px auto; padding: 3px; width: fit-content; }
    .sort-btn { padding: 6px 14px; font-size: 0.83rem; }

    /* Freccia select e lente: padding ridotto su mobile */
    .fab-select {
        padding-right: 22px;
        background-position: right 7px center;
    }
    #city-search {
        padding-left: 22px;
    }
    .search-container::before {
        left: 7px;
        width: 13px;
        height: 13px;
    }
}

/* ========== POPUP MOBILE ========== */
@media (max-width: 768px) { .leaflet-popup-content { max-width: 90vw !important; margin: 14px 18px !important; font-size: 14.8px; } }
@media (max-width: 480px) {
    .leaflet-popup-content { max-width: 88vw !important; margin: 12px 16px !important; }
    .directions-btn { display: block !important; width: 100% !important; text-align: center !important; padding: 10px 0 !important; }
}

/* ========== PULSING MARKERS ========== */
.pulsing-blue-marker {
    filter: brightness(1.2) saturate(1.35)
        drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #3b82f6)
        drop-shadow(0 0 16px #1e40af) drop-shadow(0 0 28px #60a5fa);
    animation: bluePulse 1.55s ease-in-out infinite; transition: all 0.3s ease;
}
.pulsing-blue-marker:hover {
    animation-play-state: paused; transform: scale(1.22); z-index: 2000 !important;
    filter: brightness(1.35) saturate(1.5) drop-shadow(0 0 4px #fff)
        drop-shadow(0 0 12px #60a5fa) drop-shadow(0 0 24px #3b82f6)
        drop-shadow(0 0 38px #1e40af) drop-shadow(0 0 52px rgba(37,99,235,.8));
}
@keyframes bluePulse {
    0%,100% { filter: brightness(1.2) saturate(1.35) drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #3b82f6) drop-shadow(0 0 16px #1e40af) drop-shadow(0 0 28px #60a5fa); }
    50%     { filter: brightness(1.35) saturate(1.6) drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #60a5fa) drop-shadow(0 0 26px #3b82f6) drop-shadow(0 0 42px #1e40af); }
}
.pulsing-green-marker {
    filter: brightness(1.2) saturate(1.35)
        drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #4ade80)
        drop-shadow(0 0 16px #22c55e) drop-shadow(0 0 28px #86efac);
    animation: greenPulse 1.55s ease-in-out infinite; transition: all 0.3s ease; z-index: 1000 !important;
}
.pulsing-green-marker:hover {
    animation-play-state: paused; transform: scale(1.22); z-index: 2000 !important;
    filter: brightness(1.35) saturate(1.5) drop-shadow(0 0 4px #fff)
        drop-shadow(0 0 12px #67e8a5) drop-shadow(0 0 24px #4ade80)
        drop-shadow(0 0 38px #86efac) drop-shadow(0 0 52px rgba(163,230,69,.8));
}

/* ========== LIST HIGHLIGHT ========== */
.list-item.active-highlight {
    background-color: var(--blue-pale);
    transform: scale(0.99) translateX(3px);
    transition: all 0.2s ease;
}

/* ========== EV CHARGING ========== */
#fuel.ev-active {
    border-color: rgba(5,150,105,0.45) !important;
    color: var(--green) !important;
    box-shadow: var(--shadow-float), 0 0 0 3px rgba(5,150,105,0.1) !important;
}
#fuel option { color: #333 !important; font-weight: normal !important; }

.ev-list-header { padding: 10px 16px 8px; border-bottom: 1px solid rgba(0,0,0,0.05); list-style: none; }
.ev-count-label { font-size: 0.87rem; font-weight: 700; color: var(--green); letter-spacing: 0.01em; }

.ev-list-item { cursor: pointer; }
.ev-list-row { display: flex; align-items: center; gap: 10px; }
.ev-list-icon { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.ev-list-info { flex: 1; min-width: 0; }
.ev-list-info strong { font-size: 0.93rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-list-address { font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-list-meta { font-size: 0.77rem; color: var(--text-muted); margin-top: 2px; }
.ev-kw { font-size: 0.88rem; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.ev-kw-green { color: var(--green); }
.ev-kw-blue  { color: var(--blue); }

.ev-directions-btn {
    background: linear-gradient(135deg, var(--green), #34d399) !important;
    box-shadow: 0 4px 16px rgba(5,150,105,0.32) !important;
}
.ev-directions-btn:hover {
    box-shadow: 0 8px 24px rgba(5,150,105,0.42) !important;
    transform: translateY(-2px) !important;
}

/* ── Station popup ─────────────────────────── */
.station-popup { font-family: inherit; min-width: 220px; }
.station-popup .popup-name { font-size: 15px; font-weight: 600; margin: 0 0 2px; color: #111; }
.station-popup .popup-sub { font-size: 13px; color: #666; margin: 0 0 6px; }
.popup-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.badge-open  { background: #EAF3DE; color: #27500A; }
.badge-closed { background: #FCEBEB; color: #791F1F; }
.station-popup .popup-addr { font-size: 13px; color: #555; margin: 0 0 3px; }
.station-popup .popup-dist { font-size: 13px; font-weight: 500; color: #222; margin: 0 0 10px; }
.popup-divider { border: none; border-top: 1px solid #eee; margin: 0 0 8px; }
.popup-fuels-label { font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 5px; }
.popup-fuel-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.popup-fuel-name { color: #666; }
.popup-fuel-price { color: #222; }
.popup-fuel-active .popup-fuel-price { color: #1e40af; font-weight: 600; }
.popup-updated { font-size: 11px; color: #aaa; margin: 6px 0 10px; }
.popup-route-btn { display: block; width: 100%; box-sizing: border-box; background: #1e40af; color: #fff !important; text-decoration: none; text-align: center; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.popup-route-btn:hover { background: #2563eb; }

/* ========== LIST ITEM — card compatta ========== */

/* Rimuove il padding default del li per usare quello interno */
#price-list li.list-item {
    padding: 0 !important;
    border-bottom: none !important;
    margin: 0 6px 5px !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.18s ease, transform 0.18s ease !important;
}
#price-list li.list-item:hover {
    background: #fff !important;
    transform: translateX(0) translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important;
}

/* Card interna */
.list-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

/* Indicatore colore a sinistra (cheapest = verde, resto = blu) */
.list-card-accent {
    width: 3px;
    border-radius: 2px;
    align-self: stretch;
    flex-shrink: 0;
    min-height: 36px;
}

/* Corpo centrale */
.list-card-body {
    flex: 1;
    min-width: 0;
}

.list-card-brand {
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.list-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-card-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

/* Prezzo a destra */
.list-card-price {
    flex-shrink: 0;
    text-align: right;
}

.list-card-price-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1;
}

.list-card-price-value.price-cheapest {
    color: #16a34a;
}

.list-card-price-unit {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
    text-align: right;
}

/* Badge cheapest / closest */
.list-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.list-card-badge.badge-cheapest {
    background: #dcfce7;
    color: #15803d;
}
.list-card-badge.badge-closest {
    background: #dbeafe;
    color: #1d4ed8;
}

/* highlight al tap su mobile */
#price-list li.list-item.active-highlight {
    background: var(--blue-pale) !important;
    transform: scale(0.99) !important;
}
