/*
Theme Name: Bali Travelica
Description: Archive list (Tour & Activity) — Premium Silicon Valley grade UI.
             Each row: cinematic thumbnail (left, ~32%) | rich content (centre)
             | high-impact yellow price block (right, 220px).
             Dramatic hover states, layered shadows, mobile-first responsive.
*/

/* =====================================================================
   0. DESIGN TOKENS
   ===================================================================== */
:root {
    --bbt-amber-50:   #FFFBEB;
    --bbt-amber-100:  #FEF3C7;
    --bbt-amber-200:  #FDE68A;
    --bbt-amber-400:  #FBBF24;
    --bbt-amber-500:  #F5A623;
    --bbt-amber-600:  #D97706;
    --bbt-navy-50:    #F1F5FB;
    --bbt-navy-700:   #1E3A5F;
    --bbt-navy-800:   #16243C;
    --bbt-navy-900:   #0F172A;
    --bbt-gray-50:    #F8FAFC;
    --bbt-gray-100:   #F1F5F9;
    --bbt-gray-200:   #E2E8F0;
    --bbt-gray-400:   #94A3B8;
    --bbt-gray-500:   #64748B;
    --bbt-gray-600:   #475569;
    --bbt-gray-700:   #334155;
    --bbt-shadow-sm:  0 2px 8px rgba(15, 23, 42, 0.04);
    --bbt-shadow-md:  0 6px 20px rgba(15, 23, 42, 0.07);
    --bbt-shadow-lg:  0 18px 50px rgba(15, 23, 42, 0.12);
    --bbt-shadow-amber: 0 14px 40px rgba(245, 166, 35, 0.35);
    --bbt-radius-sm:  10px;
    --bbt-radius-md:  16px;
    --bbt-radius-lg:  22px;
    --bbt-radius-pill: 999px;
}

/* =====================================================================
   0. CONTAINER RESET — Defensive multi-layer reset for parent themes
   that wrap our archive in narrow .site-main, .container, etc.
   ===================================================================== */
body.post-type-archive-tour,
body.post-type-archive-activity,
body.tax-tour_location,
body.tax-tour_type,
body.tax-tour_duration {
    /* Force ancestors full width on tour & activity archive pages */
}
body.post-type-archive-tour #page,
body.post-type-archive-activity #page,
body.tax-tour_location #page,
body.tax-tour_type #page,
body.tax-tour_duration #page,
body.post-type-archive-tour #content,
body.post-type-archive-activity #content,
body.tax-tour_location #content,
body.tax-tour_type #content,
body.tax-tour_duration #content,
body.post-type-archive-tour .site-content,
body.post-type-archive-activity .site-content,
body.tax-tour_location .site-content,
body.tax-tour_type .site-content,
body.tax-tour_duration .site-content,
body.post-type-archive-tour .site-main,
body.post-type-archive-activity .site-main,
body.tax-tour_location .site-main,
body.tax-tour_type .site-main,
body.tax-tour_duration .site-main,
body.post-type-archive-tour .container,
body.post-type-archive-activity .container,
body.tax-tour_location .container,
body.tax-tour_type .container,
body.tax-tour_duration .container,
body.post-type-archive-tour .wrap,
body.post-type-archive-activity .wrap,
body.tax-tour_location .wrap,
body.tax-tour_type .wrap,
body.tax-tour_duration .wrap {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

main.bbt-archive,
.site-main.bbt-archive,
.bbt-archive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}
.bbt-archive *,
.bbt-archive *::before,
.bbt-archive *::after {
    box-sizing: border-box;
}

/* =====================================================================
   1. ARCHIVE PAGE BACKGROUND
   ===================================================================== */
.bbt-archive {
    background:
        radial-gradient(circle at 0% 10%, rgba(245, 166, 35, 0.05), transparent 50%),
        radial-gradient(circle at 100% 80%, rgba(30, 58, 95, 0.05), transparent 50%),
        var(--bbt-gray-50);
    padding-bottom: 100px;
    min-height: 100vh;
}

/* =====================================================================
   2. HERO HEADER — cinematic, flush against the fixed header
   ===================================================================== */
.bbt-archive-hero {
    position: relative;
    /* Pull hero up so it bleeds directly under the dark header.
     * body has padding-top: 80px; we cancel that with -80 margin then
     * add it back as inner padding-top so the title sits below the bar. */
    margin-top: -80px;
    padding-top: 80px;
    min-height: 420px;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}
@media (max-width: 768px) {
    .bbt-archive-hero {
        margin-top: -70px;
        padding-top: 70px;
        min-height: 320px;
    }
}
.bbt-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.30) 0%, rgba(15, 23, 42, 0.85) 100%),
        radial-gradient(ellipse at center top, rgba(245, 166, 35, 0.20), transparent 60%);
    z-index: -1;
}
.bbt-archive-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--bbt-gray-50));
    z-index: -1;
}
.bbt-archive-hero__inner {
    padding: 60px 24px;
    max-width: 800px;
    animation: bbt-hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bbt-hero-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bbt-archive-hero__kicker {
    display: inline-block;
    padding: 5px 16px;
    margin-bottom: 14px;
    background: rgba(245, 166, 35, 0.15);
    backdrop-filter: blur(10px);
    color: var(--bbt-amber-400);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    border-radius: var(--bbt-radius-pill);
    border: 1px solid rgba(245, 166, 35, 0.3);
}
.bbt-archive-hero__title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    line-height: 0.98;
}
.bbt-archive-hero__subtitle {
    font-size: clamp(14px, 1.6vw, 17px);
    opacity: 0.92;
    margin: 0;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* =====================================================================
   3. LAYOUT GRID
   ===================================================================== */
.bbt-archive-layout {
    max-width: 1320px;
    margin: -80px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* =====================================================================
   4. SIDEBAR — premium card
   ===================================================================== */
.bbt-archive-sidebar {
    background: #fff;
    border-radius: var(--bbt-radius-lg);
    box-shadow: var(--bbt-shadow-md);
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bbt-amber-200) transparent;
    border: 1px solid var(--bbt-gray-100);
}
.bbt-archive-sidebar::-webkit-scrollbar { width: 6px; }
.bbt-archive-sidebar::-webkit-scrollbar-thumb {
    background: var(--bbt-amber-200);
    border-radius: 3px;
}

.bbt-archive-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bbt-gray-100);
}
.bbt-archive-sidebar__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--bbt-navy-700);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbt-archive-sidebar__title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--bbt-amber-500), var(--bbt-amber-400));
    border-radius: 2px;
}
.bbt-archive-sidebar__clear {
    background: none;
    border: 0;
    color: var(--bbt-amber-600);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.18s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bbt-archive-sidebar__clear:hover {
    background: var(--bbt-amber-50);
    color: var(--bbt-amber-600);
}

.bbt-filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bbt-gray-100);
}
.bbt-filter-group:last-of-type {
    border-bottom: 0;
    margin-bottom: 16px;
}
.bbt-filter-group__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--bbt-navy-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bbt-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
    margin: 0 -6px;
    padding: 0 6px;
}
.bbt-filter-list::-webkit-scrollbar { width: 4px; }
.bbt-filter-list::-webkit-scrollbar-thumb { background: var(--bbt-gray-200); border-radius: 2px; }

.bbt-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    color: var(--bbt-gray-600);
    user-select: none;
    position: relative;
}
.bbt-filter-checkbox:hover {
    background: var(--bbt-amber-50);
    transform: translateX(2px);
}
.bbt-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bbt-amber-500);
    cursor: pointer;
    flex-shrink: 0;
}
.bbt-filter-checkbox:has(input:checked) {
    background: linear-gradient(135deg, var(--bbt-amber-50), var(--bbt-amber-100));
    color: var(--bbt-navy-700);
}
.bbt-filter-checkbox:has(input:checked) span:first-of-type {
    font-weight: 700;
}
.bbt-filter-checkbox__count {
    margin-left: auto;
    color: var(--bbt-gray-400);
    font-size: 11px;
    font-weight: 600;
}

.bbt-filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbt-filter-price input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid var(--bbt-gray-200);
    border-radius: 10px;
    font-size: 13px;
    background: var(--bbt-gray-50);
    font-weight: 600;
    color: var(--bbt-navy-700);
    transition: all 0.15s ease;
}
.bbt-filter-price input:focus {
    outline: none;
    border-color: var(--bbt-amber-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
}
.bbt-filter-price__sep {
    color: var(--bbt-gray-400);
    font-weight: 700;
}

.bbt-filter-apply {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--bbt-amber-500) 0%, var(--bbt-amber-400) 100%);
    color: var(--bbt-navy-700);
    font-weight: 800;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--bbt-shadow-amber);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.bbt-filter-apply:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 50px rgba(245, 166, 35, 0.5);
}
.bbt-filter-apply:active {
    transform: translateY(0);
}

/* =====================================================================
   5. MAIN — TOOLBAR + LIST
   ===================================================================== */
.bbt-archive-main { min-width: 0; }

.bbt-archive-toolbar {
    background: #fff;
    border-radius: var(--bbt-radius-md);
    padding: 16px 22px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--bbt-shadow-sm);
    border: 1px solid var(--bbt-gray-100);
}
.bbt-archive-count {
    font-size: 14px;
    color: var(--bbt-gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}
.bbt-archive-count strong {
    color: var(--bbt-amber-600);
    font-weight: 900;
    font-size: 18px;
    background: var(--bbt-amber-50);
    padding: 2px 10px;
    border-radius: 6px;
}
.bbt-archive-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin: 0;
}
.bbt-archive-sort label {
    color: var(--bbt-gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}
.bbt-archive-sort select {
    padding: 9px 36px 9px 14px;
    border: 1.5px solid var(--bbt-gray-200);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: var(--bbt-navy-700);
    font-weight: 700;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F5A623' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.15s ease;
}
.bbt-archive-sort select:hover {
    border-color: var(--bbt-amber-500);
}

.bbt-mobile-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--bbt-amber-500), var(--bbt-amber-400));
    color: var(--bbt-navy-700);
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =====================================================================
   6. LIST ROW — premium cinematic card
   ===================================================================== */
.bbt-archive-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bbt-list-row {
    display: grid;
    grid-template-columns: 32% 1fr 220px;
    gap: 0;
    background: #fff;
    border-radius: var(--bbt-radius-lg);
    overflow: hidden;
    box-shadow: var(--bbt-shadow-sm);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    border: 1px solid transparent;
    animation: bbt-row-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.bbt-list-row:nth-child(1) { animation-delay: 0.05s; }
.bbt-list-row:nth-child(2) { animation-delay: 0.10s; }
.bbt-list-row:nth-child(3) { animation-delay: 0.15s; }
.bbt-list-row:nth-child(4) { animation-delay: 0.20s; }
.bbt-list-row:nth-child(5) { animation-delay: 0.25s; }
@keyframes bbt-row-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bbt-list-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--bbt-shadow-lg);
    border-color: var(--bbt-amber-200);
}

/* Thumbnail */
.bbt-list-row__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bbt-gray-100);
    display: block;
}
.bbt-list-row__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bbt-list-row:hover .bbt-list-row__thumb img {
    transform: scale(1.08);
}
/* Gradient overlay on thumb for badge legibility */
.bbt-list-row__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.20) 0%, transparent 30%, transparent 60%, rgba(15, 23, 42, 0.30) 100%);
    pointer-events: none;
}

.bbt-list-row__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    max-width: calc(100% - 70px); /* room for wishlist heart on the right */
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--bbt-amber-500), var(--bbt-amber-400));
    color: var(--bbt-navy-700);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.06em;
    border-radius: var(--bbt-radius-pill);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.45);
    z-index: 2;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    animation: bbt-badge-pulse 2.5s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@keyframes bbt-badge-pulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(245, 166, 35, 0.45); }
    50%      { box-shadow: 0 6px 22px rgba(245, 166, 35, 0.65); }
}

.bbt-list-row__rating-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    color: #fff;
    border-radius: var(--bbt-radius-pill);
    font-size: 12px;
    font-weight: 800;
    z-index: 2;
}
.bbt-list-row__rating-pill svg { color: var(--bbt-amber-400); }

/* Wishlist button (top-right of thumb) */
.bbt-list-row__wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbt-navy-700);
    z-index: 3;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.bbt-list-row__wishlist:hover {
    background: #fff;
    color: #ef4444;
    transform: scale(1.1);
}
.bbt-list-row__wishlist:active {
    transform: scale(0.92);
}
.bbt-list-row__wishlist svg { transition: transform 0.18s ease; }

/* Content */
.bbt-list-row__content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    justify-content: center;
}
.bbt-list-row__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--bbt-gray-500);
    flex-wrap: wrap;
    font-weight: 600;
}
.bbt-list-row__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: var(--bbt-gray-50);
    border-radius: 6px;
}
.bbt-list-row__meta-item svg {
    color: var(--bbt-amber-500);
    flex-shrink: 0;
}

.bbt-list-row__title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--bbt-navy-700);
    line-height: 1.25;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bbt-list-row__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(120deg, var(--bbt-amber-500), var(--bbt-amber-500));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}
.bbt-list-row__title a:hover {
    background-size: 100% 2px;
}

.bbt-list-row__excerpt {
    margin: 0;
    font-size: 14px;
    color: var(--bbt-gray-500);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bbt-list-row__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.bbt-list-row__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: var(--bbt-amber-50);
    color: var(--bbt-amber-600);
    border-radius: var(--bbt-radius-pill);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--bbt-amber-200);
}

/* Price block — high impact yellow */
.bbt-list-row__price {
    background:
        linear-gradient(135deg, var(--bbt-amber-500) 0%, var(--bbt-amber-400) 100%);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bbt-list-row__price::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 60%);
    pointer-events: none;
}
.bbt-list-row__price > * { position: relative; z-index: 1; }

.bbt-list-row__price-from {
    font-size: 11px;
    font-weight: 800;
    color: var(--bbt-navy-700);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.bbt-list-row__price-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--bbt-navy-700);
    line-height: 1;
    letter-spacing: -0.025em;
}
.bbt-list-row__price-amount del {
    display: block;
    font-size: 13px;
    opacity: 0.55;
    font-weight: 700;
    margin-bottom: 4px;
    text-decoration-thickness: 2px;
}
.bbt-list-row__price-per {
    font-size: 11px;
    color: var(--bbt-navy-700);
    opacity: 0.7;
    font-weight: 600;
}
.bbt-list-row__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    background: var(--bbt-navy-700);
    color: #fff;
    text-decoration: none;
    border-radius: 11px;
    font-weight: 800;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}
.bbt-list-row__cta:hover {
    background: var(--bbt-navy-900);
    transform: scale(1.03);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.4);
}
.bbt-list-row__cta:active { transform: scale(0.98); }
.bbt-list-row__cta svg { transition: transform 0.2s ease; }
.bbt-list-row__cta:hover svg { transform: translateX(3px); }

/* =====================================================================
   7. PAGINATION — premium pills
   ===================================================================== */
.bbt-archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    padding: 4px;
}
.bbt-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    margin: 0 4px;
    background: #fff;
    color: var(--bbt-navy-700);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--bbt-shadow-sm);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1.5px solid transparent;
}
.bbt-archive-pagination .page-numbers:hover:not(.dots):not(.current) {
    background: var(--bbt-amber-50);
    color: var(--bbt-amber-600);
    border-color: var(--bbt-amber-200);
    transform: translateY(-2px);
}
.bbt-archive-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--bbt-amber-500), var(--bbt-amber-400));
    color: var(--bbt-navy-700);
    box-shadow: var(--bbt-shadow-amber);
    transform: scale(1.1);
}
.bbt-archive-pagination .page-numbers.dots {
    box-shadow: none;
    background: transparent;
    color: var(--bbt-gray-400);
}

/* =====================================================================
   8. NO RESULTS
   ===================================================================== */
.bbt-archive-empty {
    background: #fff;
    border-radius: var(--bbt-radius-lg);
    padding: 80px 32px;
    text-align: center;
    box-shadow: var(--bbt-shadow-md);
    border: 2px dashed var(--bbt-gray-200);
}
.bbt-archive-empty__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    color: var(--bbt-amber-500);
    opacity: 0.6;
}
.bbt-archive-empty__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--bbt-navy-700);
}
.bbt-archive-empty__text {
    margin: 0;
    color: var(--bbt-gray-500);
    font-size: 14px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================================
   9. MOBILE — full overhaul
   ===================================================================== */
/* Switch to single-column at 1100px (desktop sidebar gets cramped below this) */
@media (max-width: 1100px) {
    .bbt-archive-layout {
        grid-template-columns: 1fr;
        margin-top: -32px;
        padding: 0 14px;
        gap: 18px;
    }
    .bbt-archive-sidebar {
        position: static;
        max-height: none;
        order: 2;
        display: none;
    }
    .bbt-archive-sidebar.is-open {
        display: block;
    }
    .bbt-archive-main { order: 1; }
    .bbt-mobile-filters-toggle { display: inline-flex; }

    /* Modal-style filter sheet on mobile */
    body.bbt-filters-open {
        overflow: hidden;
    }
    body.bbt-filters-open .bbt-archive-sidebar {
        position: fixed;
        inset: 0;
        z-index: 1000;
        max-height: 100vh;
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding: 24px 20px 20px;
        overflow-y: auto;
        animation: bbt-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        top: 60px;
    }
    /* Mobile close button — only visible when filter sheet is open */
    .bbt-archive-sidebar__close-mobile {
        display: none;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--bbt-gray-100);
        border: 0;
        color: var(--bbt-navy-700);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 5;
        transition: all 0.18s ease;
    }
    .bbt-archive-sidebar__close-mobile:hover {
        background: var(--bbt-amber-100);
        color: var(--bbt-amber-600);
        transform: rotate(90deg);
    }
    body.bbt-filters-open .bbt-archive-sidebar__close-mobile {
        display: inline-flex;
    }
    @keyframes bbt-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    body.bbt-filters-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        animation: bbt-fade-in 0.25s ease;
    }
    @keyframes bbt-fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 768px) {
    /* Row stacks: thumb top → content middle → price bottom */
    .bbt-list-row {
        grid-template-columns: 1fr;
        border-radius: var(--bbt-radius-md);
    }
    .bbt-list-row:hover {
        transform: translateY(-2px);
    }
    .bbt-list-row__thumb {
        aspect-ratio: 16/10;
    }
    .bbt-list-row__content {
        padding: 18px 20px 6px;
        gap: 8px;
    }
    .bbt-list-row__title {
        font-size: 18px;
    }
    .bbt-list-row__excerpt {
        font-size: 13px;
    }
    /* Price block becomes horizontal compact */
    .bbt-list-row__price {
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        flex-wrap: wrap;
        gap: 10px;
    }
    .bbt-list-row__price-from {
        display: none;
    }
    .bbt-list-row__price-amount {
        font-size: 22px;
        flex: 1 1 auto;
    }
    .bbt-list-row__price-per { display: none; }
    .bbt-list-row__cta {
        margin-top: 0;
        flex: 0 0 auto;
        padding: 11px 20px;
        font-size: 12px;
    }

    /* Toolbar */
    .bbt-archive-toolbar {
        padding: 12px 16px;
        gap: 10px;
    }
    .bbt-archive-count {
        font-size: 13px;
    }
    .bbt-archive-count strong {
        font-size: 16px;
        padding: 2px 8px;
    }
    .bbt-archive-sort {
        flex: 1;
        min-width: 180px;
    }
    .bbt-archive-sort select {
        flex: 1;
    }

    /* Hero scaled down */
    .bbt-archive-hero {
        min-height: 240px;
    }
    .bbt-archive-hero__inner {
        padding: 40px 20px;
    }
    .bbt-archive-hero__title {
        font-size: 30px;
    }
    .bbt-archive-hero__subtitle {
        font-size: 13px;
    }

    /* Pagination tighter */
    .bbt-archive-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .bbt-list-row__title {
        font-size: 16px;
    }
    .bbt-list-row__excerpt {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
    .bbt-list-row__meta {
        gap: 8px;
        font-size: 11px;
    }
    .bbt-list-row__meta-item {
        padding: 2px 6px;
    }
    .bbt-list-row__price-amount {
        font-size: 19px;
    }
    .bbt-list-row__cta {
        padding: 10px 16px;
        font-size: 11px;
    }
    .bbt-archive-hero__title {
        font-size: 24px;
    }
    /* Compact pagination — hide middle pages (3,4) so it doesn't wrap */
    .bbt-archive-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        margin: 0 2px;
        font-size: 12px;
    }
    .bbt-archive-pagination .page-numbers:not(.current):not(.dots):not(.prev):not(.next):nth-of-type(n+4):nth-last-of-type(n+3) {
        display: none;
    }
    /* When badge is visible, hide rating pill on tiny screens */
    .bbt-list-row:has(.bbt-list-row__badge) .bbt-list-row__rating-pill {
        display: none;
    }
}

/* =====================================================================
   10. PRINT — clean
   ===================================================================== */
@media print {
    .bbt-archive-sidebar,
    .bbt-archive-pagination,
    .bbt-mobile-filters-toggle { display: none; }
    .bbt-archive-layout { grid-template-columns: 1fr; }
    .bbt-list-row { box-shadow: none; border: 1px solid #ccc; }
}
