/* ev-page.css - EV Charging page specific styles */

/* EV Mode active button */
.btn-pill.ev-active {
    background-color: #264653 !important;
    color: #ffffff !important;
    border-color: #264653 !important;
}

/* EV Filter sections in sidebar */
.ev-filter-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.ev-power-chips,
.ev-connector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* EV Chips */
.ev-chip {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all var(--transition-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ev-chip:hover {
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
}

.ev-chip.active {
    background-color: #264653;
    color: #ffffff;
    border-color: #264653;
}

/* Power level dots */
.ev-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.ev-dot.normal {
    background-color: #22c55e;
}

.ev-dot.rapida {
    background-color: #eab308;
}

.ev-dot.ultra {
    background-color: #7c3aed;
}

/* EV Stats panel color variation */
.stats-panel.ev-stats {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
}

.ev-stats .stats-title {
    color: #0369a1;
}

/* Legend overlay on map */
.ev-legend-overlay {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ev-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--color-muted);
}

/* EV Power badge in list */
.ev-power-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.ev-power-badge.normal {
    background: #22c55e;
}

.ev-power-badge.rapida {
    background: #eab308;
    color: #1a1a1a;
}

.ev-power-badge.ultra {
    background: #7c3aed;
}

.ev-connector {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 4px;
}

/* Station item adjustments for EV */
.station-item.ev-item .st-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Attribution */
.ev-attribution {
    padding: 12px 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 12px;
}

.ev-attribution a {
    color: #0369a1;
    border-bottom: 1px solid rgba(3, 105, 161, 0.3);
}

.ev-attribution a:hover {
    color: #0284c7;
}

/* Responsive */
@media (max-width: 900px) {
    .ev-legend-overlay {
        flex-direction: row;
        flex-wrap: wrap;
        bottom: 10px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }
}

/* Autocomplete Dropdown - Shared Component */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.15),
        0 8px 16px -8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.autocomplete-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 8px;
}

.autocomplete-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(241, 245, 249, 0.6);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f1f5f9;
}

.autocomplete-item-main {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
}

.autocomplete-item-detail {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}