/* search-bar section css ************************************************************************/

#search-bar-section .wrraper{
    margin: 30px 5%;
}

@media only screen and (max-width: 600px) {

    #search-bar-section .wrraper{
        width: 100%;
    }

    #search-bar{
        flex-direction: column;    
    }

    #search-bar hr{
        display: none;
    }
        
    #search-bar button{
        margin: 8px;
    }
     
    #search-bar .dropdown-menu{
        width: 100%;
    }
        
} 



/* filter-bar section css ************************************************************************/

#filter-section {
    border-top: 1px solid var(--warm_light_gray);
    border-bottom: 1px solid var(--warm_light_gray);
    padding: 12px 0px;
}

#filter-form{
    display: flex;
    justify-content: space-between;
}

#filter-form > div{
    margin: 0px 20px;
    font-size: 1.15em;
    position: relative;
    cursor: pointer;
}

#filter-form > div > div:first-child{
    padding: 10px 20px;
    border: 2px solid var(--lighter_warm_gray);
    border-radius: 5px;
    white-space: nowrap;
}

#filter-form > div > div:first-child:hover{
    border-color: var(--golden_yellow);
    color: var(--golden_yellow);
}

#filter-form > div > div.filter-button-selected {
    border-color: var(--golden_yellow);
    color: var(--golden_yellow);
}

#filter-form .dropdown-menu{
    left: 0px;
    width: 250px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

#filter-form .dropdown-menu li:hover{
    background-color:  var(--lighter_warm_gray);
}

/* Costum checkbox ********/
#filter-form .dropdown-menu label{
    text-indent: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 10px;
}

/* Hide the browser's default checkbox */
#filter-form .dropdown-menu label input {
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
  
/* Create a custom checkbox */
#filter-form .dropdown-menu label .checkmark {
    height: 15px;
    width: 15px;
    border-radius: 2px;
    background-color: var(--warm_light_gray);
    display: inline-block;
}
  
/* On mouse-over, add a grey background color */
#filter-form .dropdown-menu label:hover input ~ .checkmark {
    background-color: #ccc;
}
  
/* When the checkbox is checked, add a blue background */
#filter-form .dropdown-menu label input:checked ~ .checkmark {
    background-color: var(--golden_yellow);
}
  
#filter-form .dropdown-menu input[type="number"]{
    width: 100%;
    font-size: 1em;
    padding: 10px;
    margin: 5px;
    border: 2px solid var(--lighter_warm_gray);
}

#filter-form .dropdown-menu input[type="number"]::placeholder{
    color: var(--gray);
}

#filter-form .dropdown-menu .dropdown-menu-header{
    border-bottom: 1px solid var(--gray);
    margin-bottom: 7px;
    border-radius: 0px;
    display: none;
}

#filter-form .dropdown-menu .dropdown-menu-header .close-button{
    display: inline-block;
    position: absolute;
    left: 15px;
}

#filter-form .dropdown-menu .dropdown-menu-header .close-button img{
    width: 28px;
}

#filter-form .dropdown-menu .dropdown-menu-header h1{
    text-align: center;
    font-size: 1.2em;
    font-weight: normal;
    margin: 0px;
}


@media only screen and (max-width: 850px) {

    #filter-section .wrraper{
        width: 100%;
        /* overflow: hidden; */
        box-sizing: border-box;
    }

    #filter-form{
        cursor: grab;
        overflow-x: auto;
        scroll-behavior: smooth;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    #filter-form::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
        
    #filter-form .dropdown-menu{
        position: fixed;
        top:unset;
        bottom: 0;
        box-sizing: border-box;
        width: 100%;
        z-index: 4;
        border-radius: 30px 30px 0px 0px;
        /*scrollbar-width: none;  /* Firefox */
        max-height: 40vh;
        padding: 0px;
        display: none;
    }  
    
    /* #filter-form .dropdown-menu::-webkit-scrollbar{
        display: none; /* Chrome, Safari and Opera 
    } */

    #filter-form .dropdown-menu .dropdown-menu-header{
        position: sticky;
        top: 0px;
        padding: 15px;
        background-color: var(--Light_beige);
        display: block;
    }

    #filter-form .dropdown-menu .dropdown-menu-header:hover{
        background-color: var(--Light_beige);
    }
     
    /* cover when click botton*/
    /* #cover{
         display: block; 
    } */

} 



/* restaurant listing section css ***************************************************************/

#restaurant-listing-section .wrraper{
    display: flex;
    margin-top: 30px;
    width: 1200px;
}

#restaurant-listing-section main{
    width: 60%;
    margin-right: 20px;
}

#restaurant-listing-section #header-list{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#restaurant-listing-section #header-list h1{
    margin: 0px;
    border-bottom: 1px solid var(--gray);
    font-size: 1.2em;
}

#restaurant-listing-section #header-list select{
    padding: 5px 10px;
}

#restaurant-listing-section ul{
    margin: 40px 0px;
}

#restaurant-listing-section li{
    display: flex;
    border-radius: 5px;
    margin: 25px 0px;
    padding: 0px;
}

#restaurant-listing-section hr{
    border: 1px var(--lighter_warm_gray) solid;
}

.restaurant-card-image-container{
    width: 250px;
    height: 190px;
    border-radius: 5px 0px 0px 5px;
    overflow: hidden;
    margin-right: 15px;
}

.restaurant-card-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-card-info-container{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.restaurant-card-info-container > div:first-child{
    display: flex;
    justify-content: space-between;
}

.restaurant-card-info-container  h1{
    font-size: 1.2em;
    margin: 20px 0px;
    margin-top: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-card-info-container .infos {
    overflow: hidden;
}

.restaurant-card-info-container .infos p{
    margin: 8px 0px;
    font-size: 1.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-card-info-container .rating input{
    width: 45px;
    z-index: 3;
}

.restaurant-card-info-container .rating h1{
    text-align: center;
}

.restaurant-card-info-container .rating div{
    transform: translate(0px,-5px);
}

.time_slots{
    padding-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.time-box{
    position: relative;
    display: inline-block;
    border-radius: 5px;
    margin-right: 5px;
    padding: 10px 20px;
    color: white;
    background-color: var(--red);
}

.promo{
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translate(-50%, +50%);
    display: inline-block;
    padding: 1px 10px;
    background-color: #FFB732;
    font-size: 0.7em;
    border-radius: 20px;
}

.not-available-time-box{
    display: inline-block;
    border: 2px solid var(--red);
    border-radius: 5px;
    padding: 10px 20px;
    color: var(--red);
    background-color: white;
}

.not-available-time-box:hover{
    color: white;
    background-color: var(--red);
}

#restaurant-listing-section li#no-restaurant-msg{
    justify-content: center;
    align-items: center;
    height: 80%;
    width: 100%;
    background-color: #eeeeee;
    box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.10);
}

#restaurant-listing-section li#no-restaurant-msg p{
    margin: 25px;
    font-size: 1.1em;
    color: var(--gray);
}


/***************************** pagination css *******************************/

#pagination{
    display: flex;
    justify-content: center;
}

#step-links{
    display: flex;
    align-items: center;
}

#step-links div{
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--lighter_warm_gray);
}

#step-links .current{
    background-color: var(--red);
}

#step-links .current:hover{
    background-color: var(--hover_red);
}

#step-links a{
    padding: 10px 8px;
    font-size: 1.2em;
    color: gray;
}

#step-links span{
    padding: 10px 15px;
    font-size: 1.2em;
    color: white;
}

#step-links div:hover{
    background-color: var(--warm_light_gray);
}



/* map styling  ***********************************************************************************/

#restaurant-listing-section aside{
    flex: 1;
}

#restaurant-listing-section aside > div{
    position: sticky;
    top: 74px;
}

#map {
    height: 90vh;
    box-sizing: border-box;
}


@media only screen and (max-width: 1000px) {

    #restaurant-listing-section .wrraper{
        overflow: hidden;
    }

    #restaurant-listing-section main{
        width: 100%;
        margin-right: 0px;
    }

    #restaurant-listing-section aside{
        display: none;
    }

    .restaurant-card-image-container {
        border-radius: 5px;
    } 

    #restaurant-listing-section li#no-restaurant-msg {
        box-shadow: none;
    }

} 

@media only screen and (max-width: 700px) {

    #restaurant-listing-section li{
        flex-direction: column;
    }

    .restaurant-card-image-container {
        width: 100%;
    }

    .restaurant-card-info-container .infos h1{
        margin: 20px 0px;
    }

    .restaurant-card-info-container .rating div {
        transform: translate(0px,5px);
    }

    #restaurant-listing-section #header-list h1 {
        font-size: 1.05em;
    }

    #restaurant-listing-section #header-list label {
        display: none;
    }
      
} 