:root {
    --primary: #ff6b00;
    --secondary: #2563eb;
    --bg-dark: #0f1419;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-blur: 40px;
    --glass-saturate: 180%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    /* Override style.css body flex that breaks browse layout */
    display: block;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 70% 70% at 90% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 70% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        linear-gradient(160deg, #1a1f2e 0%, #0f1419 50%, #0c1015 100%);
}

/* ==================== HEADER ==================== */
/* Make shared header sticky on browse page */
#header-placeholder header {
    position: sticky;
    top: 0;
    z-index: 100;
}


.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo span {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 980px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

.search-btn {
    background: linear-gradient(180deg, #ff7a1a 0%, #ff6b00 100%);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}


/* ==================== MAIN LAYOUT ==================== */
.browse-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 2rem;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ==================== FILTER SIDEBAR ==================== */
.filter-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.filter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(255, 107, 0, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 980px;
    font-weight: 500;
}

/* Verified Toggle - Blue Theme */
.verified-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.verified-toggle:hover {
    background: rgba(37, 99, 235, 0.15);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
}

.verified-toggle.active .toggle-switch {
    background: var(--secondary);
}

.verified-toggle.active .toggle-switch::after {
    left: 23px;
}

.verified-toggle-text {
    flex: 1;
}

.verified-toggle-text span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.verified-toggle-text small {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.verified-badge-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Filter Sections - Accordion Style */
.filter-section {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
    transition: all 0.2s ease;
}

.filter-section-header:hover {
    color: var(--primary);
}

.filter-section-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.toggle-icon {
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

.filter-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.filter-options {
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-section.collapsed .filter-options {
    display: none;
}

/* Price Range Slider */
.price-slider-container {
    padding: 0.5rem 0;
    overflow: hidden;
}

.price-slider-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    margin: 2rem 0 1rem;
    overflow: visible;
    contain: layout;
}

.price-slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff8c3a);
    border-radius: 3px;
    left: 0%;
    right: 0%;
    pointer-events: none;
}

.price-range-input {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 18px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #1a1a2e;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.5);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #1a1a2e;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 6px rgba(255, 107, 0, 0.5);
}

.price-slider-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-slider-inputs input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    color: var(--text-main);
    font-size: 0.75rem;
    outline: none;
    text-align: center;
}

.price-slider-inputs input:focus {
    border-color: var(--primary);
}

.price-slider-inputs span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.price-preset {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-preset:hover, .price-preset.active {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Brand Dropdown with Search */
.brand-search-container {
    position: relative;
}

.brand-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
}

.brand-search-input:focus {
    border-color: var(--primary);
}

.brand-list {
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.brand-list.expanded {
    max-height: 200px;
    overflow-y: auto;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.brand-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.brand-item input {
    display: none;
}

.brand-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.brand-item input:checked + .brand-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.brand-item input:checked + .brand-checkbox::after {
    content: '\2713';
    color: white;
    font-size: 0.6rem;
}

.brand-name {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.brand-item:hover .brand-name {
    color: var(--text-main);
}

.view-all-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem;
    cursor: pointer;
    text-align: center;
    margin-top: 0.5rem;
}

.view-all-btn:hover {
    text-decoration: underline;
}

/* Year Dropdowns */
.year-range-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.year-range-inputs span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.filter-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-main);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-select option {
    background: var(--bg-dark);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.checkbox-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    display: none;
}

.checkbox-custom {
    display: none;
}

.checkbox-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.checkbox-item:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.4);
}

.checkbox-item:hover .checkbox-label {
    color: var(--text-main);
}

.checkbox-item:has(input:checked) {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--primary);
}

.checkbox-item:has(input:checked) .checkbox-label {
    color: var(--primary);
}

/* KM Range Slider */
.km-slider-container {
    padding: 0.5rem 0;
}

.km-presets {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Location Dropdown */
.location-select-container {
    position: relative;
}

.near-me-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    padding: 0.6rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.near-me-btn:hover {
    background: rgba(37, 99, 235, 0.2);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-apply-filters {
    background: linear-gradient(180deg, #ff7a1a 0%, #ff6b00 100%);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(255, 107, 0, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px rgba(255, 107, 0, 0.4);
}

.btn-clear-filters {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-clear-filters:hover {
    color: var(--primary);
}

/* ==================== RESULTS SECTION ==================== */
.results-section {
    flex: 1;
    min-width: 0;
    width: 0; /* Forces flex item to respect flex: 1 and not shrink sidebar */
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1rem;
    color: var(--text-dim);
}

.results-count strong {
    color: var(--text-main);
    font-weight: 600;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.sort-dropdown option {
    background: var(--bg-dark);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active {
    background: var(--primary);
    border-color: var(--primary);
}

.view-toggle button svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dim);
}

.view-toggle button.active svg {
    fill: white;
}

/* ==================== LISTINGS GRID ==================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* LISTING CARD - Apple Liquid Glass Effect */
.listing-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 24px;
    border: 1px solid;
    border-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Specular highlight overlay */
.listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.listing-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 20px 48px rgba(0, 0, 0, 0.2);
}

.listing-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
    z-index: 2;
}

.revealed-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.5);
    z-index: 2;
}

.own-listing-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.5);
    z-index: 2;
}

.card-action-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.revealed-contact {
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.revealed-contact-icon {
    font-size: 0.9rem;
}

.listing-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.listing-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

/* EMI Estimate */
.listing-emi {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.listing-emi .emi-note {
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.6);
    font-weight: 400;
}

/* Key Specs with Icons */
.listing-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.spec-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-details {
    width: 100%;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-left: 1rem;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* ==================== MOBILE FILTER BUTTON ==================== */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ff7a1a 0%, #ff6b00 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
    z-index: 50;
    align-items: center;
    gap: 0.5rem;
}

.mobile-filter-btn .filter-badge {
    background: white;
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Filter Drawer Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    backdrop-filter: blur(4px);
}

.filter-overlay.active {
    display: block;
}

/* Filter Drawer */
.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1f2e 0%, var(--bg-dark) 100%);
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 1.5rem;
}

.filter-drawer.active {
    transform: translateY(0);
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-drawer-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-drawer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== CARD TAG ROWS ==================== */
.card-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.card-tags-row:empty {
    display: none;
}

.card-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tag-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-warn {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-valid {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-expiring {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.compliance-row {
    margin-top: 0.25rem;
}

/* ==================== LIST VIEW ==================== */
.listings-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.listings-grid.list-view .listing-card {
    display: flex;
    flex-direction: row;
    border-radius: 16px;
}

.listings-grid.list-view .listing-image {
    width: 240px;
    min-width: 240px;
    height: auto;
    min-height: 160px;
    border-radius: 16px 0 0 16px;
}

.listings-grid.list-view .listing-content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.listings-grid.list-view .listing-specs {
    grid-template-columns: repeat(3, auto);
    gap: 0.4rem 1rem;
}

.listings-grid.list-view .listing-features {
    margin-top: 0.4rem;
}

.listings-grid.list-view .btn-view-details {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .filter-sidebar {
        display: none;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .browse-main {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .listings-grid.list-view .listing-image {
        width: 160px;
        min-width: 160px;
        min-height: 140px;
    }

    .listings-grid.list-view .listing-specs {
        grid-template-columns: repeat(2, auto);
    }

    .listing-image {
        height: 140px;
    }

    .listing-content {
        padding: 1rem;
    }

    .listing-title {
        font-size: 0.9rem;
    }

    .listing-price {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .listing-specs {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .browse-main {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listing-image {
        height: 200px;
    }

    .listing-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-card {
        border-radius: 20px;
    }

    /* List view reverts to stacked on very small screens */
    .listings-grid.list-view .listing-card {
        flex-direction: column;
    }

    .listings-grid.list-view .listing-image {
        width: 100%;
        min-width: unset;
        height: 180px;
        min-height: unset;
        border-radius: 20px 20px 0 0;
    }

    .listings-grid.list-view .btn-view-details {
        display: inline-block;
    }
}
