/* JustReused Browse Mockup v3, compact hero, orange primary, green = trust only */



:root {
    --jr-brand: #f3981a;
    --jr-brand-hover: #e68a07;
    --jr-brand-soft: rgba(243, 152, 26, 0.14);
    --jr-trust: #1db954;
    --jr-trust-soft: rgba(29, 185, 84, 0.12);
    --jr-catnav-width: 236px;
    --jr-main-pad: 20px;
    --jr-shell-max: 1280px;
}

/* Dark browse surfaces (Spotify theme) */
[data-jr-theme="spotify"] {
    --jr-surface-bg: #0a0a0a;
    --jr-surface-1: #141414;
    --jr-surface-2: #1c1c1c;
    --jr-surface-3: #242424;
    --jr-border: rgba(255, 255, 255, 0.1);
    --jr-text: #ffffff;
    --jr-text-muted: #a3a3a3;
    --jr-text-dim: #737373;
}

/* Light browse surfaces */
[data-jr-theme="light"] {
    --jr-surface-bg: #f8fafc;
    --jr-surface-1: #ffffff;
    --jr-surface-2: #f1f5f9;
    --jr-surface-3: #e2e8f0;
    --jr-border: #e2e8f0;
    --jr-text: #0f172a;
    --jr-text-muted: #64748b;
    --jr-text-dim: #94a3b8;
}



.jr-browse-page.af-search-root {

    background: var(--jr-surface-bg);

}



/* ── Shell: left rail + main ── */

.jr-browse-shell {

    display: grid;

    grid-template-columns: var(--jr-catnav-width) minmax(0, 1fr);

    gap: 0;

    width: 100%;

    max-width: var(--jr-shell-max);

    margin: 0 auto;

}



.jr-browse-main {

    min-width: 0;

    padding: 0 var(--jr-main-pad) 40px;

}



/* Category rail */

.jr-browse-catnav {

    position: sticky;

    top: 5rem;

    align-self: start;

    height: calc(100vh - 5rem);

    display: flex;

    flex-direction: column;

    padding: 18px 12px 20px 16px;

    border-right: 1px solid var(--jr-border);

    background: var(--jr-surface-bg);

    overflow-y: auto;

}



.jr-browse-catnav__list {

    display: flex;

    flex-direction: column;

    gap: 2px;

    flex: 1;

}



.jr-browse-catnav__btn {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 10px 12px;

    border: 1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: var(--jr-text-muted);

    font-size: 14px;

    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;

}



.jr-browse-catnav__btn i {

    width: 20px;

    text-align: center;

    font-size: 15px;

    flex-shrink: 0;

}



.jr-browse-catnav__btn:hover {

    background: var(--jr-surface-2);

    color: var(--jr-text);

}



.jr-browse-catnav__btn.is-active {

    background: var(--jr-surface-2);

    border-color: var(--jr-brand);

    color: var(--jr-text);

    box-shadow: inset 3px 0 0 var(--jr-brand);

}



.jr-browse-catnav__btn.is-active i {

    color: var(--jr-brand);

}



.jr-browse-catnav__safe {

    margin-top: 16px;

    padding: 14px;

    border-radius: 12px;

    background: var(--jr-surface-2);

    border: 1px solid var(--jr-border);

}



.jr-browse-catnav__safe-title {

    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0 0 6px;

    font-size: 13px;

    font-weight: 700;

    color: var(--jr-text);

}



.jr-browse-catnav__safe-title i {

    color: var(--jr-trust);

}



.jr-browse-catnav__safe p {

    margin: 0;

    font-size: 12px;

    line-height: 1.45;

    color: var(--jr-text-muted);

}



.jr-browse-catnav__safe a {

    color: var(--jr-brand);

    font-weight: 600;

    text-decoration: none;

}



.jr-browse-catnav__safe a:hover {

    text-decoration: underline;

}



/* Hide legacy icon-only rail */

.jr-browse-page .af-hero-shell > .af-vertical-rail {

    display: none !important;

}



.jr-browse-page .af-hero-shell {

    display: block !important;

    grid-template-columns: 1fr !important;

    gap: 0 !important;

}



.jr-browse-page .af-hero-panel {

    width: 100%;

}



.jr-browse-page .af-category-quickpick {

    display: none !important;

}



/* ── Hero, design order: tabs → search → filters → actions ── */

.jr-browse-page .af-search-section {

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    padding: 24px 0 0 !important;

    margin: 0 !important;

    max-width: none !important;

    width: 100% !important;

    border-radius: 0 !important;

    overflow: visible !important;

}



.jr-browse-page .af-search-section::before {

    display: none !important;

}



.jr-browse-page .af-search-content {

    max-width: none;

    padding: 0;

}



.jr-browse-page .af-search-title {

    font-size: clamp(1.75rem, 3vw, 2.35rem) !important;

    font-weight: 800 !important;

    color: var(--jr-text) !important;

    margin: 0 0 6px !important;

    letter-spacing: -0.02em;

    text-align: left !important;

}



.jr-browse-page .af-search-title .af-accent {

    color: var(--jr-brand);

}



.jr-browse-page .af-search-subtitle {

    color: var(--jr-text-muted) !important;

    font-size: 14px !important;

    margin-bottom: 18px !important;

    text-align: left !important;

    max-width: 36rem !important;

}



.jr-browse-page .af-hero-card {

    background: var(--jr-surface-1) !important;

    border: 1px solid var(--jr-border) !important;

    border-radius: 16px !important;

    padding: 18px 20px !important;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;

}



.jr-browse-page .af-hero-card form {

    display: flex;

    flex-direction: column;

    gap: 14px;

}



/* Hero content order — design: filters then tabs/actions (keywords live in site header) */
.jr-browse-page .af-listing-tabs { order: 3 !important; }
.jr-browse-page .af-search-form-primary { display: none !important; }
.jr-browse-page .af-filter-grid { order: 1 !important; }
.jr-browse-page .af-hero-footer { order: 4 !important; }

.jr-browse-page .af-listing-tabs { order: 3; }









.jr-browse-page .af-filter-grid {

    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 12px !important;

    margin-top: 0 !important;

}



.jr-browse-page .af-filter-grid-label {

    font-size: 11px !important;

    font-weight: 700 !important;

    text-transform: uppercase !important;

    letter-spacing: 0.05em !important;

    color: var(--jr-text-muted) !important;

    margin-bottom: 6px !important;

}



.jr-browse-page .af-field-hint {

    display: none;

}



.jr-browse-page .af-search-group-block,

.jr-browse-page .af-search-form-primary .af-search-group {

    background: var(--jr-surface-2) !important;

    border: 1px solid var(--jr-border) !important;

    border-radius: 10px !important;

}



.jr-browse-page .af-search-form-primary .af-search-group {

    border-radius: 12px !important;

    min-height: 48px;

    padding: 4px 14px !important;

}



.jr-browse-page .af-filter-grid-field .af-search-group-block,

.jr-browse-page .af-filter-grid-field > .af-search-group {

    min-height: 46px !important;

    background: var(--jr-surface-2) !important;

    border: 1px solid var(--jr-border) !important;

    border-radius: 10px !important;

}



.jr-browse-page .af-search-input,

.jr-browse-page .af-loc-input,

.jr-browse-page .af-cat-select {

    color: var(--jr-text) !important;

    font-size: 14px !important;

}



.jr-browse-page .af-listing-tabs {

    background: var(--jr-surface-2) !important;

    border: 1px solid var(--jr-border) !important;

    border-radius: 999px !important;

    padding: 3px !important;

    width: fit-content;

    margin-bottom: 0 !important;

}



.jr-browse-page .af-listing-tab {

    border-radius: 999px !important;

    padding: 8px 16px !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    color: var(--jr-text-muted) !important;

}



.jr-browse-page .af-listing-tab.active,

[data-jr-theme="spotify"] .jr-browse-page .af-listing-tab.active {

    background: var(--jr-brand) !important;

    color: #fff !important;

    border-bottom-color: transparent !important;

}



.jr-browse-page .af-hero-footer {

    display: flex !important;

    flex-wrap: wrap;

    align-items: center;

    gap: 10px !important;

    border-top: 1px solid var(--jr-border) !important;

    padding-top: 14px !important;

    margin-top: 0 !important;

}



.jr-browse-page .af-show-offers-btn,

[data-jr-theme="spotify"] .jr-browse-page .af-show-offers-btn {

    flex: 1;

    min-width: 180px;

    max-width: none !important;

    margin: 0 !important;

    background: var(--jr-brand) !important;

    color: #fff !important;

    border: none !important;

    border-radius: 10px !important;

    padding: 13px 22px !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    box-shadow: 0 4px 16px rgba(243, 152, 26, 0.3) !important;

}



.jr-browse-page .af-show-offers-btn:hover,

[data-jr-theme="spotify"] .jr-browse-page .af-show-offers-btn:hover {

    background: var(--jr-brand-hover) !important;

}



.jr-browse-page .af-more-filters,

[data-jr-theme="spotify"] .jr-browse-page .af-more-filters {

    background: var(--jr-surface-2) !important;

    border: 1px solid var(--jr-border) !important;

    color: var(--jr-text) !important;

    border-radius: 10px !important;

    padding: 13px 18px !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    cursor: pointer;

}



.jr-browse-page .af-more-filters i {

    color: var(--jr-brand) !important;

}



.jr-browse-page .af-more-filters:hover,

.jr-browse-page .af-more-filters.is-active {

    border-color: var(--jr-brand) !important;

    color: var(--jr-brand) !important;

    background: var(--jr-brand-soft) !important;

}



.jr-browse-page .af-browse-prompt {

    display: none;

}



/* ── Expanded filters (collapsed by default) ── */

.jr-expanded-filters {

    display: none;

    margin-top: 12px;

    padding: 18px 20px;

    background: var(--jr-surface-1);

    border: 1px solid var(--jr-border);

    border-radius: 14px;

}



.jr-expanded-filters.is-open {

    display: block;

}



.jr-expanded-filters__header {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 16px;

    padding-bottom: 14px;

    border-bottom: 1px solid var(--jr-border);

}



.jr-expanded-filters__title {

    margin: 0;

    font-size: 16px;

    font-weight: 700;

    color: var(--jr-text);

}



.jr-expanded-filters__title::before {

    content: '';

    display: inline-block;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--jr-brand);

    margin-right: 8px;

    vertical-align: middle;

    box-shadow: 0 0 6px var(--jr-brand);

}



.jr-expanded-filters__actions {

    display: flex;

    gap: 8px;

}



.jr-expanded-filters__reset {

    padding: 8px 14px;

    border-radius: 8px;

    border: 1px solid var(--jr-border);

    background: transparent;

    color: var(--jr-text-muted);

    font-weight: 600;

    font-size: 13px;

    cursor: pointer;

}



.jr-expanded-filters__reset:hover:not(:disabled) {

    color: var(--jr-text);

}



.jr-expanded-filters__reset:disabled {

    opacity: 0.4;

    cursor: not-allowed;

}



.jr-expanded-filters__apply {

    padding: 8px 16px;

    border-radius: 8px;

    border: none;

    background: var(--jr-brand);

    color: #fff;

    font-weight: 700;

    font-size: 13px;

    cursor: pointer;

}



.jr-expanded-filters__apply:hover {

    background: var(--jr-brand-hover);

}



.jr-expanded-filters__taxonomy {

    margin-bottom: 16px;

}



.jr-expanded-filters__taxonomy .af-step-label {

    font-size: 11px !important;

    margin: 14px 0 8px !important;

}



.jr-expanded-filters__taxonomy .af-type-grid {

    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;

}



.jr-expanded-filters__taxonomy .af-type-grid .af-type-pick {

    min-height: 84px !important;

    padding: 12px 8px !important;

    font-size: 12px !important;

}



.jr-expanded-filters__taxonomy .af-type-grid .af-type-pick i:first-child {

    font-size: 20px !important;

}



.jr-expanded-filters__groups {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.jr-filter-group__label {

    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0 0 10px;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    color: var(--jr-text-muted);

}



.jr-filter-group__label i {

    color: var(--jr-brand);

}



.jr-filter-group__grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

    gap: 10px;

}



.jr-filter-field__label {

    display: block;

    margin-bottom: 5px;

    font-size: 12px;

    font-weight: 600;

    color: var(--jr-text-muted);

}



.jr-filter-select {

    width: 100%;

    padding: 9px 11px;

    border-radius: 8px;

    border: 1px solid var(--jr-border);

    background: var(--jr-surface-2);

    color: var(--jr-text);

    font-size: 13px;

}



.jr-filter-select:focus {

    outline: none;

    border-color: var(--jr-brand);

    box-shadow: 0 0 0 2px var(--jr-brand-soft);

}



.jr-expanded-filters__empty {

    color: var(--jr-text-muted);

    font-size: 13px;

    margin: 0;

}



/* ── Results ── */

.jr-browse-page .af-container {

    display: block !important;

    max-width: none !important;

    padding: 20px 0 0 !important;

}



/* Post-search: full-width results; refine lives in jr-expanded-filters only */
.jr-browse-page .af-sidebar,
.jr-browse-page .af-sidebar-overlay,
.jr-browse-page .af-mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.jr-browse-page .af-container--single,
.jr-browse-page.is-results .af-container {
    display: block !important;
}

.jr-browse-page .af-container--single .af-main,
.jr-browse-page.is-results .af-main {
    width: 100% !important;
    max-width: none;
}

@media (min-width: 1025px) {
    .jr-browse-page.is-results .af-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .jr-trust-strip {
        display: none;
    }

    .jr-expanded-filters__collapse--mobile {
        display: none;
    }
}



.jr-browse-page .af-main {

    width: 100% !important;

}



.jr-browse-page .af-topbar {

    background: var(--jr-surface-1);

    border: 1px solid var(--jr-border);

    border-radius: 10px;

    padding: 12px 16px;

    margin-bottom: 14px;

}



.jr-browse-page .af-results-count {

    color: var(--jr-text) !important;

    font-weight: 600;

}



.jr-browse-page .af-grid {

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 16px !important;

}



/* ── Listing cards ── */

.jr-browse-page .jr-listing-card {

    position: relative;

    background: var(--jr-surface-1) !important;

    border: 1px solid var(--jr-border) !important;

    border-radius: 12px !important;

    overflow: hidden;

}



.jr-browse-page .jr-listing-card:hover {

    border-color: rgba(243, 152, 26, 0.45) !important;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;

    transform: translateY(-2px);

}



.jr-browse-page .jr-listing-card__media {

    position: relative;

    aspect-ratio: 16 / 10;

    background: var(--jr-surface-2) !important;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

}



.jr-browse-page .jr-listing-card__price {

    color: var(--jr-brand) !important;

    font-size: 20px !important;

}



.jr-browse-page .jr-listing-card__price.is-free {

    color: var(--jr-trust) !important;

}



.jr-browse-page .jr-listing-card__title,

.jr-browse-page .jr-listing-card__headline h3,

.jr-browse-page .jr-listing-card__headline {

    color: var(--jr-text) !important;

}



.jr-browse-page .jr-listing-card__location,

.jr-browse-page .jr-listing-card__meta,

.jr-browse-page .jr-spec-chip {

    color: var(--jr-text-muted) !important;

}



.jr-browse-page .jr-listing-card__badge i {

    color: var(--jr-trust) !important;

}



.jr-browse-page .jr-listing-card__body {

    padding: 14px !important;

    gap: 8px !important;

}



.jr-browse-page .jr-listing-card__footer {
    display: none !important;
}

.jr-browse-page .jr-listing-card__cta {
    display: none !important;
}

.jr-browse-page .jr-listing-card__body {
    cursor: pointer;
}



/* Save / like — all breakpoints */
.jr-browse-page .jr-listing-card__like {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.58);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.jr-browse-page .jr-listing-card__like i {
    font-size: 17px;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.jr-browse-page .jr-listing-card__like:hover {
    transform: scale(1.06);
    background: rgba(10, 10, 12, 0.72);
}

.jr-browse-page .jr-listing-card__like.is-liked {
    background: rgba(232, 52, 89, 0.92);
    box-shadow: 0 6px 18px rgba(232, 52, 89, 0.35);
}

.jr-browse-page .jr-listing-card__like.is-animating i {
    transform: scale(1.38);
}

.jr-browse-page .jr-listing-card__like-burst {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.jr-browse-page .jr-listing-card__like.is-animating .jr-listing-card__like-burst {
    animation: jr-like-burst 0.45s ease-out;
}

@keyframes jr-like-burst {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 52, 89, 0.55);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 16px rgba(232, 52, 89, 0);
        opacity: 0;
    }
}

.jr-browse-page .jr-listing-card.is-like-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(232, 52, 89, 0.22) 0%, transparent 68%);
    animation: jr-like-pulse 0.42s ease-out;
}

@keyframes jr-like-pulse {
    from { opacity: 1; }
    to { opacity: 0; }
}



.jr-browse-page.af-search-root.is-results .af-hero-card {

    padding: 14px 16px !important;

}

/* Post-search hero: search + location/distance/price only (category from left rail) */
.jr-browse-page.is-results .af-search-subtitle {
    display: none;
}

.jr-browse-page.is-results .af-listing-tabs {
    margin-bottom: 10px !important;
}

.jr-browse-page.is-results .af-search-title {
    font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
    margin-bottom: 10px !important;
}



/* Align SEO block with main column */

body:has(.jr-browse-page) .jr-home-seo {

    max-width: var(--jr-shell-max) !important;

    margin: 32px auto 0 !important;

    padding: 0 var(--jr-main-pad) 8px calc(var(--jr-catnav-width) + var(--jr-main-pad)) !important;

}



@media (max-width: 1024px) {

    .jr-browse-shell {

        grid-template-columns: 1fr;

        max-width: none;

    }



    .jr-browse-catnav {

        position: relative;

        top: 0;

        height: auto;

        flex-direction: row;

        overflow-x: auto;

        padding: 10px 14px;

        border-right: none;

        border-bottom: 1px solid var(--jr-border);

    }



    .jr-browse-catnav__list {

        flex-direction: row;

        gap: 8px;

    }



    .jr-browse-catnav__btn {

        flex-direction: column;

        align-items: center;

        gap: 6px;

        min-width: 76px;

        max-width: 88px;

        white-space: normal;

        padding: 10px 8px;

        font-size: 11px;

        text-align: center;

        border: 1px solid var(--jr-border);

        border-radius: 12px;

        background: var(--jr-surface-2);

    }



    .jr-browse-catnav__btn i {

        font-size: 18px;

        color: var(--jr-brand);

    }



    .jr-browse-catnav__btn.is-active {

        border-color: var(--jr-brand);

        box-shadow: 0 0 0 1px var(--jr-brand);

    }



    .jr-browse-catnav__btn span {

        line-height: 1.2;

    }



    .jr-expanded-filters__collapse--desktop {

        display: none;

    }



    .jr-expanded-filters__taxonomy {

        display: none !important;

    }



    .jr-browse-catnav__safe {

        display: none;

    }



    .jr-browse-main {

        padding: 0 14px 28px;

    }



    body:has(.jr-browse-page) .jr-home-seo {

        padding: 0 14px 8px !important;

    }



    .jr-browse-page .af-filter-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    }



    .jr-sheet-grabber {

        display: block;

        width: 40px;

        height: 4px;

        margin: 0 auto 12px;

        border-radius: 999px;

        background: var(--jr-text-dim);

    }



    .jr-expanded-filters__taxonomy .af-type-grid {

        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    }



    .jr-browse-page .af-mobile-toggle {

        display: flex !important;

    }

}



@media (max-width: 600px) {

    .jr-browse-page .af-filter-grid {

        grid-template-columns: 1fr !important;

    }



    .jr-browse-page .af-hero-footer {

        flex-direction: column;

    }



    .jr-browse-page .af-show-offers-btn,

    .jr-browse-page .af-more-filters {

        width: 100%;

    }



    .jr-filter-group__grid {

        grid-template-columns: 1fr 1fr;

    }



    .jr-expanded-filters__taxonomy .af-type-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    }

}

/* ═══════════════════════════════════════
   Light theme, browse page fixes
   ═══════════════════════════════════════ */
[data-jr-theme="light"] .jr-browse-page.af-search-root {
    background: var(--jr-surface-bg) !important;
    color: var(--jr-text);
}

[data-jr-theme="light"] .jr-browse-page .af-hero-card {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
}

[data-jr-theme="light"] .jr-browse-page .jr-listing-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
}

[data-jr-theme="light"] .jr-browse-page .af-filter-grid-field > .af-search-group,
[data-jr-theme="light"] .jr-browse-page .af-filter-grid-field .af-search-group-block,
[data-jr-theme="light"] .jr-browse-page .af-search-group-block,
[data-jr-theme="light"] .jr-browse-page .af-search-form-primary .af-search-group {
    background: var(--jr-surface-2) !important;
    border: 1px solid var(--jr-border) !important;
}

[data-jr-theme="light"] .jr-browse-page .af-search-input,
[data-jr-theme="light"] .jr-browse-page .af-loc-input,
[data-jr-theme="light"] .jr-browse-page .af-cat-select,
[data-jr-theme="light"] .jr-browse-page .af-select-filter-input,
[data-jr-theme="light"] .jr-browse-page .af-options-search-input {
    color: var(--jr-text) !important;
    background: transparent !important;
}

[data-jr-theme="light"] .jr-browse-page .af-search-input::placeholder,
[data-jr-theme="light"] .jr-browse-page .af-loc-input::placeholder,
[data-jr-theme="light"] .jr-browse-page .af-select-filter-input::placeholder {
    color: var(--jr-text-dim) !important;
    opacity: 1;
}

[data-jr-theme="light"] .jr-browse-page .af-cat-select option,
[data-jr-theme="light"] .jr-browse-page .jr-filter-select option {
    background: #ffffff;
    color: #0f172a;
}

[data-jr-theme="light"] .jr-browse-page .af-search-group i,
[data-jr-theme="light"] .jr-browse-page .af-loc-icon {
    color: var(--jr-text-muted) !important;
}

[data-jr-theme="light"] .jr-browse-page .af-listing-tabs {
    background: var(--jr-surface-2) !important;
    border-color: var(--jr-border) !important;
}

[data-jr-theme="light"] .jr-browse-page .af-listing-tab {
    color: var(--jr-text-muted) !important;
}

[data-jr-theme="light"] .jr-browse-page .af-more-filters {
    background: var(--jr-surface-1) !important;
    border-color: var(--jr-border) !important;
    color: var(--jr-text) !important;
}

[data-jr-theme="light"] .jr-browse-catnav__btn.is-active {
    background: var(--jr-brand-soft) !important;
}

[data-jr-theme="light"] .jr-browse-catnav__safe {
    background: var(--jr-surface-1) !important;
}

[data-jr-theme="light"] .jr-expanded-filters {
    background: var(--jr-surface-1);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

[data-jr-theme="light"] .jr-browse-page .af-topbar {
    background: var(--jr-surface-1);
}

[data-jr-theme="light"] body:has(.jr-browse-page) .jr-home-seo {
    color: var(--jr-text);
}

/* ── Vehicle cards (production-style) ── */
.jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__price,
.jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__side,
.jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__hint,
.jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__pill {
    display: none !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
    padding: 16px !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__headline {
    margin: 0;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__price {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--jr-trust) !important;
    margin: 0 !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__price-alt {
    display: none !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__loc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px !important;
    color: var(--jr-text-muted) !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__loc i {
    color: var(--jr-text-muted) !important;
    font-size: 12px;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--jr-border) !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: var(--jr-text-muted) !important;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec .jr2-spec-svg {
    color: var(--jr-text-muted) !important;
    opacity: 0.85;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec span {
    -webkit-line-clamp: 2;
    white-space: normal;
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__footer {
    display: none !important;
}

@media (max-width: 1024px) {
    .jr-browse-page .jr-listing-card--vehicle .jr-listing-card__footer {
        display: block !important;
    }
}

.jr-browse-page .jr-listing-card--vehicle .jr-listing-card__media {
    aspect-ratio: 16 / 10;
}

@media (max-width: 1100px) {
    .jr-browse-page .af-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .jr-browse-page .af-grid {
        grid-template-columns: 1fr !important;
    }

    .jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile feed — one large card per screen, swipe photos, green CTA opens listing */
@media (max-width: 1024px) {
    .jr-browse-page .af-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        scroll-snap-type: y proximity;
    }

    .jr-browse-page .af-main {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .jr-browse-page .jr-listing-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: auto;
        border-radius: 16px !important;
        transform: none !important;
        box-shadow: none !important;
        scroll-snap-align: start;
    }

    .jr-browse-page .jr-listing-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

.jr-listing-card__link {
  pointer-events: none;
}

.jr-browse-page .jr-listing-card__link {
  pointer-events: none !important;
}

    .jr-browse-page .jr-listing-card__media {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        min-height: min(42vh, 320px) !important;
        max-height: 48vh !important;
        align-self: stretch !important;
    }

    .jr-browse-page .jr-listing-card__media > img,
    .jr-browse-page .jr-listing-card__media .jr-card-gallery,
    .jr-browse-page .jr-listing-card__media .jr-card-gallery__track {
        width: 100% !important;
        height: 100% !important;
        min-height: min(42vh, 320px) !important;
        max-height: 48vh !important;
    }

    .jr-browse-page .jr-listing-card__media .jr-card-gallery__slide {
        min-height: min(42vh, 320px) !important;
        max-height: 48vh !important;
        height: 100% !important;
    }

    .jr-browse-page .jr-listing-card__media .jr-card-gallery__slide img,
    .jr-browse-page .jr-listing-card__media > img {
        width: 100% !important;
        height: 100% !important;
        min-height: min(42vh, 320px) !important;
        max-height: 48vh !important;
        object-fit: cover !important;
    }

    .jr-browse-page .jr-listing-card__body {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 14px 14px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    .jr-browse-page .jr-listing-card__title {
        font-size: 17px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .jr-browse-page .jr-listing-card__price {
        font-size: 22px !important;
        margin-top: 0 !important;
    }

    .jr-browse-page .jr-listing-card__loc {
        font-size: 13px !important;
        margin-top: 0 !important;
    }

    .jr-browse-page .jr-listing-card__footer {
        display: none !important;
    }

    .jr-browse-page .jr-listing-card__posted {
        position: static !important;
        display: block;
        margin-top: 4px;
        text-align: right;
        padding: 0 14px 4px;
    }

    .jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        gap: 4px !important;
        border-top: 1px solid var(--jr-border) !important;
    }

    .jr-browse-page .jr-listing-card--vehicle .jr-listing-card__spec {
        font-size: 10px !important;
    }

    .jr-browse-page .jr-listing-card__like {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .jr-browse-page .jr-listing-card__like i {
        font-size: 16px;
    }

    .jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__price,
    .jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__side,
    .jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__hint,
    .jr-browse-page .jr-listing-card--vehicle .jr-media-chrome__pill {
        display: none !important;
    }
}



/* Part 3b: Mobile refine-by-category icon grid */
@media (max-width: 1024px) {
    .jr-browse-page .af-type-picker.af-type-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .jr-browse-page .af-type-grid .af-type-pick {
        min-height: 78px !important;
        padding: 10px 6px !important;
        border-radius: 12px !important;
        background: var(--jr-surface-2) !important;
        border: 1px solid var(--jr-border) !important;
    }

    .jr-browse-page .af-type-grid .af-type-pick i:first-child {
        font-size: 22px !important;
        color: var(--jr-brand) !important;
    }

    .jr-browse-page .af-type-grid .af-type-pick.active {
        border-color: var(--jr-brand) !important;
        box-shadow: 0 0 0 1px var(--jr-brand) !important;
    }

    .jr-browse-page .af-step-label {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--jr-text) !important;
        margin: 16px 0 10px !important;
    }
}

@media (max-width: 600px) {
    .jr-browse-page .af-type-picker.af-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Part 3 finish: subcategory pills, hero refine strip, results label */
.jr-subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.jr-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--jr-border);
    background: var(--jr-surface-2);
    color: var(--jr-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jr-subcat-pill i {
    color: var(--jr-brand);
    font-size: 14px;
}

.jr-subcat-pill:hover,
.jr-subcat-pill.is-active {
    border-color: var(--jr-brand);
    box-shadow: 0 0 0 1px var(--jr-brand);
}

.jr-subcat-pill--more i {
    color: var(--jr-text-muted);
}

.jr-expanded-filters__subcats {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--jr-border);
}

.jr-hero-refine {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--jr-border);
}

.jr-hero-refine__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jr-text-muted);
}

.jr-browse-page .af-results-count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jr-browse-page .af-results-count__label {
    color: var(--jr-text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jr-browse-page .af-results-count__sep {
    color: var(--jr-text-muted);
    opacity: 0.6;
}

.jr-browse-page .af-results-count__total {
    font-weight: 700;
    color: var(--jr-text);
}

.jr-browse-page .af-type-pick--more i {
    color: var(--jr-text-muted) !important;
}

@media (max-width: 1024px) {
    .jr-subcat-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .jr-subcat-pills::-webkit-scrollbar {
        display: none;
    }

    .jr-subcat-pill {
        flex: 0 0 auto;
    }
}

@media (min-width: 1025px) {
    .jr-expanded-filters__subcats .jr-subcat-pills {
        flex-wrap: wrap;
    }
}

/* Mockup foundation: category header, hub, hero spotlight */
.jr-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
}

.jr-category-header i {
    font-size: 2rem;
    color: var(--jr-brand);
    width: 48px;
    text-align: center;
}

.jr-category-header__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--jr-text);
}

.jr-category-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin: 20px 0 8px;
    padding: 16px;
    background: var(--jr-surface-1);
    border: 1px solid var(--jr-border);
    border-radius: 14px;
}

.jr-category-hub__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 1px solid var(--jr-border);
    border-radius: 12px;
    background: var(--jr-surface-2);
    color: var(--jr-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.jr-category-hub__tile i {
    font-size: 22px;
    color: var(--jr-brand);
}

.jr-category-hub__tile:hover {
    border-color: var(--jr-brand);
    color: var(--jr-text);
}

.jr-browse-page.is-results .jr-category-hub {
    display: none;
}

.jr-browse-page .af-filter-grid:has(.af-filter-grid-field-spotlight) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
    .jr-browse-page .af-filter-grid:has(.af-filter-grid-field-spotlight) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .jr-category-hub {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .jr-category-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mockup refine row — mobile only; desktop sub-types live in More filters panel */
.jr-refine-row {
    display: none;
    margin: 12px 0 4px;
    padding: 0 2px;
}

.jr-refine-row__label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--jr-text);
}

.jr-refine-row__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.jr-refine-row__grid .af-type-pick {
    min-height: 88px !important;
    padding: 12px 8px !important;
    border: 1px solid var(--jr-border) !important;
    border-radius: 12px !important;
    background: var(--jr-surface-2) !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.jr-refine-row__grid .af-type-pick i:first-child {
    font-size: 22px !important;
    color: var(--jr-brand) !important;
}

.jr-refine-row__grid .af-type-pick.active {
    border-color: var(--jr-brand) !important;
    box-shadow: 0 0 0 1px var(--jr-brand) !important;
}

.jr-refine-row__grid .af-type-pick span {
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.jr-refine-row__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
    padding-bottom: 4px;
}

.jr-refine-row__scroll .jr-refine-row__grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 8px !important;
    min-width: min-content;
}

.jr-refine-row__scroll .af-type-pick {
    flex: 0 0 72px;
    min-width: 72px;
}

/* Buy safely strip — mobile design */
.jr-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--jr-text-muted);
    background: var(--jr-surface-1);
    border: 1px solid var(--jr-border);
    border-radius: 10px;
}

.jr-trust-strip i {
    color: var(--jr-brand);
}

.jr-trust-strip a {
    color: var(--jr-brand);
    font-weight: 600;
    text-decoration: none;
}

.jr-trust-strip a:hover {
    text-decoration: underline;
}

@media (min-width: 1025px) {
    .jr-refine-row {
        display: none;
    }
}

@media (max-width: 1024px) {
    .jr-refine-row {
        display: block;
    }
}

@media (max-width: 600px) {
    .jr-refine-row__scroll .af-type-pick {
        flex: 0 0 68px;
        min-width: 68px;
    }
}

.jr-sheet-grabber {
    display: none;
}
.jr-hero-category-slot {
    cursor: default;
}

.jr-hero-category-slot__label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--jr-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mockup More filters — grouped sections (title + fields stay together) */
.jr-expanded-filters--browse .jr-filter-group__label {
    display: none;
}

.jr-expanded-filters--browse .jr-expanded-filters__groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jr-expanded-filters--browse .jr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.jr-expanded-filters--browse .jr-filter-group__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.jr-expanded-filters:not(.is-open) {
    display: none !important;
    overflow: hidden;
}

.jr-expanded-filters__collapse {
    border: none;
    background: transparent;
    color: var(--jr-brand);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 4px;
}

.jr-expanded-filters__collapse:hover {
    text-decoration: underline;
}

/* Legacy type-preview box — superseded by jr-refine-row */
.jr-type-preview {
    margin: 16px 0 4px;
    padding: 14px 16px;
    background: var(--jr-surface-1);
    border: 1px solid var(--jr-border);
    border-radius: 14px;
}

.jr-type-preview__label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jr-text-muted);
}

.jr-type-preview__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.jr-type-preview .af-type-pick--more i {
    color: var(--jr-text-muted) !important;
}

@media (max-width: 1024px) {
    .jr-type-preview__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .jr-type-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ═══════════════════════════════════════
   Mockup v8 — mobile feed + filter polish
   ═══════════════════════════════════════ */

.jr-browse-page .jr-listing-card__headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.jr-browse-page .jr-listing-card__titles {
    flex: 1 1 auto;
    min-width: 0;
}

.jr-browse-page .jr-listing-card__headline .jr-listing-card__like {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-top: 2px;
}

.jr-browse-page .jr-listing-card__body {
    position: relative;
}

.jr-browse-page .jr-listing-card__posted {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 11px;
    color: var(--jr-text-dim);
    pointer-events: none;
}

.jr-browse-page .jr-filter-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--jr-text-muted);
}

.jr-browse-page .jr-filter-group__title i {
    color: var(--jr-brand);
    font-size: 13px;
}

.jr-browse-page .jr-expanded-filters__options {
    padding: 0 16px 12px;
}

.jr-browse-page .jr-photos-only-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--jr-text);
    user-select: none;
}

.jr-browse-page .jr-photos-only-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jr-browse-page .jr-photos-only-toggle__box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--jr-border);
    background: var(--jr-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.jr-browse-page .jr-photos-only-toggle input:checked + .jr-photos-only-toggle__box {
    border-color: var(--jr-brand);
    background: var(--jr-brand);
}

.jr-browse-page .jr-photos-only-toggle input:checked + .jr-photos-only-toggle__box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.jr-browse-page .af-mobile-toggle {
    display: none !important;
}

.jr-browse-page .af-browse-prompt {
    display: none;
}

@media (max-width: 1024px) {
    .jr-browse-page .af-search-title {
        font-size: clamp(1.55rem, 5vw, 1.85rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
    }

    .jr-browse-page .af-search-subtitle {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        color: var(--jr-text-muted) !important;
    }

    .jr-browse-page .af-filter-grid-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 4px !important;
        color: var(--jr-text-muted) !important;
    }

    .jr-browse-page .af-filter-grid-field .af-search-group-block,
    .jr-browse-page .af-filter-grid-field > .af-search-group {
        min-height: 46px !important;
        border-radius: 12px !important;
    }

    .jr-browse-page .af-listing-tabs {
        margin: 12px 0 10px !important;
    }

    .jr-browse-page .af-listing-tab {
        flex: 1 1 50%;
        text-align: center;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .jr-browse-page .af-hero-footer {
        gap: 10px !important;
        margin-top: 4px !important;
    }

    .jr-browse-page .af-show-offers-btn {
        order: 1;
        min-height: 48px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
    }

    .jr-browse-page .af-more-filters {
        order: 2;
        min-height: 46px !important;
        width: 100% !important;
        justify-content: center;
        border-radius: 14px !important;
    }

    .jr-browse-page .jr-refine-row {
        margin: 12px 0 8px !important;
        padding: 0 !important;
    }

    .jr-browse-page .jr-refine-row__label {
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        margin-bottom: 10px !important;
        color: var(--jr-text) !important;
    }

    .jr-browse-page .jr-refine-row__scroll {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .jr-browse-page .jr-refine-row__scroll::-webkit-scrollbar {
        display: none;
    }

    .jr-browse-page .jr-refine-row__scroll .af-type-pick {
        min-width: 72px !important;
        max-width: 84px !important;
        min-height: 84px !important;
        border-radius: 14px !important;
        background: var(--jr-surface-1) !important;
    }

    .jr-browse-page .jr-trust-strip {
        margin: 10px 0 12px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .jr-browse-page .jr-listing-card__price {
        color: var(--jr-brand) !important;
        font-weight: 800 !important;
    }

    .jr-browse-page .jr-listing-card__spec-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 6px !important;
        margin-top: 6px !important;
        padding-top: 0 !important;
        border-top: none !important;
        scrollbar-width: none;
    }

    .jr-browse-page .jr-listing-card__spec-strip::-webkit-scrollbar {
        display: none;
    }

    .jr-browse-page .jr-listing-card__spec {
        flex: 0 0 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0 !important;
        padding: 4px 9px !important;
        border-radius: 999px !important;
        background: var(--jr-surface-2) !important;
        border: 1px solid var(--jr-border) !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .jr-browse-page .jr-listing-card__spec .jr2-spec-svg {
        display: none !important;
    }

    .jr-browse-page .jr-card-specs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-top: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .jr-browse-page .jr-card-specs::-webkit-scrollbar {
        display: none;
    }

    .jr-browse-page .jr-card-specs .jr-spec-chip {
        flex: 0 0 auto;
        font-size: 10px;
        padding: 4px 9px;
        border-radius: 999px;
        background: var(--jr-surface-2);
        border: 1px solid var(--jr-border);
    }

    .jr-browse-page .jr-listing-card__body {
        padding-bottom: 22px !important;
    }

    .jr-browse-page .jr-expanded-filters.is-open .jr-expanded-filters__header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--jr-surface-1);
        padding-bottom: 8px;
    }
}

@media (min-width: 1025px) {
    .jr-browse-page .jr-expanded-filters--browse .jr-expanded-filters__groups {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 16px;
        align-items: start;
    }

    .jr-browse-page .jr-expanded-filters--browse .jr-filter-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
        min-width: 0;
    }

    .jr-browse-page .jr-expanded-filters--browse .jr-filter-group__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ── Filter category browse (browse shell) ── */
.jr-browse-page.is-category-mode .af-search-section,
.jr-browse-page .af-search-form-primary {
    display: none !important;
}

.jr-browse-page.is-category-mode .jr-browse-main {
    padding-top: 4px;
}

.jr-fh-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 14px;
}

.jr-browse-page .af-hero-shell--category .af-hero-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.jr-browse-page .af-hero-shell--category .af-search-form-primary {
    margin-bottom: 12px;
}

.jr-fh-shell {
    border: 1px solid var(--jr-border);
    background: rgba(18, 20, 20, 0.86);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
    margin-top: 0;
}

.jr-fh-chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.jr-fh-chip {
    min-height: 50px;
    min-width: max-content;
    border: 1px solid var(--jr-border);
    border-radius: 11px;
    background: var(--jr-surface-2);
    color: var(--jr-text);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.jr-fh-chip i {
    color: var(--jr-brand);
}

.jr-fh-chip.is-active {
    border-color: var(--jr-brand);
    background: rgba(243, 152, 26, 0.09);
    color: var(--jr-brand);
}

.jr-fh-chip__count {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--jr-text-muted);
    line-height: 1;
}

.jr-fh-chip.is-active .jr-fh-chip__count {
    color: var(--jr-brand);
}

.jr-browse-catnav__count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    color: var(--jr-text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.jr-browse-catnav__btn.is-active .jr-browse-catnav__count {
    color: var(--jr-brand);
}

.jr-fh-title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    letter-spacing: -0.03em;
    color: var(--jr-text);
}

.jr-fh-subtitle {
    margin: 0;
    color: var(--jr-text-muted);
    line-height: 1.45;
}

.jr-fh-count-pill {
    margin-left: auto;
    background: #123519;
    color: #e9ffee;
    border-radius: 10px;
    min-width: 118px;
    min-height: 48px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.jr-fh-count-pill__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #35c95b;
    flex-shrink: 0;
}

.jr-fh-section-label {
    font-size: 18px;
    color: #d7d7d7;
    margin: 4px 0 10px;
}

.jr-fh-empty__body--mobile {
    display: none;
}

.jr-fh-empty__body--desktop {
    display: block;
}

@media (min-width: 1025px) {
    .jr-fh-section-label {
        display: none;
    }
}

.jr-fh-key-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.jr-fh-filter-tile {
    min-height: 68px;
    border: 1px solid var(--jr-border);
    border-radius: 12px;
    background: #101212;
    color: var(--jr-text);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
}

.jr-fh-filter-tile i:first-child {
    color: var(--jr-brand);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.jr-fh-filter-tile small {
    display: block;
    color: var(--jr-text-muted);
    font-size: 12px;
}

.jr-fh-filter-tile strong {
    display: block;
    font-size: 15px;
    margin-top: 2px;
    font-weight: 700;
}

.jr-fh-filter-tile__chev {
    margin-left: auto;
    color: var(--jr-text-muted);
}

.jr-fh-filter-tile.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.jr-fh-pick-sub {
    margin: 0 0 12px;
    color: var(--jr-text-muted);
}

.jr-fh-listing-tabs {
    margin: 10px 0 !important;
}

.jr-fh-actions {
    display: grid;
    grid-template-columns: 180px 1fr 310px;
    gap: 14px;
    align-items: center;
    margin-top: 8px;
}

.jr-fh-actions__spacer {
    display: block;
}

.jr-fh-reset-link {
    border: none;
    background: transparent;
    color: var(--jr-text-muted);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.jr-fh-show {
    width: 100%;
}

.jr-fh-more {
    width: 100%;
    justify-content: center;
}

.jr-fh-empty {
    margin-top: 18px;
    border: 1px dashed #353838;
    border-radius: 18px;
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.016);
    cursor: pointer;
}

.jr-fh-empty:focus-visible {
    outline: 2px solid var(--jr-brand, #f3981a);
    outline-offset: 4px;
}

.jr-fh-empty__icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(243, 152, 26, 0.08);
    display: grid;
    place-items: center;
    color: var(--jr-brand);
    font-size: 28px;
    margin: 0 auto 14px;
}

.jr-fh-empty__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.jr-fh-empty__body {
    margin: 0;
    color: var(--jr-text-muted);
    line-height: 1.5;
    max-width: 36rem;
}

.jr-fh-empty__or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    color: var(--jr-text-muted);
    margin: 18px 0;
    width: min(100%, 28rem);
}

.jr-fh-empty__or::before,
.jr-fh-empty__or::after {
    content: "";
    height: 1px;
    background: #292c2c;
}

.jr-fh-load-all {
    min-height: 48px;
    border-radius: 11px;
    border: 1px solid var(--jr-brand);
    background: transparent;
    color: var(--jr-brand);
    font-weight: 900;
    padding: 0 24px;
    cursor: pointer;
}

.jr-expanded-filters__matches {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--jr-border);
    text-align: center;
    font-weight: 800;
    color: var(--jr-text);
}

.jr-expanded-filters__matches-icon {
    color: #35c95b;
    margin-right: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .jr-fh-key-filters {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .jr-fh-filter-tile {
        min-height: 60px;
    }

    .jr-fh-actions {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .jr-fh-actions__spacer {
        display: none;
    }

    .jr-fh-empty__body--mobile {
        display: block;
    }

    .jr-fh-empty__body--desktop {
        display: none;
    }

    .jr-fh-show {
        order: 1;
        min-height: 58px !important;
        font-size: 18px !important;
    }

    .jr-fh-more {
        order: 2;
        min-height: 54px !important;
    }

    .jr-fh-title-row {
        flex-wrap: wrap;
    }

    .jr-fh-count-pill {
        margin-left: 0;
    }

    .jr-fh-section-label {
        font-size: 16px;
    }
}

@media (min-width: 901px) {
    .jr-fh-empty__or {
        display: none;
    }
}

[data-jr-theme="light"] .jr-fh-shell {
    background: #fff;
}

[data-jr-theme="light"] .jr-fh-filter-tile {
    background: #f8fafc;
}

[data-jr-theme="light"] .jr-fh-section-label,
[data-jr-theme="light"] .jr-fh-title {
    color: #0f172a;
}

/* ── Marketplace map (RE-style price pins) ── */
.af-map-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--jr-border, #2a2d2d);
    background: #e8eaed;
}

.af-map-canvas {
    width: 100%;
    min-height: 480px;
    height: 58vh;
    max-height: 720px;
}

.af-map-full .af-map-canvas {
    min-height: 65vh;
    height: calc(100dvh - 180px);
    max-height: none;
}

.af-results-split .af-map-canvas {
    min-height: 520px;
    height: 100%;
    position: sticky;
    top: 88px;
}

.jr-map-price-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.jr-map-price-pin.is-visible,
.jr-map-price-pin:not(.is-pending) {
    opacity: 1;
}

.jr-map-price-pin.is-popping {
    animation: jr-map-pin-pop 0.28s ease-out;
}

@keyframes jr-map-pin-pop {
    0% { transform: translate(-50%, -100%) scale(0.6); opacity: 0; }
    70% { transform: translate(-50%, -100%) scale(1.08); }
    100% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
}

.jr-map-price-pin__label {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb84d, #f3981a);
    color: #111;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.jr-map-price-pin.is-selected .jr-map-price-pin__label {
    border-color: #35c95b;
    box-shadow: 0 0 0 3px rgba(53, 201, 91, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.jr-map-price-pin.is-inspected .jr-map-price-pin__label {
    background: linear-gradient(180deg, #b8bcc4, #8a9199);
    color: #1a1a1a;
    border-color: #e2e8f0;
}

.jr-map-price-pin:hover .jr-map-price-pin__label {
    transform: scale(1.06);
}

.jr-map-hover-card {
    position: fixed;
    z-index: 12050;
    width: 220px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.jr-map-hover-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.jr-map-hover-card__img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f1f5f9;
}

.jr-map-hover-card__title {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 4px;
}

.jr-map-hover-card__price {
    color: #f3981a;
    font-weight: 800;
    font-size: 15px;
}

.jr-map-hover-card__city {
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
}

.jr-map-search-area-btn {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 1;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.jr-map-search-area-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.jr-map-clear-area-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #334155;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.jr-map-clear-area-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.jr-map-area-actions {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 24px);
    flex-wrap: wrap;
    justify-content: center;
}

.jr-map-area-actions--results {
    bottom: 20px;
}

.jr-map-search-area-btn:hover:not(:disabled) {
    background: #f8fafc;
}

.jr-map-clear-area-btn:hover:not(:disabled) {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.24);
}

.jr-map-results-stats {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    max-width: calc(100% - 24px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    pointer-events: none;
}

.jr-map-auto-update {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    user-select: none;
}

.jr-map-auto-update input {
    width: 16px;
    height: 16px;
    accent-color: #39763a;
    cursor: pointer;
}

[data-jr-theme="spotify"] .jr-map-results-stats,
[data-jr-theme="spotify"] .jr-map-auto-update {
    background: rgba(26, 29, 29, 0.94);
    color: #f1f5f9;
}

@media (max-width: 767px) {
    .jr-map-results-stats {
        font-size: 12px;
        padding: 8px 14px;
        top: 10px;
    }

    .jr-map-auto-update {
        top: auto;
        bottom: 72px;
        left: 10px;
        max-width: calc(100% - 20px);
        font-size: 11px;
    }

    .jr-map-area-actions--results {
        bottom: 88px;
    }

    .jr-map-area-actions {
        gap: 8px;
    }

    .jr-map-search-area-btn,
    .jr-map-clear-area-btn {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

.af-location-map-wrap--explorer {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: min(52vh, 440px);
    margin-top: 8px;
    touch-action: none;
    overflow: hidden;
}

.af-location-map-wrap--explorer .af-location-map {
    flex: 1;
    height: auto;
    min-height: 180px;
    touch-action: none;
}

.af-modal--distance-explorer {
    width: min(96vw, 720px);
    max-height: min(94dvh, 900px);
    display: flex;
    flex-direction: column;
}

.af-modal--distance-explorer .af-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: none;
    padding-bottom: 8px;
}

.af-distance-section--explorer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 10px;
}

.af-modal-loc-block.af-modal-loc-block--explorer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.af-modal--distance-explorer .af-search-group--compact {
    min-height: 44px !important;
    height: 44px;
    max-height: 44px;
    padding: 0 12px !important;
    align-items: center;
    border-radius: 10px;
    margin-top: 6px;
}

.af-modal--distance-explorer .af-search-group--compact .af-loc-input {
    height: 42px;
    min-height: 0 !important;
    line-height: 42px;
    padding: 0 8px 0 0;
    border: none;
    background: transparent;
    font-size: 14px;
}

.af-modal--distance-explorer .af-search-group--compact i {
    font-size: 14px;
    opacity: 0.7;
}

.af-modal--distance-explorer .af-filter-grid-label {
    margin-bottom: 0;
}

.af-modal--distance-explorer .af-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.af-modal-save-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 760;
    font-size: 14px;
    cursor: pointer;
}

.af-modal--distance-explorer .af-modal-search-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(180deg, #f8991b 0%, #e8870a 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

[data-jr-theme="spotify"] .af-modal-save-btn {
    background: #1a1d1d;
    border-color: #333;
    color: #f1f5f9;
}

.jr-map-pin-stats {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    pointer-events: none;
}

.jr-explorer-map-stats-row {
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 12;
}

.jr-map-pin-stats--row {
    position: relative;
    z-index: 12;
}

.jr-map-pin-stats--row {
    position: static;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    pointer-events: auto;
    font-size: 11px;
    padding: 7px 10px;
    z-index: auto;
}

[data-jr-theme="spotify"] .jr-map-pin-stats--row {
    background: #282828;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.jr-map-pin-stats--clickable {
    gap: 4px;
    pointer-events: auto;
    cursor: default;
}

.jr-map-stat-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    padding: 8px 6px;
    margin: 0;
    border-radius: 6px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(57, 118, 58, 0.15);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 0.15s ease, background 0.15s ease, text-decoration-color 0.15s ease;
}

.jr-map-stat-btn:hover {
    text-decoration-color: currentColor;
    background: rgba(57, 118, 58, 0.1);
}

.jr-map-stat-btn.is-active {
    color: #39763a;
    text-decoration-color: #39763a;
    background: rgba(57, 118, 58, 0.14);
}

.jr-map-stat-btn--accent.is-active {
    color: #39763a;
}

[data-jr-theme="spotify"] .jr-map-stat-btn.is-active {
    color: #1ed760;
    text-decoration-color: #1ed760;
    background: rgba(30, 215, 96, 0.12);
}

.jr-map-pin-stats__sep {
    opacity: 0.55;
    font-weight: 700;
    padding: 0 5px;
}

.af-modal--distance-explorer .jr-explorer-map-stats-row {
    margin: 10px 0 6px;
}

.af-modal--distance-explorer .jr-map-pin-stats--clickable {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #94a3b8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    gap: 6px;
}

.af-modal--distance-explorer .jr-map-stat-btn {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    padding: 10px 10px;
}

.af-modal--distance-explorer .jr-map-stat-btn.is-active {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-radius: 8px;
}

.af-modal-overlay .pac-container {
    z-index: 10150 !important;
}

[data-jr-theme="spotify"] .af-modal--distance-explorer .jr-map-pin-stats--clickable {
    background: linear-gradient(180deg, #333 0%, #282828 100%);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

[data-jr-theme="spotify"] .af-modal--distance-explorer .jr-map-stat-btn {
    color: #f8fafc;
}

.jr-map-pin-stats__gap,
.jr-map-pin-stats__visible {
    color: #39763a;
}

.jr-map-price-pin__stack {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.jr-seo-preview-links {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
}

.jr-seo-preview-links__label {
    margin: 0 0 6px;
    font-weight: 700;
    color: #475569;
}

.jr-seo-preview-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.jr-seo-preview-links a {
    color: #39763a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[data-jr-theme="spotify"] .jr-seo-preview-links {
    background: #1a1d1d;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-jr-theme="spotify"] .jr-seo-preview-links a {
    color: #6fcf7f;
}

.jr-radius-filters {
    flex-shrink: 0;
    padding-bottom: 4px;
    margin-top: 0;
    padding-top: 4px;
}

.jr-radius-filters__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jr-radius-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.jr-radius-chip {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1.5px solid var(--jr-border, #d1d5db);
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.jr-radius-chip:hover {
    border-color: #39763a;
}

.jr-radius-chip.is-active {
    border-color: #39763a;
    background: #39763a;
    color: #fff;
}

.jr-radius-slider-wrap {
    margin-top: 8px;
}

.jr-radius-slider-wrap .af-distance-slider {
    width: 100%;
    accent-color: #39763a;
}

.af-distance-anywhere-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

body.af-distance-modal-open .af-modal-overlay.is-open[data-af-modal="distance"] {
    align-items: stretch;
    padding: 0;
}

@media (max-width: 767px) {
    body.af-distance-modal-open .af-modal-overlay.is-open[data-af-modal="distance"] .af-modal--distance-explorer {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
    }

    body.af-distance-modal-open .af-modal-overlay.is-open[data-af-modal="distance"] .af-modal-body {
        max-height: calc(100dvh - 56px);
        display: flex;
        flex-direction: column;
    }

    body.af-distance-modal-open .af-distance-section--explorer {
        flex: 1;
        min-height: 0;
    }

    body.af-distance-modal-open .af-modal-loc-block--explorer {
        flex: 1;
        min-height: 0;
    }

    body.af-distance-modal-open .af-location-map-wrap--explorer {
        flex: 1 1 auto;
        min-height: min(58vh, 520px);
        max-height: none;
    }

    body.af-distance-modal-open .af-location-map-wrap--explorer .af-location-map {
        min-height: min(56vh, 500px);
        height: 100%;
    }

    body.af-distance-modal-open .jr-radius-filters {
        flex-shrink: 0;
    }

    .af-modal--distance-explorer .af-modal-footer {
        flex-shrink: 0;
        gap: 8px;
    }

    .af-modal--distance-explorer .af-modal-footer .af-modal-search-btn,
    .af-modal--distance-explorer .af-modal-footer .af-modal-save-btn {
        min-height: 44px;
    }
}

[data-jr-theme="spotify"] .jr-radius-chip {
    background: #1a1d1d;
    color: #f1f5f9;
    border-color: #333;
}

[data-jr-theme="spotify"] .jr-radius-chip.is-active {
    background: #39763a;
    border-color: #39763a;
    color: #fff;
}

[data-jr-theme="spotify"] .jr-map-pin-stats {
    background: rgba(26, 29, 29, 0.92);
    color: #f1f5f9;
}

[data-jr-theme="spotify"] .jr-map-pin-stats__gap,
[data-jr-theme="spotify"] .jr-map-pin-stats__visible {
    color: #6fcf7f;
}

.af-modal-loc-block .jr-map-area-actions {
    bottom: 14px;
}

.af-location-map-wrap--explorer .gm-style-cc,
.af-location-map-wrap--explorer .gmnoprint a,
.af-location-map-wrap--explorer .gmnoprint span {
    opacity: 0.55 !important;
    font-size: 9px !important;
}

.jr-map-info__img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f1f5f9;
}

.jr-map-info__title {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.jr-map-info__price {
    color: #f3981a;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
}

.jr-map-info__city {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 10px;
}

.jr-map-info__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.jr-map-info__link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.jr-map-info__link:hover .jr-map-info__title {
    color: #39763a;
}

.jr-map-info__img-wrap {
    cursor: zoom-in;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.jr-map-info-directions {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: #f3981a;
    color: #fff;
}

[data-jr-theme="spotify"] .jr-map-hover-card {
    background: #1a1d1d;
    border: 1px solid #333;
}

[data-jr-theme="spotify"] .jr-map-hover-card__title {
    color: #f1f5f9;
}

[data-jr-theme="spotify"] .jr-map-search-area-btn {
    background: #1a1d1d;
    color: #fff;
    border: 1px solid #333;
}

[data-jr-theme="spotify"] .jr-map-clear-area-btn {
    background: rgba(26, 29, 29, 0.94);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.14);
}

/* ── Split / map results layout ── */
.jr-browse-page .af-results-layout.af-results-split {
    display: grid;
    grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.jr-browse-page .af-split-list-panel {
    min-width: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 4px;
}

.jr-browse-page .af-grid-split {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.jr-browse-page .af-grid-split .jr-listing-card__media {
    aspect-ratio: 4 / 3;
}

.jr-browse-page .af-results-split .af-map-wrap {
    position: sticky;
    top: 88px;
    min-height: 520px;
}

.jr-browse-page .af-results-split .af-map-canvas {
    min-height: 480px;
    height: calc(100vh - 260px);
    max-height: 720px;
}

.jr-results-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.jr-results-map-toolbar--full {
    margin-top: 4px;
}

.jr-results-map-toolbar .jr-map-pin-stats--row {
    flex: 1 1 auto;
    margin: 0;
}

.jr-browse-page .af-results-split .jr-results-map-toolbar {
    padding: 0 2px 6px;
}

.jr-browse-page .af-results-split .jr-results-map-toolbar .jr-map-pin-stats--row {
    font-size: 11px;
    padding: 6px 10px;
}

.jr-browse-page .af-split-map-panel .jr-map-area-actions--results {
    bottom: 14px;
}

@media (max-width: 1024px) {
    .jr-browse-page .af-results-layout.af-results-split {
        grid-template-columns: 1fr;
    }

    .jr-browse-page .af-split-list-panel {
        max-height: none;
        order: 2;
    }

    .jr-browse-page .af-results-split .af-map-wrap {
        position: relative;
        top: auto;
        order: 1;
    }

    .jr-browse-page .af-grid-split {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .jr-browse-page .af-grid-split {
        grid-template-columns: 1fr !important;
    }
}

/* Hero location picker — full-width map panel (fixes cramped 4-col squeeze) */
.jr-browse-page .af-hero-card .af-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.jr-browse-page .af-hero-card .af-filter-grid-field-location:has(.af-location-map-wrap:not(.is-collapsed)) {
    grid-column: 1 / -1;
}

.jr-browse-page .af-hero-card .af-location-map-wrap:not(.is-collapsed) {
    max-height: 360px;
}

.jr-browse-page .af-hero-card .af-location-map-wrap:not(.is-collapsed) .af-location-map {
    height: 260px;
    min-height: 260px;
}

@media (max-width: 900px) {
    .jr-browse-page .af-hero-card .af-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .jr-browse-page .af-hero-card .af-filter-grid-field-location:has(.af-location-map-wrap:not(.is-collapsed)) {
        grid-column: 1 / -1;
    }
}

/* ── Category browse: More filters sheet (mobile design) ── */
.jr-fh-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 14px;
}

.jr-fh-sheet-head strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--jr-text);
}

.jr-fh-sheet-head__close {
    border: none;
    background: transparent;
    color: var(--jr-brand);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 4px;
}

.jr-fh-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.jr-fh-advanced-tile {
    min-height: 74px;
    border: 1px solid var(--jr-border);
    border-radius: 12px;
    background: #101212;
    color: var(--jr-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.jr-fh-advanced-tile i:first-child {
    color: var(--jr-brand);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 15px;
}

.jr-fh-advanced-tile__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.jr-fh-advanced-tile small {
    display: block;
    color: var(--jr-text-muted);
    font-size: 11px;
    line-height: 1.2;
}

.jr-fh-advanced-tile strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jr-fh-advanced-tile__chev {
    margin-left: auto;
    color: var(--jr-text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.jr-fh-advanced-tile--photos {
    cursor: default;
}

.jr-fh-advanced-tile__photos {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 74px;
    padding: 12px;
    margin: 0;
    cursor: pointer;
}

.jr-fh-advanced-footer {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding-top: 4px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.jr-fh-advanced-footer__reset,
.jr-fh-advanced-footer__apply {
    min-height: 52px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid var(--jr-border);
}

.jr-fh-advanced-footer__reset {
    background: #101212;
    color: var(--jr-text);
}

.jr-fh-advanced-footer__reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.jr-fh-advanced-footer__apply {
    background: linear-gradient(180deg, var(--jr-brand-2, #ffc233), var(--jr-brand));
    color: #111;
    border-color: transparent;
}

.jr-expanded-filters--category.is-open {
    background: #050606;
    border-top: 1px solid #202323;
}

.jr-expanded-filters--category.is-open::before {
    pointer-events: auto;
    z-index: -1;
}

@media (min-width: 1025px) {
    .jr-fh-sheet-head {
        display: none;
    }

    .jr-fh-advanced-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .jr-fh-advanced-footer {
        grid-template-columns: 180px 1fr 280px;
        align-items: center;
    }

    .jr-fh-advanced-footer__apply {
        grid-column: 3;
    }
}

@media (max-width: 1024px) {
    .jr-browse-page.is-category-mode .jr-fh-chip-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip-row::-webkit-scrollbar {
        display: none;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip {
        flex: 0 0 auto;
        min-width: 108px;
        min-height: 74px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        border-radius: 12px;
        border: 1px solid var(--jr-border);
        background: #101212;
        font-size: 12px;
        font-weight: 700;
        padding: 10px 8px;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip.is-active {
        border-color: var(--jr-brand);
        color: var(--jr-brand);
        box-shadow: inset 0 0 0 1px var(--jr-brand);
    }

    .jr-browse-page.is-category-mode .jr-fh-chip i {
        font-size: 18px;
    }

    .jr-browse-page.is-category-mode .jr-fh-listing-tabs {
        display: flex !important;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--jr-border);
        background: #101212;
        padding: 4px;
        gap: 4px;
    }

    .jr-browse-page.is-category-mode .jr-fh-listing-tabs .af-listing-tab {
        flex: 1 1 50%;
        min-height: 44px;
        border-radius: 9px;
        border: none;
        background: transparent;
        color: var(--jr-text);
        font-weight: 800;
    }

    .jr-browse-page.is-category-mode .jr-fh-listing-tabs .af-listing-tab.active {
        background: var(--jr-brand);
        color: #111;
    }

    .jr-browse-page.is-category-mode .jr-fh-more {
        background: #101212;
        border: 1px solid var(--jr-border);
        color: var(--jr-text);
        font-weight: 800;
    }

    .jr-browse-page.is-category-mode .jr-fh-show {
        background: linear-gradient(180deg, var(--jr-brand-2, #ffc233), var(--jr-brand));
        color: #111;
        font-weight: 900;
        border: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile Android + narrow phone adaptation (320px–480px)
   Readable tap targets, stacked actions, safe-area padding
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .jr-browse-page,
    .jr-browse-page button,
    .jr-browse-page input,
    .jr-browse-page select {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .jr-browse-page.af-search-root {
        overflow-x: clip;
        max-width: 100vw;
    }

    .jr-browse-page .jr-listing-card__spec,
    .jr-browse-page .jr-card-specs .jr-spec-chip {
        font-size: 12px !important;
        min-height: 28px;
        padding: 5px 10px !important;
    }

    .jr-browse-page .af-filter-grid-label {
        font-size: 12px !important;
        letter-spacing: 0.04em;
    }

    .jr-browse-page .af-hero-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .jr-browse-page .af-show-offers-btn,
    .jr-browse-page .af-more-filters {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 48px !important;
        font-size: clamp(15px, 4vw, 17px) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-align: center;
        padding: 12px 14px !important;
    }

    .jr-browse-page .af-reset-link {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        font-size: 14px !important;
    }

    .jr-fh-filter-tile {
        min-height: 64px;
        padding: 12px 14px;
    }

    .jr-fh-filter-tile strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .jr-fh-filter-tile small {
        font-size: 13px;
        line-height: 1.3;
    }

    .jr-fh-show,
    .jr-fh-more,
    .jr-fh-load-all {
        min-height: 48px !important;
        font-size: clamp(15px, 4vw, 17px) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-align: center;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .jr-radius-chip {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .jr-browse-page .af-topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .jr-browse-page .af-view-toggle {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 4px;
    }

    .jr-browse-page .af-view-btn {
        min-height: 44px;
        font-size: 13px;
        padding: 8px 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jr-browse-page .af-sort select {
        min-height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .jr-browse-page.is-category-mode .jr-browse-main,
    .jr-browse-page .af-main {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .jr-fh-shell {
        padding: 12px;
        border-radius: 14px;
    }

    .jr-fh-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jr-fh-title {
        font-size: clamp(1.2rem, 6vw, 1.55rem) !important;
        line-height: 1.15;
    }

    .jr-fh-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .jr-fh-count-pill {
        margin-left: 0;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-width: max(148px, 46vw);
        max-width: 82vw;
        min-height: 52px;
        font-size: 14px;
        padding: 10px 14px;
        text-align: left;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip__count {
        margin-top: 0;
        margin-left: auto;
        font-size: 12px;
        flex-shrink: 0;
    }

    .jr-browse-page.is-category-mode .jr-fh-listing-tabs .af-listing-tab {
        font-size: 14px;
        min-height: 46px;
        padding: 0 8px;
    }

    .jr-fh-empty {
        min-height: 180px;
        padding: 16px 12px;
    }

    .jr-fh-empty__title {
        font-size: 17px;
    }

    .jr-fh-empty__body {
        font-size: 14px;
        line-height: 1.45;
    }

    .af-modal--distance-explorer .af-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .af-modal--distance-explorer .af-modal-footer > span:empty {
        display: none;
    }

    .af-modal--distance-explorer .af-modal-footer .af-modal-clear,
    .af-modal--distance-explorer .af-modal-footer .af-modal-save-btn,
    .af-modal--distance-explorer .af-modal-footer .af-modal-search-btn {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }

    .af-modal--distance-explorer .jr-map-stat-btn {
        font-size: 12px;
        min-height: 36px;
        padding: 6px 10px;
    }

    .jr-browse-page .jr-listing-card__media {
        min-height: min(38vh, 280px) !important;
        max-height: 44vh !important;
        aspect-ratio: 4 / 5 !important;
    }

    .jr-browse-page .jr-listing-card__title {
        font-size: 16px !important;
    }

    .jr-browse-page .jr-listing-card__price {
        font-size: 21px !important;
    }

    .jr-browse-page .jr-listing-card__cta {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .jr-fh-show,
    .jr-browse-page .af-show-offers-btn {
        font-size: 14px !important;
    }

    .jr-browse-page.is-category-mode .jr-fh-chip {
        min-width: 132px;
        font-size: 13px;
    }

    .jr-browse-page .af-view-btn {
        font-size: 12px;
    }

    .jr-browse-page .jr-listing-card__headline {
        gap: 8px;
    }

    .jr-browse-page .jr-listing-card__like {
        width: 40px;
        height: 40px;
    }
}

/* ── v37: mobile filters sheet — fix stuck overlay, spacing, duplicate title area ── */
.jr-expanded-filters__backdrop {
    display: none;
}

.jr-expanded-filters__sheet {
    display: block;
}

@media (max-width: 1024px) {
    .jr-expanded-filters.is-open {
        position: fixed !important;
        inset: 0 !important;
        z-index: 11030 !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        display: block !important;
    }

    .jr-expanded-filters.is-open::before {
        display: none !important;
        content: none !important;
    }

    .jr-expanded-filters.is-open .jr-expanded-filters__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 11020;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.78);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .jr-browse-page .jr-expanded-filters__sheet {
        background: var(--jr-surface-2, #1c1c1c);
        color: var(--jr-text);
    }

    body.jr-filters-sheet-open .jr-browse-page .af-main,
    body.jr-filters-sheet-open .jr-browse-page .af-topbar,
    body.jr-filters-sheet-open .jr-browse-page .af-grid,
    body.jr-filters-sheet-open .jr-browse-page .jr-browse-catnav {
        filter: brightness(0.42);
        pointer-events: none;
    }

    .jr-expanded-filters__sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 11031;
        display: flex;
        flex-direction: column;
        max-height: min(88dvh, 760px);
        padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--jr-surface-2, #1c1c1c);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
        border-top: 1px solid var(--jr-border);
    }

    .jr-expanded-filters__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .jr-expanded-filters.is-open .jr-expanded-filters__header {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .jr-expanded-filters__title {
        font-size: 17px;
        line-height: 1.25;
    }

    .jr-expanded-filters__actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .jr-expanded-filters__collapse--mobile {
        border: 1px solid var(--jr-border);
        background: transparent;
        color: var(--jr-brand);
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
    }

    .jr-expanded-filters__reset {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 10px;
    }

    .jr-expanded-filters__apply {
        grid-column: 1 / -1;
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        font-weight: 700;
        border-radius: 10px;
        white-space: normal;
        line-height: 1.25;
    }

    .jr-expanded-filters__matches {
        display: none;
    }

    .jr-fh-advanced-footer {
        flex-shrink: 0;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 8px;
    }

    .jr-fh-advanced-footer__reset,
    .jr-fh-advanced-footer__apply {
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 700;
        border-radius: 10px;
        white-space: normal;
        line-height: 1.25;
    }

    .jr-fh-sheet-head strong {
        font-size: 17px;
    }

    .jr-sheet-grabber {
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    body.jr-filters-sheet-open {
        overflow: hidden !important;
    }

    body.jr-filters-sheet-open .af-mobile-toggle {
        display: none !important;
    }
}

.jr-listing-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: var(--jr-text-muted);
}

.jr-listing-count.jr-browse-catnav__count {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.jr-browse-catnav__btn.is-active .jr-listing-count.jr-browse-catnav__count {
    color: var(--jr-brand);
}

.jr-listing-count.jr-fh-chip__count {
    display: block;
    margin-top: 4px;
}

.jr-fh-chip.is-active .jr-listing-count.jr-fh-chip__count {
    color: var(--jr-brand);
}

.jr-listing-count.af-type-pick__count {
    display: block;
    margin-top: 4px;
    font-size: 10px;
}

.af-type-pick.active .jr-listing-count.af-type-pick__count {
    color: var(--jr-brand);
}

.jr-listing-count.jr-subcat-pill__count {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 10px;
}

.jr-subcat-pill.is-active .jr-listing-count.jr-subcat-pill__count {
    background: rgba(243, 152, 26, 0.18);
    color: var(--jr-brand);
}

.af-option-label .jr-listing-count.af-option-listing-count {
    margin-left: auto;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 11px;
}

/* List / Split / Map — yellow attention flash when results first load */
@keyframes jr-view-btn-hint-flash {
    0%, 100% {
        box-shadow: none;
        filter: none;
    }
    50% {
        box-shadow: 0 0 0 2px #facc15, 0 0 16px rgba(250, 204, 21, 0.7);
        background-color: #facc15 !important;
        color: #0f172a !important;
        border-color: #eab308 !important;
    }
}

.jr-browse-page .af-view-toggle--hint {
    border-radius: 10px;
}

.jr-browse-page .af-view-toggle--hint .af-view-btn {
    animation: jr-view-btn-hint-flash 0.72s ease-in-out 3;
}
