/* Airport Autocomplete Suggestions */
.form-field-enhanced {
    position: relative;
}

.airport-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: -8px;
}

.airport-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.suggestion-item:hover {
    background: #f9fafb;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.suggestion-city {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.suggestion-code {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.suggestion-airport {
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestions-header {
    padding: 12px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestions-header i {
    color: #9ca3af;
}

.no-suggestions {
    padding: 20px 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.no-suggestions i {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Scrollbar styling for suggestions */
.airport-suggestions::-webkit-scrollbar {
    width: 8px;
}

.airport-suggestions::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 0 0 12px 0;
}

.airport-suggestions::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.airport-suggestions::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Input focus state when suggestions are shown */
.input-wrapper-enhanced input:focus + .input-icon-end {
    color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .airport-suggestions {
        max-height: 280px;
    }
    
    .suggestion-item {
        padding: 12px 16px;
    }
    
    .suggestion-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .suggestion-city {
        font-size: 0.9375rem;
    }
}
