/* Public Blade pages share typography and spacing without changing the Vue app. */
html.marketing-document {
    font-size: 100%;
}

.marketing-page {
    --marketing-navy: #09245d;
    --marketing-red: #c82027;
    --marketing-section-space: 36px;
    font-family: Manrope, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.marketing-page:not(.home-page) {
    font-size: 14px;
    line-height: 1.6;
}

.marketing-page :where(button, input, select, textarea) {
    font-family: inherit;
}

.marketing-page :where(a, button, summary, input, select, textarea):focus-visible {
    outline: 2px solid var(--marketing-navy);
    outline-offset: 3px;
}

.marketing-page .marketing-section {
    padding-block: var(--marketing-section-space);
}

.marketing-page .marketing-content {
    padding-block: 28px 36px;
}

.marketing-page .marketing-after-search {
    padding-block: 104px 36px;
}

.marketing-page:not(.home-page) .container {
    width: min(1160px, calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.marketing-page .marketing-copy {
    font-size: 14px;
    line-height: 1.7;
}

.marketing-page .marketing-card-title {
    font-size: 16px;
    line-height: 1.4;
}

.marketing-page .marketing-kicker {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
}

.marketing-page .marketing-policy-content :where(p, ul, ol) {
    font-size: 15px;
    line-height: 1.8;
}

/* Allow fare/policy tables to scroll inside their cards on narrow screens. */
.marketing-page .airline-content-main {
    grid-template-columns: minmax(0, 1fr);
}

.marketing-page .airline-content-main > section {
    min-width: 0;
}

.marketing-page .airline-content-main .overflow-x-auto {
    position: relative;
}

@media (max-width: 1023px) {
    .marketing-page .airline-content-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.marketing-page .atf {
    padding-top: 32px;
    font-family: inherit;
    font-size: 13px;
}

.marketing-page .atf-grid {
    gap: 24px;
}

.marketing-page .atf-brand p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.marketing-page .atf-heading {
    font-size: 14px;
}

.marketing-page .atf-rule {
    margin-block: 8px 12px;
}

.marketing-page .atf-links a {
    padding-block: 3px;
    font-size: 13px;
}

.marketing-page .atf-contact {
    gap: 10px;
}

.marketing-page .atf-socials,
.marketing-page .atf-support {
    margin-top: 14px;
}

.marketing-page .atf-pay {
    margin-top: 24px;
}

@media (max-width: 767px) {
    .marketing-page {
        --marketing-section-space: 28px;
    }

    .marketing-page:not(.home-page) .container {
        width: calc(100% - 28px);
    }

    .marketing-page .marketing-content,
    .marketing-page .marketing-after-search {
        padding-block: 24px 28px;
    }

    .marketing-page .marketing-copy {
        font-size: 15px;
    }

    .marketing-page .atf {
        padding-top: 28px;
    }
}

/* Preserve the booking hero; use a single spacing rhythm below it. */
.home-page .home-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
    background: #fff;
}

.home-content > section { padding-block: 0; }
.home-page .home-popular-routes { padding-inline: 0; }
.home-route-photo { height: 148px; }
.home-page [data-hero-content-offset] { padding-top: 96px; }
.home-page .why { padding-top: 0; }
.home-content .home-section-inner { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.home-content .home-section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-content .home-section-heading { max-width: none; margin: 0 0 18px; text-align: left; }
.home-content .home-section-header .home-section-heading { margin: 0; }
.home-content .home-section-heading--center { text-align: center; }
.home-content .home-section-heading h2 { margin: 0; color: #09245d; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.6px; }
.home-content .home-section-heading p { margin: 6px 0 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.home-content .home-text-link { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #c82027; font-size: 13px; font-weight: 700; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-content .home-section-header.home-carousel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.home-carousel-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.home-carousel-actions[hidden] { display: none; }

.home-carousel-button {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #09245d;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.home-carousel-button svg { width: 18px; height: 18px; stroke-width: 1.8; }
.home-carousel-button:hover { border-color: #09245d; background: #f8faff; }

.home-testimonials-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.home-testimonials-navigation {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.home-testimonials-navigation[hidden] { display: none; }
.home-testimonials-header-actions .home-review-open { min-height: 44px; padding: 10px 14px; gap: 8px; border-radius: 8px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.home-testimonials-header-actions .home-review-open svg { width: 18px; height: 18px; }

.home-services {
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e8ef;
}

.home-services-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-services-item {
    position: relative;
    min-width: 0;
}

.home-services-item + .home-services-item::before {
    position: absolute;
    top: 24px;
    left: 0;
    width: 1px;
    height: 40px;
    background: #e3e8ef;
    content: "";
}

.home-service-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    margin-inline: 5px;
    padding: 8px;
    border-radius: 10px;
    color: #09245d;
    text-align: center;
}

.home-service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid #f8e4e5;
    border-radius: 50%;
    background: #fff4f4;
    color: #c82027;
    transition: background .2s, border-color .2s;
}

.home-service-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.65;
}

.home-service-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.home-service-link:hover,
.home-service-link:focus-visible {
    background: #f8faff;
    color: #c82027;
}

.home-service-link:hover .home-service-icon,
.home-service-link:focus-visible .home-service-icon {
    border-color: #f1c5c7;
    background: #ffe9ea;
}

.home-benefits-panel { padding: 24px; border: 1px solid #dfe8f3; border-radius: 14px; background: #f8fbff; }
.home-page .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-page .benefit { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.home-page .benefit + .benefit { border-left: 1px solid #dfe8f3; padding-left: 16px; }
.home-page .benefit-ico { display: grid; flex: 0 0 36px; width: 36px; height: 36px; margin: 0; place-items: center; border: 1px solid #f4dfe1; border-radius: 10px; background: #fff; color: #c82027; }
.home-page .benefit-ico svg { width: 23px; height: 23px; }
.home-page .benefit h3 { min-height: 0; margin: 0 0 5px; font-size: 14px; line-height: 1.4; }
.home-page .benefit p { max-width: none; margin: 0; color: #64748b; font-size: 13px; line-height: 1.6; }

.home-page .deal-card { height: 210px; }
.home-page .deal-copy { top: 22px; left: 28px; }
.home-page .deal-copy h3 { margin-top: 8px; font-size: 22px; }
.home-page .deal-copy small { font-size: 12px; }
.home-page .price { margin-block: 6px 12px; }
.home-page .deal-copy .btn { min-height: 44px; height: auto; padding: 10px 22px; font-size: 13px; }

.home-faq-list { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.home-faq-item + .home-faq-item { border-top: 1px solid #e2e8f0; }
.home-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 16px 20px; color: #09245d; font-size: 14px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary:hover, .home-faq-item[open] summary { background: #f7faff; }
.home-faq-item summary svg { flex: 0 0 18px; width: 18px; height: 18px; transition: transform .2s; }
.home-faq-item[open] summary svg { transform: rotate(180deg); }
.home-faq-answer { padding: 0 20px 18px; background: #f7faff; }
.home-faq-answer p { max-width: 920px; margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.home-faq-answer a { color: #c82027; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) and (max-width: 1023px) {
    .home-page .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .benefit:nth-child(odd) { border-left: 0; padding-left: 0; }
    .home-page .benefit:nth-child(n+3) { border-top: 1px solid #dfe8f3; padding-top: 16px; }
}

@media (max-width: 767px) {
    .home-page .home-content { gap: 28px; padding-bottom: 28px; }
    .home-content .home-section-header.home-testimonials-header { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .home-testimonials-header-actions { justify-content: space-between; }
    .home-page [data-hero-content-offset] { padding-top: 28px; }
    .home-content .home-section-inner, .home-page .why > .container, .home-page .deal > .container { width: calc(100% - 28px); }
    .home-content .home-section-heading h2 { font-size: 22px; letter-spacing: -.4px; }
    .home-content .home-section-header { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
    .home-benefits-panel { padding: 20px; }
    .home-page .benefit-grid { grid-template-columns: 1fr; gap: 0; }
    .home-page .benefit { padding: 16px 0; }
    .home-page .benefit:first-child { padding-top: 0; }
    .home-page .benefit:last-child { padding-bottom: 0; }
    .home-page .benefit + .benefit { border-left: 0; border-top: 1px solid #dfe8f3; padding-left: 0; }
    .home-page .benefit p { font-size: 13px; }
    /* Services row is desktop/tablet only; phones go straight from search to popular routes. */
    .home-page .home-services-section { display: none; }

    /* Benefits: the outer panel is the only frame, so rows get no inner box clipping the icons. */
    .home-page .why .benefit-grid { border: 0; border-radius: 0; overflow: visible; }
    .home-page .why .benefit { min-height: 0; border-bottom: 0; }
    .home-page .why .benefit:hover { transform: none; }

    /* Section links ("Visit the blog", "Need more help?") become a full-width button after the content. */
    .home-content :is(.home-blog-section, .home-faq-section) .home-section-inner { display: flex; flex-direction: column; }
    .home-content :is(.home-blog-section, .home-faq-section) > .home-section-inner > .home-section-header { display: contents; }
    .home-content :is(.home-blog-section, .home-faq-section) > .home-section-inner > .home-section-header > .home-section-heading { margin-bottom: 16px; }
    .home-content :is(.home-blog-section, .home-faq-section) > .home-section-inner > .home-section-header > .home-text-link {
        order: 1;
        width: 100%;
        margin-top: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        color: #09245d;
    }
    .home-content :is(.home-blog-section, .home-faq-section) > .home-section-inner > .home-section-header > .home-text-link:hover { border-color: #09245d; text-decoration: none; }
    .home-page .deal-card { height: 232px; }
    .home-page .deal-copy { inset: 20px 18px auto; }
    .home-faq-item summary { min-height: 60px; padding: 16px; }
    .home-faq-answer { padding: 0 16px 16px; }
    .home-faq-answer p { font-size: 15px; }
}

/* Phone layouts keep the search controls readable and the page clear of the dock. */
@media (max-width: 767px) {
    html.marketing-document:has(body.home-page) {
        scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
        -webkit-text-size-adjust: 100%;
    }

    body.home-page {
        padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }

    .home-page .mobile-bottom-dock::before { display: none; }
    .home-page.home-search-in-view .mobile-bottom-dock { visibility: hidden; pointer-events: none; }
    /* Support remains available in the dock and footer without covering page content. */
    .home-page .whatsapp { display: none; }
    .home-page #open-menu, .home-page .drawer-close { width: 44px; height: 44px; }

    .home-page [data-hero] h1 span { margin-left: .12em; }
    .home-page [data-flight-search-form] { padding: 12px; }
    .home-page [data-trip-section="standard"] > div { padding: 4px 0; }
    .home-page [data-traveler-field] { grid-column: 1; }
    .home-page [data-standard-class-slot], .home-page [data-multi-class-slot] { grid-column: 2; }
    .home-page [data-multi-class-slot] { align-self: end; }
    .home-page [data-traveler-trigger], .home-page [data-selector-trigger] { gap: 6px; padding-inline: 10px; }
    .home-page [data-hero] [data-traveler-summary], .home-page [data-hero] [data-selector-label] { font-size: 14px; }
    .home-page [data-search-submit-field] { padding-top: 4px; }
    .home-page [data-search-submit-field] button { margin: 0; border-radius: 8px; }
    .home-page [data-flight-search-form] [data-trip-tab] { min-height: 44px; }
    .home-page [data-flight-search-form] [role="tablist"] { height: 44px; }
    .home-page [data-flexible-field] { margin-right: 0; }
    .home-page [data-flexible-field] label { min-height: 44px; gap: 8px; font-size: 12px; }
    .home-page [data-flexible-field] input { width: 18px; height: 18px; flex-shrink: 0; }

    .home-page [data-traveler-panel], .home-page [data-selector-menu] {
        position: fixed;
        inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 90;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 32px);
        margin: 0;
        overflow-y: auto;
        border-radius: 16px;
    }

    .home-page [data-traveler-panel] { padding: 20px; }
    .home-page [data-traveler-panel] [data-passenger-input] { min-height: 44px; font-size: 16px; }
    .home-page [data-selector-menu] [role="option"] { min-height: 48px; font-size: 15px; }
    .home-page [data-calendar-panel] [data-calendar-close] { width: 44px; height: 44px; }
    .home-page [data-calendar-months] button { width: min(44px, 100%); height: 44px; }

    .home-page:has(input:is([type="text"], [type="search"], [type="email"], [type="number"], [type="tel"], [type="password"]):focus, textarea:focus, .mobile-drawer.open, dialog[open], .home-auth-dialog:not(.hidden), [data-airport-sheet]:not(.hidden), [data-calendar-panel]:not(.hidden), [data-traveler-panel]:not(.hidden), [data-selector-menu]:not(.hidden)) :is(.mobile-bottom-dock, .whatsapp) {
        visibility: hidden;
        pointer-events: none;
    }

    /* Descriptions use the full row, rather than squeezing beside carousel arrows. */
    .home-content :is([data-popular-routes], [data-airline-carousel]) .home-section-header {
        gap: 6px 12px;
    }

    .home-content :is([data-popular-routes], [data-airline-carousel]) .home-section-heading { display: contents; }
    .home-content :is([data-popular-routes], [data-airline-carousel]) .home-section-heading h2 { grid-column: 1; grid-row: 1; align-self: center; }
    .home-content :is([data-popular-routes], [data-airline-carousel]) .home-section-heading p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    .home-content :is([data-popular-routes], [data-airline-carousel]) .home-carousel-actions { grid-column: 2; grid-row: 1; }

    .home-page .home-blog-card { grid-template-columns: 100px minmax(0, 1fr); }
    .home-page .home-blog-media-fallback { font-size: 14px; }
    .home-page .home-blog-card-footer { column-gap: 8px; }
    .home-page .atf-grid { gap: 24px 16px; }
    .home-page .atf-heading { gap: 8px; font-size: 13px; }
    .home-page .atf-heading svg { width: 18px; height: 18px; flex-shrink: 0; }
    .home-page .atf-links a { min-height: 44px; }
    .home-page .atf-bottom .atf-container { padding-bottom: 20px; }
}

@media (min-width: 768px) and (max-width: 800px) {
    body.home-page { padding-bottom: 0; }
    .home-page .mobile-bottom-dock { display: none; }
    .home-page .whatsapp { bottom: 22px; }
    html.marketing-document:has(body.home-page) { scroll-padding-bottom: 24px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .home-page header [data-auth-open], .home-page header nav a { min-height: 44px; }
}
