.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.offcanvas.active {
    transform: translateX(0);
}

/* Offcanvas header */
.offcanvas-header {
    padding: 5px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.offcanvas-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.btn-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: #333;
}

/* Offcanvas body */
.offcanvas-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    text-align: left;
}

.offcanvas-body .hint-block {
    font-size: smaller;
    color: #999999;
}

.offcanvas-body input[type=range] {
    accent-color: #E31E24;
}

.offcanvas-body input[type=range]:hover {
    accent-color: #e63c41;
}

.offcanvas-body .time-range-picker {
    text-decoration: underline;
    text-decoration-style: dashed;
}

.filter-group h3 {
    font-size: 12px;
    padding-top: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex: 1;
    user-select: none;
}

.filter-option input[type="checkbox"]:checked + label {
    font-weight: 500;
    color: #3b82f6;
}

/* Offcanvas footer */
.offcanvas-footer {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.offcanvas-footer .btn.btn-medium {
    line-height: 20px;
    padding: 5px 20px;
}

/* screll */

.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* backdrop */
.backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: 999;
    backdrop-filter: blur(1px);
}

.backdrop.active {
    display: block;
}

.price-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #c1c0c0;
    border: 1px solid #c1c0c0;
    border-radius: 4px;
}

.price-filter svg {
    width: 14px;
    height: 14px;
}

.price-filter svg use {
    fill: currentColor;
}

.price-filter.active {
    color: #e31e24;
    border-color: #e31e24;
}

