/* ========================================================================
 * PIANIFICA VIAGGIO - CSS minimale
 * Solo layout full-page + loader overlay + poche classi specifiche
 * Tutto il resto usa classi UIkit del sito (style.css)
 * ======================================================================== */

/* --- LAYOUT FULL-PAGE: pannello sx + mappa dx --- */








.vg-loader {
 display: none;
}

.vg-loader.active { display: block; }



.vg-loader-bar-track {
 height: 5px;
 background: var(--color-gray-medium);
 border-radius: 3px;
 overflow: hidden;
}

.vg-loader-bar {
 width: 0%;
 height: 100%;
 background: var(--color-magenta-medium);
 border-radius: 3px;
 transition: width 0.4s ease;
}




/* --- FORM: riepilogo compatto dopo il calcolo --- */
.vg-form-summary {
 display: none;
 cursor: pointer;
}

.vg-form-summary:hover {
 background: var(--color-gray-light);
}

/* --- RIEPILOGO STATS --- */
.vg-stats {
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 gap: 0;
}

.vg-stats-cell {
 text-align: center;
 padding: 10px 6px;
}

.vg-stats-cell + .vg-stats-cell {
 border-left: 1px solid var(--color-gray-medium);
}

.vg-stats-row2 .vg-stats-cell {
 border-top: 1px solid var(--color-gray-medium);
}




/* --- AVVISO --- */
.vg-avviso {
 display: none;
}

.vg-avviso-success { color: var(--color-red-medium) !important; }
.vg-avviso-warning { color: var(--color-red-medium) !important; }
.vg-avviso-danger  { color: var(--color-green-medium) !important; }















/* --- FORM LABEL fix --- */
.vg-panel .uk-form-label {
 display: block;
 font-size: 12px;
 color: #999;
 margin-bottom: 4px;
 font-weight: 500;
}

/* --- AUTOCOMPLETE (dropdown) --- */
.campo-auto { position: relative; z-index: 100; }
.campo-auto:focus-within { z-index: 101; }
.campo-auto .uk-input:focus { border-color: var(--color-magenta-medium); box-shadow: 0 0 0 2px rgba(242, 13, 166, 0.1); }

.autocomplete-dropdown {
 display: none;
 position: absolute;
 top: calc(100% - 1px);
 left: 0; right: 0;
 background: #fff;
 border: 1px solid var(--color-magenta-medium);
 border-top: 1px solid var(--color-gray-medium);
 border-radius: 0 0 var(--positive-3xsmall) var(--positive-3xsmall);
 z-index: 9999;
 max-height: 240px;
 overflow-y: auto;
 box-shadow: 0 8px 24px rgba(0,0,0,0.15);
font-size: 16px;
line-height: 24px;
}

.autocomplete-dropdown .ac-item {
 padding: 10px 12px;
 cursor: pointer;
 border-bottom: 1px solid #f0f0f0;
 transition: background 0.15s;
font-size: 16px;
line-height: 24px;
}

.autocomplete-dropdown .ac-item:last-child { border-bottom: none; }
.autocomplete-dropdown .ac-item:hover { background: #fef0f8; }
.ac-nome { font-size: 16px; line-height: 24px; font-weight: 600; color: #222; }
.ac-dett { font-size: 16px; line-height: 24px; color: #999; margin-top: 1px; }

/* --- MAP POPUP --- */
.fuel-popup b { color: #222; }
.fuel-popup a { color: var(--color-magenta-medium); font-weight: 600; text-decoration: none; }
