.aaf-shell {
    --aaf-primary: #252668;
    --aaf-primary-dark: #1d1e55;
    --aaf-text: #1f2937;
    --aaf-muted: #667085;
    --aaf-border: #dbe3ee;
    --aaf-soft: #f4f7fb;
    --aaf-white: #ffffff;
    --aaf-radius: 18px;
    width: 100%;
    max-width: min(100%, 1320px);
    min-width: 0;
    margin-inline: auto;
    color: var(--aaf-text);
    font: inherit;
}

.aaf-shell *, .aaf-shell *::before, .aaf-shell *::after { box-sizing: border-box; }

.aaf-card,
.aaf-result {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--aaf-white);
    border: 1px solid rgba(37, 38, 104, .10);
    border-radius: var(--aaf-radius);
    box-shadow: none;
}

.aaf-card { padding: 28px; }
.aaf-result { margin-top: 24px; padding: 28px; }

.aaf-heading h2,
.aaf-result-title {
    margin: 0;
    color: #202247;
    line-height: 1.18;
}

.aaf-heading h2 { font-size: clamp(26px, 3vw, 38px); }
.aaf-heading p { margin: 8px 0 0; color: var(--aaf-muted); max-width: 780px; }

.aaf-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(320px, 1.6fr) minmax(320px, .84fr) 120px;
    gap: 14px;
    align-items: end;
    margin-top: 24px;
}
.aaf-form > *,
.aaf-field,
.aaf-combobox,
.aaf-submit-wrap {
    min-width: 0;
    max-width: 100%;
}

.aaf-field label,
.aaf-label {
    display: block;
    min-height: 18px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #4b5670;
}

.aaf-combobox { position: relative; }
.aaf-combobox::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border: 2px solid #7b86a5;
    border-radius: 50%;
    pointer-events: none;
    opacity: .9;
}
.aaf-combobox::after {
    content: '';
    position: absolute;
    left: 31px;
    top: calc(50% + 7px);
    width: 8px;
    height: 2px;
    background: #7b86a5;
    transform: rotate(45deg);
    border-radius: 2px;
    pointer-events: none;
    opacity: .9;
}

.aaf-shell .aaf-airport-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 58px;
    padding: 0 16px 0 48px;
    border: 2px solid #cfd8ea;
    border-radius: 14px;
    background: #fbfcfe;
    color: var(--aaf-text);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.aaf-shell .aaf-airport-input::placeholder {
    color: #6e78a0;
    opacity: 1;
}

.aaf-shell .aaf-airport-input:hover {
    border-color: #bac7de;
    background: #fff;
}

.aaf-shell .aaf-airport-input:focus {
    border-color: rgba(37, 38, 104, .72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 38, 104, .08);
}

.aaf-options {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 340px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--aaf-border);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(30, 42, 72, .16);
    padding: 6px;
}

.aaf-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 10px 11px;
    cursor: pointer;
    color: var(--aaf-text);
}
.aaf-option:hover, .aaf-option:focus { background: var(--aaf-soft); outline: none; }
.aaf-option strong { font-size: 14px; font-weight: 700; }
.aaf-option span { font-size: 12px; color: var(--aaf-muted); }
.aaf-option-empty { padding: 12px; color: var(--aaf-muted); font-size: 14px; }

.aaf-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 58px;
    padding: 4px;
    border: 1px solid var(--aaf-border);
    border-radius: 14px;
    background: var(--aaf-soft);
}

.aaf-type {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #59647a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.aaf-type.is-active {
    background: #fff;
    color: var(--aaf-primary);
    box-shadow: 0 3px 10px rgba(30, 42, 72, .09);
}

.aaf-submit,
.aaf-show-all {
    min-height: 58px;
    border-radius: 12px;
    background: var(--aaf-primary);
    color: #fff !important;
    border: 0;
    padding: 0 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.aaf-submit:hover, .aaf-show-all:hover { background: var(--aaf-primary-dark); transform: translateY(-1px); }
.aaf-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.aaf-airport-field { min-width: 0; }
.aaf-type-field { min-width: 0; }
.aaf-submit-wrap {
    align-self: end;
    display: flex;
    align-items: flex-end;
}
.aaf-type-field .aaf-segmented,
.aaf-submit { width: 100%; }

.aaf-message { min-height: 0; margin-top: 10px; color: #a23b3b; font-size: 13px; }

.aaf-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.aaf-kicker {
    margin-bottom: 6px;
    color: var(--aaf-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.aaf-result-title { font-size: clamp(24px, 3vw, 34px); }

.aaf-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    max-width: 440px;
}
.aaf-contact a {
    color: var(--aaf-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.aaf-phone::before { content: 'Tel. '; color: var(--aaf-muted); font-weight: 500; }

.aaf-ticket-search {
    margin: 4px 0 30px;
    padding: 20px;
    border: 1px solid #eadf9c;
    border-radius: 16px;
    background: #fff8d9;
}
.aaf-ticket-search-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 15px;
}
.aaf-ticket-search-heading .aaf-kicker {
    margin-bottom: 4px;
}
.aaf-ticket-search-heading h3 {
    margin: 0;
    color: #202247;
    font-size: 20px;
    line-height: 1.25;
}
.aaf-ticket-search .als {
    width: 100%;
}

.aaf-section-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aaf-primary);
}
.aaf-section-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.aaf-section-icon svg .aaf-plane-fill {
    fill: currentColor;
    stroke: none;
}
.aaf-section-icon svg .aaf-runway-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.aaf-ticket-icon {
    background: rgba(37, 38, 104, .08);
}
.aaf-board-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #e9eff8;
}
.aaf-board-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aaf-board-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--aaf-border);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: var(--aaf-soft);
}
.aaf-board-head strong { color: #252668; font-size: 18px; }
.aaf-board-head span { color: var(--aaf-muted); font-size: 12px; }

.aaf-preview-window {
    height: 720px;
    overflow: hidden;
    border: 1px solid var(--aaf-border);
    border-radius: 0 0 14px 14px;
    background: #fff;
}
.aaf-preview-frame {
    display: block;
    width: 100%;
    height: 1600px;
    border: 0;
}

.aaf-attribution { padding-top: 8px; text-align: right; }
.aaf-attribution a { color: #7b8498; font-size: 11px; text-decoration: none; }
.aaf-result-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

.aaf-full-board .aaf-card { padding: 24px; }
.aaf-full-frame-wrap {
    height: calc(100vh - 260px);
    min-height: 720px;
    overflow: hidden;
    border: 1px solid var(--aaf-border);
    border-radius: 0 0 14px 14px;
    background: #fff;
}
.aaf-full-frame { display: block; width: 100%; height: 100%; border: 0; }
.aaf-board-error { padding: 18px; border-radius: 12px; background: #fff4f4; color: #8c3333; }

@media (max-width: 900px) {
    .aaf-form { grid-template-columns: 1fr 1fr; }
    .aaf-submit-wrap { grid-column: 1 / -1; }
    .aaf-submit { width: 100%; }
    .aaf-result-top { flex-direction: column; }
    .aaf-contact { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .aaf-shell { width: 100%; max-width: 100%; }
    .aaf-card, .aaf-result { width: 100%; max-width: 100%; padding: 18px; border-radius: 15px; }
    .aaf-ticket-search { margin-bottom: 24px; padding: 15px; border-radius: 14px; }
    .aaf-ticket-search-heading { gap: 12px; margin-bottom: 14px; }
    .aaf-ticket-search-heading h3 { font-size: 18px; }
    .aaf-section-icon { width: 46px; height: 46px; border-radius: 14px; }
    .aaf-section-icon svg { width: 27px; height: 27px; }
    .aaf-board-icon { width: 44px; height: 44px; }
    .aaf-form { grid-template-columns: 1fr; gap: 12px; }
    .aaf-submit-wrap { grid-column: auto; }
    .aaf-shell .aaf-airport-input {
        height: 60px;
        font-size: 17px;
        padding-left: 50px;
    }
    .aaf-preview-window { height: 980px; }
    .aaf-preview-frame { height: 1900px; }
    .aaf-board-head { align-items: flex-start; flex-direction: column; gap: 7px; }
    .aaf-board-title-wrap { width: 100%; }
    .aaf-result-actions { justify-content: stretch; }
    .aaf-show-all { width: 100%; }
    .aaf-full-frame-wrap { height: calc(100vh - 210px); min-height: 620px; }
}
