/* HP Cairo popups
   File: assets/css/popups.css
   Version: 0.1.61
*/

html.hpc-popup-lock,
html.hpc-popup-lock body {
    overflow: hidden;
}

.hpc-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.hpc-popup[hidden] {
    display: none;
}

.hpc-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(232, 190, 115, 0.10), transparent 34%),
        rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
}

.hpc-popup__dialog {
    position: relative;
    z-index: 1;
    color: #fff6e5;
}

.hpc-popup__dialog--booking {
    width: min(100%, 760px);
    max-height: none;
    overflow: visible;
    padding: clamp(20px, 2.2vw, 28px);
    border: 1px solid rgba(232, 190, 115, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 0%, rgba(232, 190, 115, 0.14), transparent 34%),
        radial-gradient(circle at 92% 16%, rgba(232, 190, 115, 0.08), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(8, 4, 3, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 34px 110px rgba(0, 0, 0, 0.62);
}

.hpc-popup__dialog--booking::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(232, 190, 115, 0.08);
    border-radius: 6px;
    pointer-events: none;
}

.hpc-popup__dialog--booking::after {
    content: "CAIRO";
    position: absolute;
    right: -0.12em;
    bottom: -0.18em;
    color: rgba(255, 226, 162, 0.030);
    -webkit-text-stroke: 1px rgba(255, 226, 162, 0.045);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(82px, 17vw, 176px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.hpc-popup__close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(232, 190, 115, 0.26);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.34);
    color: #f1d39a;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.hpc-popup__close:hover {
    color: #fff3d6;
    border-color: rgba(255, 226, 162, 0.54);
    background: rgba(232, 190, 115, 0.08);
}

.hpc-popup__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
}

.hpc-popup__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hpc-popup__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.hpc-booking-popup__head,
.hpc-booking-popup__form {
    position: relative;
    z-index: 2;
}

.hpc-booking-popup__head {
    width: 100%;
    padding: 0 54px;
    text-align: center;
}

.hpc-booking-popup__eyebrow {
    display: none;
}

.hpc-booking-popup__title {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    color: #fffaf0;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(25px, 2.35vw, 34px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.043em;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 5px 26px rgba(0, 0, 0, 0.82), 0 0 24px rgba(232, 190, 115, 0.10);
}

.hpc-booking-popup__title::before,
.hpc-booking-popup__title::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 190, 115, 0.34));
    box-shadow: 0 0 18px rgba(232, 190, 115, 0.12);
}

.hpc-booking-popup__title::after {
    background: linear-gradient(90deg, rgba(232, 190, 115, 0.34), transparent);
}

.hpc-booking-popup__lead {
    display: none;
}

.hpc-booking-popup__form {
    margin-top: 16px;
}

.hpc-booking-popup__top,
.hpc-booking-popup__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hpc-booking-popup__label {
    display: block;
    margin-bottom: 6px;
    color: #fff8eb;
    font-size: 12px;
    font-weight: 800;
}

.hpc-booking-popup__stepper,
.hpc-booking-popup__dateWrap,
.hpc-booking-popup__field input,
.hpc-booking-popup__field select {
    min-height: 44px;
    border: 1px solid rgba(232, 190, 115, 0.16);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff6e5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hpc-booking-popup__stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    overflow: hidden;
}

.hpc-booking-popup__stepper button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #f1d39a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.hpc-booking-popup__stepper strong {
    display: flex;
    justify-content: center;
    color: #fff7e7;
    font-size: 16px;
    font-weight: 800;
}

.hpc-booking-popup__dateWrap {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: center;
    padding: 0 14px;
}

.hpc-booking-popup__dateWrap svg {
    width: 20px;
    height: 20px;
    fill: rgba(241, 211, 154, 0.88);
}

.hpc-booking-popup__dateWrap input {
    min-height: 42px;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff6e5;
    font: inherit;
}

.hpc-booking-popup__time {
    margin-top: 11px;
}

.hpc-booking-popup__timeHead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hpc-booking-popup__hint {
    color: rgba(241, 211, 154, 0.88);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hpc-booking-popup__slots {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.hpc-booking-popup__slot {
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(232, 190, 115, 0.14);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 244, 223, 0.82);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.hpc-booking-popup__slot:hover,
.hpc-booking-popup__slot.is-active {
    background: rgba(232, 190, 115, 0.12);
    border-color: rgba(255, 226, 162, 0.44);
    color: #fff7e7;
    box-shadow: 0 0 22px rgba(232, 190, 115, 0.10);
}

.hpc-booking-popup__grid {
    margin-top: 11px;
}

.hpc-booking-popup__field input,
.hpc-booking-popup__field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font: inherit;
}

.hpc-booking-popup__field input::placeholder {
    color: rgba(255, 244, 223, 0.42);
}

.hpc-booking-popup__field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(241,211,154,0.85) 50%), linear-gradient(135deg, rgba(241,211,154,0.85) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.hpc-booking-popup__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 11px;
    color: rgba(255, 244, 223, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.hpc-booking-popup__check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #cfa45e;
}

.hpc-booking-popup__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 0 26px;
    border: 1px solid rgba(232, 190, 115, 0.34);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff3da;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 0 34px rgba(232, 190, 115, 0.08);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hpc-booking-popup__submit:hover {
    background: rgba(232, 190, 115, 0.08);
    border-color: rgba(255, 226, 162, 0.54);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(232, 190, 115, 0.14);
}


@media (min-width: 641px) and (max-height: 820px) {
    .hpc-popup {
        padding: 14px;
    }

    .hpc-popup__dialog--booking {
        padding: 22px;
    }

    .hpc-booking-popup__hint {
        font-size: 10px;
    }

    .hpc-booking-popup__title {
        font-size: 30px;
    }

    .hpc-booking-popup__slot {
        min-height: 31px;
    }
}

@media (max-width: 640px) {
    .hpc-popup {
        align-items: end;
        padding: 12px;
    }

    .hpc-popup__dialog--booking {
        width: 100%;
        max-height: 92vh;
        overflow: auto;
        padding: 18px 14px 16px;
        border-radius: 8px;
    }

    .hpc-popup__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .hpc-booking-popup__head {
        padding: 0 44px;
    }

    .hpc-booking-popup__title {
        grid-template-columns: minmax(12px, 1fr) auto minmax(12px, 1fr);
        gap: 10px;
        font-size: clamp(22px, 6.2vw, 28px);
        white-space: nowrap;
    }

    .hpc-booking-popup__top,
    .hpc-booking-popup__grid {
        grid-template-columns: 1fr;
    }

    .hpc-booking-popup__slots {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding: 0 0 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hpc-booking-popup__slots::-webkit-scrollbar {
        display: none;
    }

    .hpc-booking-popup__slot {
        flex: 0 0 auto;
        min-width: 76px;
        min-height: 36px;
        font-size: 12px;
    }

    .hpc-booking-popup__timeHead {
        display: grid;
        justify-items: start;
        gap: 2px;
    }

    .hpc-booking-popup__submit {
        min-height: 50px;
        font-size: 13px;
        letter-spacing: 0.11em;
    }
}


/* Rules popup */
.hpc-popup__dialog--rules {
    width: min(100%, 860px);
    max-height: min(90vh, 820px);
    overflow: hidden;
    padding: clamp(22px, 2.6vw, 34px);
    border: 1px solid rgba(232, 190, 115, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 14% 0%, rgba(232, 190, 115, 0.14), transparent 34%),
        radial-gradient(circle at 94% 14%, rgba(232, 190, 115, 0.08), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(8, 4, 3, 0.97);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 34px 110px rgba(0, 0, 0, 0.62);
}

.hpc-popup__dialog--rules::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(232, 190, 115, 0.08);
    border-radius: 6px;
    pointer-events: none;
}

.hpc-popup__dialog--rules::after {
    content: "CAIRO";
    position: absolute;
    right: -0.10em;
    bottom: -0.17em;
    color: rgba(255, 226, 162, 0.030);
    -webkit-text-stroke: 1px rgba(255, 226, 162, 0.045);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(82px, 15vw, 176px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.hpc-rules-popup__head,
.hpc-rules-popup__body {
    position: relative;
    z-index: 2;
}

.hpc-rules-popup__head {
    padding: 0 54px;
    text-align: center;
}

.hpc-rules-popup__title {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    color: #fffaf0;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(25px, 2.35vw, 34px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.043em;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 5px 26px rgba(0, 0, 0, 0.82), 0 0 24px rgba(232, 190, 115, 0.10);
}

.hpc-rules-popup__title::before,
.hpc-rules-popup__title::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 190, 115, 0.34));
    box-shadow: 0 0 18px rgba(232, 190, 115, 0.12);
}

.hpc-rules-popup__title::after {
    background: linear-gradient(90deg, rgba(232, 190, 115, 0.34), transparent);
}

.hpc-rules-popup__lead {
    width: min(100%, 680px);
    margin: 14px auto 0;
    color: rgba(255, 244, 223, 0.78);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-wrap: balance;
}

.hpc-rules-popup__body {
    margin-top: 20px;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 190, 115, 0.42) rgba(0, 0, 0, 0.18);
}

.hpc-rules-popup__body::-webkit-scrollbar {
    width: 8px;
}

.hpc-rules-popup__body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.hpc-rules-popup__body::-webkit-scrollbar-thumb {
    background: rgba(232, 190, 115, 0.42);
    border-radius: 999px;
}

.hpc-rules-popup__list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hpc-rules-popup__item {
    position: relative;
    min-width: 0;
    min-height: 104px;
    display: grid;
    overflow: hidden;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 16px 15px;
    border: 1px solid rgba(232, 190, 115, 0.14);
    border-radius: 5px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.010)),
        rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hpc-rules-popup__item::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(232, 190, 115, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.hpc-rules-popup__num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(232, 190, 115, 0.20);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    color: #f1d39a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hpc-rules-popup__text {
    min-width: 0;
    color: rgba(255, 244, 223, 0.84);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .hpc-popup__dialog--rules {
        width: min(100%, 560px);
        max-height: min(92vh, 760px);
        padding: 22px 16px 18px;
    }

    .hpc-rules-popup__head {
        padding: 0 48px 0 6px;
    }

    .hpc-rules-popup__title {
        grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
        gap: 12px;
        font-size: clamp(24px, 6vw, 30px);
    }

    .hpc-rules-popup__lead {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.48;
    }

    .hpc-rules-popup__body {
        max-height: calc(92vh - 148px);
        margin-top: 16px;
        padding-right: 2px;
    }

    .hpc-rules-popup__list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hpc-rules-popup__item {
        min-height: auto;
        grid-template-columns: 38px 1fr;
        gap: 10px;
        padding: 13px 12px;
    }

    .hpc-rules-popup__num {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .hpc-rules-popup__text {
        font-size: 12.5px;
        line-height: 1.45;
    }
}

/* v0.1.62: mobile booking popup compact scroll fix */
@media (max-width: 640px) {
    html.hpc-popup-lock,
    html.hpc-popup-lock body {
        overflow: hidden !important;
        height: 100% !important;
    }

    .hpc-popup--booking {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: max(8px, env(safe-area-inset-top)) 9px max(10px, env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    .hpc-popup--booking .hpc-popup__backdrop {
        position: fixed !important;
    }

    .hpc-popup__dialog--booking {
        width: min(100%, 430px) !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 14px 12px 12px !important;
        overflow: visible !important;
        border-radius: 7px !important;
    }

    .hpc-popup__dialog--booking::before {
        inset: 8px !important;
        border-radius: 5px !important;
    }

    .hpc-popup__dialog--booking::after {
        display: none !important;
    }

    .hpc-popup--booking .hpc-popup__close {
        position: fixed !important;
        z-index: 10005 !important;
        top: max(10px, env(safe-area-inset-top)) !important;
        right: max(10px, env(safe-area-inset-right)) !important;
        width: 34px !important;
        height: 34px !important;
        border-color: rgba(232, 190, 115, 0.34) !important;
        background: rgba(8, 4, 3, 0.86) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
    }

    .hpc-popup--booking .hpc-popup__close span {
        width: 17px !important;
    }

    .hpc-booking-popup__head {
        padding: 0 38px 0 0 !important;
        text-align: left !important;
    }

    .hpc-booking-popup__title {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        color: #fffaf0 !important;
        font-size: clamp(21px, 6vw, 24px) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em !important;
        white-space: normal !important;
        text-align: left !important;
        text-wrap: balance !important;
    }

    .hpc-booking-popup__title::before,
    .hpc-booking-popup__title::after {
        display: none !important;
    }

    .hpc-booking-popup__form {
        margin-top: 10px !important;
    }

    .hpc-booking-popup__top {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
        gap: 8px !important;
    }

    .hpc-booking-popup__grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }

    .hpc-booking-popup__label {
        margin-bottom: 4px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .hpc-booking-popup__stepper,
    .hpc-booking-popup__dateWrap,
    .hpc-booking-popup__field input,
    .hpc-booking-popup__field select {
        min-height: 38px !important;
        height: 38px !important;
    }

    .hpc-booking-popup__stepper {
        grid-template-columns: 34px 1fr 34px !important;
    }

    .hpc-booking-popup__stepper button {
        width: 34px !important;
        height: 38px !important;
        font-size: 20px !important;
    }

    .hpc-booking-popup__stepper strong {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .hpc-booking-popup__dateWrap {
        grid-template-columns: 18px 1fr !important;
        gap: 7px !important;
        padding: 0 8px !important;
    }

    .hpc-booking-popup__dateWrap svg {
        width: 17px !important;
        height: 17px !important;
    }

    .hpc-booking-popup__dateWrap input {
        min-height: 36px !important;
        font-size: 13px !important;
    }

    .hpc-booking-popup__time {
        margin-top: 8px !important;
    }

    .hpc-booking-popup__timeHead {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .hpc-booking-popup__hint {
        font-size: 9px !important;
        letter-spacing: 0.07em !important;
        white-space: nowrap !important;
    }

    .hpc-booking-popup__slots {
        display: flex !important;
        gap: 6px !important;
        margin-top: 6px !important;
        padding: 0 0 2px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .hpc-booking-popup__slots::-webkit-scrollbar {
        display: none !important;
    }

    .hpc-booking-popup__slot {
        flex: 0 0 auto !important;
        min-width: 62px !important;
        min-height: 31px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .hpc-booking-popup__field input,
    .hpc-booking-popup__field select {
        padding: 0 11px !important;
        font-size: 14px !important;
    }

    .hpc-booking-popup__check {
        gap: 8px !important;
        margin-top: 8px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .hpc-booking-popup__check input {
        flex: 0 0 auto !important;
        width: 15px !important;
        height: 15px !important;
    }

    .hpc-booking-popup__submit {
        min-height: 42px !important;
        margin-top: 9px !important;
        padding: 0 16px !important;
        font-size: 12px !important;
        letter-spacing: 0.13em !important;
    }
}

@media (max-width: 380px) {
    .hpc-booking-popup__top {
        grid-template-columns: 1fr !important;
    }

    .hpc-booking-popup__title {
        font-size: 21px !important;
    }
}

/* v0.1.63: emergency guard — hidden popups must stay hidden on mobile too */
.hpc-popup[hidden],
.hpc-popup[aria-hidden="true"],
.hpc-popup--booking[hidden],
.hpc-popup--booking[aria-hidden="true"],
.hpc-popup--age[hidden],
.hpc-popup--age[aria-hidden="true"],
.hpc-popup--rules[hidden],
.hpc-popup--rules[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 640px) {
    .hpc-popup[hidden],
    .hpc-popup[aria-hidden="true"],
    .hpc-popup--booking[hidden],
    .hpc-popup--booking[aria-hidden="true"],
    .hpc-popup--age[hidden],
    .hpc-popup--age[aria-hidden="true"],
    .hpc-popup--rules[hidden],
    .hpc-popup--rules[aria-hidden="true"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* v0.1.64: image menu popup */
.hpc-popup--menu {
    z-index: 10020;
}

.hpc-popup__dialog--menu {
    width: min(100%, 1180px);
    max-height: min(94dvh, 940px);
    padding: clamp(16px, 2vw, 26px);
    border: 1px solid rgba(232, 190, 115, 0.24);
    border-radius: 10px;
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 190, 115, 0.13), transparent 34%),
        radial-gradient(circle at 100% 22%, rgba(232, 190, 115, 0.08), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(8, 4, 3, 0.97);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.66);
    overflow: hidden;
}

.hpc-menu-popup {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    max-height: calc(94dvh - 52px);
    color: #fff6e5;
}

.hpc-menu-popup__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.74fr);
    gap: 18px;
    align-items: end;
    padding-right: 58px;
}

.hpc-menu-popup__kicker {
    display: block;
    margin-bottom: 7px;
    color: #f1d39a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hpc-menu-popup__title {
    margin: 0;
    color: #fffaf0;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.045em;
    text-shadow: 0 0 26px rgba(232, 190, 115, 0.12), 0 5px 24px rgba(0, 0, 0, 0.72);
}

.hpc-menu-popup__hint {
    margin: 0;
    color: rgba(255, 244, 223, 0.68);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.hpc-menu-popup__toolbar {
    display: grid;
    grid-template-columns: 46px minmax(64px, auto) 46px auto;
    gap: 9px;
    align-items: center;
    justify-content: start;
}

.hpc-menu-popup__tool,
.hpc-menu-popup__zoom,
.hpc-menu-popup__nav {
    border: 1px solid rgba(232, 190, 115, 0.22);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.32);
    color: #f1d39a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.hpc-menu-popup__tool:hover,
.hpc-menu-popup__zoom:hover,
.hpc-menu-popup__nav:hover {
    color: #fff2d3;
    border-color: rgba(255, 226, 162, 0.54);
    background: rgba(232, 190, 115, 0.09);
    box-shadow: 0 0 28px rgba(232, 190, 115, 0.10);
}

.hpc-menu-popup__tool {
    width: 46px;
    height: 40px;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
}

.hpc-menu-popup__counter {
    min-width: 64px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(232, 190, 115, 0.14);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 244, 223, 0.78);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.10em;
}

.hpc-menu-popup__zoom {
    min-height: 40px;
    padding: 0 16px;
    color: #fff1cf;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.hpc-menu-popup__viewport {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 10px 76px;
    border: 1px solid rgba(232, 190, 115, 0.14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 190, 115, 0.06), transparent 48%),
        rgba(0, 0, 0, 0.24);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.hpc-menu-popup__figure {
    width: 100%;
    min-height: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.hpc-menu-popup__figure img {
    display: block;
    width: auto;
    max-width: min(100%, 520px);
    max-height: min(66dvh, 680px);
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(232, 190, 115, 0.22);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.hpc-menu-popup__figure figcaption {
    color: rgba(255, 244, 223, 0.72);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.hpc-menu-popup__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 72px;
    transform: translateY(-50%);
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
}

.hpc-menu-popup__nav--prev {
    left: 14px;
}

.hpc-menu-popup__nav--next {
    right: 14px;
}

.hpc-menu-popup__thumbs {
    min-width: 0;
    display: flex;
    gap: 8px;
    padding: 2px 2px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 190, 115, 0.42) rgba(0, 0, 0, 0.28);
}

.hpc-menu-popup__thumb {
    position: relative;
    flex: 0 0 66px;
    width: 66px;
    height: 86px;
    padding: 0;
    border: 1px solid rgba(232, 190, 115, 0.16);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
    cursor: pointer;
    opacity: .62;
    transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}

.hpc-menu-popup__thumb:hover,
.hpc-menu-popup__thumb.is-active {
    opacity: 1;
    border-color: rgba(255, 226, 162, 0.62);
    transform: translateY(-1px);
}

.hpc-menu-popup__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hpc-menu-popup__thumb span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.70);
    color: #f1d39a;
    font-size: 10px;
    font-weight: 900;
}

.hpc-popup--menu.is-zoomed .hpc-menu-popup__viewport {
    place-items: start center;
}

.hpc-popup--menu.is-zoomed .hpc-menu-popup__figure img {
    width: min(980px, 160vw);
    max-width: none;
    max-height: none;
}

.hpc-popup--menu.is-zoomed .hpc-menu-popup__zoom {
    color: #101010;
    background: linear-gradient(180deg, #fff3cf, #d8aa5e);
    border-color: rgba(255, 226, 162, 0.72);
}

.hpc-popup--menu[hidden],
.hpc-popup--menu[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 760px) {
    .hpc-popup--menu {
        padding: 10px;
    }

    .hpc-popup__dialog--menu {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 14px;
        border-radius: 9px;
    }

    .hpc-menu-popup {
        max-height: calc(100dvh - 48px);
        gap: 10px;
    }

    .hpc-menu-popup__head {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-right: 48px;
    }

    .hpc-menu-popup__kicker {
        margin-bottom: 5px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .hpc-menu-popup__title {
        font-size: 26px;
    }

    .hpc-menu-popup__hint {
        font-size: 12px;
        line-height: 1.35;
    }

    .hpc-menu-popup__toolbar {
        grid-template-columns: 40px minmax(50px, auto) 40px 1fr;
        gap: 7px;
    }

    .hpc-menu-popup__tool {
        width: 40px;
        height: 36px;
        font-size: 28px;
    }

    .hpc-menu-popup__counter,
    .hpc-menu-popup__zoom {
        height: 36px;
        min-height: 36px;
    }

    .hpc-menu-popup__zoom {
        padding: 0 10px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .hpc-menu-popup__viewport {
        width: 100%;
        padding: 8px 0;
        place-items: center;
    }

    .hpc-menu-popup__figure {
        width: 100%;
    }

    .hpc-menu-popup__figure img {
        width: auto;
        max-width: calc(100vw - 50px);
        max-height: calc(100dvh - 270px);
    }

    .hpc-menu-popup__nav {
        display: none;
    }

    .hpc-menu-popup__thumb {
        flex-basis: 54px;
        width: 54px;
        height: 72px;
    }

    .hpc-popup--menu.is-zoomed .hpc-menu-popup__figure img {
        width: 170vw;
        max-width: none;
        max-height: none;
    }
}


/* v0.1.65: menu popup cleaner head + more breathing room for images */
.hpc-menu-popup {
    gap: 12px;
}

.hpc-menu-popup__head {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding-right: 58px;
}

.hpc-menu-popup__kicker {
    margin-bottom: 0;
    color: rgba(241, 211, 154, 0.92);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hpc-menu-popup__title,
.hpc-menu-popup__hint {
    display: none !important;
}

.hpc-menu-popup__toolbar {
    margin-top: -2px;
}

.hpc-menu-popup__viewport {
    padding: 16px 84px 18px;
    border-color: rgba(232, 190, 115, 0.10);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 190, 115, 0.04), transparent 52%),
        rgba(0, 0, 0, 0.16);
}

.hpc-menu-popup__figure {
    gap: 12px;
}

.hpc-menu-popup__figure img {
    max-width: min(100%, 560px);
    max-height: min(68dvh, 720px);
    border-color: rgba(232, 190, 115, 0.18);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.34);
}

@media (max-width: 760px) {
    .hpc-menu-popup {
        gap: 9px;
    }

    .hpc-menu-popup__head {
        min-height: 18px;
        padding-right: 44px;
    }

    .hpc-menu-popup__kicker {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .hpc-menu-popup__toolbar {
        margin-top: 0;
    }

    .hpc-menu-popup__viewport {
        padding: 12px 8px 14px;
        border-radius: 9px;
    }

    .hpc-menu-popup__figure {
        gap: 10px;
    }

    .hpc-menu-popup__figure img {
        max-width: calc(100vw - 42px);
        max-height: calc(100dvh - 238px);
    }
}

/* v0.1.66: rules popup mobile top-safe layout fix */
@media (max-width: 760px) {
    .hpc-popup--rules {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: max(12px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        box-sizing: border-box !important;
    }

    .hpc-popup--rules .hpc-popup__backdrop {
        position: fixed !important;
    }

    .hpc-popup--rules .hpc-popup__dialog--rules {
        width: min(100%, 560px) !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 18px 12px 14px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    .hpc-popup--rules .hpc-popup__dialog--rules::before {
        inset: 9px !important;
        border-radius: 8px !important;
    }

    .hpc-popup--rules .hpc-popup__dialog--rules::after {
        right: -0.18em !important;
        bottom: -0.13em !important;
        font-size: clamp(80px, 28vw, 138px) !important;
    }

    .hpc-popup--rules .hpc-popup__close {
        position: fixed !important;
        top: max(12px, env(safe-area-inset-top)) !important;
        right: 12px !important;
        z-index: 10030 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 7px !important;
        background: rgba(9, 5, 4, 0.86) !important;
        border-color: rgba(241, 211, 154, 0.44) !important;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), 0 0 24px rgba(232, 190, 115, 0.10) !important;
        backdrop-filter: blur(10px) !important;
    }

    .hpc-popup--rules .hpc-popup__close span {
        width: 18px !important;
        height: 2px !important;
    }

    .hpc-popup--rules .hpc-rules-popup__head {
        padding: 0 46px 0 0 !important;
        text-align: left !important;
    }

    .hpc-popup--rules .hpc-rules-popup__title {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        color: #fffaf0 !important;
        font-size: clamp(28px, 8.4vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.055em !important;
        white-space: normal !important;
        text-align: left !important;
        text-wrap: balance !important;
    }

    .hpc-popup--rules .hpc-rules-popup__title::before,
    .hpc-popup--rules .hpc-rules-popup__title::after {
        display: none !important;
    }

    .hpc-popup--rules .hpc-rules-popup__lead {
        width: 100% !important;
        margin: 12px 0 0 !important;
        color: rgba(255, 244, 223, 0.78) !important;
        font-size: 13px !important;
        line-height: 1.46 !important;
        text-align: left !important;
        text-wrap: initial !important;
    }

    .hpc-popup--rules .hpc-rules-popup__body {
        max-height: none !important;
        margin-top: 16px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .hpc-popup--rules .hpc-rules-popup__list {
        gap: 9px !important;
    }

    .hpc-popup--rules .hpc-rules-popup__item {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        gap: 11px !important;
        padding: 15px 12px !important;
        border-radius: 8px !important;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.010)),
            rgba(0, 0, 0, 0.20) !important;
    }

    .hpc-popup--rules .hpc-rules-popup__num {
        width: 36px !important;
        height: 36px !important;
        font-size: 11px !important;
    }

    .hpc-popup--rules .hpc-rules-popup__text {
        font-size: clamp(13px, 3.55vw, 15px) !important;
        line-height: 1.44 !important;
        font-weight: 650 !important;
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 380px) {
    .hpc-popup--rules {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .hpc-popup--rules .hpc-popup__dialog--rules {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hpc-popup--rules .hpc-rules-popup__item {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 13px 10px !important;
    }

    .hpc-popup--rules .hpc-rules-popup__num {
        width: 32px !important;
        height: 32px !important;
    }
}

/* v0.1.66 final guard: hidden popups must stay hidden after mobile display overrides */
.hpc-popup[hidden],
.hpc-popup[aria-hidden="true"],
.hpc-popup--booking[hidden],
.hpc-popup--booking[aria-hidden="true"],
.hpc-popup--age[hidden],
.hpc-popup--age[aria-hidden="true"],
.hpc-popup--rules[hidden],
.hpc-popup--rules[aria-hidden="true"],
.hpc-popup--menu[hidden],
.hpc-popup--menu[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* v0.1.67: center rules popup mobile heading and intro */
@media (max-width: 760px) {
    .hpc-popup--rules .hpc-rules-popup__head {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 44px !important;
        text-align: center !important;
    }

    .hpc-popup--rules .hpc-rules-popup__title {
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        text-wrap: balance !important;
    }

    .hpc-popup--rules .hpc-rules-popup__lead {
        width: min(100%, 520px) !important;
        margin: 12px auto 0 !important;
        text-align: center !important;
        text-wrap: balance !important;
    }
}

@media (max-width: 380px) {
    .hpc-popup--rules .hpc-rules-popup__head {
        padding: 0 38px !important;
    }
}
