/* ========== Conteneur principal ========== */
.search-bar-extended {
    background-color: #001f3f;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}


.search-bar-extended,
.search-bar-extended input,
.search-bar-extended select,
.search-bar-extended button,
.search-bar-extended label {


}


@media (max-width: 480px) {
    #locality::placeholder {
        font-size: 12px;
    }
}

.search-label {
	
    font-size: 16px;
    color: white; /* Affiche le texte en blanc */
    margin-bottom: 5px;
    margin-left: 2px;
}


.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    width: 100%;
}

/* ========== Structure des Champs ========== */
.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ========== Tailles des Champs ========== */
.locality-group {
    flex: 1.4; /* LÃ©gÃ¨rement plus large */
}

.small-group {
    flex: 1; /* Taille standard */
}

/* ========== Labels ========== */
.form-group label {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    margin-left: 2px;
}

/* ========== Input avec IcÃ´ne ========== */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 30px;
    outline: none;
    box-sizing: border-box;
}

.input-with-icon .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 14px;
}

/* ========== Select ========== */
.form-group select {
    padding: 6px 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 30px;
    cursor: pointer;
    outline: none;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
}

/* ========== Focus ========== */
.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}





/* ========== Bouton Rechercher ========== */
.search-button {
    background-color: #C49A3A;
    color: #fff;
    font-size: 16px;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
	margin-top: 2px;
}

.search-button:hover {
    background-color: #3a9e43;
    transform: scale(1.03);
}


#toggle-filters-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
}

/* Appliquer l'effet de survol uniquement sur les écrans avec souris */
@media (hover: hover) {
    #toggle-filters-button:hover {
        transform: scale(1.1);
    }
}

/* ========== Inputs Pairs ========== */
.input-pair {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.input-pair .form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 150px;
}

/* ========== Couleurs des Textes Inputs ========== */
.search-bar-extended input,
.search-bar-extended select {
    color: #001f3f !important;
	
}

.search-bar-extended input::placeholder,
.search-bar-extended select::placeholder {
    color: #001f3f !important;
    opacity: 0.6 !important;
}

/* ========== Responsive (max-width: 768px) ========== */
@media (max-width: 768px) {
    .form-row {
        flex-wrap: wrap;
    }
	
	.search-label {

    font-size: 14px;
    color: white; /* Affiche le texte en blanc */
    margin-bottom: 5px;
    margin-left: 2px;
}

	

    .form-group,
    .locality-group {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }

    .search-button {
        flex: 0 1 120px;
        max-width: 120px;
        margin: 0 auto;
    }

    .form-group label,
    .input-with-icon input,
    .form-group select,
    .search-button,
    #toggle-filters-button {
        font-size: 15px;
    }

    .input-pair {
        flex-direction: column;
        gap: 20px;
    }

    .input-pair .form-group {
        flex: 1 1 100%;
        min-width: auto;
		 min-width: 140px; /* âœ… Largeur minimale pour chaque input */
    }
}

/* ========== Responsive (max-width: 468px) ========== */
@media (max-width: 468px) {
    .form-row {
        flex-wrap: wrap;
    }

    .form-group,
    .locality-group {
        flex: 1 1 calc(50% - 5px);
        min-width: 100px;
    }

    .search-button {
        flex: 0 1 120px;
        max-width: 120px;
        margin: 0 auto;
    }

    .input-pair {
        gap: 20px;
    }

    .input-pair .form-group {
        flex: 1 1 calc(33.33% - 5px);
        min-width: 100px;
    }

    .input-pair .form-group label {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .input-pair .form-group select,
    .input-pair .form-group input {
        font-size: 13px;
        padding: 4px 6px;
    }

    #toggle-filters-button:hover {
        color: #fff;
/*        text-decoration: underline;*/
    }

    .form-group label,
    .input-with-icon input,
    .form-group select,
    .search-button,
    #toggle-filters-button {
        font-size: 15px;
    }
}

 .search-icon-btn {
       margin-left: 0px;
	 font-size: 14px;
    }

#search-button {
    min-width: 130px;      /* Largeur minimale du bouton */
    width: 120px;          /* Largeur fixe */
    display: flex;         /* Flexbox pour aligner les Ã©lÃ©ments */
    align-items: center;   /* Alignement vertical au centre */
    justify-content: flex-start; /* Aligne le contenu Ã  gauche */
    gap: 8px;              /* Espacement entre la loupe et le compteur */
    padding: 10px 20px;    /* Padding global */
    padding-left: 6px;    /* âœ… Plus de padding Ã  gauche pour lâ€™espace */
    box-sizing: border-box; /* Assure que le padding ne dÃ©borde pas */
}

#property-count {
    font-weight: bold; /* Texte en gras pour le nombre de biens */
}


#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    border-top: none;
    max-height: 100px;  /* ðŸ”½ Hauteur maximale rÃ©duite */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-3px); /* ðŸ”½ DÃ©calage rÃ©duit pour une animation plus subtile */
    pointer-events: none;
}

#suggestions.visible {
    opacity: 1;
    transform: translateY(0); /* Apparition fluide */
    pointer-events: auto; /* Active les clics uniquement quand visible */
}

#suggestions div {
    padding: 6px 10px;  /* ðŸ”½ Moins d'espace autour des textes */
    cursor: pointer;
}
#suggestions div:hover {
    background-color: #f0f0f0;
}


@media (max-width: 768px) {
    #suggestions {
        max-height: 60px;  
        font-size: 16px;   
        border-radius: 4px;
    }

    #suggestions div {
        padding: 8px; /* Plus facile à cliquer sur mobile */
    }
}



.locality-radius-container {
    display: flex;
    align-items: center;
    gap: 0; /* Pas d'espace entre les deux éléments */
}

.input-with-icon {
    position: relative;
    flex: 1; /* L'input localité prend tout l'espace disponible */
}

.input-with-icon input {
    border-radius: 5px 0 0 5px; /* Coins arrondis à gauche uniquement */
    border-right: none; /* Pas de bordure à droite pour coller le select */
}



.locality-radius-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacement léger entre l'input et le select */
}

#search_radius {
    height: 30px; 
    padding: 4px 8px; 
    font-size: 14px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    background-color: #f9f9f9;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
    width: 85px; /* Largeur réduite pour ne pas être trop large */
    box-sizing: border-box;
	margin-left: 2px;
}

#search_radius:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #search_radius {
    height: 30px; 
margin-top: 2px;
    font-size: 14px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    background-color: #f9f9f9;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: box-shadow 0.3s ease;
    width: 80px; /* Largeur réduite pour ne pas être trop large */
    box-sizing: border-box;
}

    }


@media (max-width: 768px) {
    #search-button {
        min-width: 110px; 
        max-width: 110px; 
        padding: 6px 10px;
        font-size: 14px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .search-icon-btn {
        display: none; 
    }

    #property-count, 
    #property-label {
        font-size: 14px;
    }
	
	/* ========== Conteneur principal ========== */
.search-bar-extended {
    background-color: #001f3f;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

	
	
}

