

/* Style de la barre de recherche Airbnb */
body {
    position: relative;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100vw;
    overflow-x: hidden; /* Empêche le scroll horizontal */
    box-sizing: border-box;
}
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    width: 100%;
    margin: 20px auto;
    flex-wrap: wrap; /* pour permettre l’adaptation */
}

p, h1, h2 {
    text-align: center;
    font-weight: bold;
}

.search-bar form {
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-field {
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.search-field label {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
}

.search-field select,
.search-field input {
    border: none;
    padding: 10px;
    border-radius: 25px;
    background: #f7f7f7;
    font-size: 14px;
    width: 150px;
    text-align: center;
}

.search-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    position: static;
    margin-top: 10px;
}

/* Hover reste identique */
.search-button:hover {
    background: #007bff;
}

/* -------- Responsive TABLETTE -------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .search-bar {
        width: 90%;
        padding: 15px;
    }

    .search-field select,
    .search-field input {
        width: 140px;
        font-size: 13px;
    }

    .search-button {
        font-size: 13px;
        padding: 10px 18px;
    }
}

/* Style des listings */
.listings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.listing {
    width: 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.listing:hover {
    transform: scale(1.05);
}

.listing img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.details {
    padding: 15px;
}

.details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.details p {
    font-size: 14px;
    color: #666;
}

.discover-button {
    display: block;
    text-align: center;
    background:  #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.discover-button:hover {
    background:  #007bff;
}
/* ----------------------------- */
/*        RESPONSIVE CSS        */
/* ----------------------------- */

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        border-radius: 30px;
        width: 250px;
        height: 330px;
         
    }

    .search-bar form {
        flex-direction: column;
        align-items: center;
        width: 100%;
        
    }

    .search-field {
        margin: 10px 0;
        
    }

    .search-field input,
    .search-field select {
        width: 100%;
        max-width: 250px;
    }

    .search-button {
        width: 100%;
        max-width: 250px;
        margin-top: 10px;
        left: 0;
        top: 0;
    }
}
