/* GENERAL IDENTIFIERS */

html{
    display:flex;
    flex-direction: column;
    align-items: center;  
    padding: 0 5%; 
}

body{
    max-width: 1400px;
    width: 100%;
    font-family: 'Raleway';
    margin: 0;
}

h1, h2{
    font-size: 22px;
    font-weight: 700;
}

h3 {
    margin: 5px 0;
    font-size: 16px;
}

a{
    text-decoration: none;
    color:black;
}

li{
    list-style-type: none;
}

nav{
    font-size: 16px;
}

.fa-solid{
    color:#0065FC;
}

.the5th{
    color:#F2F2F2;
}


/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    #banner_logo{
        height: 30px;
        width: 60px;
        align-self: flex-end;
    }

    #banner_items{
        display: flex;
        margin: 0;
    }

        .banner_item{
            padding: 40px 0 0 0;
            margin: 0 20px;
            border-top: 3px solid white;
        }
        .banner_item:hover{
            border-top: 3px solid #0065FC;
            cursor: pointer;
        }


/* PANEL_SEARCH */

    #search h1{
        margin-bottom: 0;
    }

    #search_quote {
        margin: 5px 0;
    }

    #search_form{
        display: flex;
        align-items: center;
        margin: 20px 0;
    }

        #search_form i {
            color: black;
            padding: 17px;
            background-color: #F2F2F2;
            border-radius: 15px 0 0 15px;
        }

        #search_form input {
            height: 49px;
            outline: none;
            border: none;
            border-top: 1px solid #F2F2F2;
            border-bottom: 1px solid #F2F2F2;
            font-size: 18px;
            font-weight: 700;
        }

        #search_form button {
            height: 49px;
            color: white;
            background-color: #0065FC;
            border: 1px solid #0065FC;
            border-radius: 0 15px 15px 0;
            padding: 0 15px;
            font-size: 18px;
            font-weight: 700;
        }

/* FILTERS */

#filters {
    display: flex;
    align-items: center;
}

    #filter_title {
        font-weight: 700;
        font-size: 18px
    }

    #filter_group {
        display: flex;
        justify-content: space-between;
        width: 80%;
        flex-wrap: wrap;
    }

        #filter_group li {
            border: 2px solid #D9D9D9;
            padding: 15px 20px;
            border-radius: 25px;
            font-weight: 700;
            
        }
        #filter_group li:hover {
            background-color: #DEEBFF;
            cursor: pointer;
        }
        #filter_group i {
            margin-right: 10px;
        }


#info i{
    padding: 5px 10px;
    margin-right: 11px;
    border: 1px #D9D9D9 solid;
    border-radius: 100%;
}

/* LOCATION */

#location {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

    .logement_panel {
        background-color: #F2F2F2;
        padding: 20px 30px;
        border-radius: 20px;
        
    }

    .card {
        background-color: white;
        border-radius: 20px;
        padding: 5px;
        box-shadow: 0px 3px 15px 0px #0000001A;
    }
        
        .card p {
            font-size: 14px;
            margin: 5px 0;
        }

    #logement {
        width: 60%;

    }

        .logement_list {
            display: flex;
            width: 100%;
            justify-content: space-between;
            margin-bottom: 25px;
        }

        .logement_list_card {
            display: flex;
            flex-direction: column;
            width: 30%;
        }

            .card_img{
                width: 100%;
                height: 125px;
                border-radius: 15px 15px 0 0;
            }

            .card_text {
                padding: 0 0 0 10px;
            }


    #popular {
        width: 27%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        #popular_title_box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        
        #popular_list {
            display: flex;
            height: 85%;
            flex-direction: column;
            justify-content: space-between;
        }
            .popular_card{
                width: 95%;
                display: flex;
                
            }

                .popular_card_description{
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    flex-wrap: wrap;
                    margin: 0 5px 0 10px;
                    width: 55%;
                }

                .popular_card_description h3 {
                    margin: 0;
                }

                .popular_card_img {
                    width: 35%;
                    height: 130px;
                    object-fit: cover;
                    border-radius: 15px 0 0 15px;
                }

                .popular_card .stars_group{
                    position: absolute;
                    top: 100px;
                }

/* ACTIVITIES */ 

#activities {
    margin: 60px 0;
}

#activities_list {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

    .activities_list_card {
        width: 23%;

    }

        .activities_list_card_img {
            width: 100%;
            height: 400px;
            border-radius: 20px 20px 0 0;
            object-fit: cover;
        }

        .activities_list_card_title {
            box-shadow: 0px 3px 15px 0px #0000001A;
            height: 56px;
            border-radius: 0 0 20px 20px;
            font-size: 16px;
            padding: 0 10px;
            display: flex;
            align-items: center;
        }


/* FOOTER */

footer {
    display: flex;
    width: 100%;
    height: 200px;
    background-color: #F2F2F2;
    
}

    .footer_list {
        margin: 30px 50px;
    }
    .footer_nav {
        display: flex;
        flex-direction: column;
        font-size: 16px;
        
    }

    .footer_nav a {
        font-size: 16px;
        margin-bottom: 10px;
    }






/* MEDIA QUERIES */

    
    /* Tablets */ 
    
@media screen and (max-width:1024px) {
    html {
        padding: 0 5%;
    }
    #filter_group li {
        margin-bottom: 20px
    }
    
    #location {
        flex-direction: column;
        justify-content: baseline;
        align-items: center;
    }

        .logement_panel {
            
            margin: 20px 0;
        }

        #logement {
            width: 90%;
        }

        #popular {
            width: 90%;
        }
            #popular_list {
                flex-direction: row;
                justify-content: space-between;
            }

            .popular_card {
                width: 31%;
            }
            
            .popular_card_img{
                width: 45%;
            }
            .popular_card_description p {
                margin-bottom: 0;
            }

    .activities_list_card_img {
        height: 230px;
    }

    footer {
        justify-content: space-around;
    }

    .footer_list {
        margin: 0 ;
    }

}


    /* Mobiles */

@media screen and (max-width:767px) {
    html {
        padding: 0%;
    }

    
    /* HEADER */

    header {
        flex-direction: column;
        
    }

        #banner_logo {
            align-self: center;
            margin-top: 20px;
        }

        #banner_items{
            width: 100%;
            justify-content: space-around;
            padding: 0;
        }

            .banner_item {
                border-top: none;
                border-bottom: 2px solid white;
                padding-bottom: 20px;
                width: 50%;
                text-align: center;
                margin: 0;
            }
            .banner_item:hover{
                border-top: none;
                border-bottom: 2px solid #0065FC
            }
            .banner_item:focus {
                border-bottom: 2px solid #0065FC ;
            }

    #search {
        display: flex;
        flex-direction: column;
        align-self: center;
        justify-self: center;
        padding: 0 5%;
    }
        #search_form input {
            width: 100%
        }

    #filters {
        flex-direction: column;
        margin-top: 40px;
    }
        #filter_title {
            align-self: baseline;
        }
    #filter_group {
        width: 100%;
        padding: 0;

    }

        #filter_group li {
            min-width: 35%;
            white-space: nowrap;
        }

    #logement {
        order: 2;
        margin: 0;
        background-color: white;
        width: 90%;
    }
    
    .card {
        width: 95%;
        margin-bottom: 15px;
    }

        .logement_list {
            flex-direction: column;
            align-items: center;
        }

        #logement_text {
            display: none;
        }
        .card_img {
            object-fit: cover;
        }

    #popular {
        order: 1;
        border-radius: 0;
        align-items: center;
    }

        #popular_list {
            flex-direction: column;
            align-items: center;
            width:90%;
        }
            .popular_card {
                width: 95%;
                margin-bottom: 15px;
            }


    #activities {
        padding: 0 5%;
    }

    #activities_list {
        flex-direction: column;
        
        
    }

        .activities_list_card {
            width: 99%;
            margin-bottom: 30px;
        }
            .activities_list_card_img {
                height: 125px;
                object-fit: cover;
            }


footer {
    flex-direction: column;
    height: 100%;
    padding: 20px 30px;
}            



}



@media screen and (max-width:500px) {
    
    #filter_group {
        justify-content: center;
    }
    
        #filter_group li {
            width: 60%;
        }


}