/* Styles pour le panneau Type de bien - Version liste simple et compacte */
.hektor-type-bien-container {
    padding: 4px 0;
    text-align: left;
    z-index: 999999;
    position: relative;
}

label.hektor-type-bien-option {
    margin-bottom: -5px !important;
}

label.hektor-type-bien-option {
    padding: 5px;
}


/* Forcer l'alignement à gauche pour le panneau Type de bien */
#dropdown-type-bien .hektor-panel-content {
    text-align: left !important;
}

/* Instruction CSS globale pour aligner les éléments de la liste à gauche */
.hektor-panel-content {
    text-align: start;
}

#dropdown-type-bien .ubiflow-search-field {
    text-align: left !important;
}

/* Empêcher tout déplacement du menu principal */
.hektor-dropdown-button[data-target="type-bien"] {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Stabiliser la div wrapper principale */
.hektor-maquette-search-wrapper {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Empêcher tout déplacement du formulaire de recherche */
.hektor-search-form,
.hektor-resultats-filters {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Empêcher le scroll automatique */
html {
    scroll-behavior: auto !important;
}

/* Chaque option dans le panneau Type de bien */
.hektor-type-bien-option {
    display: block;
    width: 100%;
    padding: 6px 12px;
    margin: 1px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.2s ease;
    text-align: left;
    border: none;
    background: none;
    color: #ffffff;
    position: relative;
    z-index: 1000;
}

/* Cacher les vrais radio buttons */
.hektor-type-bien-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Le texte à côté du radio button */
.hektor-type-bien-option span {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    color: #ffffff;
    text-align: left;
    position: relative;
    z-index: 1001;
}

/* Hover sur les options */
.hektor-type-bien-option:hover {
    /*background-color: #333333 !important;*/
    color: #ffffff;
}

.hektor-type-bien-option:hover span {
    color: #ffffff;
}

/* Option sélectionnée */
.hektor-type-bien-option input[type="radio"]:checked+span {
    color: #ffffff;
    font-weight: 600;
}

/* Compacité du container - Hauteur automatique */
.hektor-type-bien-container {
    /* max-height: 230px; - Supprimé pour hauteur automatique */
    /* overflow-y: auto; - Supprimé, plus besoin de scroll */
    padding: 2px 0;
    border: none;
    background: transparent;
}



/* Uniformité des colonnes */
.hektor-type-bien-container .hektor-type-bien-option {
    margin: 0;
    border: none;
}

/* Garantir que les textes sont alignés à gauche */
.hektor-type-bien-container .hektor-type-bien-option span {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

/* Supprimer toute tendance au centrage héritée */
.hektor-type-bien-container,
.hektor-type-bien-container * {
    text-align: left !important;
}

/* Styles pour les très petites options */
.hektor-type-bien-option span {
    font-size: 14px;
    line-height: 1.2;
    text-align: left !important;
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hektor-type-bien-option {
        padding: 2px 0;
        font-size: 13px;
    }

    .hektor-type-bien-option span {
        font-size: 13px;
        line-height: 1.1;
    }
}

/* Masquer les boutons dans le panneau Type de bien pour sélection automatique */
#dropdown-type-bien .hektor-panel-actions {
    display: none;
}

/* Forcer l'alignement à gauche pour tous les éléments du panneau Type de bien */
#dropdown-type-bien,
#dropdown-type-bien *,
#dropdown-type-bien label,
#dropdown-type-bien input,
#dropdown-type-bien span {
    text-align: left !important;
}

/* S'assurer que le conteneur principal n'est pas centré */
#dropdown-type-bien .hektor-type-bien-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

/* ======= SOLUTION CIBLÉE POUR WRAPPER ET APPLAT BLEU ======= */

/* Empêcher uniquement le déplacement vers le haut du wrapper */
.hektor-maquette-search-wrapper {
    position: relative !important;
    top: 0 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Supprimer uniquement les fonds bleus sur le Type de bien */
.hektor-dropdown-container[data-target="type-bien"],
.hektor-dropdown-button[data-target="type-bien"],
#type-bien-panel {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hektor-dropdown-button[data-target="type-bien"].active,
.hektor-dropdown-button[data-target="type-bien"].open {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Supprimer l'applat bleu sur le container */
.hektor-dropdown-container[data-target="type-bien"],
.hektor-dropdown-container[data-target="type-bien"]:hover,
.hektor-dropdown-container[data-target="type-bien"]:focus,
.hektor-dropdown-container[data-target="type-bien"]:active,
.hektor-dropdown-container[data-target="type-bien"].active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force la cliquabilité de tous les éléments du panneau Type de bien */
.hektor-type-bien-container * {
    pointer-events: auto !important;
    z-index: 999999 !important;
    position: relative !important;
}

/* Empêcher toute modification du menu principal lors des interactions */
.hektor-dropdown-container[data-target="type-bien"] {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
}

/* Stabiliser spécifiquement le dropdown Type de bien */
.hektor-dropdown-container[data-target="type-bien"] * {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    transition: none !important;
}

.hektor-type-bien-option {
    display: flex;
    align-items: center;
    padding: 2px 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
    border: none;
    background: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 999999;
    pointer-events: auto;
    line-height: 1.2;
    text-align: left !important;
    justify-content: flex-start !important;
    width: 100%;
}

.hektor-type-bien-option:hover {
    color: #007cba;
}

.hektor-type-bien-option input[type="radio"] {
    margin-right: 6px;
    margin-left: 0;
    accent-color: #007cba;
    position: relative;
    z-index: 999999;
    pointer-events: auto;
    transform: scale(0.9);
}

.hektor-type-bien-option input[type="radio"]:checked+span {
    color: #007cba;
    font-weight: 600;
}

.hektor-type-bien-option span {
    font-size: 14px;
    line-height: 1.2;
    text-align: left !important;
    display: block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hektor-type-bien-option {
        padding: 2px 0;
        font-size: 13px;
    }

    .hektor-type-bien-option span {
        font-size: 13px;
        line-height: 1.1;
    }
}

/* Masquer les boutons dans le panneau Type de bien pour sélection automatique */
#dropdown-type-bien .hektor-panel-actions {
    display: none;
}

/* Forcer l'alignement à gauche pour tous les éléments du panneau Type de bien */
#dropdown-type-bien,
#dropdown-type-bien *,
#dropdown-type-bien label,
#dropdown-type-bien input,
#dropdown-type-bien span {
    text-align: left !important;
}

/* S'assurer que le conteneur principal n'est pas centré */
#dropdown-type-bien .hektor-type-bien-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

/* ======= SOLUTION CIBLÉE POUR WRAPPER ET APPLAT BLEU ======= */

/* Empêcher uniquement le déplacement vers le haut du wrapper */
.hektor-maquette-search-wrapper {
    position: relative !important;
    top: 0 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Supprimer uniquement les fonds bleus sur le Type de bien */
.hektor-dropdown-container[data-target="type-bien"],
.hektor-dropdown-button[data-target="type-bien"],
#type-bien-panel {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}