/* CSS pour le moteur de recherche maquette sur fond noir */

/* S'assurer que le wrapper principal a un z-index approprié */
.hektor-maquette-search-wrapper {
    background: #000000;
    padding: 0px;
    margin: 0px;
    position: relative;
    z-index: 100;
    /* Base élevée pour le wrapper */
}

label.hektor-type-bien-results-option {
    margin-bottom: -10px;
}

.hektor-maquette-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 101;
}

/* Le formulaire a un z-index modéré */
form#hektor-maquette-form {
    background: #000000;
    position: relative;
    z-index: 102;
}

.hektor-maquette-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr) 40px;
    gap: 15px;
    align-items: center;
}

.hektor-maquette-fields {
    display: contents;
}

.hektor-maquette-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hektor-maquette-field {
    position: relative;
}

.hektor-maquette-select {
    width: 100%;
    padding: 15px 35px 15px 15px;
    border: none;
    border-right: 1px solid #FFFFFF;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.hektor-maquette-select:hover {
    border-color: #555555;
    background: #000000;
    border-right: 1px solid #FFFFFF !important;
}

.hektor-maquette-select:focus {
    border-color: #2a2a2a;
    background: #2a2a2a;
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); */
}

.hektor-maquette-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

.hektor-maquette-search-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 17px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 54px;
}

.hektor-maquette-search-btn:hover {
    background: #1a1a1a;
    /*transform: translateY(-1px);*/
    /*box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);*/
}

.hektor-maquette-search-btn svg {
    width: 20px;
    height: 20px;
}

/* Styles pour les champs de plage (sliders) */
.hektor-range-field {
    position: relative;
    padding: 15px;
    border-right: 1px solid #FFFFFF;
    background: #000000;
}

.hektor-range-field label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.hektor-range-field label span {
    color: #00d4ff;
    font-weight: 600;
    font-size: 12px;
}

/* Slider container */
.hektor-range-slider {
    position: relative;
    height: 6px;
    background: #333333;
    margin: 10px 0;
}

/* Barre de progression entre les deux poignées */
.hektor-range-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    top: 0;
}







/* Styles pour les champs de plage (sliders) - Version conforme à ubiflow */
.ubiflow-search-field {
    position: relative;
}















/* Responsive Design */
@media (max-width: 1200px) {
    .hektor-maquette-form {
        grid-template-columns: repeat(3, 1fr) 40px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hektor-maquette-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hektor-maquette-search-button {
        width: 100%;
    }

    .hektor-maquette-search-btn {
        width: 100%;
        justify-content: center;
    }

    .hektor-maquette-search-wrapper {
        padding: 20px 15px;
    }

    .hektor-range-field {
        border-right: none;
        /*border-bottom: 1px solid #333333;*/
        padding: 20px 15px;
    }

    .hektor-range-slider {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .hektor-maquette-select {
        padding: 12px 30px 12px 12px;
        font-size: 13px;
    }

    .hektor-maquette-search-btn {
        padding: 15px;
        height: 48px;
    }
}

/* Style pour les placeholders et options par défaut */
.hektor-maquette-select option:first-child {
    color: #cccccc;
    font-style: italic;
}

/* Animation au hover sur le formulaire entier */
.hektor-maquette-form:hover .hektor-maquette-select {
    border-color: #444444;
}

/* Focus states améliorés */
.hektor-maquette-field:focus-within .hektor-maquette-select {
    border-color: #2a2a2a;
    background: #2a2a2a;
}

/* ============================================================================
   STYLES POUR LES PANNEAUX DROPDOWN
   ============================================================================ */

/* Container pour tous les panneaux dropdown */
.hektor-dropdown-panels {
    position: relative;
    width: 100%;
    z-index: 9999;
    /* Très haut pour être au-dessus de tout */
}

/* Chaque panneau dropdown - CACHÉ PAR DÉFAUT */
.hektor-dropdown-panel {
    display: none;
    /* IMPORTANT: Cacher par défaut */
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    background: #000000;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    /* Extrêmement haut */
    pointer-events: auto;
    /* S'assurer que les événements de pointeur fonctionnent */
    animation: slideDown 0.3s ease-out;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panneau visible */
.hektor-dropdown-panel.active {
    text-align: start;
    display: block;
}

/* Contenu du panneau */
.hektor-panel-content {
    height: auto;
    padding: 10px;
    color: #FFFFFF;
    position: relative;
    z-index: 99990;
    /* Assurer que le contenu est accessible */
    pointer-events: auto;
}

.hektor-panel-content h4 {
    margin: 0 0 15px 0;
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 600;
}



/* Actions du panneau */
.hektor-panel-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    /*border-top: 1px solid #cccccc;*/
}

.hektor-btn-secondary {
    background: #999999;
    color: #ffffff;
    border: 1px solid #777777;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hektor-btn-secondary:hover {
    background: #777777;
}

.hektor-btn-primary {
    border: 1px solid #FFFFFF !important;
    background: #000000;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #FFFFFF !important;
}

.hektor-btn-primary:hover {
    background: #FFFFFF;
    color: #000000 !important;
}

.hektor-btn-close {
    background: transparent;
    color: #666666;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hektor-btn-close:hover {
    background: #cccccc;
    color: #333333;
}

/* Styles pour les sliders dans les panneaux */
.ubiflow-search-field {
    margin-bottom: 15px;
}

.ubiflow-search-field label {
    margin-top: -8px !important;
    padding: 0px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.ubiflow-search-field label span {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 12px;
}

.ubiflow-range-container {
    position: relative;
    height: 6px;
    background: #333333;
    margin: 15px 0;
    pointer-events: auto;
    z-index: 99990;
    /* Assurer que le container est accessible */
}

/* Barre de progression pour afficher la plage sélectionnée */
.ubiflow-range-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--progress-left, 25%);
    width: var(--progress-width, 50%);
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    z-index: 1;
    transition: all 0.3s ease;
}

.ubiflow-range-input {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
    appearance: none;
    cursor: pointer;
    z-index: 99995;
    /* Très haut pour les sliders */
    outline: none;
    pointer-events: auto;
    /* S'assurer que les événements de pointeur fonctionnent */
}

/* Styles spécifiques pour le slider min (gauche) */
.ubiflow-range-input.ubiflow-range-min {
    z-index: 99996;
    /* Légèrement plus haut */
}

/* Styles spécifiques pour le slider max (droite) */
.ubiflow-range-input.ubiflow-range-max {
    z-index: 99997;
    /* Le plus haut */
}

.ubiflow-range-input::-webkit-slider-track {
    background: transparent;
    height: 6px;
}

.ubiflow-range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 99999;
    /* Le plus haut possible pour les curseurs */
}






/* Styles pour les champs de recherche dans les panneaux */
.ubiflow-search-field {
    margin-bottom: 15px;
    position: relative;
    z-index: 99985;
    pointer-events: auto;
}

/* Style pour les boutons dropdown */
.hektor-dropdown-toggle {
    position: relative;
    z-index: 1;
    /* Faible pour ne pas interférer avec les panneaux */
}

.hektor-dropdown-toggle.active {
    background: #2a2a2a;
    border-color: #ffffff;
    z-index: 99980;
    /* Un peu plus haut quand actif */
}


span#budget-display-text {
    font-weight: 400;
}

/* Styles pour les valeurs affichées dans les boutons dropdown */
#budget-display-value,
#surface-display-value,
#chambres-display-value {
    font-weight: 600;
    color: #FFFFFF;
    margin-left: 0px;
    font-size: 13px;
    display: block;
    margin-top: 3px;
    line-height: 1.2;
}

/* Styles pour le bouton de recherche */
.hektor-filter-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 17px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 54px;
}

.hektor-filter-btn:hover {
    background: #000000;
}

/* === STYLES POUR LES DROPDOWNS AVEC VALEURS SUR LIGNES SÉPARÉES === */
.hektor-dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.hektor-dropdown-label {
    font-size: 14px;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 2px;
    line-height: 1.2;
}

.hektor-dropdown-value {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    margin-top: 2px;
}

/* S'assurer que les boutons dropdown s'adaptent à la nouvelle structure */
.hektor-filter-field.hektor-dropdown-field .hektor-filter-select {
    display: flex;
    align-items: flex-start;
    padding: 8px 14px;
    text-align: left;
    min-height: 40px;
}

.hektor-filter-btn img {
    width: 20px;
    height: 20px;
}

.hektor-dropdown-arrow {
    transition: transform 0.3s ease;
    pointer-events: none;
    /* Empêcher l'icône d'intercepter les clics */
}

.hektor-dropdown-toggle.active .hektor-dropdown-arrow {
    transform: rotate(180deg);
}

/* Forcer la priorité des panneaux dropdown par rapport aux autres éléments */
.hektor-dropdown-panel * {
    position: relative;
    z-index: inherit;
    pointer-events: auto;
}

/* S'assurer que les spans dans les boutons n'interceptent pas les clics */
.hektor-dropdown-toggle span {
    pointer-events: none;
}

/* Styles pour les sliders jQuery UI dans les panneaux */
.ubiflow-range-slider-container {
    padding: 10px 0;
    margin: 15px 0;
}

.ubiflow-range-slider-container .ubiflow-range-slider {
    width: 100%;
    height: 6px;
    background: #cccccc;
    border: none !important;
    margin: 15px 0;
    position: relative;
}

.ubiflow-range-slider-container .ubiflow-range-slider .ui-slider-range {
    background: linear-gradient(90deg, #e6e6e6, #c6c6c6);
    height: 100%;
    border: none !important;
}

.ubiflow-range-slider-container .ubiflow-range-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: 2px solid #0066cc !important;
    cursor: pointer;
    outline: none;
    top: 50%;
    transform: translateY(-50%);
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
    transition: all 0.2s ease;
}



/* Styles spécifiques pour les labels individuels des sliders */
#budget-min-label,
#budget-max-label,
#surface-min-label,
#surface-max-label,
#chambres-min-label,
#chambres-max-label {
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 500;
}

/* Styles pour les inputs sur la même ligne - Style épuré */
.hektor-inputs-two-lines {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    align-items: center !important;
}

/* Surcharge spécifique pour la classe hektor-number-inputs-container */
.hektor-number-inputs-container.hektor-inputs-two-lines {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 !important;
}

.hektor-inputs-two-lines input[type="number"] {
    border-radius: 0px;
    width: calc(50% - 6px) !important;
    flex: 1 !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    background: #ffffff !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.hektor-inputs-two-lines input[type="number"]:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
    transform: translateY(-1px) !important;
}

.hektor-inputs-two-lines input[type="number"]:hover {
    border-color: #bdc3c7 !important;
}

.hektor-inputs-two-lines input[type="number"]::placeholder {
    color: #95a5a6 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

/* Suppression des flèches de navigation sur les inputs number */
.hektor-inputs-two-lines input[type="number"]::-webkit-outer-spin-button,
.hektor-inputs-two-lines input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.hektor-inputs-two-lines input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Styles pour les panneaux dropdown plus épurés */
.hektor-dropdown-panel .hektor-panel-content {
    padding: 0px !important;
}

.hektor-dropdown-panel .ubiflow-search-field {
    margin-bottom: 10px !important;
}

.hektor-dropdown-panel .hektor-panel-actions {
    padding: 15px !important;
}


.hektor-panel-content {
    margin: 10px;
}

.hektor-panel-actions {
    margin-left: -13px;
}

/* Responsive : inputs en colonne sur mobile */
@media (max-width: 768px) {
    .hektor-inputs-two-lines {
        flex-direction: column !important;
    }
}