﻿

.booking-page-container {
    position: relative;
    width: 100%;
    height: 100vh; /* fallback */
    height: 100dvh;
    overflow: hidden;

    display: flex;
}


#booking-objects-list {
    padding-block: 56px;
    flex-basis: 640px;
    flex-grow: 1;
    max-width: 800px;
    align-items: center;
    overflow-y: auto;
}


#booking-map {
    position: relative;

    flex-grow: 1;
    flex-basis: 350px; /* non-desktop max-width - #booking-objects-list flex-basis */
}



.booking-objects-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    gap: 24px;

    width: 600px;
}

#map {
    height: 100vh; /* fallback */
    height: 100dvh;
}


#filterSectionSecondRow {
    justify-content: space-between;

    display: none;
}


#map-button {
    display: flex;
    gap: 4px;
    padding: 4px;
}


#booking-map-close-button {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 9px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #E4E5F0;
    box-shadow: 0px 2px 4px 0px #595D7A3D;

    display: none;
}
#booking-map-close-button img {
    height: 16px;
}


.object-item {
    cursor: pointer;
}
.object-item:hover {
    border-color: #C3C6DB !important;
}
.object-item.selected-object-item {
    border-color: #8487AB !important;
}


#booking-time-selection-drawer-mobile {
    display: none;
}

.mobile-drawer-object-item {
    display: none;
}
.mobile-drawer-object-item.selected-object-item {
    display: initial;
}


/* Highlight selected slot with darker border */
.mobile-drawer-slot-button.selected {
    border: 2px solid #1A1E3D !important;
}

/* Styles for the continue button */
.mobile-drawer-continue-button {
    width: 118px;
    height: 48px;
    padding: 8px 24px;
    gap: 12px;
    border-radius: 24px;
    background-color: #3642AE;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}
    /* Hover state for the continue button */
    .mobile-drawer-continue-button:hover {
        background-color: #343C80;
    }

.mobile-drawer-object-item-slots {
    margin-bottom: 12px;
}

.mobile-drawer-icon-button {
    padding: 6px;
}


/* Non-desktop */
@media (max-width: 990px) {
    .booking-page-container {
        display: grid;
    }

    #booking-objects-list {
        grid-column: 1;
        grid-row: 1;
        max-width: unset;
    }

    #booking-map {
        grid-column: 1;
        grid-row: 1;
        z-index: 100;
        transition: transform 200ms;
    }

    .booking-objects-list-content {
        width: 100%;
        padding-inline: 16px;
    }

    .booking-map-mobile-hidden {
        transform: translateY(100vh);
    }

    #filterSectionSecondRow {
        display: flex;
    }

    #booking-map-close-button {
        display: initial;
    }


    #booking-time-selection-drawer-mobile {
        display: flex;
        flex-direction: column;
        z-index: 101;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100%;
        background-color: white;
        padding-block: 16px;
        padding-inline: 16px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transform: translateY(100%);
        transition: transform 300ms;
    }

        #booking-time-selection-drawer-mobile.drawer-open {
            transform: translateY(0);
        }

    .mobile-drawer-object-item {
        overflow: hidden;
    }

        .mobile-drawer-object-item.selected-object-item {
            display: flex;
            flex-direction: column;
        }

    .mobile-drawer-content {
        overflow: hidden;
    }

    .mobile-drawer-scrolling-space {
        overflow-y: auto;
    }
}



/* Mobile / desktop intermediate (tablet) */
@media (min-width: 768px) and (max-width: 990px) {

}



/* Mobile */
@media (max-width: 768px) {

}