/* Scoped to the public footer; respects the site's configured theme colors. */
.site-footer {
    background-color: #fff !important;
    background-image: none;
}
.site-footer .footer-main { padding-block: 56px; }
.site-footer .footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
}
.site-footer .footer-layout > * { min-width: 0; }
.site-footer .footer-brand { max-width: 360px; }
.site-footer .footer-brand > div:first-child { margin-bottom: 24px; }
.site-footer .footer-brand img { height: 114px; width: auto; max-width: 100%; object-fit: contain; }
.site-footer .footer-brand p { line-height: 1.8; }
.site-footer .footer-layout p,
.site-footer .footer-layout li a,
.site-footer .footer-contact-link {
    color: color-mix(in srgb, var(--footer-text-color) 70%, var(--footer-heading-color) 30%) !important;
}
.site-footer .footer-layout h4 {
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
}
.site-footer .footer-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.site-footer .footer-menu-grid ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.site-footer .footer-menu-grid li { margin: 0; padding: 0; line-height: 22px; }
.site-footer .footer-menu-grid a { line-height: 22px; padding-bottom: 0; }
.site-footer .footer-menu-grid h4 { margin-bottom: 18px; }
.site-footer .footer-support {
    padding: 14px;
    border-radius: 16px;
    border-left-color: var(--footer-border-color) !important;
    box-shadow: 0 4px 16px rgb(15 23 42 / 3%);
    flex-wrap: wrap;
}
.site-footer .footer-support > div:first-child { flex-shrink: 1; min-width: 0; }
.site-footer .footer-support p { line-height: 1.5; }
.site-footer .footer-support > div:last-child { margin-inline-start: auto; }
.site-footer .footer-contact-details { display: grid; gap: 8px; }
.site-footer .footer-contact-details > div { margin-top: 0; }
.site-footer .footer-contact-details > div.flex { gap: 12px; }
.site-footer .footer-contact-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.site-footer .footer-contact-details > div > p { padding-top: 3px; }
.site-footer .footer-contact a { overflow-wrap: anywhere; }
.site-footer .footer-contact-details > .border-t > .flex { flex-wrap: wrap; }
.site-footer .footer-contact a.rounded-full { border-radius: 12px; }
.site-footer a:focus-visible { outline: 2px solid var(--footer-link-color, #2563eb); outline-offset: 4px; border-radius: 4px; }
.site-footer .footer-layout a:hover { color: var(--footer-link-color, #2563eb) !important; }
.site-footer .footer-layout a.rounded-full:hover { color: white !important; }
@media (min-width: 640px) {
    .site-footer .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .site-footer .footer-brand { grid-column: 1 / -1; max-width: 400px; }
}
@media (min-width: 1024px) {
    .site-footer .footer-main { padding-block: 64px 56px; }
    .site-footer .footer-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 4vw, 64px); }
    .site-footer .footer-brand { grid-column: auto; max-width: 360px; }
    .site-footer .footer-navigation { padding-inline-start: 12px; }
}
@media (max-width: 639px) {
    .site-footer .footer-main { padding-block: 36px; }
    .site-footer .footer-brand { max-width: none; }
    .site-footer .footer-contact { border-top: 1px solid var(--footer-border-color); padding-top: 28px; }
}

.site-footer .footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    border-radius: 9px;
    transition: color .2s ease, background-color .2s ease;
}
.site-footer .footer-contact-link > span:last-child { min-width: 0; }
.site-footer .footer-address { padding-block: 3px; }
.site-footer .footer-contact-link:hover { background-color: color-mix(in srgb, var(--footer-link-color, #2563eb) 4%, transparent); }

.site-footer .footer-description { font-size:10px; text-align: justify; text-align-last: start; }
@media(min-width:1024px) {
 .site-footer .footer-description { margin-right:50px; }
 .site-footer .footer-description-line { display:inline; }
 .site-footer .footer-brand .footer-logo-shine { width:calc(100% - 50px); }
 .site-footer .footer-brand .footer-logo-shine img { width:100%; height:auto; }
}

@media (max-width: 767px) {
    .site-footer .footer-brand > div:first-child > div:first-child > a {
        justify-content: center;
    }
}

/* Mobile footer replacement with a raised central flight shortcut. */
.mobile-bottom-nav { display: none; }
@media (max-width: 767px) {
    body:has(.mobile-bottom-nav) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    body:has(.mobile-bottom-nav) .site-footer { display: none; }
    .mobile-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 35;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        direction: ltr;
        min-height: 56px;
        padding: 3px 12px calc(3px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #e6edf4;
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 -5px 24px rgb(15 35 60 / 9%);
    }
    .mobile-bottom-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 48px;
        color: #627084;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-bottom-link[aria-current="page"], .mobile-bottom-link:hover { color: #0074bd; }
    .mobile-bottom-link:focus-visible { outline: 2px solid #0074bd; outline-offset: 2px; }
    .mobile-bottom-flight { color: #0074bd; margin-top: -25px; gap: 4px; }
    .mobile-bottom-flight-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border: 5px solid #fff;
        border-radius: 50%;
        background: #0074bd;
        color: #fff;
        box-shadow: 0 3px 12px rgb(0 116 189 / 24%);
    }
    @media (max-height: 450px) {
        body:has(input:focus, textarea:focus) .mobile-bottom-nav { display: none; }
    }
}

#backToTop { background-color: #0074bd; }
#backToTop:hover { background-color: #0063a1; }
#backToTop:focus-visible { outline: 3px solid #8bcdf5; outline-offset: 3px; }

/* Match footer artwork and accents to the header logo background. */
.site-footer { --footer-link-color:#0074bd; }
.site-footer .footer-brand img { filter:url(#footer-brand-blue); }
.site-footer .footer-support .bg-blue-600 { background-color:#0074bd; }
.site-footer .footer-support a { color:#0074bd !important; }
.site-footer .footer-support .font-bold { color:#0074bd !important; }

/* Policies sit beside Explore as a matching vertical navigation column. */
@media(min-width:1024px) {
 .site-footer .footer-layout { grid-template-columns:minmax(0,1.1fr) minmax(0,.65fr) minmax(0,.65fr) minmax(0,1.1fr); column-gap:28px; }
 .site-footer .footer-navigation { padding-inline-start:0; }
 .site-footer .footer-bottom-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}

/* Payment logos replace the former trust badges. */
/* Equal payment slots with readable, tightly cropped brand artwork. */
.site-footer .footer-payment-icons { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:12px; }
.site-footer .footer-payment-mark { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:auto; height:32px; gap:3px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; line-height:1; }
.site-footer .footer-payment-mark img { display:block; flex:none; width:auto; height:18px; max-width:none; object-fit:contain; margin:0; }
.site-footer .footer-payment-suffix { display:flex; align-items:center; height:18px; font-family:Arial,sans-serif!important; font-size:12px!important; line-height:18px!important; font-weight:600; color:#20202c; padding:0; margin:0; }
@media(max-width:1023px) { .site-footer .footer-payment-icons { justify-content:center; } }

/* A slow glint clipped to the footer artwork, with no layout movement. */
.site-footer .footer-logo-shine { position:relative; display:inline-flex; max-width:100%; isolation:isolate; }
.site-footer .footer-logo-shine::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 42%,rgba(255,255,255,.2) 46%,rgba(255,255,255,.85) 50%,rgba(255,255,255,.2) 54%,transparent 58%) 200% 0 / 300% 100% no-repeat; -webkit-mask:url("../../uploads/global/logo.png") center / 100% 100% no-repeat; mask:url("../../uploads/global/logo.png") center / 100% 100% no-repeat; animation:footer-logo-glint 7s ease-in-out infinite; }
@keyframes footer-logo-glint { 0%,65% { background-position:200% 0; } 90%,100% { background-position:-100% 0; } }
@media(prefers-reduced-motion:reduce) { .site-footer .footer-logo-shine::after { animation:none; display:none; } }

.site-footer > .border-t,
.site-footer .footer-main { background-color:#fff !important; background-image:none; }

/* Partnership invitations sit apart from the CMS navigation lists. */
.site-footer .footer-menu-column { display:flex; flex-direction:column; min-width:0; }
.site-footer .footer-menu-column .footer-menu-links { flex:1; }
.site-footer .footer-menu-grid .footer-partner-link {
 display:flex; align-items:center; justify-content:space-between; gap:8px;
 margin-top:28px; padding:14px 12px; border-radius:10px;
 background:linear-gradient(120deg,#edf8fe,#f8fcff); color:#0074bd;
 text-decoration:none; transition:background .2s,box-shadow .2s;
}
.site-footer .footer-partner-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.site-footer .footer-partner-copy small { font-size:8px; letter-spacing:.8px; line-height:1.5; color:#54758b; }
.site-footer .footer-partner-copy > span { font-family:ElementX,Georgia,serif; font-size:17px; line-height:1.4; }
.site-footer .footer-partner-link > .material-symbols-outlined { font-size:19px; flex-shrink:0; transition:transform .2s; }
.site-footer .footer-partner-copy > span,
.site-footer .footer-partner-link > .material-symbols-outlined { display:flex; align-items:center; margin:0; line-height:24px; }
@media(min-width:1024px) {
 .site-footer .footer-layout { align-items:stretch; }
 .site-footer .footer-contact { display:flex; flex-direction:column; }
 .site-footer .footer-contact-details { display:flex; flex-direction:column; flex:1; }
 .site-footer .footer-contact-details > .footer-support { margin-top:auto; }
 .site-footer .footer-menu-grid .footer-partner-link,
 .site-footer .footer-contact .footer-support { min-height:72px; box-sizing:border-box; }
}
.site-footer .footer-menu-grid .footer-partner-link:hover { background:#e0f2fd; box-shadow:0 5px 16px #0074bd12; }
.site-footer .footer-partner-link:hover > .material-symbols-outlined { transform:translate(2px,-2px); }
@media(prefers-reduced-motion:reduce) { .site-footer .footer-partner-link,.site-footer .footer-partner-link > .material-symbols-outlined { transition:none; } }
