/* Container Box */
.edts-search-container {
    background: #ffffff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.edts-filter-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.edts-filter-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid #e2e8f0;
    padding-right: 16px;
}

.edts-filter-col:last-child {
    border-right: none;
    padding-right: 0;
    flex: 0 0 160px;
}

.edts-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4a5568;
    letter-spacing: 0.5px;
}

.edts-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edts-value-display {
    font-size: 12px;
    font-weight: 700;
    color: #ffcc00;
}

/* Select Dropdowns */
.edts-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    color: #2d3748;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
}

/* DUAL-THUMB RANGE OVERLAY ENGINE */
.edts-range-slider-wrapper {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.edts-range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #ffcc00;
    border-radius: 2px;
    z-index: 1;
}

.edts-range-slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    pointer-events: none; /* Crucial: Allows click-through to track */
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
}

/* WebKit Custom Thumbs (Chrome, Safari, Edge) */
.edts-range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; /* Re-enables interaction on the handle */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    -webkit-appearance: none;
}

/* Gecko Custom Thumbs (Firefox) */
.edts-range-slider-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffcc00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Submit Action Button */
.edts-submit-btn {
    width: 100%;
    background-color: #ffcc00 !important;
    color: #1A1a1a !important;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.edts-submit-btn:hover {
    background-color: #FFaa00 !important;
}

/* Responsive Collapse */
@media (max-width: 991px) {
    .edts-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .edts-filter-col {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        padding-right: 0;
        padding-bottom: 10px;
    }
    .edts-filter-col:last-child {
        border-bottom: none;
    }
}