body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
}

.sidebar {
    width: 80px;
    background-color: var(--blanc);
    box-shadow: 2px 0 5px var(--ombres);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.menu-icon i {
    font-size: 30px;
    color: var(--majeur);
}

.sidebar .label {
    margin-top: 20px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--paraph);
    font-size: 14px;
    font-weight: bold;
}

.content {
    flex-grow: 1;
    padding: 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    color: var(--majeur);
    font-size: xxx-large;
    margin-top: 10%;
    margin-bottom: 30px;
    text-align: center;
}

.suggestions {
    font-size: 20px;
    color: var(--majeur);
    margin-bottom: 20px;
    text-align: center;
}

.logement-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 100%;
}

.card {
    background-color: var(--champs);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 6px var(--ombres);
    max-width: 500px;
    width: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px var(--ombres);
}

.card .img-placeholder {
    background-color: var(--gris);
    width: 100%;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 10px;
    background-image: url('');
    background-size: cover;
    background-position: center;
}

.card p {
    font-size: 18px;
    text-align: center;
    color: var(--paraph);
    font-weight: 500;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    margin: 20px 0;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    font-size: large;
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--majeur);
    background-color: var(--champs);
    outline: none;
    flex-grow: 1;
}

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

.search-buttons {
    width: 100%;
    min-width: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.search-bar button {
    background-color: var(--majeur);
    padding: 12px 25px;
    border: 2px solid var(--majeur);
    border-left: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 18px;
    color: var(--blanc);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar button:hover {
    background-color: var(--bouton);
    color: var(--majeur);
    transform: scale(1.03);
    box-shadow: 0 4px 8px var(--ombres);
}

.search-bar button i {
    font-size: 16px;
}

.search-buttons button {
    width: 180px;
    background-color: var(--bouton);
    border: none;
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    color: var(--paraph);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    justify-content: center;
    box-shadow: 0 4px 6px var(--ombres);
    transition: transform 0.2s;
}

.search-buttons button:hover {
    transform: scale(1.05);
}

.logement-link {
    text-decoration: none;
    color: var(--majeur);
    font-size: 20px;
    font-weight: bold;
    display: block;
    text-align: center;
}

#mapContainer {
    display: none;
    width: 90%;
    height: 600px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 4px 6px var(--ombres);
    z-index: 1000;
}

.leaflet-popup-content {
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 15px!important;
    box-shadow: 0 4px 6px var(--ombres)!important;
}

.mapContainer{
    display: none;
    width: 90%;
    height: 600px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 4px 6px var(--ombres);
}

.map-listing-popup img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.map-listing-popup h3 {
    color: var(--majeur);
    margin: 5px 0;
    font-size: 16px;
}

.map-listing-popup p {
    margin: 3px 0;
    font-size: 14px;
    color: var(--paraph);
}

#mapContainer {
    transition: all 0.3s ease;
}


.search-buttons label {
    margin-right: 5px;
    font-size: x-large;
    color: var(--majeur);
}

input[type="date"]{
    transform: scale(1.1);
    background-color: var(--champs);
    border-radius: 5px;
    min-height: 40px;
    margin-bottom: 10px;
    border: 2px solid var(--majeur);
    box-shadow: 0 4px 4px var(--ombres);
    color: var(--paraph);
}

input[type="number"]{
    display:none;
    background-color: var(--champs);
    border-radius: 5px;
    min-height: 40px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 2px solid var(--majeur);
    box-shadow: 0 4px 4px var(--ombres);
    color: var(--paraph);
}

#date-range{
    display:none;
    margin-top:10px;
}

#no-result{
    display:none;
    text-align:center;
    color: var(--gris);
    margin-top:20px;
}

.filtre1{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filtre2 {
    display: flex;
    flex-direction: column;
}

.filtre2 label {
    margin-bottom: 8px;
    color: var(--majeur);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.boutonappliquer {
    background-color: var(--majeur);
    color: var(--blanc);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.boutonappliquer:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px var(--ombres);
}

.equipements-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
    margin-top: 10px;
    padding: 5px;
    background-color: var(--blanc);
    border-radius: 8px;
}

.equipement-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipement-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.equipement-option label {
    cursor: pointer;
    font-size: 14px;
    color: var(--paraph);
}