/* ============================================================
   filter-custom.css
   Central CSS customisation file for all Journal3 filter overrides.
   – PRICE FILTER: hides the default dual text-input "extra-controls" row,
     re-styles the ion.rangeSlider to match the target design
     (orange track + handle, rounded, thick bar),
     and shows a clean "min … max+" label row instead.
   ============================================================ */

/* ----------------------------------------------------------
   1. HIDE DEFAULT EXTRA-CONTROLS (text inputs + $ symbols)
   ---------------------------------------------------------- */
.filter-price .filter-price-extra-controls-hidden {
    display: none !important;
}

/* ----------------------------------------------------------
   2. SLIDER TRACK RE-STYLE
   ---------------------------------------------------------- */

/* Outer container height */
.filter-price .irs {
    height: 48px;
}

/* Track (background line) */
.filter-price .irs-line {
    height: 6px;
    top: 28px;
    background: #d1d5db;
    border: none;
    border-radius: 99px;
    overflow: visible;
}

.filter-price .irs-line-left,
.filter-price .irs-line-mid,
.filter-price .irs-line-right {
    height: 6px;
    background: transparent;
}

/* Filled (selected) portion of the track */
.filter-price .irs-bar {
    height: 6px;
    top: 28px;
    background: #dd0e1c;
    /* orange-500 */
    border: none;
    border-radius: 99px;
}

/* Left rounded edge of filled bar */
.filter-price .irs-bar-edge {
    height: 6px;
    top: 28px;
    width: 10px;
    background: #dd0e1c;
    border: none;
    border-radius: 99px 0 0 99px;
}

/* ----------------------------------------------------------
   3. SLIDER HANDLES
   ---------------------------------------------------------- */

.filter-price .irs-slider {
    top: 18px;
    width: 22px;
    height: 22px;
    background: #dd0e1c;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(249, 115, 22, 0.45), 0 0 0 2px rgba(249, 115, 22, 0.2);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}

/* LEFT handle — keep visible (shows bar-start drag point) */
.filter-price .irs-slider.from {
    background: #9ca3af;
    /* gray — optional: make it match bar colour too */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* RIGHT (to) handle — the prominent orange circle */
.filter-price .irs-slider.to {
    background: #dd0e1c;
    box-shadow: 0 1px 6px rgba(249, 115, 22, 0.45), 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.filter-price .irs-slider.state_hover,
.filter-price .irs-slider:hover {
    background: #ea6c0a;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.55), 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* ----------------------------------------------------------
   4. HIDE FLOATING BUBBLE LABELS (irs-from / irs-to / irs-single)
   ---------------------------------------------------------- */
.filter-price .irs-from,
.filter-price .irs-to,
.filter-price .irs-single {
    display: none !important;
}

/* Hide the corner min/max labels too */
.filter-price .irs-min,
.filter-price .irs-max {
    display: none !important;
}

/* ----------------------------------------------------------
   5. CUSTOM PRICE LABEL ROW  (populated by filter-price-custom.js)
   ---------------------------------------------------------- */

.filter-price-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 0 2px;
}

/* Min price label (left, plain grey) */
.filter-price-label-min {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    /* gray-500 */
    letter-spacing: 0.01em;
}

/* Max price label (right, orange, bold) */
.filter-price-label-max {
    font-size: 14px;
    font-weight: 700;
    color: #dd0e1c;
    /* orange-500 */
    letter-spacing: 0.01em;
}

/* Subtle padding inside the filter-price block */
.filter-price {
    padding-bottom: 4px;
}

/* Range slider wrapper spacing */
.filter-price .range-slider {
    padding: 0 2px;
}

/* ----------------------------------------------------------
   6. ACTIVE FILTERS & BADGE
   ---------------------------------------------------------- */

.active-filter-count-badge {
    background-color: #dd0e1c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    margin-left: 0px;
    display: inline-block;
    vertical-align: middle;
}

button.custom-clear-btn {
    color: #dd0e1c;
    float: right;
    font-size: 12px;
    font-weight: bold;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-top: 2px;
    cursor: pointer;
    right: 12px !important;

}

button.custom-clear-btn:hover {
    color: #ea580c;
    background: none !important;
}

.active-filters-wrap {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.active-filter-pill {
    background-color: #ffecd2;
    color: #d0460c;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s background-color;
}

.active-filter-pill:hover {
    background-color: #ffe0b2;
}

.active-filter-pill-x {
    margin-left: 8px;
    font-weight: normal;
    font-size: 12px;
}

.filter-group-wrap {
    margin-bottom: 25px;
    border-top: 1px solid #edf1f4;
    padding-top: 25px;
}

h4.filter-group-title {
    color: #8c9fb1;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 0;
}

/* ----------------------------------------------------------
   6. FILTER GROUP FLAT LIST & ALIGNMENT
   ---------------------------------------------------------- */

.filter-group-body label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px !important;
    padding-right: 2px;
    margin-top: 0;
}

.filter-group-body input[type="checkbox"],
.filter-group-body input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 12px 0 0 !important;
    cursor: pointer;
    border-radius: 4px !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #cbd5e1 !important;
    background-color: #fff !important;
    outline: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.filter-group-body input[type="checkbox"]:checked,
.filter-group-body input[type="radio"]:checked {
    background-color: #dd0e1c !important;
    border-color: #dd0e1c !important;
}

/* The actual checkmark inside the checked box */
.filter-group-body input[type="checkbox"]:checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: relative;
    top: -1px;
}

/* Inner colored dot for rounded radio buttons */
.filter-group-body input[type="radio"] {
    border-radius: 50% !important;
}

.filter-group-body input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.filter-group-body .links-text {
    flex: 1;
    font-size: 15px !important;
    color: #3f4a5c !important;
    font-weight: 500 !important;
    transition: color 0.15s;
    line-height: 1.2;
}

.filter-group-body input:checked~.links-text {
    color: #ea580c !important;
    font-weight: 600 !important;
}

.filter-group-body .count-badge {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #8c9fb1 !important;
    margin-left: auto;
    background: transparent !important;
    padding: 0 !important;
    min-width: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.filter-group-body label:last-child {
    margin-bottom: 0px !important;
}

.title.module-title {
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: left;
}

.title.module-title::after {
    content: none !important;
    display: none !important;
}