﻿:root {
    --card-bg: rgba(255,255,255,0.78);
    --card-bd: rgba(0,0,0,0.06);
    --primary: #2563eb; /* xanh điểm nhấn */
    --muted: #6b7280; /* chữ phụ */
    --text: #0f172a; /* chữ chính */
    --ring: rgba(37,99,235,.35);
    --chip-bg: #f1f5f9;
    --chip-bd: #e2e8f0;
    --shadow: 0 10px 25px rgba(2, 6, 23, .08);
}

.price-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0 0 5px 0;
    padding: 5px;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.rowPriceRange {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

    .rowPriceRange .label {
        font-weight: 400;
        font-size: 14px;
        color: #999;
    }

/* Segment buttons */
.seg {
    display: inline-flex;
    border: 1px solid var(--card-bd);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    background: #fff;
}

    .seg input {
        display: none;
    }

    .seg label {
        padding: 2px 12px;
        border-radius: 999px;
        cursor: pointer;
        user-select: none;
        font-weight: 400;
        font-size: 13px;
        color: #fff;
        text-transform:uppercase;
        background:#000;
        transition: all .18s;
    }

    .seg input:checked + label {
        background: #00b2f4;
        color: #fff;
        box-shadow: 0 0 0 2px var(--ring);
    }

    .seg label:hover {
        background: #000;
    }

/* Chips */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-bd);
    font-size: 12px;
    color: #0f172a;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.title {
    font-weight: 400;
    font-size: 16px;
}

/* Slider cosmetics */
.slider-wrap {
    margin: 8px 2px 0 2px;
    position: relative;
}

.noUi-target {
    border-radius: 999px;
    border: 1px solid var(--card-bd);
}

.noUi-connect {
    background: #00b2f4;
}

.noUi-handle {
    box-shadow: 0 6px 15px rgba(37,99,235,.25);
    border: 2px solid white;
    background: #fff;
    width: 22px;
    height: 22px;
    right: -11px !important;
    top: -9px;
    cursor:pointer;
}

    .noUi-handle:before, .noUi-handle:after {
        display: none;
    }

/* Handle value bubble (anh đang ẩn) */
.handle-value {
    position: absolute;
    transform: translate(-50%, -36px);
    background: #0f172a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    display: none
}

    .handle-value:after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #0f172a;
    }

/* Pips */
.noUi-pips-horizontal {
    padding-top: 10px;
    display: none
}

.noUi-value {
    font-size: 10px;
    color: #64748b;
}

.noUi-marker {
    background: #cbd5e1;
}

.group {
    margin-top: 10px;
}

.hidden {
    display: none;
}

@media (max-width: 520px) {
    .seg label {
        padding: 5px 10px;
        font-size: 12px;
    }

    .title {
        font-size: 15px;
    }

    .noUi-pips-horizontal {
        display: none;
    }
}
