/* Match Select2 height to WPDating's other form fields */
.city_trigger + .select2-container .select2-selection--single,
.jc-place-picker + .select2-container .select2-selection--single {
    height: 50px !important;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 4px;
    position: relative;
}

.city_trigger + .select2-container .select2-selection__rendered,
.jc-place-picker + .select2-container .select2-selection__rendered {
    line-height: 50px !important;
    padding-left: 0;
    padding-right: 40px !important;
}

.city_trigger + .select2-container .select2-selection__arrow,
.jc-place-picker + .select2-container .select2-selection__arrow {
    height: 48px !important;
}

/* Default (light) theme */
.city_trigger + .select2-container .select2-selection--single,
.jc-place-picker + .select2-container .select2-selection--single {
    background-color: #ffffff;
    border: 1px solid #ccc;
}
.city_trigger + .select2-container .select2-selection__rendered,
.jc-place-picker + .select2-container .select2-selection__rendered {
    color: #333333;
}

/* Dark theme — members directory search box ONLY */
.filter-forms .city_trigger + .select2-container .select2-selection--single {
    background-color: #262626;
    border-color: #444;
}
.filter-forms .city_trigger + .select2-container .select2-selection__rendered {
    color: #fff;
}

/* Clear (×) button */
.select2-selection__clear {
    position: absolute !important;
    right: 30px !important;
    top: 50% !important;
    transform: translateY(-50%);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #999 !important;
    font-size: 18px;
    margin: 0 !important;
}
.select2-selection__clear:focus {
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-selection--single:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #999 !important;
}

/* Place field heading */
.jc-place-heading {
    margin: 0 0 16px 0;
}
.jc-place-heading strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.jc-place-heading p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Toggle helper text */
.jc-toggle-help {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
}

/* Unit toggle — single accent colour, swap fill/outline on click */
.jc-unit-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid #e74c3c !important;
    background: #fff !important;
    color: #e74c3c !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
.jc-unit-btn:focus,
.jc-unit-btn:active,
.jc-unit-btn:hover {
    border-color: #e74c3c !important;
    outline: none !important;
    box-shadow: none !important;
}
.jc-unit-btn.active {
    background: #e74c3c !important;
    color: #fff !important;
}
.jc-unit-btn.active:focus,
.jc-unit-btn.active:active,
.jc-unit-btn.active:hover {
    background: #e74c3c !important;
    color: #fff !important;
}

/* Distance slider */
.jc-distance-slider-wrap {
    margin-top: 10px;
}
.jc-slider-value {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}
.jc-distance-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #ccc;
    outline: none;
}
.jc-distance-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e74c3c 0%, #e74c3c var(--fill, 0%), #ccc var(--fill, 0%), #ccc 100%);
}
.jc-distance-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e74c3c;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-top: -8px;
    cursor: pointer;
}
.jc-distance-range::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #ccc;
}
.jc-distance-range::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #e74c3c;
}
.jc-distance-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e74c3c;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}