header,
.inner-nav,
.liveaboards-nav {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Keep the browser viewport LTR. iOS Safari offsets a root RTL scroll canvas,
   so Arabic direction is scoped to .site-shell instead. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.site-shell {
    min-width: 0;
}

header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(126px, 156px) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    z-index: 40;
    width: min(1460px, calc(100% - 24px));
    min-height: 72px;
    padding: 10px 16px 10px 18px;
    border: 1px solid rgba(171, 196, 204, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(10, 31, 49, 0.96), rgba(8, 23, 37, 0.93));
    box-shadow: 0 18px 44px rgba(2, 11, 20, 0.26);
    color: #f5fbff;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
}

header nav::-webkit-scrollbar {
    display: none;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.nav-language,
.nav-language--menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(171, 216, 213, 0.3);
    border-radius: 999px;
    color: rgba(238, 250, 250, 0.95);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nav-language:hover,
.nav-language:focus-visible,
.nav-language--menu:hover,
.nav-language--menu:focus-visible {
    border-color: rgba(110, 213, 204, 0.68);
    background: rgba(110, 213, 204, 0.13);
    color: #ffffff;
    outline: none;
}

.nav-language--menu {
    display: none;
}

header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(236, 246, 248, 0.84);
    opacity: 1;
    white-space: nowrap;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

header nav a:hover,
header nav a.is-active,
header nav a:focus-visible {
    background: rgba(110, 213, 204, 0.14);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(110, 213, 204, 0.2);
    transform: translateY(-1px);
    outline: none;
}

header .nav-cta,
.liveaboards-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(110, 213, 204, 0.34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 68, 74, 0.98), rgba(12, 49, 55, 0.98));
    color: #eefbfb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

/* Keep Arabic navigation compact and intentional instead of inheriting English tracking. */
html[lang="ar"] header {
    direction: ltr;
    grid-template-columns: auto minmax(0, 1fr) minmax(108px, 142px);
    grid-template-areas: "actions nav brand";
}

html[lang="ar"] header .logo {
    grid-area: brand;
    justify-content: flex-end;
}

html[lang="ar"] header nav {
    grid-area: nav;
    direction: rtl;
}

html[lang="ar"] header .nav-actions {
    grid-area: actions;
    direction: ltr;
    justify-content: flex-start;
}

html[lang="ar"] header nav a {
    padding-inline: 11px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

html[lang="ar"] header .nav-cta {
    letter-spacing: 0;
}

html[lang="ar"] .hero-copy {
    width: min(760px, 60vw);
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

html[lang="ar"] body {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 17px;
    line-height: 1.9;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    letter-spacing: 0 !important;
    line-height: 1.35;
}

html[lang="ar"] .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(52px, 6.2vw, 90px);
    font-weight: 700;
}

html[lang="ar"] .hero-copy h1 em {
    font-style: normal;
    font-weight: 600;
}

html[lang="ar"] .hero-copy > p:last-child,
html[lang="ar"] .intro > div:last-child,
html[lang="ar"] .section-title > p,
html[lang="ar"] .exp-copy > p:not(.kicker),
html[lang="ar"] .enquiry > div > p,
html[lang="ar"] .why-book__description {
    font-size: 1.06em;
    line-height: 2;
}

html[lang="ar"] .kicker,
html[lang="ar"] .finder__eyebrow,
html[lang="ar"] .finder--premium small,
html[lang="ar"] .tabs--search button {
    letter-spacing: 0.04em;
}

header .nav-cta:hover,
header .nav-cta:focus-visible,
.liveaboards-nav__cta:hover,
.liveaboards-nav__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(5, 29, 32, 0.28);
    border-color: rgba(110, 213, 204, 0.56);
    outline: none;
}

header .logo,
.liveaboards-nav .logo,
.inner-nav .logo {
    color: #f7fbfc;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: clamp(152px, 12.5vw, 190px);
    overflow: hidden;
}

.logo-image {
    display: block;
    width: 100%;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) invert(1) opacity(0.96);
}

.logo.dark .logo-image {
    filter: brightness(0) invert(1) opacity(0.96);
}

.inner-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 82px;
    padding: 0 5vw;
    border-bottom: 1px solid rgba(183, 203, 208, 0.14);
    background:
        linear-gradient(180deg, rgba(9, 34, 51, 0.97), rgba(9, 34, 51, 0.94));
    box-shadow: 0 10px 30px rgba(7, 20, 32, 0.16);
}

.inner-nav a:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(238, 245, 247, 0.9);
    transition: background-color 0.22s ease, color 0.22s ease;
}

.inner-nav a:last-child:hover,
.inner-nav a:last-child:focus-visible {
    background: rgba(110, 213, 204, 0.12);
    color: #ffffff;
    outline: none;
}

.liveaboards-nav {
    position: fixed;
    top: 18px;
    left: 20px;
    right: 20px;
    z-index: 40;
    width: auto;
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    padding: 16px 20px 16px 24px;
    border: 1px solid rgba(185, 207, 214, 0.15);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(9, 29, 46, 0.96), rgba(7, 22, 35, 0.94));
    box-shadow: 0 18px 44px rgba(2, 11, 20, 0.28);
    color: #f5fbff;
}

.liveaboards-nav__links {
    display: flex;
    min-width: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.liveaboards-nav .logo {
    width: 176px;
    height: 44px;
    max-width: 176px;
}

.liveaboards-nav .logo-image {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 78%;
}

.liveaboards-nav__cta {
    justify-self: end;
    white-space: nowrap;
}

.liveaboards-nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-transform: uppercase;
    color: rgba(236, 246, 248, 0.84);
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.liveaboards-nav__links a:hover,
.liveaboards-nav__links a:focus-visible {
    background: rgba(110, 213, 204, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

@media (min-width: 641px) and (max-width: 1024px) {
    header {
        top: 12px;
        width: calc(100% - 24px);
        grid-template-columns: minmax(112px, 132px) minmax(0, 1fr) auto;
        min-height: 64px;
        padding: 10px 12px 10px 14px;
        border-radius: 18px;
    }

    header nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        min-width: 0;
        padding: 4px;
        border-radius: 999px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
        border: 0;
    }

    header nav a {
        min-height: 34px;
        padding: 0 8px;
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    header .nav-cta,
    .menu {
        display: none;
    }

    html[lang="ar"] header {
        grid-template-columns: auto minmax(0, 1fr) minmax(112px, 132px);
        grid-template-areas: "actions nav brand";
    }

    html[lang="ar"] header nav a {
        padding-inline: 8px;
        font-size: 9px;
    }

    .logo {
        width: 140px;
    }

    .logo-image {
        max-height: 40px;
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    header {
        top: 12px;
        width: calc(100% - 20px);
        grid-template-columns: minmax(118px, 1fr) auto;
        min-height: 64px;
        padding: 10px 14px 10px 16px;
        border-radius: 18px;
    }

    header nav {
        position: fixed;
        top: 84px;
        left: 10px;
        right: 10px;
        bottom: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        border: 1px solid rgba(171, 196, 204, 0.16);
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(11, 35, 53, 0.98), rgba(7, 24, 37, 0.98));
        box-shadow: 0 22px 40px rgba(3, 12, 21, 0.26);
        transform: translateY(-16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.22s ease,
            opacity 0.22s ease,
            visibility 0.22s ease;
    }

    header nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    header nav a {
        justify-content: flex-start;
        min-height: 42px;
        padding: 0 14px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        transition: background-color 0.22s ease;
    }

    .menu:hover,
    .menu:focus-visible {
        background: rgba(110, 213, 204, 0.14);
        outline: none;
    }

    .menu span {
        width: 16px;
        margin: 2px 0;
        background: #f6fbfc;
    }

    .logo {
        width: 152px;
    }

    .logo-image {
        max-height: 42px;
    }

    header {
        top: 8px;
        right: 8px;
        left: 8px;
        width: auto;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        transform: none;
        z-index: 100;
        padding: 8px 10px 8px 12px;
        border-radius: 16px;
    }

    header nav {
        top: 72px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        padding: 14px;
        border-radius: 18px;
    }

    header nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    header .nav-cta {
        display: none;
    }

    .nav-actions {
        display: inline-flex;
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
    }

    .nav-actions .nav-language {
        min-height: 36px;
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    header .logo {
        order: 1;
        flex: 0 1 auto;
    }

    header .menu {
        order: 3;
        flex: 0 0 auto;
    }

    .nav-language--menu {
        display: inline-flex;
        justify-content: flex-start;
        margin-top: 4px;
        border-color: rgba(110, 213, 204, 0.32);
        background: rgba(110, 213, 204, 0.08);
    }

    html[lang="ar"] header {
        display: flex;
        flex-direction: row;
        direction: ltr;
    }

    html[lang="ar"] header .logo {
        order: 3;
        margin-left: auto;
        justify-content: flex-end;
    }

    html[lang="ar"] header .menu {
        order: 1;
        margin: 0;
    }

    html[lang="ar"] header .nav-actions {
        order: 2;
        margin-left: 0;
    }

    html[lang="ar"] header nav {
        grid-area: auto;
        direction: rtl;
    }

    html[lang="ar"] header nav a {
        justify-content: flex-start;
        font-size: 13px;
        letter-spacing: 0;
    }

    html[lang="ar"] .hero-copy h1 {
        max-width: 100%;
        width: 100%;
        font-size: clamp(42px, 12.5vw, 60px);
        line-height: 1.38;
    }

    html[lang="ar"] .hero-copy {
        width: 100%;
        margin: 0;
        text-align: right;
    }

    /* Arabic headlines need more vertical room before the absolute booking panel. */
    html[lang="ar"] .finder--premium {
        bottom: -300px;
    }

    html[lang="ar"] .home-categories {
        padding-top: 310px;
    }

    html[lang="ar"] body {
        font-size: 16px;
    }

    .menu {
        display: inline-flex;
        flex-direction: column;
        gap: 3px;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(171, 196, 204, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
    }

    .menu span {
        display: block;
        width: 16px;
        height: 1.5px;
        margin: 0;
        border-radius: 999px;
        background: #f6fbfc;
    }

    .logo {
        width: 140px;
    }

    .logo-image {
        max-height: 38px;
    }

    .liveaboards-nav {
        top: 12px;
        width: calc(100% - 20px);
        display: flex;
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
        padding: 14px 16px;
        border-radius: 18px;
        left: 10px;
        right: 10px;
        margin: 0;
    }

    .liveaboards-nav .logo {
        width: 100%;
        max-width: 190px;
        height: 40px;
        justify-content: center;
    }

    .liveaboards-nav .logo-image {
        max-height: 42px;
    }

    .liveaboards-nav__links {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .liveaboards-nav__cta {
        width: auto;
    }

    .liveaboards-nav {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 14px 18px 16px;
    }

    .liveaboards-nav .logo {
        justify-content: flex-start;
        width: min(176px, 48vw);
        height: 38px;
    }

    .liveaboards-nav__links {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 6px;
    }

    .liveaboards-nav__links a {
        white-space: nowrap;
    }

    .liveaboards-nav__cta {
        width: 100%;
        margin-top: 10px;
    }
}

.listing-page {
    padding-top: 140px;
}

.detail {
    margin-top: 140px;
}

.article {
    margin-top: 140px;
}

body.nav-open {
    overflow: hidden;
}

.site-footer {
    background:
        radial-gradient(circle at top right, rgba(62, 141, 168, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(27, 78, 103, 0.16), transparent 30%),
        linear-gradient(180deg, #0b2230 0%, #071b26 100%);
    color: #e6edf3;
    padding: 0 24px;
}

.site-footer__shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 88px 0 52px;
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) repeat(3, minmax(150px, 0.72fr)) minmax(240px, 0.95fr);
    gap: 38px;
    align-items: start;
}

.site-footer__brand {
    display: grid;
    gap: 24px;
}

.site-footer__brand-lockup {
    display: grid;
    gap: 20px;
}

.site-footer__brand .logo-image {
    width: min(210px, 100%);
    height: auto;
    display: block;
}

.site-footer__tagline {
    margin: 0;
    max-width: 11ch;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.45;
    text-transform: uppercase;
    color: #f8fbff;
}

.site-footer__summary {
    margin: 0;
    max-width: 34ch;
    font-size: 15px;
    line-height: 1.8;
    color: #aab9c5;
}

.site-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 16px 24px;
    border: 1px solid rgba(173, 207, 220, 0.28);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f4fbff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.site-footer__cta-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
}

.site-footer__cta-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.site-footer__cta:hover,
.site-footer__cta:focus-visible {
    background: rgba(92, 196, 214, 0.12);
    border-color: rgba(125, 220, 235, 0.54);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(4, 18, 29, 0.22);
    outline: none;
}

.site-footer__group {
    display: grid;
    align-content: start;
    gap: 16px;
    padding-top: 6px;
}

.site-footer__heading {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f6fbff;
}

.site-footer__group a,
.site-footer__contact-list a,
.site-footer__legal a {
    width: fit-content;
    font-size: 15px;
    line-height: 1.55;
    color: #aab9c5;
    transition: color 0.22s ease, transform 0.22s ease;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible,
.site-footer__contact-list a:hover,
.site-footer__contact-list a:focus-visible,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
    outline: none;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__social-link {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(173, 207, 220, 0.2);
    color: #dcecf4;
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    color: #79dae7;
    border-color: rgba(121, 218, 231, 0.65);
    background: rgba(121, 218, 231, 0.08);
    transform: translateY(-2px);
    outline: none;
}

.site-footer__social-link svg {
    width: 19px;
    height: 19px;
    display: block;
}

.site-footer__contact-card {
    display: grid;
    gap: 14px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    min-width: 0;
}

.site-footer__contact-copy,
.site-footer__contact-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #9eb0bd;
}

.site-footer__contact-list {
    display: grid;
    gap: 12px;
}

.site-footer__bar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 0 34px;
    border-top: 1px solid rgba(157, 197, 214, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__bar small {
    font-size: 12px;
    color: #8099a6;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 1480px) {
    .site-footer__shell {
        max-width: 1320px;
        gap: 56px;
        grid-template-columns: minmax(280px, 1.1fr) repeat(3, minmax(150px, 0.8fr));
    }

    .site-footer__contact-card {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

@media (max-width: 1280px) {
    .site-footer__shell {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        gap: 44px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        max-width: 620px;
    }

    .site-footer__contact-card {
        grid-column: auto;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .site-footer {
        padding: 0 20px;
    }

    .site-footer__shell {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 64px 0 40px;
    }

    .site-footer__summary {
        max-width: none;
    }

    .site-footer__cta {
        width: 100%;
        justify-content: center;
    }

    .site-footer__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer__legal {
        gap: 14px 18px;
    }

    .site-footer__bar {
        padding: 18px 0 92px;
    }
}

.listing-page__intro {
    max-width: 620px;
    margin: -24px 0 32px;
    color: #607679;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .listing-page__intro {
        margin: -18px 24px 28px;
        font-size: 14px;
    }
}
