/* Dual Range Input Styles */
.dual-range-wrapper {
    position: relative;
    margin: 20px 0 40px;
    padding: 0 10px;
}

.dual-range-track {
    position: relative;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 26px 0 10px; /* ligeramente menos para alinear mejor los thumbs */
}

.dual-range-fill {
    position: absolute;
    height: 100%;
    background: var(--e-global-color-primary, #6a29db);
    border-radius: 2px;
    transition: left 0.1s, width 0.1s;
}

.dual-range-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: -6px;
    left: 0;
}

.dual-range-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid var(--e-global-color-primary, #6a29db);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: none !important; /* eliminar sombras heredadas bootstrap/tema */
    filter: none !important;
    transition: transform 0.1s;
}

.dual-range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.dual-range-wrapper input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dual-range-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid var(--e-global-color-primary, #6a29db);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: none !important;
    filter: none !important;
    transition: transform 0.1s;
}

.dual-range-wrapper input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.dual-range-wrapper input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dual-range-wrapper .dual-range-max {
    z-index: 2;
}

.dual-range-wrapper .dual-range-min {
    z-index: 3;
}

.dual-range-wrapper .range-values {
    margin-top: 20px;
}

.dual-range-wrapper .range-box {
    border: 1px solid var(--e-global-color-primary, #6a29db);
    border-radius: 15px;
    padding: 8px 12px;
    min-width: calc(50% - 30px);
    text-align: center;
}

.dual-range-wrapper .range-box label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.dual-range-wrapper .range-box input {
    border: none;
    background: transparent;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    color: var(--e-global-color-primary, #6a29db);
    padding: 0;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

.dual-range-wrapper .separator {
    font-size: 20px;
    color: #666;
    padding: 0 10px;
}

/* Dialog specific styles */
#iowp-popup-filter h2.section-title {
    font-family: "Manrope", Sans-serif;
    font-size: 18px;
    color: var(--e-global-color-primary, #6a29db);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

#iowp-popup-filter h2.section-title:first-child {
    margin-top: 0;
}

#iowp-popup-filter hr {
    border-color: #e0e0e0;
    margin: 2rem 0;
}

#iowp-btn-apply-filters {
    font-family: "Manrope", sans-serif;
    color: var(--ast-global-color-3, #333);
    background-color: transparent;
    border: 2px solid var(--e-global-color-primary, #6a29db);
    border-radius: 25px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

#iowp-btn-apply-filters:hover {
    color: white;
    background-color: var(--e-global-color-primary, #6a29db);
}

/* Custom checkboxes cuadrados */
#iowp-popup-filter .form-check-input {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border: 2px solid var(--e-global-color-primary, #6a29db);
    border-radius: 0;
    background-color: white;
    cursor: pointer;
    position: relative;
}
#iowp-popup-filter .form-check-input:checked[type=checkbox] {
    background-image: none !important;
}

#iowp-popup-filter .form-check-input:checked {
    background-color: var(--e-global-color-primary, #6a29db);
    border-color: var(--e-global-color-primary, #6a29db);
}

#iowp-popup-filter .form-check-input:checked::after {
    /* content: '✓'; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

#iowp-popup-filter .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(106, 41, 219, 0.25);
    outline: none;
}

#iowp-popup-filter .form-check-label {
    cursor: pointer;
    margin-left: 8px;
}

/* Badge de filtros activos */
.iowp-filter-badge {
    font-size: 11px;
    padding: 3px 7px;
    vertical-align: middle;
    background-color: var(--e-global-color-primary, #6a29db);
    color: white;
    left: Calc(100% - 20px) !important;
}

/* ==== Bootstrap / Astra resets específicos para range dentro del wrapper ==== */
.dual-range-wrapper input[type="range"]:focus { outline: none; box-shadow: none !important; }
.dual-range-wrapper input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; box-shadow: none; }
.dual-range-wrapper input[type="range"]::-moz-range-track { background: transparent; border: 0; box-shadow: none; }
.dual-range-wrapper input[type="range"]::-ms-track { background: transparent; border: 0; color: transparent; }
.dual-range-wrapper input[type="range"]::-ms-thumb { box-shadow: none !important; border: 2px solid var(--e-global-color-primary, #6a29db); }
.dual-range-wrapper input[type="range"]::-ms-fill-lower,
.dual-range-wrapper input[type="range"]::-ms-fill-upper { background: transparent; }

/* Asegurar que dos inputs superpuestos no generen artefactos visuales */
.dual-range-wrapper .dual-range-min { mix-blend-mode: normal; }
.dual-range-wrapper .dual-range-max { mix-blend-mode: normal; }
