.city-dropdown-container {
    position: relative;
}

.city-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
}

.city-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.15s ease-in-out;
}

.city-dropdown-item:hover,
.city-dropdown-item.active {
    background-color: #f8f9fa;
}

.city-dropdown-item:last-child {
    border-bottom: none;
}

.city-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
}

.city-province {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Animazioni */
.city-dropdown-list {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .city-dropdown-list {
        max-height: 250px;
    }
    
    .city-dropdown-item {
        padding: 0.5rem 0.75rem;
    }
}

/* Focus states */
.city-dropdown-container input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Loading state */
.city-dropdown-container .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Selected city alert */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    font-size: 0.875rem;
}

.alert-info i {
    color: #0c5460;
}

/* Validation states */
.city-dropdown-container .is-invalid {
    border-color: #dc3545;
}

.city-dropdown-container .is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}