/* Airline-inspired navigation, with Persia Travel's own branding. */
.airline-header {
    --header-brand-blue: #0074bd;
    background: #000000 !important;
    color: #fff !important;
    height: 64px !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 12px rgb(0 0 0 / 12%) !important;
}
.airline-header-row { gap: 16px; }
.airline-brand-nav { align-self: stretch; min-width: 0; gap: 18px; }
.airline-logo {
    position: relative;
    align-self: flex-start;
    justify-content: center;
    flex-shrink: 0;
    width: 148px;
    height: 108px;
    padding: 40px 15px 20px;
    background: #0039a5;
    box-shadow: 0 5px 12px rgb(0 0 0 / 12%);
    z-index: 1;
}
.airline-logo img {
    width: 118px;
    height: auto !important;
    max-width: 100%;
    filter: brightness(0) invert(1);
}
.airline-nav { align-self: stretch; gap: 0; }
.airline-nav > .nav-link,
.airline-nav > .group > .nav-link {
    height: 64px;
    padding-inline: 13.5px;
    border-radius: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.airline-nav > .nav-link:hover,
.airline-nav > .group > .nav-link:hover {
    background: #202020;
    color: #fff;
    border-bottom-color: #76a8ff;
}
.airline-nav .nav-link svg { width: 16px; height: 16px; }
.airline-header a:focus-visible,
.airline-header button:focus-visible { outline: 2px solid #8fbaff; outline-offset: 2px; }
.airline-actions { flex-shrink: 0; }
.airline-header .header-phone-link { color: #fff; font-size: 13px; }
.airline-header .header-phone-link:hover { background: #202020; }
.airline-header .header-phone-icon { background: #202020; border-color: #444444; color: #fff; width: 32px; height: 32px; }
.airline-account { border-radius: 6px; box-shadow: none; padding: 3px; }
.airline-account > .btn,
.airline-account > .group > .btn { border-radius: 4px !important; }
.airline-header .airline-menu-toggle { color: #fff; background: #202020; border-color: #444444; border-radius: 6px; }
.airline-mobile-menu { color: #111827; }
@media (min-width: 1024px) and (max-width: 1279px) {
    .airline-brand-nav { gap: 8px; }
    .airline-logo { width: 128px; padding-inline: 12px; }
    .airline-nav > .nav-link, .airline-nav > .group > .nav-link { padding-inline: 9.45px; font-size: 11px; gap: 5px; }
    .airline-header-row { gap: 8px; }
}
@media (max-width: 1023px) {
    .airline-logo { width: 124px; height: 80px; padding: 20px 12px; }
    .airline-header-row { gap: 10px; }
    .airline-brand-nav { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .airline-header a, .airline-header button { transition: none; }
}

/* Match navigation labels to the site's uploaded display typeface. */
.airline-nav .nav-link,
.airline-mobile-menu .nav-link {
    font-family: 'ElementX', var(--font-family, sans-serif) !important;
    font-synthesis: none;
}

/* Vertical brand lockup using the original Persia symbol. */
.airline-header .airline-logo {
    background: var(--header-brand-blue);
    width: 132px;
    height: 136px;
    padding: 9px 10px 12px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    color: #fff;
}
.airline-header .airline-logo .airline-brand-symbol {
    width: 62px;
    height: 62px !important;
    object-fit: contain;
    filter: grayscale(1) invert(1) contrast(8);
    mix-blend-mode: screen;
}
.airline-brand-name,
.airline-brand-travel {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}
.airline-brand-name { font-size: 27px; letter-spacing: 3px; margin-inline-end: -3px; }
.airline-brand-travel { font-size: 13px; letter-spacing: 2.5px; margin-top: 8px; margin-inline-end: -2.5px; }
@media (max-width: 1023px) {
    .airline-header .airline-logo { width: 96px; height: 100px; padding: 6px 8px 9px; gap: 2px; }
    .airline-header .airline-logo .airline-brand-symbol { width: 44px; height: 44px !important; }
    .airline-brand-name { font-size: 20px; letter-spacing: 2px; }
    .airline-brand-travel { font-size: 10px; letter-spacing: 2px; margin-top: 5px; }
}

/* Separate, balanced auth buttons in the logo's blue. */
.airline-header .airline-account {
    background: transparent;
    border: 0;
    padding: 0;
    gap: 8px;
    border-radius: 0;
    box-shadow: none;
}
.airline-header .header-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 13px;
    border: 1px solid var(--header-brand-blue);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}
.airline-header .header-auth-login { background: transparent; }
.airline-header .header-auth-signup { background: var(--header-brand-blue); }
.airline-header .header-auth-login:hover { background: var(--header-brand-blue); }
.airline-header .header-auth-signup:hover { background: #09649a; border-color: #09649a; }
.airline-account > .group > button:not(.header-auth-button) { color: #fff; }
.airline-account > .group > button:not(.header-auth-button):hover { background: #202020; }

/* Keep icon and label on a consistent optical baseline. */
.airline-nav > .nav-link,
.airline-nav > .group > .nav-link,
.airline-mobile-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.airline-nav .nav-link > span,
.airline-mobile-menu .nav-link > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.airline-nav .nav-link > svg,
.airline-mobile-menu .nav-link > svg {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-self: center;
    color: var(--header-brand-blue);
    stroke: var(--header-brand-blue);
}

/* Render the supplied logo artwork intact, including its original lettering. */
.airline-header .airline-logo {
    width: 132px;
    height: 132px;
    padding: 0;
    gap: 0;
}
.airline-header .airline-logo .airline-original-logo {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    mix-blend-mode: normal;
}
@media (max-width: 1023px) {
    .airline-header .airline-logo { width: 96px; height: 96px; padding: 0; }
}

/* Slim airline badge with the requested ElementX wordmark. */
.airline-header .airline-logo {
    width: 92px;
    height: 125px;
    padding: 30px 6px 9px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
}
.airline-header .airline-logo .airline-brand-symbol {
    width: 52px;
    height: 52px !important;
    object-fit: contain;
    filter: grayscale(1) invert(1) contrast(8);
    mix-blend-mode: screen;
}
.airline-header .airline-brand-name {
    font-family: 'ElementX', Georgia, serif;
    font-synthesis: none;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
}
@media (max-width: 1023px) {
    .airline-header .airline-logo { width: 80px; height: 104px; padding: 20px 5px 8px; }
    .airline-header .airline-logo .airline-brand-symbol { width: 44px; height: 44px !important; }
    .airline-header .airline-brand-name { font-size: 25px; }
}

/* White navigation icons against the navy header. */
.airline-nav .nav-link > svg {
    color: #fff;
    stroke: #fff;
}

/* Fill the badge while retaining a consistent 15px inset. */
.airline-header .airline-logo {
    width: 112px;
    height: auto;
    padding: 15px;
    gap: 4px;
    justify-content: center;
    box-sizing: border-box;
}
.airline-header .airline-logo .airline-brand-symbol {
    width: 82px;
    height: 72px !important;
    flex-shrink: 0;
}
.airline-header .airline-brand-name {
    font-size: 33px;
    line-height: 1;
    max-width: 100%;
}
@media (max-width: 1023px) {
    .airline-header .airline-logo { width: 104px; padding: 15px; height: auto; }
    .airline-header .airline-logo .airline-brand-symbol { width: 74px; height: 64px !important; }
    .airline-header .airline-brand-name { font-size: 30px; }
}

/* Symbol-only badge: trim 10px from each side and anchor the mark low. */
.airline-header .airline-logo {
    width: 92px;
    height: 139px;
    padding: 0 5px 10px;
    justify-content: flex-end;
    gap: 0;
}
.airline-header .airline-logo .airline-brand-symbol {
    width: 82px;
    height: 72px !important;
}
@media (max-width: 1023px) {
    .airline-header .airline-logo {
        width: 84px;
        height: 128px;
        padding: 0 5px 10px;
    }
    .airline-header .airline-logo .airline-brand-symbol {
        width: 74px;
        height: 64px !important;
    }
}

.airline-header .airline-logo { border-radius: 0 0 10px 10px; }

/* Move only the logo one full badge width to the left. */
.airline-header .airline-logo { transform: translateX(-100%); }
@media (max-width: 1279px) {
    .airline-header .airline-logo { transform: none; }
}
@media (min-width: 1280px) {
    .airline-header .airline-logo { transform: translateX(min(0px, max(-100%, calc((1280px - 100vw) / 2 + 16px)))); }
}

/* Split the empty space left by the shifted badge evenly. */
@media (min-width: 1280px) {
    .airline-header .airline-brand-nav { gap: 9px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .airline-header .airline-brand-nav { gap: 4px; }
}

/* Highlight click-to-call with the same blue as Signup. */
.airline-header .header-phone-icon {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--header-brand-blue);
    border-color: var(--header-brand-blue);
    color: #fff;
}
.airline-header .header-phone-icon::after {
    content: '';
    position: absolute;
    inset: -35%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: header-phone-shine 5s ease-in-out infinite;
}
@keyframes header-phone-shine {
    0%, 65% { transform: translateX(-130%); }
    88%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
    .airline-header .header-phone-icon::after { display: none; animation: none; }
}

/* Compact mobile header and a modal side drawer. */
html.mobile-navigation-open { overflow: hidden; }
.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(360px, 90vw);
    max-width: 100vw;
    height: 100%;
    height: 100dvh;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 22px 0 0 22px;
    background: #fff;
    color: #172337;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -16px 0 60px rgb(0 0 0 / 22%);
}
.mobile-drawer:not([open]) { display: none; }
.mobile-drawer[open] { display: block; animation: mobile-drawer-enter .28s ease-out; }
.mobile-drawer::backdrop { background: rgb(4 13 27 / 60%); backdrop-filter: blur(3px); }
.mobile-drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(25px, env(safe-area-inset-top)) 22px 20px; }
.mobile-drawer-eyebrow { color: #0074bd; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.mobile-drawer-top h2 { margin: 7px 0 0; font-size: 21px; line-height: 1.2; }
.mobile-drawer-close { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; color: #172337; }
.mobile-drawer-contact { display: flex; align-items: center; gap: 9px; margin: 0 20px; padding: 14px 12px; border-radius: 12px; background: #eef7fd; color: #0067a9; font-size: 14px; font-weight: 600; }
.mobile-drawer-contact-label { margin-left: auto; font-size: 11px; font-weight: 400; }
.mobile-drawer > .space-y-4 { padding: 18px 20px max(24px, env(safe-area-inset-bottom)); }
.mobile-drawer .nav-link { min-height: 46px; margin-top: 4px; border-radius: 10px; font-size: 17px; color: #172337; gap: 14px; }
.mobile-drawer .nav-link:hover { background: #eef7fd; color: #0074bd; }
.mobile-drawer .nav-link > svg { width: 19px; height: 19px; flex-basis: 19px; }
.mobile-drawer button:focus-visible, .mobile-drawer a:focus-visible { outline: 2px solid #0074bd; outline-offset: 2px; }
@keyframes mobile-drawer-enter { from { transform: translateX(100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1023px) {
    .airline-header .airline-logo { width: 44px; height: 44px; align-self: center; padding: 4px; border-radius: 10px; transform: none; box-shadow: none; }
    .airline-header .airline-logo .airline-brand-symbol { width: 36px; height: 36px !important; }
    .airline-header .header-phone-link { padding: 0; }
    .airline-header .header-phone-link > span:not(.header-phone-icon) { display: none; }
    .airline-header .header-phone-icon { width: 40px; height: 40px; border-radius: 10px; }
    .airline-header .airline-menu-toggle { width: 40px; height: 40px; border-radius: 10px; }
    .airline-header .airline-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-drawer[open] { animation: none; } }

/* Use the same hanging, symbol-only badge on mobile as on desktop. */
@media (max-width: 1023px) {
    .airline-header .airline-logo {
        width: 64px;
        height: 96px;
        align-self: flex-start;
        padding: 0 4px 7px;
        justify-content: flex-end;
        gap: 0;
        border-radius: 0 0 10px 10px;
        transform: none;
        box-shadow: 0 5px 12px rgb(0 0 0 / 12%);
    }
    .airline-header .airline-logo .airline-brand-symbol {
        width: 56px;
        height: 50px !important;
    }
}

/* Render the symbol with real transparency, without backdrop blending. */
.airline-header .airline-logo .airline-brand-symbol {
    display: block;
    filter: none;
    mix-blend-mode: normal;
    background: transparent;
}

.airline-header .header-phone-link,
.airline-header .header-auth-button {
    font-family: 'ElementX', var(--font-family, sans-serif);
    font-weight: 500;
    font-synthesis: none;
}

.airline-header .header-signup-menu { border-radius: 10px; }
.airline-header .header-signup-menu a { border-radius: 10px; }
.airline-header .header-signup-menu a > span:not(.material-symbols-outlined) {
    font-family: 'ElementX', var(--font-family, sans-serif);
    font-weight: 500;
    font-synthesis: none;
}

/* Shared transparent header and fading shade on every page. */
.airline-header {
    background: transparent !important;
    box-shadow: none !important;
}
.airline-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 115.2px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgb(8 17 29 / 88%) 0%,
        rgb(8 17 29 / 72%) 32%,
        rgb(8 17 29 / 32%) 65%,
        transparent 100%);
}

/* A soft diagonal glint across the brand badge. */
.airline-header .airline-logo { overflow: hidden; isolation: isolate; }
.airline-header .airline-logo::after {
    content: '';
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 8%) 45%, rgb(255 255 255 / 48%) 50%, rgb(255 255 255 / 8%) 55%, transparent 62%);
    transform: translateX(-130%);
    animation: persia-logo-glint 7s ease-in-out infinite;
}
@keyframes persia-logo-glint {
    0%, 65% { transform: translateX(-130%); }
    88%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
    .airline-header .airline-logo::after { display: none; animation: none; }
}

/* Text-only main navigation with separators between desktop items. */
.airline-nav .nav-link > svg,
.airline-mobile-menu .nav-link > svg { display: none; }
.airline-nav > .nav-link,
.airline-nav > .group > .nav-link { gap: 0; }
.airline-nav > .nav-link,
.airline-nav > .group { position: relative; }
.airline-nav > .nav-link:not(:first-child)::before,
.airline-nav > .group:not(:first-child)::before {
    content: '|';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(255 255 255 / 50%);
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    pointer-events: none;
}

/* Align every desktop menu label and separator on one centered line. */
.airline-header .airline-nav {
    display: none;
    align-items: center;
    flex-wrap: nowrap;
}
@media (min-width: 1024px) {
    .airline-header .airline-nav { display: flex; }
}
.airline-header .airline-nav > .nav-link,
.airline-header .airline-nav > .group > .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding-block: 0;
    border-bottom: 0;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}
.airline-header .airline-nav .nav-link > span {
    display: block;
    line-height: 1;
    color: #fff;
}
.airline-header .airline-nav > .nav-link::before,
.airline-header .airline-nav > .group::before {
    color: #fff;
    line-height: 1;
}
.airline-header .airline-nav .nav-link:hover { color: #fff; }

/* Extend service-page banners behind the transparent 64px header.
   Keep the search forms and the rest of the page in their existing positions. */
body:has(.airline-header) .page-banner-background {
    top: -64px;
}

/* Plain, readable header throughout the reservation flow. */
.airline-header.airline-header-reservation {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
}
.airline-header.airline-header-reservation::before { display: none; }
.airline-header.airline-header-reservation .airline-nav .nav-link,
.airline-header.airline-header-reservation .airline-nav .nav-link > span,
.airline-header.airline-header-reservation .airline-nav > .nav-link::before,
.airline-header.airline-header-reservation .airline-nav > .group::before,
.airline-header.airline-header-reservation .header-phone-link,
.airline-header.airline-header-reservation .header-auth-login,
.airline-header.airline-header-reservation .airline-menu-toggle,
.airline-header.airline-header-reservation .airline-account > .group > button:not(.header-auth-button) {
    color: #000;
}
.airline-header.airline-header-reservation .airline-nav .nav-link:hover,
.airline-header.airline-header-reservation .header-phone-link:hover,
.airline-header.airline-header-reservation .header-auth-login:hover,
.airline-header.airline-header-reservation .airline-menu-toggle,
.airline-header.airline-header-reservation .airline-account > .group > button:not(.header-auth-button):hover {
    background: #eef7fc;
}

/* Compact hover highlight without a full-height dark block. */
.airline-header .airline-nav > .nav-link,
.airline-header .airline-nav > .group > .nav-link {
    height:36px;
    margin-block:14px;
    border-radius:6px;
}
.airline-header .airline-nav .nav-link:hover { background:rgb(0 116 189 / 18%); }

/* Solid white navigation after leaving the top of the page. */
.airline-header { transition:background-color .2s ease, box-shadow .2s ease; }
.airline-header.is-scrolled {
    background:#fff !important;
    color:#111827 !important;
    box-shadow:0 4px 20px rgb(0 116 189 / 10%) !important;
}
.airline-header.is-scrolled::before { display:none; }
/* Sticky white backdrop: square top, 10px lower corners (project rule). */
@media(min-width:1024px) {
    body.public-travel-site .airline-header.is-scrolled {
        background:transparent !important;
        box-shadow:none !important;
        border-bottom-color:transparent !important;
        isolation:isolate;
    }
    .airline-header.is-scrolled::after {
        content:"";
        position:absolute;
        inset:0 max(16px, calc((100% - 1440px) / 2));
        z-index:-1;
        pointer-events:none;
        background:#fff;
        border-radius:0 0 10px 10px;
        box-shadow:0 4px 20px rgb(0 116 189 / 10%);
    }
}
@media(min-width:1280px) {
    .airline-header.is-scrolled { --sticky-side-inset:max(116px, calc((100% - 1240px) / 2)); }
    .airline-header.is-scrolled::after { inset-inline:var(--sticky-side-inset); }
    .airline-header.is-scrolled > .container {
        width:calc(100% - 2 * var(--sticky-side-inset));
        max-width:none;
        padding-inline:12px;
    }
    .airline-header.is-scrolled .airline-logo { transform:translateX(var(--sticky-logo-offset, 0px)); }
    .airline-header.is-scrolled .airline-nav { margin-left:var(--sticky-logo-offset, 0px); }
}
.airline-header.is-scrolled .airline-nav .nav-link,
.airline-header.is-scrolled .airline-nav .nav-link > span,
.airline-header.is-scrolled .airline-nav > .nav-link::before,
.airline-header.is-scrolled .airline-nav > .group::before,
.airline-header.is-scrolled .header-phone-link,
.airline-header.is-scrolled .header-auth-login,
.airline-header.is-scrolled .airline-menu-toggle,
.airline-header.is-scrolled .airline-account > .group > button:not(.header-auth-button) {
    color:#111827;
}
.airline-header.is-scrolled .header-auth-login { background:#fff; }
.airline-header.is-scrolled .airline-menu-toggle,
.airline-header.is-scrolled .airline-nav .nav-link:hover,
.airline-header.is-scrolled .header-phone-link:hover,
.airline-header.is-scrolled .header-auth-login:hover,
.airline-header.is-scrolled .airline-account > .group > button:not(.header-auth-button):hover {
    background:#eef7fc;
}
@media(prefers-reduced-motion:reduce) {
    .airline-header { transition:none; }
}

/* Keep compact navigation beside the visible logo in normal and sticky layouts. */
@media (min-width:1024px) and (max-width:1279px) {
    .airline-header .airline-nav { margin-left:-8px; }
}
@media (min-width:1280px) {
    .airline-header .airline-nav {
        margin-left:min(0px, max(-92px, calc((1280px - 100vw) / 2 + 16px)));
    }
}
