footer {
    background-color: var(--brand);
    color: var(--brand-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--gap);
    margin-bottom: -30px;
    position: relative;
}

footer:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--brand);
    width: 100%;
    height: 28px;
}

.footer-column {
    -webkit-grid-column: span 3;
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobible-cta-buttons,
.mobile-fake-footer-space {
    display: none;
}

/* POPUP */
.popup-layout {
    position: fixed;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 0.6s ease;
    transition: opacity 0.6s ease;
    padding: var(--gap);
}

body.popup-is-open .popup-layout {
    pointer-events: visible;
    opacity: 1;
}

.popup-layout .inner-popup {
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    cursor: default;
    width: 100%;
    max-width: calc(829 * var(--size));
    position: relative;
}

.popup-layout .c-title {
    width: 100%;
    max-width: calc(616 * var(--size));
}

.popup-layout .popup-image {
    width: calc(212 * var(--size));
    position: relative;
    margin: var(--gap) auto;
}

.popup-layout .popup-image:after {
    content: "";
    display: block;
    width: 100%;
    position: relative;
    padding-bottom: 125%;
}

.popup-layout .popup-image picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup-layout .popup-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.popup-layout .popup-text {
    margin-bottom: calc(24 * var(--size));
}

.popup-layout .popup-buttons {
    display: flex;
    gap: calc(8 * var(--size));
}

.popup-layout .popup-buttons .button {
    width: 100%;
}

.popup-layout .popup-buttons.two-buttons .button {
    width: 50%;
}

.popup-layout .popup-close {
    width: calc(42 * var(--size));
    height: calc(42 * var(--size));
    position: absolute;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 0;
    background-color: transparent;
    right: var(--gap);
    top: var(--gap);
    cursor: pointer;
}

.popup-layout .popup-close:after,
.popup-layout .popup-close:before {
    content: "";
    display: block;
    background-color: var(--brand-beige);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

.popup-layout .popup-close:after {
    width: 100%;
    height: calc(2 * var(--size));
}

.popup-layout .popup-close:before {
    height: 100%;
    width: calc(2 * var(--size));
}

.popup-layout .popup-close:hover:after,
.popup-layout .popup-close:hover:before {
    background-color: var(--brand);
}

/* RESPONSIVE */
@media only screen and (max-width: 768px) {
    footer {
        margin-bottom: 0;
    }

    footer:before {
        content: none;
    }

    .footer-navigation {
        display: flex;
        flex-direction: column;
        gap: calc(32 * var(--size));
    }

    .footer-column {
        width: 100%;
    }

    .mobible-cta-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 2;
    }

    .footer-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: calc(42 * var(--size));
        border: 0;
        font-family: var(--font-family);
        font-size: var(--font-size-body);
        line-height: var(--line-height-body);
    }

    .footer-cta.orange {
        color: var(--brand-white);
        background-color: var(--brand);
    }

    .footer-cta.white {
        background: var(--brand-white);
        color: var(--black);
    }

    .mobile-fake-footer-space {
        display: block;
        width: 100%;
        height: calc(85 * var(--size));
        position: relative;
        background: var(--brand-white);
        margin-bottom: -30px;
    }

    .popup-layout .inner-popup {
        padding-top: calc(70 * var(--size));
        max-height: 100%;
        height: 100%;
        justify-content: flex-end;
    }

    .popup-layout .c-title {
        max-width: calc(275 * var(--size));
    }

    .popup-layout .popup-buttons {
        flex-direction: column;
    }

    .popup-layout .popup-buttons .button {
        width: 100% !important;
    }

    .popup-layout .popup-close {
        width: calc(34 * var(--size));
        height: calc(34 * var(--size));
    }

    .popup-layout .popup-image {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        justify-content: center;
    }

    .popup-layout .popup-image:after {
        content: none;
    }

    .popup-layout .popup-image picture {
        display: block;
        position: relative;
    }
}

/* BOOKING */
#bookingPanel {
    position: fixed;
    z-index: 9001;
    background: rgba(255, 255, 255, 0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    -webkit-transition: opacity 0.6s ease;
    transition: opacity 0.6s ease;
    padding: var(--gap);
    pointer-events: none;
    opacity: 0;
}

body.show-booking #bookingPanel {
    opacity: 1;
    pointer-events: visible;
}

#bookingPanel .booking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(100 * var(--size));
}

#bookingPanel .inner-panel {
    padding: var(--gap);
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    cursor: default;
    width: 100%;
    max-width: calc(829 * var(--size));
    position: relative;
}

#bookingPanel .popup-close {
    width: calc(42 * var(--size));
    height: calc(42 * var(--size));
    position: absolute;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 0;
    background-color: transparent;
    right: var(--gap);
    top: var(--gap);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

#bookingPanel .popup-close:after,
#bookingPanel .popup-close:before {
    content: "";
    display: block;
    background-color: var(--brand-beige);
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

#bookingPanel .popup-close:after {
    width: 100%;
    height: calc(2 * var(--size));
}

#bookingPanel .popup-close:before {
    height: 100%;
    width: calc(2 * var(--size));
}

#bookingPanel .popup-close:hover:after,
#bookingPanel .popup-close:hover:before {
    background-color: var(--brand);
}

@media only screen and (max-width: 768px) {
    #bookingPanel .inner-panel {
        padding-top: calc(70 * var(--size));
        max-height: 100%;
        justify-content: space-between;
        height: 100%;
        width: 100%;
    }

    #bookingPanel .popup-close {
        width: calc(34 * var(--size));
        height: calc(34 * var(--size));
    }

    body.show-booking #bookingPanel .popup-close {
        opacity: 1;
        pointer-events: visible;
    }
}
