.hero-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 50%), linear-gradient(to bottom, transparent 0%, black 20%, black 75%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 25%, black 60%), linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
    -webkit-mask-composite: source-in;
}

body.mobile-menu-lock {
    overflow: hidden;
}

#mobile-menu {
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 300ms;
}

#mobile-menu .mobile-menu-overlay {
    opacity: 0;
    transition: opacity 300ms ease;
}

#mobile-menu .mobile-menu-panel {
    transform: translateX(100%);
    transition: transform 300ms ease;
    will-change: transform;
}

#mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

#mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
}

#mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

#restaurant-mobile-cart {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

#restaurant-mobile-cart.is-bumped {
    animation: restaurant-mobile-cart-bump 500ms ease;
}

@keyframes restaurant-mobile-cart-bump {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    }
    45% {
        transform: translateY(-8px) scale(1.025);
        box-shadow: 0 24px 36px -8px rgb(29 59 49 / 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    #mobile-menu,
    #mobile-menu .mobile-menu-overlay,
    #mobile-menu .mobile-menu-panel,
    #restaurant-mobile-cart {
        transition: none;
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   Booking dates + availability calendar

   The trigger row lives on the dark booking card; the calendar itself is a
   light panel that hangs below it on desktop and turns into a bottom sheet on
   phones, where a 640px popover would not fit.
   --------------------------------------------------------------------------- */

.booking-dates {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.booking-dates:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.booking-dates__field {
    display: block;
    width: 100%;
    padding: 12px 14px 13px;
    text-align: left;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.booking-dates__field:hover {
    background: rgba(255, 255, 255, 0.06);
}

.booking-dates__field.is-active {
    background: rgba(91, 145, 137, 0.22);
    box-shadow: inset 0 0 0 1px rgba(91, 145, 137, 0.75);
}

.booking-dates__label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.booking-dates__value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #FFFFFF;
}

.booking-dates__value.is-empty {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
}

.booking-dates__sep {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.28);
}

.booking-dates__sep svg {
    width: 16px;
    height: 16px;
}

.booking-dates__nights {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #C2A878;
    color: #1A2B22;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Steppers supply their own +/- buttons, so the native spinners would only
   crowd the field. */
.booking-card input[type="number"].js-booking-service,
.booking-card input[type="number"].booking-qty__input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.booking-card input[type="number"].js-booking-service::-webkit-outer-spin-button,
.booking-card input[type="number"].js-booking-service::-webkit-inner-spin-button,
.booking-card input[type="number"].booking-qty__input::-webkit-outer-spin-button,
.booking-card input[type="number"].booking-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Guest counters: same shape as the field they replace, so the form keeps its
   rhythm. */
.booking-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 180ms ease;
}

.booking-qty:focus-within {
    border-color: #5B9189;
}

.booking-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.booking-qty__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.booking-qty__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.booking-qty__input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.booking-qty__input:focus {
    outline: none;
}

/* Panel ------------------------------------------------------------------- */

.bkc {
    --bkc-ink: #243229;
    --bkc-muted: #8A867C;
    --bkc-line: #E7E2D8;
    --bkc-accent: #5B9189;
    --bkc-accent-soft: rgba(91, 145, 137, 0.14);
    --bkc-paper: #FCFBF9;

    position: absolute;
    z-index: 60;
    top: calc(100% + 12px);
    right: 0;
    width: min(660px, calc(100vw - 32px));
    color: var(--bkc-ink);
    font-size: 13px;
    text-align: left;
}

.bkc[hidden] {
    display: none;
}

.bkc__backdrop {
    display: none;
}

.bkc__sheet {
    border: 1px solid var(--bkc-line);
    border-radius: 22px;
    background: var(--bkc-paper);
    box-shadow: 0 30px 70px -25px rgba(26, 43, 34, 0.45), 0 4px 14px rgba(26, 43, 34, 0.08);
    overflow: hidden;
}

.bkc__sheet.is-entering {
    animation: bkc-pop 180ms ease-out;
}

@keyframes bkc-pop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bkc__grabber {
    display: none;
}

.bkc__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid var(--bkc-line);
}

.bkc__eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bkc-accent);
}

.bkc__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.15;
    color: var(--bkc-ink);
}

.bkc__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    color: var(--bkc-muted);
    transition: background-color 150ms ease, color 150ms ease;
}

.bkc__close:hover {
    background: rgba(36, 50, 41, 0.06);
    color: var(--bkc-ink);
}

.bkc__close svg {
    width: 17px;
    height: 17px;
}

/* Months ------------------------------------------------------------------ */

.bkc__body {
    position: relative;
    padding: 18px 22px 6px;
}

.bkc__months {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.bkc__month-title {
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    text-align: center;
    color: var(--bkc-ink);
}

.bkc__month-title span {
    color: var(--bkc-muted);
}

.bkc__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bkc-line);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: var(--bkc-muted);
}

.bkc__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}

.bkc__nav {
    position: absolute;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--bkc-line);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--bkc-ink);
    transition: border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.bkc__nav:hover:not(:disabled) {
    border-color: var(--bkc-accent);
    color: var(--bkc-accent);
}

.bkc__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bkc__nav svg {
    width: 15px;
    height: 15px;
}

.bkc__nav--prev { left: 18px; }
.bkc__nav--next { right: 18px; }

/* Days -------------------------------------------------------------------- */

.bkc__day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 46px;
    padding: 4px 0 5px;
    font-family: inherit;
    cursor: pointer;
}

.bkc__day > * {
    position: relative;
    z-index: 1;
}

.bkc__day::before {
    content: '';
    position: absolute;
    inset: 1px 0;
    border-radius: 12px;
    transition: background-color 140ms ease;
}

.bkc__day--void {
    cursor: default;
}

.bkc__num {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--bkc-ink);
}

.bkc__price {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bkc-muted);
}

.bkc__day:not(.is-off):not(.is-start):not(.is-end):hover::before {
    background: rgba(36, 50, 41, 0.06);
}

.bkc__day.is-off {
    cursor: not-allowed;
}

.bkc__day.is-off .bkc__num {
    color: #C7C3B9;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.bkc__day.is-off .bkc__price {
    color: #D5D1C7;
}

.bkc__day.is-exit .bkc__price {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bkc-accent);
}

.bkc__day.is-muted:not(.is-off) .bkc__num,
.bkc__day.is-muted:not(.is-off) .bkc__price {
    opacity: 0.4;
}

.bkc__day.is-inside::before,
.bkc__day.is-preview::before {
    background: var(--bkc-accent-soft);
    border-radius: 0;
}

.bkc__day.is-inside .bkc__price,
.bkc__day.is-preview .bkc__price {
    color: #6E7A6F;
}

.bkc__day.is-start::before,
.bkc__day.is-end::before {
    background: var(--bkc-accent);
    border-radius: 12px;
}

.bkc__day.is-start .bkc__num,
.bkc__day.is-end .bkc__num,
.bkc__day.is-start .bkc__price,
.bkc__day.is-end .bkc__price {
    color: #FFFFFF;
}

.bkc__day.is-start.is-muted,
.bkc__day.is-end.is-muted {
    opacity: 1;
}

/* The minimum stay, said on the date it applies to. Shown one at a time - on
   hover, on keyboard focus, and on the chosen check-in, which is how a phone
   gets to see it at all - because painting it on every date of a month would
   be a wall of identical badges nobody reads. */
.bkc__tip {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    padding: 3px 8px;
    border: 1px solid var(--bkc-line);
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 8px 18px -10px rgba(26, 43, 34, 0.55);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--bkc-ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.bkc__day:hover .bkc__tip,
.bkc__day:focus-visible .bkc__tip,
.bkc__day.is-start .bkc__tip {
    opacity: 1;
    visibility: visible;
}

/* The sheet clips what leaves it, and a centred bubble is wider than a cell,
   so the edge columns hang inwards instead. */
.bkc__grid > .bkc__day:nth-child(7n + 1) .bkc__tip {
    left: 0;
    transform: none;
}

.bkc__grid > .bkc__day:nth-child(7n) .bkc__tip {
    left: auto;
    right: 0;
    transform: none;
}

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

.bkc__foot {
    padding: 12px 22px 18px;
    border-top: 1px solid var(--bkc-line);
    background: rgba(240, 238, 231, 0.5);
}

.bkc__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--bkc-muted);
}

.bkc__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bkc__swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bkc__swatch--free { border: 1px solid var(--bkc-line); background: #FFFFFF; }
.bkc__swatch--busy { background: #DCD8CE; }
.bkc__swatch--pick { background: var(--bkc-accent); }

.bkc__legend-note {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bkc__result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bkc__summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bkc-muted);
}

.bkc__summary b {
    font-weight: 700;
    color: var(--bkc-ink);
}

.bkc__range {
    font-size: 13px;
    font-weight: 600;
    color: var(--bkc-ink);
}

.bkc__total {
    font-size: 12px;
}

.bkc__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bkc__ghost,
.bkc__apply {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.bkc__ghost {
    color: var(--bkc-muted);
}

.bkc__ghost:hover:not(:disabled) {
    color: var(--bkc-ink);
    background: rgba(36, 50, 41, 0.06);
}

.bkc__apply {
    background: var(--bkc-accent);
    color: #FFFFFF;
}

.bkc__apply:hover:not(:disabled) {
    background: #386561;
}

.bkc__ghost:disabled,
.bkc__apply:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Inline variant: the calendar is part of the booking section, so it drops the
   popover behaviour and simply fills its column. */

.bkc--inline {
    position: static;
    width: auto;
    z-index: auto;
}

.bkc--inline .bkc__sheet {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

/* The section heading already labels the block; inside it the head is only
   the running instruction. */
.bkc--inline .bkc__eyebrow {
    display: none;
}

.bkc--inline .bkc__head {
    padding: 18px 24px 14px;
}

.bkc--inline .bkc__body {
    padding: 20px 24px 8px;
}

.bkc--inline .bkc__day {
    min-height: 54px;
}

.bkc--inline .bkc__foot {
    padding: 14px 24px 18px;
}

.bkc__sheet--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 380px;
    color: var(--bkc-muted);
    font-size: 13px;
}

.bkc__spinner {
    width: 26px;
    height: 26px;
    border: 2px solid var(--bkc-line);
    border-top-color: var(--bkc-accent);
    border-radius: 50%;
    animation: bkc-spin 800ms linear infinite;
}

@keyframes bkc-spin {
    to { transform: rotate(360deg); }
}

/* Two months side by side once there is room for them. */
@media (min-width: 900px) {
    .bkc__months {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

/* Bottom sheet on phones -------------------------------------------------- */

@media (max-width: 767px) {
    body.bkc-locked {
        overflow: hidden;
    }

    .bkc:not(.bkc--inline) {
        position: fixed;
        inset: 0;
        top: 0;
        right: 0;
        width: auto;
        z-index: 80;
    }

    .bkc__backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(20, 30, 24, 0.55);
        backdrop-filter: blur(2px);
        animation: bkc-fade 200ms ease-out;
    }

    .bkc:not(.bkc--inline) .bkc__sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 22px 22px 0 0;
    }

    .bkc__sheet.is-entering {
        animation: bkc-rise 240ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .bkc:not(.bkc--inline) .bkc__grabber {
        display: block;
        width: 42px;
        height: 4px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: #DFDACF;
    }

    .bkc__head {
        padding: 12px 18px 12px;
    }

    .bkc__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px 14px 8px;
    }

    .bkc--inline .bkc__body {
        overflow: visible;
        padding: 16px 14px 8px;
    }

    .bkc--inline .bkc__foot {
        padding: 12px 18px 16px;
    }

    .bkc__nav--prev { left: 6px; }
    .bkc__nav--next { right: 6px; }

    .bkc__day {
        min-height: 52px;
    }

    .bkc__foot {
        padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
    }

    .bkc__legend-note {
        width: 100%;
        margin-left: 0;
    }

    .bkc__result {
        flex-wrap: nowrap;
    }

    .bkc__apply {
        padding: 12px 22px;
    }
}

@keyframes bkc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bkc-rise {
    from { transform: translateY(18px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bkc__sheet,
    .bkc__backdrop {
        animation: none;
    }
}
