    .dual-range-slider {
        position: relative;
        height: 20px;
        margin: 15px 0;
    }
    .dual-range-slider input[type=range] {
        position: absolute;
        width: 100%;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
        height: 0;
        z-index: 2;
    }
    .dual-range-slider input[type=range]::-webkit-slider-thumb {
        pointer-events: all;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid var(--ds-primary, #00ab6c);
        background: white;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -8px;
    }
    .dual-range-slider input[type=range]::-moz-range-thumb {
        pointer-events: all;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid var(--ds-primary, #00ab6c);
        background: white;
        cursor: pointer;
    }
    .dual-range-slider .slider-track {
        position: absolute;
        height: 4px;
        background: var(--ds-border, #e1e7ef);
        border-radius: 2px;
        top: 8px;
        left: 0;
        right: 0;
        z-index: 1;
    }
    .dual-range-slider .slider-range {
        position: absolute;
        height: 4px;
        background: var(--ds-primary, #00ab6c);
        border-radius: 2px;
        top: 8px;
        z-index: 1;
    }
    .bfont {
        font-family: "IRANYekanXFaNum", sans-serif !important;
    }

    .active-li {
        background: var(--ds-primary, #00ab6c) !important;
    }

    /* ===== NEW MOBILE FILTER STYLES ===== */
    @media (max-width: 768px) {
        #hide-from-mobile { display: none !important; }
        #filterSidebar {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 350px;
            height: 100%;
            background: #fff;
            z-index: 1050;
            overflow-y: auto;
            transition: right 0.3s ease;
            box-shadow: -2px 0 10px rgba(0,0,0,0.15);
            padding: 20px 16px;
            display: block !important;
            border-radius: 0;
        }
        #filterSidebar.active {
            right: 0;
        }
        .filter-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1040;
        }
        .filter-overlay.active {
            display: block;
        }
        .filter-toggle-btn {
            display: inline-flex !important;
        }
        /* one bar at the bottom of the screen: previous day | filters and sort | next day (under the header's menu, z-index 59, and the filters' own layers) */
        .list-actions {
            display: flex;
            align-items: center;
            position: fixed;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            left: 50%;
            transform: translateX(-50%);
            z-index: 45;
            padding: 4px;
            border-radius: 999px;
            background: var(--ds-primary, #00ab6c); /* the site's primary green (the header's active tab) */
            box-shadow: 0 8px 24px color-mix(in srgb, var(--ds-primary, #00ab6c) 40%, transparent);
            white-space: nowrap;
        }
        .list-actions__btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
        .list-actions__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
        .list-actions__btn:active { transform: scale(.95); background: rgba(255,255,255,.2); }
        .list-actions #filterToggleBtn { gap: 6px; margin: 0 2px; padding: 0 14px; background: #fff; color: var(--ds-primary, #00ab6c); }
        .list-actions__btn.is-disabled { opacity: .35; cursor: default; }
        @media (max-width: 359px) { .list-actions__btn { padding: 0 8px; font-size: 12px; } .list-actions #filterToggleBtn { padding: 0 10px; } } /* the narrowest phones */
        .list-actions__btn.is-disabled:active { transform: none; background: transparent; }
        /* the order of the list, on top of the filters */
        .list-sort { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ds-surface-2, #eef2f7); }
        .list-sort button { padding: 8px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--ds-text, #101828); font-size: 12px; cursor: pointer; }
        .list-sort button.is-active { background: var(--ds-primary, #00ab6c); color: #fff; }
        /* دکمه بستن داخل سایدبار */
        .filter-close-btn {
            display: block !important;
        }
        /* در موبایل سایدبار را از حالت فلکس خارج می‌کنیم */
        .filter-sidebar-wrapper {
            flex: 0 0 auto;
            width: auto;
        }
    }
    @media (min-width: 769px) {
        #filterSidebar {
            position: relative;
            right: auto;
            /*width: auto;*/
            max-width: none;
            height: auto;
            box-shadow: none;
            padding: 0;
            overflow: visible;
            background: transparent;
            transition: none;
            display: block !important;
            border-radius: 0;
        }
        .filter-overlay {
            display: none !important;
        }
        .filter-toggle-btn, .list-actions, .list-sort-field {
            display: none !important;
        }
        .filter-close-btn {
            display: none !important;
        }
    }
    /* استایل دکمه فیلتر در موبایل */
    .filter-toggle-btn {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #fff;
        border: 1px solid var(--ds-border, #e1e7ef);
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ds-text, #101828);
        cursor: pointer;
        transition: all 0.2s;
        height: 36px;
    }
    .filter-toggle-btn:hover {
        background: var(--ds-surface-2, #eef2f7);
    }
    .filter-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    .filter-close-btn {
        display: none;
        background: transparent;
        border: none;
        font-size: 22px;
        color: var(--ds-muted, #596579);
        cursor: pointer;
        padding: 4px 8px;
        margin-bottom: 12px;
        text-align: left;
        width: 100%;
    }
    .filter-close-btn:hover {
        color: var(--ds-text, #101828);
    }
    /* در موبایل نتایج هتل‌ها تمام عرض را بگیرد */
    @media (max-width: 768px) {
        .hotel-results-container {
            flex: 1 1 100% !important;
            max-width: 100% !important;
        }
        .filter-sidebar-wrapper {
            flex: 0 0 0 !important;
        }
    }



    @keyframes pulse-golden-outline {
        0% { transform: scale(1); border-color: color-mix(in srgb, var(--ds-accent, #cc4420) 40%, transparent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-accent, #cc4420) 10%, transparent); }
        50% { transform: scale(1.03); border-color: color-mix(in srgb, var(--ds-accent, #cc4420) 90%, transparent); box-shadow: 0 0 20px 5px color-mix(in srgb, var(--ds-accent, #cc4420) 15%, transparent); }
        100% { transform: scale(1); border-color: color-mix(in srgb, var(--ds-accent, #cc4420) 40%, transparent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ds-accent, #cc4420) 10%, transparent); }
    }
    .animate-pulse-golden-outline {
        animation: pulse-golden-outline 1.8s ease-in-out infinite;
    }

    /* ===== compact filters (the sidebar and the phone's panel) ===== */
    #filterSidebar .p-5 { padding: 14px; }
    #filterSidebar .space-y-5 > * + * { margin-top: 12px; }
    #filterSidebar h3 { font-size: 15px; }
    #filterSidebar label.mb-3 { margin-bottom: 8px; font-size: 13px; }
    #filterSidebar #minPriceDisplay, #filterSidebar #maxPriceDisplay { font-size: 12px; }
    #filterSidebar .filter-options > * + * { margin-top: 5px; }
    #filterSidebar .filter-options label, #filterSidebar label[for="specialOffer"] { font-size: 13px; }
    #filterSidebar input[type=checkbox] { width: 15px; height: 15px; }
    #filterSidebar #filter-price { padding: 6px 0; font-size: 13px; }
    @media (min-width: 769px) {
        #filterSidebar { width: 17rem; }
    }
    @media (max-width: 768px) {
        #filterSidebar { max-width: min(290px, 85vw); padding: 0; }
        #filterSidebar > div { border: 0; box-shadow: none; border-radius: 0; }
        #filterSidebar #filterCloseBtn { display: none !important; } /* the × beside the title closes it */
        #filterSidebar h3 { margin-top: 0; }
        #filterSidebar #closeNow { order: 1; margin-inline-start: auto; width: 30px; height: 30px; padding: 0; }
        #filterSidebar h3 a { margin: 0; margin-inline-start: auto; font-size: 12px; }
        #filterSidebar h3 a + #closeNow { margin-inline-start: 4px; }
        #filterSidebar .space-y-5 > * + * { margin-top: 10px; }
        /* two options a row */
        #filterSidebar .filter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 8px; max-height: none; }
        #filterSidebar .filter-options > * + * { margin-top: 0; }
        #filterSidebar .filter-options label, #filterSidebar label[for="specialOffer"] { font-size: 12px; }
        #filterSidebar .dual-range-slider { margin: 12px 0 4px; }
        /* the apply button stays at the bottom of the panel */
        #filterSidebar #filter-price { position: sticky; bottom: 10px; z-index: 3; box-shadow: 0 -6px 0 6px #fff; }

        .hlm-sort { display: none !important; }
        #hotelSearchBtnEdit { width: 100%; } /* the search box's button takes the whole width */
    }

    /* the cashback / club points chip of a hotel card */
    .ds-cashback { position: relative; /* its label sits on its own top edge, not on the card's */ border: 1px solid color-mix(in srgb, var(--ds-accent, #cc4420) 30%, transparent); background: var(--ds-accent-soft, #fdede8); }
    .ds-cashback .hotel-card__cashback { color: var(--ds-accent-text, #b43a19); }
    .ds-cashback__label { background: #fff; color: var(--ds-accent-text, #b43a19); border: 1px solid color-mix(in srgb, var(--ds-accent, #cc4420) 30%, transparent); }

    /* the chip explains itself: its tooltip (list-cashback-tip.js) is added to the body, a card would cut it off */
    .js-cashtip { cursor: help; }
    .js-cashtip:focus-visible { outline: 2px solid var(--ds-accent, #cc4420); outline-offset: 2px; }
    .cashtip-mark { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; margin-inline-start: 2px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; line-height: 1; vertical-align: middle; }
    .cashtip { position: fixed; z-index: 1100; width: 270px; max-width: calc(100vw - 16px); padding: 10px 12px; border-radius: 10px; background: var(--ds-secondary, #14365c); color: #fff; font-size: 12px; line-height: 1.9; text-align: right; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
    .cashtip[hidden] { display: none; }
    .cashtip strong { display: block; margin-bottom: 2px; font-size: 13px; }
    .cashtip small { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.2); font-size: 11px; opacity: .8; }
    .cashtip::after { content: ""; position: absolute; left: var(--cashtip-arrow, 50%); width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); bottom: -5px; }
    .cashtip.is-below::after { bottom: auto; top: -5px; }
