﻿/* =========================================
   GENERAL / TYPOGRAPHY
   ========================================= */
/* Local layout tokens (colors now come from theme-variables.css) */

body {
    font-family: 'Inter', sans-serif;
}

/* Apply Inter specifically to Categories / Locations headings/buttons */
.heading-with-icon,
.browse-locationcatpanel .dropbtn > .dropdown-toggle,
.browse-locationcatpanel .location-panel-head h2,
.page-title,
.text-muted-listed {
    font-family: 'Inter', sans-serif !important;
}

.heading-with-icon {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    letter-spacing: 0.2px !important;
    line-height: 150% !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
}

/* Breadcrumb inside sidebar column — ID-based overrides for max specificity */
.browse-locationcatpanel #breadcrumb-item {
    padding: 14px 0 0 0 !important;
    margin: 0 0 16px 0 !important;
}

.browse-locationcatpanel #breadcrumb-item > ul {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 0.8rem;
    list-style: none;
}

.browse-locationcatpanel #breadcrumb-item > ul > li {
    display: inline;
}

@media (max-width: 767px) {
    /* Breadcrumb: more space below before Locations */
    .browse-locationcatpanel #breadcrumb-item {
        padding: 10px 0 0 0 !important;
        margin: 0 0 12px 0 !important;
    }

    /* Align breadcrumb with inner content of dropdown buttons (16px padding) */
    .browse-locationcatpanel #breadcrumb-item > ul {
        padding-left: 16px !important;
    }

    /* More space between Locations and Categories dropdowns */
    .browse-locationcatpanel .dropbtn {
        margin-bottom: 10px !important;
    }

    /* Less space between sidebar (Categories) and title */
    .browse-locationcatpanel {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .page-title {
        padding-top: 2px !important;
        margin-bottom: 2px !important;
        font-size: 17px;
    }

    /* More space between Active/Completed buttons and Newest dropdown */
    .browse-status-buttons {
        margin-bottom: 10px !important;
    }
}

.browse-locationcatpanel .category-panel.mt20 {
    margin-top: 4px !important;
}

/* Page title + subtitle */
.page-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    padding-top: 14px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 200;
    color: var(--text-secondary) !important;
}

/* Buttons state for Completed (kept for compatibility) */
.btn-status-completed {
    background-color: var(--color-primary) !important;
    color: var(--text-on-primary) !important;
}

/* Status buttons (pill style) */
.browse-status-buttons {
    margin-bottom: 0.25rem !important;
}

.browse-status-buttons .status-btn {
    border-radius: 30px;
    padding: 0px 14px;
}

    /* Active state (filled primary) */
    .browse-status-buttons .status-btn.active,
    .browse-status-buttons .status-btn.is-active {
        background-color: var(--color-primary) !important;
        border-color: var(--color-primary);
        color: var(--text-on-primary);
    }

    /* Normal state (outlined/gray) */
    .browse-status-buttons .status-btn:not(.active):not(.is-active) {
        color: var(--text-primary);
        margin-right: 10px;
    }

        .browse-status-buttons .status-btn:not(.active):not(.is-active):hover,
        .browse-status-buttons .status-btn:not(.active):not(.is-active):focus-visible {
            background-color: var(--color-primary) !important;
            border-color: var(--color-primary);
            color: var(--text-on-primary);
        }

/* Sort dropdown (modern style) */
.options-custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23686868' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.4;
}

.options-custom-select:hover {
    border-color: var(--color-primary);
}

.options-custom-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ---- Mobile: sort dropdown full width ---- */
@media (max-width: 767px) {
    #FilterOptions {
        justify-content: flex-start !important;
    }

    .options-custom-select {
        flex: 1;
        min-width: 0;
    }
}

/* Desktop: gap between toggles and dropdown */
@media (min-width: 768px) {
    #FilterOptions {
        gap: 12px !important;
    }
}

/* =========================================
   VIEW TOGGLE ICONS (List / Grid)
   ========================================= */
.view-toggles {
    flex-shrink: 0;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-placeholder);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

    .view-toggle-btn:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

    .view-toggle-btn.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: var(--text-on-primary);
    }

/* Muted text used under title */
.text-muted-listed {
    color: var(--text-secondary) !important;
}

/* =========================================
   LEFT PANEL (Categories / Locations)
   ========================================= */
@media only screen and (min-width: 691px) {
    .dropbtn {
        display: none !important;
    }
}

.dropList {
    transform: inherit !important;
    top: unset !important;
}

/* Personalized homepage subtitle — shown under the page heading when the
   Recommended for You view is active. */
.recommended-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0.25rem 0 1rem;
    max-width: 720px;
}

.browse-locationcatpanel .location-panel-head {
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}

    .browse-locationcatpanel .location-panel-head h2 {
        display: flex;
        align-items: center;
        gap: .5rem;
        color: var(--text-primary);
        font-size: 15px;
        font-weight: 600;
        line-height: 150%;
        letter-spacing: 0.2px;
        text-transform: capitalize;
        margin: 0;
    }

.browse-locationcatpanel .icon-left {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Lists spacing under their headings */
.browse-locationcatpanel .category-panel ul,
.browse-locationcatpanel .locationpanel ul {
    margin-top: .5rem !important;
}

/* ===== Mobile dropdowns (Locations / Categories) ===== */
.locationcategorypanel .awe-dropmenu .dropdown-toggle,
.locationcategorypanel .dropdown .dropdown-toggle,
.browse-locationcatpanel .dropbtn > .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--bg-surface-alt) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: none !important;
}

    .locationcategorypanel .awe-dropmenu .dropdown-toggle:hover,
    .locationcategorypanel .awe-dropmenu .dropdown-toggle:focus,
    .locationcategorypanel .dropdown .dropdown-toggle:hover,
    .locationcategorypanel .dropdown .dropdown-toggle:focus,
    .browse-locationcatpanel .dropbtn > .dropdown-toggle:hover,
    .browse-locationcatpanel .dropbtn > .dropdown-toggle:focus {
        background-color: var(--bg-surface-alt) !important;
        border-color: var(--border-input) !important;
        color: var(--text-primary) !important;
        box-shadow: none !important;
    }

/* Left icon inside the dropdown toggles */
.locationcategorypanel .icon-left,
.browse-locationcatpanel .icon-left {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Bootstrap caret alignment to the right */
.locationcategorypanel .dropdown-toggle::after,
.browse-locationcatpanel .dropbtn > .dropdown-toggle::after {
    margin-left: auto;
    color: var(--text-primary);
    opacity: 1;
}

/* Dropdown panel below */
.locationcategorypanel .dropdown-menu,
.browse-locationcatpanel .dropbtn .dropdown-menu {
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--border-card);
    background-color: var(--bg-surface-alt);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,.05);
}

/* =========================================
   GRID VIEW CARDS
   ========================================= */
.grid-container .row {
    margin-left: -8px;
    margin-right: -8px;
}

.grid-container .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.grid-card {
    /* surface-alt so cards lift off the page bg in both light and dark modes */
    background: var(--bg-surface-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 16px;
    position: relative;
}

.grid-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

/* Image */
.grid-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-muted);
}

.grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-card-image img {
    transform: scale(1.04);
}

/* Card body (clickable link) */
.grid-card-body {
    display: block;
    padding: 10px 12px 12px;
    text-decoration: none !important;
    color: inherit !important;
}

.grid-card-body:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Title */
.grid-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Location */
.grid-card-location {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

/* Bottom row: price + bids */
.grid-card-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}

.grid-card-price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.grid-card-price-value .NumberPart {
    font-size: 16px;
    font-weight: 700;
}

.grid-card-meta {
    font-size: 12px;
    color: var(--text-placeholder);
    font-weight: 500;
}

.grid-card-bids {
    font-weight: 700;
    color: var(--text-primary);
}

/* Footer: time + view button */
.grid-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.grid-card-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.grid-card-time--ended {
    color: var(--text-placeholder);
    font-weight: 500;
}

.grid-card-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--text-on-primary) !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 16px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(var(--color-primary-rgb),.25);
    transition: all 0.15s ease;
}

.grid-card-btn:hover {
    box-shadow: 0 4px 8px rgba(var(--color-primary-rgb),.35);
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ---- Responsive: smaller cards on mobile ---- */
@media (max-width: 575px) {
    .grid-card-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }

    .grid-card-location {
        font-size: 10px;
    }

    .grid-card-price-value,
    .grid-card-price-value .NumberPart {
        font-size: 14px;
    }

    .grid-card-body {
        padding: 8px 10px 10px;
    }

    .grid-card-meta {
        font-size: 11px;
    }

    .grid-card-time {
        font-size: 11px;
    }

    .grid-card-btn {
        font-size: 11px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .grid-card-title {
        font-size: 13px;
    }

    .grid-card-price-value,
    .grid-card-price-value .NumberPart {
        font-size: 15px;
    }
}

/* =========================================
   VIEWBOX – timer / button centering
   ========================================= */
.browse .viewbox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 15px;
}

.browse .viewbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.browse .viewbox-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.browse .viewbox-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.browse .viewbox-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.browse .btn-viewbox {
    padding: 6px 24px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    white-space: nowrap;
}

/* Medium screens – viewbox gets tight with sidebar */
@media (max-width: 1199px) {
    .browse .viewbox {
        padding-left: 10px;
    }
    .browse .viewbox-inner {
        gap: 4px;
    }
    .browse .viewbox-label {
        font-size: 11px;
    }
    .browse .viewbox-time {
        font-size: 12px;
    }
    .browse .viewbox-icon {
        width: 16px;
        height: 16px;
    }
    .browse .btn-viewbox {
        padding: 5px 18px !important;
        font-size: 12px !important;
    }
}

/* Small-medium screens */
@media (max-width: 991px) {
    .browse .viewbox {
        padding-left: 8px;
    }
    .browse .viewbox-label {
        font-size: 10px;
    }
    .browse .viewbox-time {
        font-size: 11px;
    }
    .browse .btn-viewbox {
        padding: 4px 14px !important;
        font-size: 11px !important;
    }
}

/* =========================================
   PAGINATION (modern / clean)
   ========================================= */
.browse .pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 24px 0 8px !important;
    list-style: none !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .browse .pagination {
        justify-content: flex-start !important;
    }
}

.browse .pagination li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.browse .pagination li a:hover {
    background-color: var(--bg-surface-hover) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* Active page */
.browse .pagination li.active a,
.browse .pagination li.active a:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--text-on-primary) !important;
    font-weight: 600 !important;
    cursor: default !important;
}

/* Disabled — ellipsis & boundary arrows */
.browse .pagination li.disabled a,
.browse .pagination li.disabled a:hover {
    color: #aab0b8 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    pointer-events: none !important;
    font-weight: 400 !important;
    min-width: auto !important;
    padding: 0 4px !important;
}

/* Mobile: slightly smaller pagination */
@media (max-width: 767px) {
    .browse .pagination {
        gap: 4px !important;
        margin: 16px 0 8px !important;
    }

    .browse .pagination li a {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
}

/* =========================================
   EMPTY RESULTS BOX
   ========================================= */
.empty-results-box {
    background: var(--bg-muted);
    padding: 1rem;
    text-align: center;
}

/* ============================================================
   DARK MODE — Browse Page
   (In-file overrides because this CSS loads from the Browse partial)
   ============================================================ */
html[data-theme="dark"] .grid-card {
    /* Match the home page .listing-card color (var(--bg-surface-alt) = #1a2940)
       so cards lift off the darker body instead of blending with it. */
    background: var(--bg-surface-alt) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.3) !important;
}
html[data-theme="dark"] .grid-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,.4) !important;
}
html[data-theme="dark"] .grid-card-image {
    background: #1a2940 !important;
}
html[data-theme="dark"] .grid-card-title {
    color: #e8edf2 !important;
}
html[data-theme="dark"] .grid-card-location {
    color: #8fa3b8 !important;
}
html[data-theme="dark"] .grid-card-price-value,
html[data-theme="dark"] .grid-card-price-value .NumberPart {
    color: #f0f3f6 !important;
}
html[data-theme="dark"] .grid-card-bids {
    color: #d4dce6 !important;
}
html[data-theme="dark"] .grid-card-meta {
    color: #5a7085 !important;
}
html[data-theme="dark"] .grid-card-time {
    color: #8fa3b8 !important;
}
html[data-theme="dark"] .grid-card-time--ended {
    color: #5a7085 !important;
}
html[data-theme="dark"] .grid-card-bottom {
    border-top-color: #2a3f54 !important;
}
html[data-theme="dark"] .grid-card-btn {
    background-color: #4a9fd4 !important;
}
html[data-theme="dark"] .grid-card-body {
    color: #d4dce6 !important;
}

/* Category sidebar */
html[data-theme="dark"] .categories a {
    color: #d4dce6 !important;
}
html[data-theme="dark"] .categories > li:hover {
    background: #1f3048 !important;
}
html[data-theme="dark"] .category-badge__container .badge {
    color: #8fa3b8 !important;
    background: transparent !important;
}
html[data-theme="dark"] .heading-with-icon {
    color: #e8edf2 !important;
}
html[data-theme="dark"] .location-panel-head h2 {
    color: #e8edf2 !important;
}

/* Location items (states) — clean dark look
   The <ul> has .list-group .nav .nav-pills .nav-stacked from Bootstrap,
   so we need very high specificity to override those framework styles */
html[data-theme="dark"] .locationpanel {
    border-bottom: 0 !important;
    border-color: transparent !important;
}
html[data-theme="dark"] .locationpanel ul.list-group,
html[data-theme="dark"] .locationpanel ul.categories,
html[data-theme="dark"] .locationpanel .categories,
html[data-theme="dark"] #partial-location,
html[data-theme="dark"] #partial-category {
    background: transparent !important;
    border: none !important;
}
html[data-theme="dark"] .locationpanel ul.list-group li,
html[data-theme="dark"] .locationpanel ul.list-group > li,
html[data-theme="dark"] .locationpanel ul.categories li,
html[data-theme="dark"] .locationpanel .categories > li,
html[data-theme="dark"] .categories > li,
html[data-theme="dark"] #partial-location > li,
html[data-theme="dark"] #partial-category > li,
html[data-theme="dark"] .list-group.nav.nav-pills li,
html[data-theme="dark"] .browse-locationcatpanel .list-group li,
html[data-theme="dark"] .browse-locationcatpanel .nav-pills > li,
html[data-theme="dark"] .category-panel .list-group li,
html[data-theme="dark"] .category-panel .nav-pills > li {
    border: 0 !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-color: transparent !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .locationpanel ul.list-group li a,
html[data-theme="dark"] .locationpanel ul.categories li a,
html[data-theme="dark"] .locationpanel .categories > li a,
html[data-theme="dark"] .categories > li a,
html[data-theme="dark"] #partial-location > li > a,
html[data-theme="dark"] #partial-category > li > a,
html[data-theme="dark"] .browse-locationcatpanel .list-group li a,
html[data-theme="dark"] .browse-locationcatpanel .nav-pills li a {
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #d4dce6 !important;
    background: transparent !important;
}
html[data-theme="dark"] .locationpanel li:hover,
html[data-theme="dark"] .categories > li:hover,
html[data-theme="dark"] #partial-location > li:hover,
html[data-theme="dark"] #partial-category > li:hover,
html[data-theme="dark"] .browse-locationcatpanel .list-group li:hover {
    background: transparent !important;
}
html[data-theme="dark"] .locationpanel .category-badge__container .badge,
html[data-theme="dark"] .locationpanel .badge,
html[data-theme="dark"] .categories .category-badge__container .badge,
html[data-theme="dark"] .category-badge__container .badge,
html[data-theme="dark"] .browse-locationcatpanel .badge,
html[data-theme="dark"] #partial-location .badge,
html[data-theme="dark"] #partial-category .badge {
    color: #8fa3b8 !important;
    background: rgba(74, 159, 212, 0.15) !important;
    border: none !important;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
}
html[data-theme="dark"] .categories .panel-default .nav > li:hover,
html[data-theme="dark"] .categories .panel-default .nav > li:focus {
    background-color: transparent !important;
}
html[data-theme="dark"] .category-name__container {
    color: #d4dce6 !important;
}
/* Also override .list-group-item if Bootstrap adds it dynamically */
html[data-theme="dark"] .browse-locationcatpanel .list-group-item,
html[data-theme="dark"] .locationpanel .list-group-item {
    background-color: transparent !important;
    border: none !important;
    color: #d4dce6 !important;
}

/* Expand button */
html[data-theme="dark"] .locationpanel .btn-outline-secondary,
html[data-theme="dark"] .button-location-panel {
    color: #5ab0e0 !important;
    border-color: #2a3f54 !important;
}

/* Accordion (locations/subcategories) */
html[data-theme="dark"] .accordion-heading a {
    color: #d4dce6 !important;
}
html[data-theme="dark"] .accordion-inner a {
    color: #5ab0e0 !important;
}
html[data-theme="dark"] .accordion-inner:hover {
    background: transparent !important;
}

/* Browse page heading */
html[data-theme="dark"] .browse-listings h1 {
    color: #e8edf2 !important;
}
html[data-theme="dark"] .page-title h1 {
    color: #e8edf2 !important;
}

/* Status buttons (Completed) */
html[data-theme="dark"] .browse-status-buttons .status-btn:not(.active):not(.is-active) {
    color: #d4dce6 !important;
    border-color: #2a3f54 !important;
}

/* Sort dropdown */
html[data-theme="dark"] .options-custom-select {
    background-color: #162231 !important;
    border-color: #2a3f54 !important;
    color: #d4dce6 !important;
}

/* View toggle icons */
html[data-theme="dark"] .view-toggle-btn {
    border-color: #2a3f54 !important;
    color: #8fa3b8 !important;
}
html[data-theme="dark"] .view-toggle-btn.active,
html[data-theme="dark"] .view-toggle-btn.is-active {
    background-color: #4a9fd4 !important;
    border-color: #4a9fd4 !important;
    color: #fff !important;
}

/* Browse item (list view) */
html[data-theme="dark"] .browse-item {
    background: #162231 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.3) !important;
}

/* Pagination */
html[data-theme="dark"] .browse .pagination li a {
    background-color: #162231 !important;
    color: #d4dce6 !important;
    border-color: #2a3f54 !important;
}
html[data-theme="dark"] .browse .pagination li.active a {
    background-color: #4a9fd4 !important;
    color: #fff !important;
    border-color: #4a9fd4 !important;
}
html[data-theme="dark"] .browse .pagination li.disabled a {
    color: #5a7085 !important;
}

/* Breadcrumb in browse */
html[data-theme="dark"] .browse-locationcatpanel #breadcrumb-item > ul {
    background: transparent !important;
}
html[data-theme="dark"] .browse-locationcatpanel #breadcrumb-item > ul > li + li:before {
    color: #5a7085 !important;
}

/* Disabled pagination */
html[data-theme="dark"] .browse .pagination li.disabled a {
    background: transparent !important;
    color: #5a7085 !important;
}

/* "Completed" status button — white bg fix */
html[data-theme="dark"] .browse-status-buttons .status-btn:not(.active):not(.is-active) {
    color: #d4dce6 !important;
    border-color: #2a3f54 !important;
    background: transparent !important;
}
html[data-theme="dark"] .browse-status-buttons .status-btn:not(.active):not(.is-active):hover {
    background: #1f3048 !important;
}

/* "ENDS IN" badge — fix white background */
html[data-theme="dark"] .viewbox-timer .badge,
html[data-theme="dark"] .viewbox .badge,
html[data-theme="dark"] .badge-outline-primary {
    background: transparent !important;
    border-color: #2a3f54 !important;
    color: #5ab0e0 !important;
}

/* Listing titles in list view — brighter */
html[data-theme="dark"] .browse-info h1 a,
html[data-theme="dark"] .browse-info h1 {
    color: #f0f3f6 !important;
}

/* "BIDS:" and "CURRENT BID:" labels */
html[data-theme="dark"] .browse-info h2,
html[data-theme="dark"] .browse-info h2 span {
    color: #d4dce6 !important;
}
html[data-theme="dark"] .browse-info h2 b,
html[data-theme="dark"] .browse-info h2 strong {
    color: #ffffff !important;
}

/* "Ending Soon" dropdown */
html[data-theme="dark"] .options-custom-select,
html[data-theme="dark"] select.options-custom-select {
    background-color: #162231 !important;
    border-color: #2a3f54 !important;
    color: #d4dce6 !important;
}

/* View toggle icons (list/grid buttons) */
html[data-theme="dark"] .view-toggle-btn,
html[data-theme="dark"] .btn-group .btn-outline-secondary {
    border-color: #2a3f54 !important;
    color: #8fa3b8 !important;
    background: transparent !important;
}
html[data-theme="dark"] .view-toggle-btn.active,
html[data-theme="dark"] .view-toggle-btn.is-active,
html[data-theme="dark"] .btn-group .btn-outline-secondary.active {
    background-color: #4a9fd4 !important;
    border-color: #4a9fd4 !important;
    color: #fff !important;
}
html[data-theme="dark"] .view-toggle-btn:hover:not(.active),
html[data-theme="dark"] .btn-group .btn-outline-secondary:hover:not(.active) {
    background: #1f3048 !important;
    color: #d4dce6 !important;
}

/* Listing separator line between items */
html[data-theme="dark"] .browse-item {
    border-bottom-color: #1e3246 !important;
}

/* Agency link in list view */
html[data-theme="dark"] .browse-info a[href*="Seller"] {
    color: #5ab0e0 !important;
}

/* List view — viewbox (right panel with time + VIEW btn) */
html[data-theme="dark"] .viewbox {
    background: transparent !important;
    border-left-color: #2a3f54 !important;
}
html[data-theme="dark"] .browse .viewbox-label {
    color: #5ab0e0 !important;
}
html[data-theme="dark"] .browse .viewbox-time {
    color: #e8edf2 !important;
}
html[data-theme="dark"] .browse .viewbox-icon {
    color: #5ab0e0 !important;
}
html[data-theme="dark"] .browse .btn-viewbox {
    border-radius: 50px !important;
}
html[data-theme="dark"] .browse .btn-viewbox.btn-primary {
    background-color: #4a9fd4 !important;
    border-color: #4a9fd4 !important;
    color: #fff !important;
}
html[data-theme="dark"] .browse .btn-viewbox.btn-success {
    background-color: #2dd183 !important;
    border-color: #2dd183 !important;
    color: #fff !important;
}
html[data-theme="dark"] .browse .btn-viewbox.btn-outline-secondary {
    background: transparent !important;
    border-color: #2a3f54 !important;
    color: #d4dce6 !important;
}

/* Browse info text in list view */
html[data-theme="dark"] .browse-info h1,
html[data-theme="dark"] .browse-info h1 a {
    color: #e8edf2 !important;
}
html[data-theme="dark"] .browse-info h2 {
    color: #d4dce6 !important;
}
html[data-theme="dark"] .browse-info-agency {
    color: #5ab0e0 !important;
}

/* Portfolio desc in list view */
html[data-theme="dark"] .portfolio-desc h3 a {
    color: #e8edf2 !important;
}
