/* =========================================================
   HGOB RESERVATION BAR
   White / Gold
   ========================================================= */

.reservation-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.reservation-modal.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   BACKDROP
   ========================================================= */

.reservation-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.38);
}

@media (max-width: 600px) {
    .reservation-modal__backdrop {
        background: rgba(0, 0, 0, 0.25);
    }
}


/* =========================================================
   RESERVATION BAR
   ========================================================= */

.reservation-bar {
    position: absolute;
    top: var(--reservation-navbar-height, 80px);
    left: 0;
    width: 100%;
    display: flex;
    background: #fff;
    border-top: 3px solid rgb(168, 132, 68);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.reservation-modal.is-open .reservation-bar {
    transform: translateY(0);
}


/* =========================================================
   FORM
   ========================================================= */

#reservationForm {
    position: relative;

    width: min(1280px, calc(100% - 100px));

    margin: 0 auto;

    min-height: 82px;

    display: grid;

    grid-template-columns:
        2fr
        1.25fr
        1.25fr
        190px;

    align-items: stretch;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.reservation-control {
    position: relative;

    border-right: 1px solid #e7e2da;
}

.reservation-control__trigger {
    width: 100%;
    height: 100%;

    padding: 16px 25px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    border: 0;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease;
}

.reservation-control__trigger:hover {
    background: #faf8f4;
}

.reservation-control.is-active
.reservation-control__trigger {
    background: #faf8f4;
}


/* =========================================================
   CONTROL TEXT
   ========================================================= */

.reservation-control__label {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgb(168, 132, 68);
}

.reservation-control__value {
    display: block;

    font-size: 15px;
    font-weight: 400;

    color: #333333;

    white-space: nowrap;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.reservation-dropdown {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    min-width: 100%;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e2ddd4;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.14);

    visibility: hidden;
    opacity: 0;

    transform: translateY(-5px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.reservation-control.is-active .reservation-dropdown {
    visibility: visible;
    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;
}


/* =========================================================
   DROPDOWN HEADER
   ========================================================= */

.reservation-dropdown__header {
    margin-bottom: 16px;

    padding-bottom: 10px;

    border-bottom: 1px solid #e8e3db;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #444444;
}

.reservation-dropdown__header--calendar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reservation-dropdown__close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;
    border: 0;
    background: transparent;

    font-size: 26px;
    line-height: 1;
    font-weight: 300;

    cursor: pointer;
    color: inherit;

    transition: opacity 0.2s ease;
}

.reservation-dropdown__close:hover {
    opacity: 0.6;
}


/* =========================================================
   COMPACT TWO-MONTH DATE DROPDOWN
   ========================================================= */

.reservation-dropdown--dates {
    width: 650px;

    max-width: calc(100vw - 30px);

    padding: 12px;

    box-sizing: border-box;

    /*
     * Never allow the dropdown to become taller
     * than the available viewport.
     */
    max-height:
        calc(100vh - var(--reservation-navbar-height, 80px) - 20px);

    overflow-y: auto;

    overscroll-behavior: contain;
}



/* =========================================================
   SELECTION SUMMARY
   ========================================================= */

.reservation-calendar-selection {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 6px;

    margin-bottom: 12px;
}

.reservation-calendar-selection__item {
    padding: 7px 9px;

    border: 1px solid #e4dfd7;

    background: #faf9f7;
}

.reservation-calendar-selection__item span {
    display: block;

    margin-bottom: 2px;

    font-size: 8px;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    color: #999;
}

.reservation-calendar-selection__item strong {
    display: block;

    font-size: 11px;

    font-weight: 500;

    color: #333;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.reservation-calendar__navigation {
    display: grid;

    grid-template-columns:
        28px
        1fr
        28px;

    align-items: center;

    margin-bottom: 9px;
}

.reservation-calendar__navigation strong {
    text-align: center;

    font-size: 12px;

    font-weight: 500;

    color: #333;
}

.reservation-calendar__nav {
    width: 26px;
    height: 26px;

    padding: 0;

    border: 1px solid #e1ddd6;

    background: #fff;

    color: #555;

    font-size: 17px;

    line-height: 1;

    cursor: pointer;
}

.reservation-calendar__nav:hover:not(:disabled) {
    border-color:
        rgb(168, 132, 68);

    color:
        rgb(168, 132, 68);

    background:
        #faf8f4;
}

.reservation-calendar__nav:disabled {
    opacity: 0.25;

    cursor: default;
}


/* =========================================================
   TWO MONTHS
   ========================================================= */

.reservation-calendar__months {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 14px;
}


/* =========================================================
   MONTH
   ========================================================= */

.reservation-calendar__month {
    min-width: 0;
}

.reservation-calendar__month-title {
    margin-bottom: 4px;

    text-align: center;

    font-size: 10px;

    font-weight: 500;

    color: #444;
}


/* =========================================================
   WEEKDAYS
   ========================================================= */

.reservation-calendar__weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    margin-bottom: 1px;
}

.reservation-calendar__weekdays span {
    text-align: center;

    font-size: 7px;

    font-weight: 500;

    color: #999;
}


/* =========================================================
   DAYS
   ========================================================= */

.reservation-calendar__days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    row-gap: 0;
}

.reservation-calendar__day {
    position: relative;

    width: 100%;

    height: 26px;

    min-height: 26px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #444;

    font-family: inherit;

    font-size: 10px;

    cursor: pointer;

    z-index: 1;
}

.reservation-calendar__day:hover:not(:disabled) {
    background: #faf8f4;

    color: rgb(168, 132, 68);
}


.reservation-calendar__day--empty {
    pointer-events: none;
}


/* =========================================================
   DISABLED
   ========================================================= */

.reservation-calendar__day--disabled {
    color: #d5d1cb;

    cursor: default;
}


/* =========================================================
   TODAY
   ========================================================= */

.reservation-calendar__day--today {
    font-weight: 600;
}

.reservation-calendar__day--today::after {
    content: "";

    position: absolute;

    left: 50%;

    bottom: 1px;

    width: 2px;

    height: 2px;

    border-radius: 50%;

    background: rgb(168, 132, 68);

    transform: translateX(-50%);
}

/* =========================================================
   RANGE
   ========================================================= */

.reservation-calendar__day--range {
    background:
        rgba(168, 132, 68, 0.12);

    color: #444;
}


/* =========================================================
   SELECTED
   ========================================================= */

.reservation-calendar__day--selected {
    background:
        rgb(168, 132, 68);

    color: #fff;

    font-weight: 500;
}

.reservation-calendar__day--selected:hover {
    background:
        rgb(148, 114, 55);

    color: #fff;
}

/* =========================================================
   NIGHT SUMMARY
   ========================================================= */

.reservation-night-summary {
    margin-top: 6px;

    padding-top: 5px;

    border-top: 1px solid #eeeae4;

    font-size: 9px;

    color: #888;
}

.reservation-night-summary #nightCount {
    color: rgb(168, 132, 68);

    font-weight: 600;
}


/* =========================================================
   DONE BUTTON
   ========================================================= */

.reservation-dropdown--dates
.reservation-dropdown__done {
    height: 29px;

    min-height: 29px;

    margin-top: 6px;

    font-size: 8px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .reservation-dropdown--dates {
        width: 100%;

        max-width: none;

        /*
         * Leave room for the navbar and some breathing room.
         */
        max-height:
            calc(100vh - var(--reservation-navbar-height, 80px) - 10px);

        padding: 10px 12px;

        overflow-y: auto;
    }


    /*
     * One month on mobile.
     */
    .reservation-calendar__months {
        display: block;
    }

    .reservation-calendar__month:nth-child(2) {
        display: none;
    }


    .reservation-calendar__month-title {
        font-size: 11px;

        margin-bottom: 5px;
    }


    .reservation-calendar__weekdays span {
        font-size: 8px;
    }


    .reservation-calendar__day {
        height: 34px;

        min-height: 34px;

        font-size: 11px;
    }


    .reservation-calendar-selection {
        gap: 4px;

        margin-bottom: 7px;
    }


    .reservation-calendar-selection__item {
        min-height: 28px;

        padding: 4px 7px;
    }


    .reservation-calendar-selection__item span {
        font-size: 7px;
    }


    .reservation-calendar-selection__item strong {
        font-size: 9px;
    }
}

.reservation-date-fields {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.reservation-date-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;

    color: #777777;
}

.reservation-date-field input {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #ddd8cf;
    border-radius: 0;

    background: #ffffff;

    color: #333333;

    font-family: inherit;
    font-size: 14px;

    box-sizing: border-box;
}

.reservation-date-field input::-webkit-calendar-picker-indicator {
    opacity: 0.55;
    cursor: pointer;
}

.reservation-date-field input:focus {
    border-color: rgb(168, 132, 68);

    box-shadow:
        0 0 0 1px rgba(168, 132, 68, 0.12);
}


/* =========================================================
   NIGHT SUMMARY
   ========================================================= */

.reservation-night-summary {
    margin-top: 12px;

    font-size: 12px;

    color: #888888;
}

.reservation-night-summary #nightCount {
    font-weight: 600;

    color: rgb(168, 132, 68);
}


/* =========================================================
   GUEST DROPDOWN
   ========================================================= */

.reservation-dropdown--guests {
    width: 320px;
}

.guest-counter {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #eeeae4;
}

.guest-counter:last-of-type {
    border-bottom: 0;
}

.guest-counter__title {
    display: block;

    font-size: 14px;

    color: #333333;
}

.guest-counter__subtitle {
    display: block;

    margin-top: 2px;

    font-size: 10px;

    color: #999999;
}

.guest-counter__controls {
    display: flex;

    align-items: center;

    gap: 10px;
}

.guest-counter__button {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #ddd8cf;

    background: #ffffff;

    color: #555555;

    cursor: pointer;

    font-size: 17px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.guest-counter__button:hover {
    border-color: rgb(168, 132, 68);

    color: rgb(168, 132, 68);

    background: #faf8f4;
}

.guest-counter__value {
    min-width: 20px;

    text-align: center;

    font-size: 14px;

    color: #333333;
}


/* =========================================================
   PROMO
   ========================================================= */

.reservation-dropdown--promo {
    width: 280px;
}

.reservation-promo-input {
    width: 100%;
    height: 44px;

    box-sizing: border-box;

    padding: 0 12px;

    border: 1px solid #ddd8cf;

    background: #ffffff;

    color: #333333;

    outline: none;

    font-family: inherit;
}

.reservation-promo-input:focus {
    border-color: rgb(168, 132, 68);

    box-shadow:
        0 0 0 1px rgba(168, 132, 68, 0.12);
}


/* =========================================================
   DONE BUTTON
   ========================================================= */

.reservation-dropdown__done {
    width: 100%;

    height: 38px;

    margin-top: 16px;

    border: 1px solid rgb(168, 132, 68);

    background: transparent;

    color: rgb(168, 132, 68);

    font-family: inherit;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.reservation-dropdown__done:hover {
    background: rgb(168, 132, 68);

    color: #ffffff;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.reservation-submit {
    align-self: stretch;

    width: 100%;

    border: 0;

    background: rgb(168, 132, 68);

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.13em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.reservation-submit:hover {
    background: rgb(148, 114, 55);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.reservation-submit:disabled {
    opacity: 0.65;

    cursor: wait;
}


/* =========================================================
   LOADER
   ========================================================= */

.reservation-submit__loader {
    display: none;

    width: 16px;
    height: 16px;

    margin: 0 auto;

    border: 2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: reservation-spin 0.7s linear infinite;
}

.reservation-submit.is-loading .reservation-submit__text {
    display: none;
}

.reservation-submit.is-loading .reservation-submit__loader {
    display: block;
}

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


/* =========================================================
   ERROR
   ========================================================= */

.reservation-error {
    position: absolute;

    top: calc(100% + 10px);

    left: 0;

    right: 0;

    padding: 10px 14px;

    border-left: 2px solid #b85c5c;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.12);

    font-size: 12px;

    color: #8c3f3f;
}


/* =========================================================
   CLOSE
   ========================================================= */

.reservation-bar__close {
    position: absolute;

    top: 8px;
    right: 10px;

    z-index: 5;

    width: 24px;
    height: 24px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    cursor: pointer;

    opacity: 0.55;
}

.reservation-bar__close:hover {
    opacity: 1;
}

.reservation-bar__close span {
    position: absolute;

    width: 13px;
    height: 1px;

    background: #555555;
}

.reservation-bar__close span:first-child {
    transform: rotate(45deg);
}

.reservation-bar__close span:last-child {
    transform: rotate(-45deg);
}

/* =========================================================
   DATE SELECTION SUMMARY
   ========================================================= */

.reservation-calendar-selection {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 5px;

    margin-bottom: 9px;
}

.reservation-calendar-selection__item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 30px;

    padding: 5px 8px;

    box-sizing: border-box;

    border: 1px solid #e4dfd7;

    background: #faf9f7;
}

.reservation-calendar-selection__item span {
    margin-right: 8px;

    font-size: 7px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    color: #999;

    white-space: nowrap;
}

.reservation-calendar-selection__item strong {
    font-size: 10px;

    font-weight: 500;

    color: #333;

    white-space: nowrap;
}

/* =========================================================
   CALENDAR
   ========================================================= */

.reservation-calendar {
    width: 100%;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.reservation-calendar__navigation {
    display: grid;

    grid-template-columns:
        26px
        1fr
        26px;

    align-items: center;

    height: 26px;

    margin-bottom: 5px;
}

.reservation-calendar__navigation span {
    display: block;
}

.reservation-calendar__nav {
    width: 24px;
    height: 24px;

    padding: 0;

    border: 1px solid #e1ddd6;

    background: #fff;

    color: #555;

    font-size: 16px;

    line-height: 20px;

    cursor: pointer;
}

.reservation-calendar__nav:hover:not(:disabled) {
    border-color: rgb(168, 132, 68);

    color: rgb(168, 132, 68);

    background: #faf8f4;
}

.reservation-calendar__nav:disabled {
    opacity: 0.25;

    cursor: default;
}

/* =========================================================
   WEEKDAYS
   ========================================================= */

.reservation-calendar__weekdays {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    margin-bottom: 5px;
}

.reservation-calendar__weekdays span {
    text-align: center;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.04em;

    color: #999;
}


/* =========================================================
   DAYS
   ========================================================= */

.reservation-calendar__days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    row-gap: 3px;
}

.reservation-calendar__day {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    min-height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #444;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;

    z-index: 1;
}

.reservation-calendar__day:hover:not(:disabled) {
    color: rgb(168, 132, 68);

    background: #faf8f4;
}


/* =========================================================
   EMPTY CELLS
   ========================================================= */

.reservation-calendar__day--empty {
    pointer-events: none;
}


/* =========================================================
   DISABLED
   ========================================================= */

.reservation-calendar__day--disabled {
    color: #d5d1cb;

    cursor: default;
}


/* =========================================================
   TODAY
   ========================================================= */

.reservation-calendar__day--today {
    font-weight: 600;
}

.reservation-calendar__day--today::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 5px;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: rgb(168, 132, 68);

    transform: translateX(-50%);
}


/* =========================================================
   SELECTED
   ========================================================= */

.reservation-calendar__day--selected {
    background: rgb(168, 132, 68);

    color: #fff;

    font-weight: 500;
}

.reservation-calendar__day--selected:hover {
    background: rgb(148, 114, 55);

    color: #fff;
}


/* =========================================================
   RANGE
   ========================================================= */

.reservation-calendar__day--range {
    background: rgba(168, 132, 68, 0.12);

    color: #444;
}


/* =========================================================
   NIGHT SUMMARY
   ========================================================= */

.reservation-night-summary {
    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px solid #eeeae4;

    font-size: 12px;

    color: #888;
}

.reservation-night-summary #nightCount {
    color: rgb(168, 132, 68);

    font-weight: 600;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .reservation-dropdown--dates {
        width: 100%;
    }

    .reservation-calendar-selection {
        margin-bottom: 14px;
    }

    .reservation-calendar__day {
        min-height: 42px;

        font-size: 13px;
    }

    .reservation-calendar__weekdays span {
        font-size: 10px;
    }

    .reservation-calendar__nav {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   MOBILE RESERVATION BAR
   ========================================================= */

@media (max-width: 767px) {

    .reservation-bar {
        display: block;
        width: 100%;

        max-height: calc(
            100vh - var(--reservation-navbar-height, 80px)
        );

        overflow-y: auto;
    }

    #reservationForm {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .reservation-control--dates,
    .reservation-control--guests,
    .reservation-control--promo {
        width: 100%;
        flex: none;
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .reservation-control__trigger {
        position: relative;
        width: 100%;
        min-height: 52px;
        padding: 8px 40px 8px 16px;
        gap: 2px;
    }

    .reservation-control__label {
        font-size: 9px;
        letter-spacing: 0.10em;
    }

    .reservation-control__value {
        font-size: 14px;
    }

    .reservation-control__trigger::after {
        right: 16px;
        font-size: 19px;
    }

    .reservation-dropdown {
        position: static;
        width: 100%;
        padding: 12px 16px;

        border: 0;
        border-top: 1px solid #eee;

        box-shadow: none;

        display: none;

        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;

        box-sizing: border-box;
    }

    .reservation-control.is-active
    .reservation-dropdown {
        display: block;
    }

    .reservation-date-fields {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .reservation-date-field {
        width: 100%;
    }

    .reservation-date-field input {
        appearance: none;
        -webkit-appearance: none;

        width: 100%;
        height: 44px;

        padding: 0 12px;

        border: 1px solid #ddd8cf;
        border-radius: 0;

        background: #fff;

        color: #333;

        font-family: inherit;
        font-size: 14px;

        box-sizing: border-box;
    }

    .reservation-date-field input::-webkit-calendar-picker-indicator {
        opacity: 0.55;
        cursor: pointer;
    }

    .guest-counter {
        padding: 8px 0;
    }

    .guest-counter__subtitle {
        font-size: 11px;
    }

    .guest-counter__title {
        font-size: 14px;
    }

    .guest-counter__button {
        width: 30px;
        height: 30px;
    }

    .reservation-dropdown__done {
        min-height: 38px;
        margin-top: 10px;
    }

    .reservation-submit {
        width: 100%;
        min-height: 52px;
        flex: none;
        font-size: 11px;
    }

    .reservation-modal__close {
        width: 100%;
        min-height: 40px;
        flex: none;

        border-left: 0;
        border-top: 1px solid #e5e5e5;

        background: #fff;

        font-size: 21px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    #reservationForm {
        padding-left: 16px;
        padding-right: 16px;
    }

    .reservation-date-fields {
        grid-template-columns: 1fr;
    }

    .reservation-date-field input {
        height: 42px;
    }

    .reservation-control__value {
        font-size: 14px;
    }
}

/* =========================================================
   BODY LOCK
   ========================================================= */
