@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:wght@400;600&display=swap');

/* ═══════════════════════════════════════════════════════
   DESKTOP SIDEBAR
═══════════════════════════════════════════════════════ */
.rz-filter-sidebar {
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

/* ── Top row: FILTERS heading + CLEAR ALL ── */
.rz-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rz-filter-heading {
    font-family: 'Luckiest Guy', cursive;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* CLEAR ALL — red, uppercase, bold (Figma) */
.rz-clear-all {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #E8453C;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.15s;
}

.rz-clear-all:hover {
    opacity: 0.75;
}

/* ── Active tags row ── */
.rz-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    min-height: 0;
}

/* Tag pill: warm cream bg, dark-brown text (Figma) */
#rz-filter-sidebar .rz-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #FFF3D6 !important;
    color: #6B4F11 !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    line-height: 17.5px !important;
}

#rz-filter-sidebar .rz-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B4F11;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.15s;
}

#rz-filter-sidebar .rz-tag button:hover {
    opacity: 1;
}

/* ── Filter sections ── */
.rz-filter-section {
    border-top: 1px solid #E8E8E8;
    padding-top: 16px;
    margin-bottom: 16px;
}

.rz-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    user-select: none;
}

/* Section label: Poppins, 16px, 600 SemiBold, Color #354E10 (Figma) */
#rz-filter-sidebar .rz-section-label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    text-transform: uppercase !important;
    color: #354E10 !important;
}

/* Count badge e.g. (1) — amber/golden (Figma) */
#rz-filter-sidebar .rz-count {
    color: #D4A017 !important;
    margin-left: 4px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.rz-chevron {
    font-size: 16px;
    color: #aaa;
    transition: transform .2s;
    display: inline-block;
    line-height: 1;
}

.rz-chevron.collapsed {
    transform: rotate(180deg);
}

/* ── Options list ── */
.rz-section-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rz-section-options.hidden {
    display: none;
}

/* Hide checkbox on desktop — plain text list (Figma) */
.rz-option input[type=checkbox] {
    display: none;
}

/* Unselected option — Regular 400, 16px. Left-pad 14px aligns with selected pill (Figma) */
#rz-filter-sidebar .rz-option {
    display: flex !important;
    align-items: center !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 21.33px !important;
    letter-spacing: 0px !important;
    color: #333 !important;
    cursor: pointer !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    transition: background 0.15s, color 0.15s !important;
    width: fit-content !important;
}

#rz-filter-sidebar .rz-option:hover {
    background: #f5f9f0;
    color: #3B6D11;
}

/* Selected option — ID-scoped for specificity, fit-content green pill (Figma) */
#rz-filter-sidebar .rz-option:has(input:checked),
#rz-filter-sidebar .rz-option.rz-pill-active {
    display: inline-flex !important;
    width: fit-content !important;
    background: #E8F5D6 !important;
    color: #6B4F11 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 17.5px !important;
    letter-spacing: 0px !important;
    border-radius: 50px !important;
    /* left padding (14px) matches unselected so text stays aligned */
    padding: 12px 24px 12px 14px !important;
}

/* ═══════════════════════════════════════════════════════
   GRID WRAPPER + LOADING SPINNER
═══════════════════════════════════════════════════════ */
.rz-grid-wrapper {
    position: relative;
    min-height: 200px;
}

.rz-grid-wrapper.rz-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 10;
    border-radius: 8px;
}

.rz-grid-wrapper.rz-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #eee;
    border-top-color: #5DCAA5;
    border-radius: 50%;
    animation: rz-spin .7s linear infinite;
    z-index: 11;
}

@keyframes rz-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   NO RESULTS
═══════════════════════════════════════════════════════ */
.rz-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    width: 100%;
}

.rz-no-results span {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.rz-no-results p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════
   MOBILE FILTER — Tab pills + dropdown panel (Figma)
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop sidebar heading/clear/tags on mobile */
    .rz-filter-top,
    .rz-active-tags {
        display: none;
    }

    /* Entire sidebar becomes a sticky-ish mobile bar */
    .rz-filter-sidebar {
        width: 100%;
    }

    /* ── Mobile top bar: filter icon + horizontal tab pills ── */
    .rz-mobile-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #E8E8E8;
        margin-bottom: 0;
    }

    .rz-mobile-filter-icon {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        color: #3B6D11;
    }

    /* Horizontal scrollable tab row */
    .rz-mobile-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        flex: 1;
    }

    .rz-mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Each tab pill */
    .rz-mobile-tab {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #333;
        background: #fff;
        border: 1.5px solid #D5D5D5;
        border-radius: 50px;
        padding: 6px 14px;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
        user-select: none;
    }

    .rz-mobile-tab .rz-tab-chevron {
        font-size: 11px;
        transition: transform 0.2s;
    }

    /* Active tab: green bg, white text, chevron up */
    .rz-mobile-tab.rz-tab-active {
        background: #5DAA85;
        border-color: #5DAA85;
        color: #fff;
        font-weight: 600;
    }

    .rz-mobile-tab.rz-tab-active .rz-tab-chevron {
        transform: rotate(180deg);
    }

    /* Count badge on tab */
    .rz-tab-count {
        background: rgba(255,255,255,0.3);
        color: inherit;
        font-size: 11px;
        font-weight: 600;
        border-radius: 10px;
        padding: 1px 5px;
        display: none;
    }

    .rz-mobile-tab.rz-tab-active .rz-tab-count,
    .rz-mobile-tab.rz-tab-has-selection .rz-tab-count {
        display: inline-block;
    }

    .rz-mobile-tab.rz-tab-has-selection:not(.rz-tab-active) .rz-tab-count {
        background: #5DAA85;
        color: #fff;
    }

    /* ── Mobile dropdown panel ── */
    .rz-mobile-panel {
        display: none;
        padding: 14px 0 10px;
        border-bottom: 1px solid #E8E8E8;
    }

    .rz-mobile-panel.rz-panel-open {
        display: block;
    }

    .rz-mobile-panel-label {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #555;
        margin-bottom: 10px;
        text-transform: capitalize;
    }

    /* Pills inside the panel */
    .rz-mobile-panel-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rz-mobile-pill {
        display: inline-flex;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #333;
        background: #fff;
        border: 1.5px solid #D5D5D5;
        border-radius: 50px;
        padding: 6px 16px;
        cursor: pointer;
        white-space: nowrap;
        transition: all .15s;
        user-select: none;
    }

    .rz-mobile-pill:hover {
        border-color: #5DAA85;
        color: #3B6D11;
    }

    /* Active pill in panel */
    .rz-mobile-pill.rz-pill-active {
        background: #E8F5D6;
        border-color: #5DAA85;
        color: #6B4F11;
        font-weight: 600;
    }

    /* Hide the original section markup on mobile */
    .rz-filter-section {
        display: none;
    }

    /* Mobile active tags shown below bar */
    .rz-mobile-active-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 0 0;
    }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 769px) {
    .rz-mobile-bar,
    .rz-mobile-panel,
    .rz-mobile-active-tags {
        display: none;
    }

    .rz-mobile-tax-label {
        display: none;
    }
}

/* Dynamic results count text (Figma) */
.rz-results-count {
    font-family: 'Poppins', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: rgba(0, 0, 0, 0.75) !important;
    margin-bottom: 24px !important;
    display: block !important;
    text-transform: none !important;
}
