/**
 * Flight Search Autocomplete Styles
 */

.airport-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.airport-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.airport-item:last-child {
    border-bottom: none;
}

.airport-item:hover {
    background-color: #f8f9fa;
}

.airport-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.airport-item-content i {
    color: #0EBFE9;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.airport-info {
    flex: 1;
}

.airport-code-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.4;
}

.airport-code-name strong {
    color: #0EBFE9;
    font-weight: 600;
}

.airport-location {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.airport-loading,
.airport-no-results,
.airport-error {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.airport-error {
    color: #dc3545;
}

/* Scrollbar styles */
.airport-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.airport-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.airport-results-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.airport-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.airport-results-dropdown {
    animation: fadeIn 0.2s ease;
}

/* Disabled button styles */
button.disabled,
button:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .airport-results-dropdown {
        max-height: 250px;
    }
    
    .airport-item {
        padding: 10px 12px;
    }
    
    .airport-code-name {
        font-size: 13px;
    }
    
    .airport-location {
        font-size: 11px;
    }
}
