/****** General ***********/
* {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
}

:root {
    --main-color: #0065FC;
    --main-bg-color: #F2F2F2;
    --filter-bg-color: #DEEBFF;
}

.fa-solid {
    color: var(--main-color);
}

body {
    display: flex;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 1440px;
    min-width: 320px;
    padding: 0 50px;
    box-sizing: border-box;
}

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

.section-title {
    margin: 0;
    font-size: 22px;
}

.card {
    background-color: white;
    border-radius: 20px;
    padding: 5px;
    filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
}

.card img {
    object-fit: cover;
}

.card-title {
    font-size: 16px;
}

.euro {
    font-weight: 700;
}

.neutral-star {
    color: var(--main-bg-color)
}

/****** Header And Navbar ***********/
header {
    display: flex;
    justify-content: space-between;
    height: 79px;
    margin-bottom: 30px;
}

#logo {
    height: 19px;
    display: flex;
    padding: 30px 0;
}

#navbar {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 68px;
}

.navbar-link {
    display: flex;
    height: 35px;
    padding-top: 15px;
    margin-top: 0;
}

.navbar-link:hover {
    border-top: 2px solid var(--main-color);
    color: var(--main-color);
    padding-top: 13px;
}


/****** Info group ***********/
.info-group {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 35px;
}
/****** Headline ***********/
.headline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.headline h1 {
    font-size: 22px;
}

/****** Searchbar ***********/
.search-bar {
    display: flex;
    height: 49px;
    gap: 0px;
}

.location-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--main-bg-color);
    border-radius: 15px 0 0 15px;
    background: var(--main-bg-color);
    width: 50px;
}

.fa-location-dot {
    color: black;
}

input[type="text"] {
    border: 1px solid var(--main-bg-color);
    color: black;
    font-size: 18px;
    font-weight: 700;
    padding: 0 24px;
}

.submit {
    border: 1px solid var(--main-color);
    color: white;
    background: var(--main-color);
    border-radius: 0 15px 15px 0;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 16px;
}

.submit i {
    margin: auto;
}

.fa-magnifying-glass {
    display: none;
}

/****** Filterbar ***********/
.filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-bar p {
    font-size: 18px;
    font-weight: 700;
}

.text {
    font-size: 17px;
    font-weight: 700;
}

.filter-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 50px;
    font-size: 17px;
    min-width: fit-content;
    /* max-width: max-content; */
    border: 2px solid #D9D9D9;
    border-radius: 25px;
    padding: 0 19px;
}

.button:hover {
    background: var(--filter-bg-color);
    cursor: pointer;
}

/****** Infobar ***********/
.info-bar {
    display: flex;
    gap: 10px;
    height: 24px;
    align-items: center;
}

.fa-info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
}


/****** Hebergements And Populaires ***********/
.hebergements-and-populaires {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.hebergements-and-populaires section {
    background-color: var(--main-bg-color);
    border-radius: 20px;
    padding: 30px;
    box-sizing: border-box;
}

/****** Hebergements ***********/
.hebergements {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
}

.hebergements-cards {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
}

.hebergements-cards a {
    width: 250px;
}

.hebergements-cards .card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: 15px;
    gap: 9px;
}

.hebergements-cards img {
    width: 100%;
    height: 124px;
    /* border: 5px solid #FFF; */
    /* border-bottom: none; */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.hebergements-cards .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
}

.hebergements-cards .card-title {
    margin-bottom: 8px;
}

.hebergements-cards .card-subtitle {
    font-size: 14px;
    margin-bottom: 8px;;
}

.show-more {
    font-size: 18px;
}

/****** Populaires ***********/
.populaires {
    width: 32%;
}

.populaires-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.populaires-cards .card {
    display: flex;
    margin-top: 33px;
}

.populaires-cards img {
    width: 33%;
    height: 136px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.populaires-cards .card-content {
    width: 67%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.populaires-cards .card-title {
    margin-top: 10px;
    margin-bottom: 4px;
}

.populaires-cards .card-subtitle {
    margin: 0;
}

.populaires-cards .card-rating {
    margin-bottom: 5px;
}

/****** Activites ***********/
.activites {
    margin-top: 35px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activites-cards {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.activites-cards a {
    width: 25%;
}

.activites-cards .card {
    display: flex;
    flex-direction: column;
    /* box-sizing: border-box; */
    padding: 0;
}

.activites-cards img {
    margin: 0;
    width: 100%;
    height: 380px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.activites-cards .card-content {
    display: flex;
    align-items: center;
}

.activites-cards .card-title {
    padding: 20px 19px;
}

/****** Footer ***********/
footer {
    margin-top: 35px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    background: var(--main-bg-color);
}

.footer-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 33%;
    /* box-sizing: border-box; */
}

.footer-section h3 {
    font-size: 18px;
}

.footer-section li {
    list-style: none;
    margin-top: 15px;
}

/* Le code ci-dessous correspond à la version responsive uniquement */

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
    .button {
        font-size: 16px;
    }

    .hebergements-and-populaires {
        flex-direction: column;
    }

    .hebergements {
        width: 100%;
    }

    .populaires {
        width: 100%;
        margin-top: 50px;
    }

    .populaires-cards {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }

    .populaires-cards a {
        width: 33%;
    }

    .populaires-cards .card-title {
        font-size: 14px;
    }

    .populaires-cards .card-subtitle {
        font-size: 13px;
    }

    .activites-cards img {
        height: 200px;
    }

    .activites-cards .card-content {
        height: 70px;
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767.98px) {
    .main-container {
        padding: 0;
    }

    header {
        flex-direction: column;
        width: 100%;
        height: 115px;
    }

    #logo {
        margin: auto;
    }

    #navbar {
        width: 100%;
        gap: 0;
        height: 36px;
        display: flex;
        flex-direction: row;
    }

    .navbar-link {
        flex: 1;
        justify-content: center;
        padding-top: 0;
        border-bottom: 2px solid var(--main-bg-color);
        text-align: center;
    }

    .navbar-link a {
        flex: 1;
    }

    .navbar-link:hover {
        padding-top: 0;
        border-bottom: 2px solid var(--main-color);
        border-top: none;
    }

    .info-group {
        padding: 0 20px;
        margin-bottom: 0;
    }

    .location-dot {
        min-width: 49px;
    }

    input[type="text"] {
        width: calc(100% - 98px);
    }

    .fa-magnifying-glass {
        display: inline-flex;
        color: white;
        width: 17px;
    }

    .search-txt {
        display: none;
    }

    .submit {
        border-radius: 15px;
        margin-left: -25px;
        min-width: 50px;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        row-gap: 10px;
        column-gap: 20px;
    }

    .button {
        box-sizing: border-box;
        min-width: 155px;
        width: calc(50% - 10px);
        padding: 0 14px;
        font-size: 14px;
    }

    .hebergements-and-populaires {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .hebergements-and-populaires section {
        border-radius: 0;
        padding: 30px 20px;
    }

    .hebergements-and-populaires section:first-of-type {
        background-color: white;
    }

    .populaires-cards {
        display: flex;
        flex-direction: column;
    }

    .populaires-cards .card {
        margin-top: 15px;
    }

    .populaires-cards a {
        width: 100%;
    }

    .populaires-cards .card-content {
        padding-right: 5px;
        padding-left: 15px;
    }

    .hebergements {
        gap: 15px;
        padding: 20px;
    }

    .hebergements-cards {
        gap: 15px;
    }

    .hebergements-cards a {
        width: 100%;
    }


    .activites-cards {
        flex-direction: column;
        gap: 15px;
    }

    .activites-cards a {
        width: 100%;
    }

    footer {
        flex-direction: column;
        padding: 30px;
    }

    .footer-section {
        width: 100%;
        padding: 0;
        margin-bottom: 50px;        
    }

    .footer-section:last-of-type {
        margin-bottom: 0;
    }
}