/*
 * Site header, phone side menu and footer (Figma "Hakini Landing Page" >
 * Final Design: page headers, "Side Menu" and the footer with "Stay
 * Informed"). Loaded after the legacy stylesheets on every layouts.app page.
 */

.sHead,
.sMenu,
.sFoot {
    --ch-ink: #0f172a;
    --ch-slate: #35405e;
    --ch-navy: #004492;
    --ch-peach: #ffdbcc;
    --ch-coral: #e2735f;
    --ch-line: #d5dde7;
    --ch-font: Samim, sans-serif;
    --ch-font-600: Samim-m, Samim, sans-serif;
    --ch-font-700: Samim-b, Samim, sans-serif;
    font-family: var(--ch-font);
    font-synthesis: none;
}
.sHead *,
.sMenu *,
.sFoot * {
    box-sizing: border-box;
}
.sHead ul,
.sMenu ul,
.sFoot ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sHead a:hover,
.sHead a:focus,
.sMenu a:hover,
.sMenu a:focus,
.sFoot a:hover,
.sFoot a:focus {
    text-decoration: none;
}
html:lang(ar) .sHead,
html:lang(ar) .sMenu,
html:lang(ar) .sFoot {
    direction: rtl;
}

/* ---- Header ------------------------------------------------------------------- */

.sHead {
    z-index: 1000;
    width: 100%;
    background: #fff;
}
.sHead.is-fixed {
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
}
.sHead__skip {
    position: absolute;
    top: -100px;
    inset-inline-start: 16px;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--ch-navy);
    color: #fff;
}
.sHead__skip:focus {
    top: 8px;
    color: #fff;
}
.sHead__bar {
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}
.sHead__wrap {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 1200px;
    max-width: calc(100% - 40px);
    height: 96px;
    margin: 0 auto;
}
.sHead__logo {
    flex: none;
    line-height: 0;
}
.sHead__logo img {
    width: 136px;
    height: auto;
}
.sHead__nav {
    flex: 1;
    min-width: 0;
}
.sHead__nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}
.sHead__nav a,
.sHead__dropBtn {
    color: var(--ch-slate);
    font-family: var(--ch-font);
    font-size: 16px;
    white-space: nowrap;
}
.sHead__nav a:hover,
.sHead__nav a:focus,
.sHead__nav a[aria-current="page"] {
    color: var(--ch-navy);
}
.sHead__nav a[aria-current="page"] {
    font-family: var(--ch-font-600);
}
.sHead__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
}
.sHead__drop {
    position: relative;
}
.sHead__dropBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.sHead__dropBtn::after {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("../images/booking/chevron.svg") center / 12px no-repeat;
    mask: url("../images/booking/chevron.svg") center / 12px no-repeat;
    transition: transform 0.2s;
}
.sHead__dropBtn[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.sHead__dropBtn:hover,
.sHead__dropBtn[aria-expanded="true"] {
    color: var(--ch-navy);
}
.sHead__menu {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: -16px;
    z-index: 5;
    min-width: 220px;
    padding: 8px !important;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.sHead__menu--end {
    inset-inline-start: auto;
    inset-inline-end: -12px;
    min-width: 150px;
}
.sHead__menu[hidden] {
    display: none;
}
.sHead__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ch-slate);
    font-size: 15px;
    white-space: nowrap;
}
.sHead__menu a:hover,
.sHead__menu a:focus,
.sHead__menu a[aria-current] {
    background: #fdf2ec;
    color: var(--ch-navy);
}
.sHead__login {
    color: var(--ch-slate);
    font-family: var(--ch-font-600);
    font-size: 16px;
    white-space: nowrap;
}
.sHead__login:hover,
.sHead__login:focus {
    color: var(--ch-navy);
}
.sHead__start {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    background: var(--ch-peach);
    color: var(--ch-slate);
    font-family: var(--ch-font-700);
    font-size: 17px;
    white-space: nowrap;
}
.sHead__start:hover,
.sHead__start:focus {
    background: #ffcdb8;
    color: var(--ch-slate);
}
.sHead__lang .sHead__dropBtn {
    font-size: 16px;
}
.sHead__accountBtn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.sHead__accountBtn span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sHead__account .sHead__menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
}
.sHead__burger {
    display: none;
    padding: 4px;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
}

/* ---- Phone side menu ------------------------------------------------------------ */

.sMenu[hidden] {
    display: none;
}
.sMenu {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 24px 32px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fef1de 0%, #fde8e3 100%);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sMenu.is-open {
    opacity: 1;
    transform: none;
}
.sMenu__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(53, 64, 94, 0.15);
}
.sMenu__logo {
    margin-inline-end: auto;
    line-height: 0;
}
.sMenu__logo img {
    width: 104px;
    height: auto;
}
.sMenu__lang {
    color: var(--ch-slate);
    font-family: var(--ch-font-600);
    font-size: 17px;
}
.sMenu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-inline-end: -10px;
    padding: 0;
    border: 0;
    background: none;
}
.sMenu__nav > ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 20px !important;
}
.sMenu__nav a,
.sMenu__group summary {
    display: block;
    padding: 12px 0;
    color: var(--ch-slate);
    font-family: var(--ch-font-600);
    font-size: 20px;
    line-height: 28px;
}
.sMenu__nav a[aria-current="page"] {
    color: var(--ch-navy);
}
.sMenu__group summary {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* legacy CSS spreads summary items apart */
    gap: 10px;
    list-style: none;
    cursor: pointer;
}
.sMenu__group summary::-webkit-details-marker {
    display: none;
}
.sMenu__group summary::after {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("../images/booking/chevron.svg") center / 12px no-repeat;
    mask: url("../images/booking/chevron.svg") center / 12px no-repeat;
    transition: transform 0.2s;
}
.sMenu__group[open] summary::after {
    transform: rotate(180deg);
}
.sMenu__group ul {
    padding-inline-start: 16px !important;
    border-inline-start: 2px solid rgba(53, 64, 94, 0.12);
}
.sMenu__group ul a {
    padding: 8px 0;
    font-family: var(--ch-font);
    font-size: 17px;
}
.sMenu__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 32px;
}
.sMenu__start {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border-radius: 100px;
    background: var(--ch-navy);
    color: #fff;
    font-family: var(--ch-font-700);
    font-size: 20px;
}
.sMenu__start:hover,
.sMenu__start:focus {
    background: #003675;
    color: #fff;
}
.sMenu__login {
    margin: 0;
    color: var(--ch-slate);
    font-size: 15px;
}
.sMenu__login a {
    color: var(--ch-navy);
    font-family: var(--ch-font-700);
}
html.sMenu-lock,
html.sMenu-lock body {
    overflow: hidden;
}

/* ---- Footer --------------------------------------------------------------------- */

.sFoot {
    position: relative;
    margin-top: 40px;
    background: linear-gradient(to bottom, transparent 0, transparent 195px, var(--ch-navy) 195px);
    color: #fff;
}
.sFoot__stay {
    position: relative;
    z-index: 1;
    width: 1276px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 56px 24px 52px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    color: var(--ch-ink);
    text-align: center;
}
.sFoot__scribble {
    position: absolute;
    top: 15px;
    inset-inline-start: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 30px);
    object-fit: fill;
    pointer-events: none;
}
html:lang(ar) .sFoot__scribble {
    transform: scaleX(-1);
}
.sFoot__stayTitle {
    position: relative;
    margin: 0;
    color: var(--ch-ink);
    font-family: var(--ch-font-700);
    font-size: 40px;
    line-height: 48px;
}
.sFoot__stayText {
    position: relative;
    margin: 10px 0 0;
    font-size: 22px;
    line-height: 30px;
}
.sFoot__form {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.sFoot__form input {
    width: 534px;
    max-width: 100%;
    height: 60px;
    padding: 0 22px;
    border: 1px solid var(--ch-line);
    border-radius: 100px;
    outline: 0;
    background: #fff;
    color: var(--ch-ink);
    font-family: var(--ch-font);
    font-size: 16px;
}
.sFoot__form input:focus {
    border-color: var(--ch-navy);
}
.sFoot__form button {
    width: 275px;
    height: 60px;
    border: 0;
    border-radius: 100px;
    background: var(--ch-coral);
    color: #fff;
    font-family: var(--ch-font-700);
    font-size: 17px;
}
.sFoot__form button:hover,
.sFoot__form button:focus {
    background: #d4614d;
}
.sFoot__note {
    position: relative;
    margin: 16px 0 0;
    color: #146c43;
    font-size: 15px;
}
.sFoot__note--error {
    color: #b42318;
}
.sFoot__band {
    padding: 64px 0 0;
}
.sFoot__wrap {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 0.8fr;
    gap: 40px;
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}
.sFoot__wrap--five {
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.sFoot__brand img {
    width: 108px;
    height: auto;
}
.sFoot__brand p {
    max-width: 300px;
    margin: 18px 0 0;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}
.sFoot__brand strong {
    display: block;
    font-family: var(--ch-font-700);
    font-weight: normal;
}
.sFoot__col h2 {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--ch-font-700);
    font-size: 20px;
    line-height: 28px;
}
.sFoot__col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sFoot__col a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}
.sFoot__col a:hover,
.sFoot__col a:focus {
    color: #fff;
    text-decoration: underline;
}
.sFoot__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 1276px;
    margin-top: 56px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.sFoot__social {
    display: flex;
    gap: 20px;
}
.sFoot__social a {
    display: block;
    line-height: 0;
    opacity: 0.95;
}
.sFoot__social a:hover {
    opacity: 1;
}
.sFoot__rights {
    margin: 0;
    margin-inline-start: auto;
    color: #fff;
    font-size: 15px;
}

/* ---- Tablet and phone ---------------------------------------------------------- */

@media (max-width: 1199px) {
    .sHead__wrap {
        gap: 20px;
    }
    .sHead__nav > ul {
        gap: 22px;
    }
    .sHead__actions {
        gap: 14px;
    }
    .sHead__start {
        padding: 0 18px;
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .sHead__wrap {
        height: 76px;
    }
    .sHead__logo img {
        width: 104px;
    }
    .sHead__nav,
    .sHead__login,
    .sHead__lang,
    .sHead__accountBtn span {
        display: none;
    }
    .sHead__actions {
        margin-inline-start: auto;
    }
    .sHead__start {
        height: 40px;
        padding: 0 16px;
        font-size: 15px;
    }
    .sHead__burger {
        display: inline-flex;
    }
    .sFoot__wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sFoot__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .sMenu {
        padding: 20px 20px 28px;
    }
    .sFoot {
        margin-top: 24px;
        background: linear-gradient(to bottom, transparent 0, transparent 150px, var(--ch-navy) 150px);
    }
    .sFoot__stay {
        padding: 36px 16px 28px;
        border-radius: 20px;
    }
    .sFoot__stayTitle {
        font-size: 26px;
        line-height: 32px;
    }
    .sFoot__stayText {
        font-size: 16px;
        line-height: 24px;
    }
    .sFoot__form {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    .sFoot__form input,
    .sFoot__form button {
        width: 100%;
        height: 52px;
    }
    .sFoot__band {
        padding-top: 40px;
    }
    .sFoot__wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }
    .sFoot__col h2 {
        margin-bottom: 12px;
        font-size: 18px;
    }
    .sFoot__col ul {
        gap: 10px;
    }
    .sFoot__col a {
        font-size: 15px;
    }
    .sFoot__bottom {
        flex-direction: column;
        align-items: center;
        margin-top: 36px;
    }
    .sFoot__rights {
        margin-inline-start: 0;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sMenu,
    .sHead__dropBtn::after,
    .sMenu__group summary::after {
        transition: none;
    }
}
