/* ==========================================================================
   Flight landing pages (/flight-internal, /flight-external)
   Every rule is scoped under .fl-page so the shared header, search tab-box
   and footer render exactly as they do on the home page.
   Palette and shapes follow template.css: navy #110e3f, orange #f68216,
   15px rounded cards with a #e4e4e4 border.
   ========================================================================== */

.fl-page {
    --fl-navy: #110e3f;
    --fl-navy-2: #2a2677;
    --fl-orange: #f68216;
    --fl-orange-dark: #df4100;
    --fl-orange-soft: #fff3e8;
    --fl-border: #e4e4e4;
    --fl-muted: #595959;
    --fl-surface: #f6f7fb;
    --fl-shadow: 0 14px 30px rgba(17, 14, 63, .08);
    color: #252525;
}

.fl-page .fl-section {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.fl-page .fl-section-alt {
    background-color: var(--fl-surface);
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 2rem;
}

.fl-page .flex-title {
    gap: 12px;
}

.fl-page .more-link {
    padding: 8px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* ---- feature strip ------------------------------------------------------ */

.fl-page .fl-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 15px;
    box-shadow: var(--fl-shadow);
}

.fl-page .fl-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
}

.fl-page .fl-feature + .fl-feature {
    border-right: 1px solid var(--fl-border);
}

.fl-page .fl-feature-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fl-orange-soft);
    color: var(--fl-orange);
    font-size: 20px;
    transition: all .2s linear;
}

.fl-page .fl-feature:hover .fl-feature-icon {
    background: var(--fl-orange);
    color: #fff;
}

.fl-page .fl-feature-title {
    color: var(--fl-navy);
    font-weight: 700;
    font-size: 15px;
}

.fl-page .fl-feature-text {
    color: var(--fl-muted);
    font-size: 12px;
    font-weight: 300;
    margin-top: 2px;
}

/* ---- recently searched flights ------------------------------------------ */

.fl-page .fl-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.fl-page .fl-chip {
    flex: 0 0 auto;
    border: 1px solid var(--fl-border);
    background: #fff;
    color: var(--fl-muted);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    transition: all .2s linear;
}

.fl-page .fl-chip:hover {
    border-color: var(--fl-orange);
    color: var(--fl-orange);
}

.fl-page .fl-chip.active {
    background: var(--fl-navy);
    border-color: var(--fl-navy);
    color: #fff;
}

.fl-page .fl-route-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 15px;
    padding: 16px;
    transition: all .2s linear;
}

.fl-page .fl-route-card:hover {
    border-color: var(--fl-orange);
    box-shadow: var(--fl-shadow);
    transform: translateY(-3px);
}

.fl-page .fl-route {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fl-navy);
    font-weight: 700;
    font-size: 15px;
}

.fl-page .fl-route-city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.fl-page .fl-route-line {
    flex: 1;
    position: relative;
    border-top: 2px dashed #d6d6d6;
    min-width: 24px;
}

.fl-page .fl-route-line i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: #fff;
    padding: 0 6px;
    color: var(--fl-orange);
    font-size: 13px;
}

.fl-page .fl-route-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.fl-page .fl-route-price .lbl {
    color: #284258;
    font-size: 12px;
}

.fl-page .fl-route-price .cost {
    color: #000;
    font-size: 15px;
    font-weight: 700;
}

.fl-page .fl-route-price .unit {
    color: #284258;
    font-size: 11px;
    margin-right: 3px;
}

.fl-page .fl-more {
    display: block;
    margin: 20px auto 0;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 999px;
    padding: 8px 26px;
    color: var(--fl-navy);
    font-size: 14px;
    font-weight: 600;
    transition: all .2s linear;
}

.fl-page .fl-more:hover {
    border-color: var(--fl-orange);
    color: var(--fl-orange);
}

.fl-page .fl-more i {
    font-size: 11px;
    margin-right: 6px;
}

.fl-page .fl-skeleton {
    height: 104px;
    border-radius: 15px;
    background: linear-gradient(90deg, #f1f1f4 25%, #e8e8ee 37%, #f1f1f4 63%);
    background-size: 400% 100%;
    animation: fl-shimmer 1.4s ease infinite;
}

@keyframes fl-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.fl-page .fl-empty {
    text-align: center;
    color: var(--fl-muted);
    background: #fff;
    border: 1px dashed var(--fl-border);
    border-radius: 15px;
    padding: 30px 15px;
    font-size: 14px;
}

.fl-page .fl-empty i {
    display: block;
    font-size: 26px;
    color: #c9c9d6;
    margin-bottom: 10px;
}

/* ---- popular destinations ----------------------------------------------- */

.fl-page .fl-dest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fl-page .fl-dest {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 15px;
    padding: 12px;
    transition: all .2s linear;
}

.fl-page .fl-dest:hover {
    border-color: var(--fl-orange);
    box-shadow: var(--fl-shadow);
    transform: translateY(-3px);
}

.fl-page .fl-dest-art {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fl-navy) 0%, var(--fl-navy-2) 100%);
    color: #fff;
    font-size: 22px;
    transition: all .2s linear;
}

.fl-page .fl-dest-art img {
    width: 40px;
    height: 40px;
}

.fl-page .fl-dest:hover .fl-dest-art {
    background: linear-gradient(135deg, var(--fl-orange) 0%, var(--fl-orange-dark) 100%);
}

.fl-page .fl-dest-body {
    flex: 1;
    min-width: 0;
}

.fl-page .fl-dest-from {
    color: var(--fl-muted);
    font-size: 12px;
    font-weight: 300;
}

.fl-page .fl-dest-name {
    color: var(--fl-navy);
    font-weight: 700;
    font-size: 16px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-page .fl-dest-go {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fl-surface);
    color: var(--fl-navy);
    font-size: 12px;
    transition: all .2s linear;
}

.fl-page .fl-dest:hover .fl-dest-go {
    background: var(--fl-orange);
    color: #fff;
}

/* ---- tips before booking ------------------------------------------------ */

.fl-page .fl-tips {
    display: flex;
    gap: 32px;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 20px;
    padding: 24px;
}

.fl-page .fl-tips-media {
    flex: 0 0 36%;
    border-radius: 15px;
    overflow: hidden;
    min-height: 260px;
}

.fl-page .fl-tips-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fl-page .fl-tips-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fl-page .fl-tips-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fl-orange-soft);
    color: var(--fl-orange);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fl-page .fl-tips-title {
    color: var(--fl-navy);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
}

.fl-page .fl-tips-content {
    position: relative;
    color: #333;
    font-size: 14px;
    line-height: 2.1;
    text-align: justify;
    max-height: 300px;
    overflow: hidden;
    transition: max-height .4s ease;
}

.fl-page .fl-tips-content p:last-child {
    margin-bottom: 0;
}

.fl-page .fl-tips-content img {
    max-width: 100%;
    height: auto;
}

.fl-page .fl-tips-content::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.fl-page .fl-tips.is-open .fl-tips-content {
    max-height: none;
}

.fl-page .fl-tips.is-open .fl-tips-content::after,
.fl-page .fl-tips.is-short .fl-tips-content::after,
.fl-page .fl-tips.is-short .fl-tips-toggle {
    display: none;
}

.fl-page .fl-tips-toggle {
    align-self: flex-start;
    margin-top: 14px;
    background: none;
    border: 0;
    padding: 0;
    color: var(--fl-orange);
    font-weight: 600;
    font-size: 14px;
}

.fl-page .fl-tips-toggle i {
    font-size: 11px;
    margin-right: 4px;
    transition: transform .2s linear;
}

.fl-page .fl-tips.is-open .fl-tips-toggle i {
    transform: rotate(180deg);
}

/* ---- airlines ----------------------------------------------------------- */

.fl-page .fl-nav {
    display: flex;
    gap: 8px;
}

.fl-page .fl-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--fl-border);
    background: #fff;
    color: var(--fl-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .2s linear;
}

.fl-page .fl-nav-btn:hover {
    background: var(--fl-orange);
    border-color: var(--fl-orange);
    color: #fff;
}

.fl-page .fl-nav-btn.swiper-button-disabled {
    opacity: .4;
    pointer-events: none;
}

.fl-page .fl-airline {
    background: #fff;
    border: 1px solid var(--fl-border);
    border-radius: 15px;
    padding: 18px 10px 14px;
    text-align: center;
    transition: all .2s linear;
}

.fl-page .fl-airline:hover {
    border-color: var(--fl-orange);
    box-shadow: var(--fl-shadow);
}

.fl-page .fl-airline-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-page .fl-airline-logo img {
    max-width: 90%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter .2s linear;
}

.fl-page .fl-airline:hover .fl-airline-logo img {
    filter: none;
}

.fl-page .fl-airline-name {
    margin-top: 10px;
    color: var(--fl-navy);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- FAQ ---------------------------------------------------------------- */

.fl-page .fl-faq .accordion-item {
    border: 1px solid var(--fl-border);
    border-radius: 15px !important;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s linear;
}

.fl-page .fl-faq .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--fl-orange);
}

.fl-page .fl-faq .accordion-button {
    gap: 12px;
    color: var(--fl-navy);
    font-weight: 700;
    font-size: 15px;
    background: #fff;
    box-shadow: none;
    padding: 18px 20px;
    text-align: right;
}

.fl-page .fl-faq .accordion-button::before {
    content: "؟";
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fl-surface);
    color: var(--fl-navy);
    font-weight: 800;
    transition: all .2s linear;
}

.fl-page .fl-faq .accordion-button:not(.collapsed)::before {
    background: var(--fl-orange);
    color: #fff;
}

.fl-page .fl-faq .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.fl-page .fl-faq .accordion-button:focus {
    box-shadow: none;
}

.fl-page .fl-faq .accordion-body {
    color: #333;
    font-size: 14px;
    line-height: 2;
    padding: 0 62px 18px 20px;
    text-align: justify;
}

.fl-page .fl-faq .accordion-body p {
    margin: 0;
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .fl-page .fl-dest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .fl-page .fl-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .fl-page .fl-feature:nth-child(3) {
        border-right: 0;
    }

    .fl-page .fl-feature:nth-child(n + 3) {
        border-top: 1px solid var(--fl-border);
    }

    .fl-page .fl-dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fl-page .fl-tips {
        flex-direction: column;
        gap: 20px;
    }

    .fl-page .fl-tips-media {
        flex: 0 0 auto;
        min-height: 0;
        aspect-ratio: 16 / 8;
    }
}

@media (max-width: 767px) {
    /* same clearance the home page gives its first section (.banner-setion)
       below the mobile tab-box grid */
    .fl-page {
        margin-top: 10rem;
    }
}

@media (max-width: 767.98px) {
    .fl-page .fl-section {
        padding-top: 2rem;
    }

    .fl-page .fl-section-alt {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .fl-page .fl-container {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .fl-page .fl-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 16px 10px;
    }

    .fl-page .fl-dest-grid {
        gap: 10px;
    }

    .fl-page .fl-route {
        font-size: 14px;
    }

    .fl-page .fl-route-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .fl-page .fl-dest {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 10px;
    }

    .fl-page .fl-dest-go {
        display: none;
    }

    .fl-page .fl-dest-name {
        font-size: 15px;
    }

    .fl-page .fl-tips {
        padding: 16px;
    }

    .fl-page .fl-faq .accordion-body {
        padding: 0 20px 16px;
    }

    .fl-page .fl-nav {
        display: none;
    }
}
