/* ============================================================
   GOITINO — Airport Autocomplete (homepage only)
   ============================================================ */

.search-field--airport {
    position: relative;
    z-index: 2;
}

.search-field--airport.is-open {
    z-index: 3;
}

/* Portaled dropdown */
.airport-ac {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: min(420px, calc(100vh - 32px));
    background: #ffffff;
    border: 1px solid #E4E9F0;
    border-radius: 16px;
    box-shadow:
        0 24px 64px rgba(10, 22, 40, 0.16),
        0 8px 24px rgba(10, 22, 40, 0.1);
    z-index: 10070;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transform-origin: top left;
    transition:
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.airport-ac[hidden] {
    display: none !important;
}

.airport-ac:not([hidden]) {
    display: flex;
}

.airport-ac.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.airport-ac__header {
    padding: 12px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    flex-shrink: 0;
    border-bottom: 1px solid #EEF1F6;
}

.airport-ac__list {
    list-style: none;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
}

.airport-ac__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.airport-ac__item:hover,
.airport-ac__item.is-highlighted {
    background: rgba(0, 102, 255, 0.06);
}

.airport-ac__item.is-highlighted {
    outline: 2px solid rgba(0, 102, 255, 0.25);
    outline-offset: -2px;
}

.airport-ac__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.airport-ac__body {
    flex: 1;
    min-width: 0;
}

.airport-ac__top {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.airport-ac__city {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.airport-ac__iata {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.airport-ac__name {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airport-ac__country {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 2px;
}

.airport-ac__empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .airport-ac {
        width: calc(100vw - 24px);
        max-height: min(360px, 50vh);
    }

    .airport-ac__item {
        padding: 14px 12px;
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .airport-ac {
        transition: none;
    }
}
