/* Listing page — Phase 1 UX */

/* ── Hero head (above grid) ── */
.listing-hero-head {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.08);
}

.listing-hero-head h1 {
    font-size: 22px;
    font-weight: 700;
    color: #24272c;
    margin: 0 0 6px;
    line-height: 1.3;
}

.listing-hero-meta {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}

.listing-hero-excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ── Intro body (below grid) ── */
.listing-intro-body {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.08);
}

.listing-intro-heading {
    font-size: 22px;
    font-weight: 700;
    color: #24272c;
    margin: 0 0 12px;
    line-height: 1.3;
}

.listing-intro-updated {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
}

.listing-intro-preview {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
}

.listing-intro-body.is-expanded .listing-intro-preview {
    display: none;
}

.listing-intro-toggle {
    color: #d81517;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border: none;
    background: none;
    padding: 8px 0 0;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.listing-intro-toggle:hover {
    text-decoration: underline;
}

.listing-intro-toggle::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.2s;
}

.listing-intro-body.is-expanded .listing-intro-toggle::after {
    transform: rotate(180deg);
}

.listing-intro-full {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.65;
}

.listing-intro-full.is-open {
    display: block;
}

/* ── Results toolbar ── */
.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.08);
}

.listing-result-count {
    font-size: 15px;
    font-weight: 600;
    color: #24272c;
}

.listing-result-count span {
    color: #d81517;
}

.listing-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-sort-wrap label {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.listing-sort-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    font-size: 13px;
    color: #24272c;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
}

/* ── Active filter chips ── */
.listing-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 0;
}

.listing-filter-chips:empty {
    display: none;
}

.listing-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #d81517;
    color: #d81517;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.listing-chip:hover {
    background: #fff5f5;
}

.listing-chip-remove {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.listing-chip-clear {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
}

.listing-chip-clear:hover {
    color: #d81517;
}

/* ── Skeleton loaders ── */
.listing-skeleton-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 6px;
}

.listing-skeleton {
    flex: 1 1 auto;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.08);
    height: 310px;
}

.listing-skeleton-img {
    height: 190px;
    background: #e8e8e8;
}

.listing-skeleton-line {
    height: 14px;
    background: #e8e8e8;
    border-radius: 4px;
    margin: 12px 16px 8px;
}

.listing-skeleton-line.short {
    width: 60%;
}

.listing-skeleton-line.med {
    width: 80%;
}

.listing-skeleton-specs {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.listing-skeleton-spec {
    flex: 1;
    height: 36px;
    background: #e8e8e8;
    border-radius: 4px;
}

/* ── Product card grid — equal height rows ── */
#masonry,
#ltrSponsored,
#loader-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

#masonry > .listing-card,
#ltrSponsored > .listing-card,
#loader-row > .listing-skeleton-card {
    display: flex;
    flex-direction: column;
    float: none;
}

/* ── Product card (Phase 2) ── */
.listing-card {
    min-height: auto !important;
    padding: 6px;
    height: auto;
}

.listing-card > .dlab-feed-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
}

.listing-card-inner {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(36, 39, 44, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.listing-card-inner:hover {
    box-shadow: 0 6px 18px rgba(36, 39, 44, 0.14);
    transform: translateY(-2px);
}

.listing-card-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f4f4f4;
}

.listing-card-image-link {
    display: block;
    height: 100%;
}

.listing-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card-body {
    padding: 14px 14px 16px !important;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.listing-card-title-link {
    text-decoration: none;
    display: block;
}

.listing-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #24272c;
    margin: 0 0 8px;
    line-height: 1.35;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-card-title-link:hover .listing-card-title {
    color: #d81517;
}

.listing-card-price-block {
    margin-bottom: 12px;
    min-height: 48px;
}

.listing-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #d81517;
    margin: 0;
    line-height: 1.3;
    min-height: 24px;
}

.listing-card-price:empty::after {
    content: "Price on request";
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.listing-price-note {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 2px;
}

.listing-card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 8px 6px;
    min-height: 58px;
    align-items: center;
}

.listing-card-spec {
    text-align: center;
    border-right: 1px solid #e8e8e8;
    padding: 0 4px;
}

.listing-card-spec:last-child {
    border-right: none;
}

.listing-spec-label {
    display: block;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 3px;
    line-height: 1.2;
}

.listing-spec-value {
    font-size: 13px;
    font-weight: 600;
    color: #24272c;
    line-height: 1.25;
    word-break: break-word;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.listing-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    width: 100%;
}

.listing-card-actions .listing-cta-primary {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    background: #d81517 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    text-align: center;
}

.listing-card-actions .listing-cta-primary:hover {
    background: #b81214 !important;
    color: #fff !important;
}

.listing-cta-secondary {
    display: block;
    text-align: center;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px;
}

.listing-cta-secondary:hover {
    text-decoration: underline;
    color: #b81214;
}

/* ── Category pills ── */
.listing-category-pills-wrap {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.08);
}

.listing-category-pills-wrap:has(.listing-category-pills-scroll:empty) {
    display: none;
}

.listing-category-pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.listing-category-pills-scroll::-webkit-scrollbar {
    display: none;
}

.listing-category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid #d81517;
    border-radius: 20px;
    color: #d81517;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.listing-category-pill:hover,
.listing-category-pill:focus {
    background: #fff5f5;
    color: #b81214;
    text-decoration: none;
}

.listing-category-pill.is-active,
.listing-category-pill.is-active:hover {
    background: #d81517;
    color: #fff;
    border-color: #d81517;
    box-shadow: 0 2px 8px rgba(216, 21, 23, 0.25);
}

.listing-category-pill-link:hover {
    background: #d81517;
    color: #fff;
}

/* ── Left sidebar filters (modern) ── */
.listing-sidebar {
    margin-bottom: 16px;
}

.listing-sidebar .widget,
.listing-filter-sheet .widget {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.listing-filter-sheet .side-bar {
    margin-bottom: 0;
}

.listing-filter-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 24px rgba(36, 39, 44, 0.06);
    overflow: hidden;
}

.listing-filter-card-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(135deg, #fafbfc 0%, #fff 100%);
}

.listing-filter-card-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-filter-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d81517 0%, #b81214 100%);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(216, 21, 23, 0.25);
}

.listing-filter-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.listing-filter-card-sub {
    margin: 3px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.listing-filter-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    background: #d81517;
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 6px;
    flex-shrink: 0;
}

.listing-filter-header-badge:empty {
    display: none;
}

.listing-filter-header-clear {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.15s;
}

.listing-filter-header-clear:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.listing-filter-header-clear[hidden] {
    display: none !important;
}

.listing-sidebar .listing-filter-sections,
.listing-filter-sheet .listing-filter-panel-body {
    background: #fff;
}

.listing-sidebar .listing-filter-section,
.listing-filter-sheet .panel {
    border-bottom: 1px solid #f0f2f5;
    margin: 0;
}

.listing-sidebar .listing-filter-section:last-child,
.listing-filter-sheet .panel:last-child {
    border-bottom: none;
}

/* Desktop collapsible section toggle */
.listing-sidebar .listing-filter-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.listing-sidebar .listing-filter-section-toggle:hover {
    background: #fafbfc;
}

.listing-filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #24272c;
    letter-spacing: 0.01em;
}

.listing-filter-section-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.listing-filter-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #fff0f0;
    color: #d81517;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.listing-filter-section-count:empty {
    display: none;
}

.listing-filter-chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.15s;
    margin-top: -4px;
}

.listing-sidebar .listing-filter-section.is-collapsed .listing-filter-chevron {
    transform: rotate(-45deg);
    margin-top: 2px;
}

.listing-sidebar .listing-filter-section-panel {
    overflow: hidden;
    max-height: 520px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}

.listing-sidebar .listing-filter-section.is-collapsed .listing-filter-section-panel {
    max-height: 0;
    opacity: 0;
}

/* Mobile accordion headers */
.listing-filter-sheet .acod-head,
.listing-filter-section-head {
    padding: 0;
    background: #fff;
}

.listing-filter-sheet .listing-filter-section-head {
    padding: 0;
}

.listing-filter-sheet .acod-head-a,
.listing-filter-sheet .acod-head-a a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #24272c;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.listing-filter-sheet .acod-head-a a::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 8px;
}

.listing-filter-sheet .acod-head-a a.collapsed::after {
    transform: rotate(-45deg);
}

.listing-filter-section-body,
.listing-filter-sheet .acod-content {
    padding: 0 18px 16px;
}

.listing-sidebar .listing-filter-section-body {
    padding: 0 18px 16px;
}

.listing-filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Custom checkbox option */
.listing-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 400;
    transition: background 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    position: relative;
}

.listing-filter-option:hover {
    background: #f8f9fb;
}

.listing-filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.listing-filter-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

.listing-filter-check::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform 0.15s ease;
}

.listing-filter-option:has(input:checked) .listing-filter-check {
    background: #d81517;
    border-color: #d81517;
    box-shadow: 0 2px 6px rgba(216, 21, 23, 0.3);
}

.listing-filter-option:has(input:checked) .listing-filter-check::after {
    transform: rotate(45deg) scale(1);
}

.listing-filter-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.35;
    transition: color 0.15s;
}

.listing-filter-option:has(input:checked) {
    background: #fff8f8;
    border-color: #fde8e8;
}

.listing-filter-option:has(input:checked) .listing-filter-label {
    color: #d81517;
    font-weight: 600;
}

.listing-filter-option:focus-within {
    outline: 2px solid rgba(216, 21, 23, 0.25);
    outline-offset: 1px;
}

/* Fuel type pills */
.listing-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-filter-pill {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    justify-content: center;
    padding: 10px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
    gap: 0;
}

.listing-filter-pill .listing-filter-check {
    display: none;
}

.listing-filter-pill .listing-filter-label {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.listing-filter-pill:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.listing-filter-pill:has(input:checked) {
    background: #d81517;
    border-color: #d81517;
    box-shadow: 0 2px 8px rgba(216, 21, 23, 0.25);
}

.listing-filter-pill:has(input:checked) .listing-filter-label {
    color: #fff;
    font-weight: 600;
}

.listing-filter-scroll {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-right: -2px;
}

.listing-filter-scroll::-webkit-scrollbar {
    width: 4px;
}

.listing-filter-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.listing-filter-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.listing-filter-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.listing-sidebar-banner {
    margin-top: 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.05);
}

.listing-sidebar-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .listing-sidebar-col {
        position: sticky;
        top: 12px;
        align-self: flex-start;
    }
}

.listing-sidebar .product-brand .search-content,
.listing-filter-sheet .search-content {
    padding: 0;
    margin: 0;
}

/* ── Brand search in filters ── */
.listing-brand-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.listing-brand-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.listing-brand-search {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px 10px 36px;
    font-size: 13px;
    outline: none;
    background: #fafbfc;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.listing-brand-search::placeholder {
    color: #9ca3af;
}

.listing-brand-search:hover {
    border-color: #d1d5db;
    background: #fff;
}

.listing-brand-search:focus {
    border-color: #d81517;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 21, 23, 0.1);
}

.listing-brand-list {
    max-height: 200px;
    overflow-y: auto;
}

.listing-brand-item {
    display: flex;
}

.listing-brand-item.is-hidden {
    display: none !important;
}

.listing-brand-no-match {
    font-size: 13px;
    color: #888;
    padding: 8px 0;
    display: none;
}

.listing-brand-no-match.is-visible {
    display: block;
}

@media (max-width: 767px) {
    .listing-card-specs {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 6px 4px;
    }

    .listing-spec-value {
        font-size: 12px;
    }
}

/* ── Empty state ── */
.listing-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-radius: 8px;
    grid-column: 1 / -1;
    width: 100%;
}

.listing-empty-state h3 {
    font-size: 18px;
    color: #24272c;
    margin-bottom: 8px;
}

.listing-empty-state p {
    color: #666;
    margin-bottom: 16px;
}

/* ── Mobile filter FAB + bottom sheet ── */
.listing-filter-fab {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #24272c;
    border: none;
    border-radius: 80px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(36, 39, 44, 0.35);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.listing-filter-fab:hover {
    background: #1a1d21;
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 24px rgba(36, 39, 44, 0.4);
}

.listing-filter-fab .fa-filter {
    font-size: 13px;
    opacity: 0.9;
}

.listing-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #d81517;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
}

.listing-filter-badge:empty,
.listing-filter-badge[data-count="0"] {
    display: none;
}

.listing-filter-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    transition: opacity 0.25s, visibility 0.25s;
    pointer-events: none;
}

.listing-filter-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.listing-filter-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 100001;
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.listing-filter-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.listing-filter-overlay.active .listing-filter-sheet {
    transform: translateY(0);
}

.listing-filter-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}

.listing-filter-sheet-header-text h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #24272c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-filter-sheet-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.listing-filter-sheet-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #24272c;
}

.listing-filter-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.listing-filter-close:hover {
    color: #24272c;
    background: #f0f0f0;
    border-radius: 50%;
}

.listing-filter-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}

.listing-filter-panel-body {
    height: auto;
    max-height: none;
    overflow: visible;
}

.listing-filter-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f0f2f5;
    flex-shrink: 0;
    background: #fafbfc;
}

.listing-btn-clear {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.listing-btn-clear:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.listing-btn-apply {
    flex: 2;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d81517 0%, #b81214 100%);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(216, 21, 23, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.listing-btn-apply:hover {
    background: linear-gradient(135deg, #c01315 0%, #a01012 100%);
    box-shadow: 0 4px 12px rgba(216, 21, 23, 0.35);
}

/* Hide legacy mobile filter sticky inside sheet */
.listing-filter-sheet .filterSticky {
    display: none !important;
}

@media (min-width: 768px) {
    .listing-filter-fab {
        display: none !important;
    }

    #SortBypannel {
        display: none;
    }
}

@media (max-width: 767px) {
    .listing-toolbar {
        padding: 10px 12px;
    }

    .listing-sort-wrap {
        display: none;
    }

    .listing-intro-body .listing-intro-preview {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .listing-intro-body.is-expanded .listing-intro-preview {
        display: block;
        -webkit-line-clamp: unset;
    }

    .listing-intro-body:not(.is-expanded) .listing-intro-full,
    .listing-intro-body:not(.is-expanded) #accordionListingPrice {
        display: none !important;
    }
}

/* ── Filter option counts ── */
.listing-filter-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    flex-shrink: 0;
}

.listing-filter-option:has(input:checked) .listing-filter-count {
    color: #d81517;
}

.listing-filter-count:empty {
    display: none;
}

.listing-filter-pill .listing-filter-count {
    display: none;
}

/* ── Grid transitions ── */
#masonry.listing-grid-fade {
    opacity: 0.35;
    transition: opacity 0.2s ease;
}

#masonry.listing-grid-enter {
    animation: listingGridEnter 0.35s ease;
}

@keyframes listingGridEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Load more button ── */
#showMore-product {
    text-align: center;
    padding: 8px 0 4px;
}

#showMore-product.is-hidden {
    display: none !important;
}

.listing-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 14px 28px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #24272c;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(36, 39, 44, 0.06);
}

.listing-load-more:hover {
    border-color: #d81517;
    color: #d81517;
    background: #fff8f8;
}

.listing-load-more.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.listing-load-more-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #d81517;
    border-radius: 50%;
    animation: listingSpin 0.7s linear infinite;
}

.listing-load-more.is-loading .listing-load-more-spinner {
    display: block;
}

@keyframes listingSpin {
    to { transform: rotate(360deg); }
}

/* ── Sticky mobile toolbar ── */
.listing-mobile-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    backdrop-filter: blur(8px);
}

.listing-mobile-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.listing-mobile-sticky-count {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #24272c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-mobile-sticky-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #24272c;
    cursor: pointer;
}

.listing-mobile-sticky-sort {
    flex-shrink: 0;
}

.listing-mobile-sort-select {
    min-width: 100px;
    padding: 7px 24px 7px 10px;
    font-size: 12px;
}

/* ── In-page FAQ ── */
.listing-faq-section {
    margin-top: 20px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
}

.listing-faq-heading {
    font-size: 20px;
    font-weight: 700;
    color: #24272c;
    margin: 0 0 14px;
}

.listing-faq-accordion .panel {
    border: 1px solid #f0f2f5;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.listing-faq-accordion .acod-head a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #24272c;
    text-decoration: none;
    background: #fafbfc;
}

.listing-faq-accordion .acod-content {
    padding: 12px 16px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

/* ── Native mobile filter screen ── */
.listing-native-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
}

.listing-native-section {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid #f0f2f5;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(36, 39, 44, 0.04);
}

.listing-native-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafbfc;
}

.listing-native-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-native-section-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #d81517;
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.listing-native-section-count:empty {
    display: none;
}

.listing-native-section-content {
    padding: 12px 14px 14px;
}

.listing-native-brand-scroll,
.listing-native-option-scroll {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.listing-native-filters .listing-filter-option {
    min-height: 48px;
    padding: 12px 14px;
}

.listing-native-filters .listing-filter-pill {
    min-height: 44px;
}

@media (max-width: 767px) {
    html.listing-filter-open,
    body.listing-filter-open {
        overflow: hidden !important;
        height: 100%;
        touch-action: none;
    }

    .listing-filter-overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .listing-filter-overlay.active {
        background: rgba(0, 0, 0, 0.4);
    }

    .listing-filter-native-sheet {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: none;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100001;
        background: #f3f4f6;
    }

    .listing-filter-overlay.active .listing-filter-native-sheet,
    .listing-filter-overlay.active .listing-filter-sheet {
        transform: translateY(0) !important;
    }

    .listing-filter-native-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
        border-bottom: 1px solid #e8ecf0;
        background: #fff;
        flex-shrink: 0;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    }

    .listing-filter-native-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 12px;
        background: #f3f4f6;
        color: #24272c;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .listing-filter-native-back:active {
        background: #e5e7eb;
        transform: scale(0.96);
    }

    .listing-filter-native-title-wrap {
        flex: 1;
        min-width: 0;
    }

    .listing-filter-native-title {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #24272c;
        display: flex;
        align-items: center;
        gap: 8px;
        letter-spacing: -0.02em;
    }

    .listing-filter-sheet-sub {
        margin: 2px 0 0;
        font-size: 13px;
        color: #9ca3af;
    }

    .listing-filter-native-clear {
        border: none;
        background: none;
        color: #d81517;
        font-size: 15px;
        font-weight: 600;
        padding: 10px 12px;
        cursor: pointer;
        flex-shrink: 0;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .listing-filter-native-clear[hidden] {
        display: none !important;
    }

    .listing-filter-native-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px;
        overscroll-behavior: contain;
    }

    .listing-filter-native-footer {
        display: flex;
        gap: 10px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e8ecf0;
        box-shadow: 0 -4px 24px rgba(36, 39, 44, 0.08);
        flex-shrink: 0;
    }

    .listing-filter-native-footer .listing-btn-clear,
    .listing-filter-native-footer .listing-btn-apply {
        min-height: 50px;
        font-size: 15px;
    }

    .listing-filter-native-footer .listing-btn-apply {
        flex: 1.6;
    }

    .listing-filter-fab {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .listing-filter-fab.open {
        display: none;
    }

    .listing-mobile-sticky-bar.is-visible ~ .listing-filter-fab {
        display: none;
    }

    .listing-filter-native-footer .listing-btn-apply:hover {
        background: linear-gradient(135deg, #c01315 0%, #a01012 100%) !important;
        color: #fff !important;
        border: none !important;
    }

    .listing-filter-native-footer .listing-btn-clear:hover {
        background: #f9fafb !important;
        color: #374151 !important;
        border-color: #d1d5db !important;
    }

    .listing-filter-native-back:hover {
        background: #e5e7eb !important;
        color: #24272c !important;
        border: none !important;
    }

    .listing-filter-native-clear:hover {
        background: transparent !important;
        color: #d81517 !important;
        border: none !important;
    }
}

@media (min-width: 768px) {
    .listing-filter-native-back,
    .listing-filter-native-clear {
        display: none;
    }

    .listing-filter-native-header {
        display: none;
    }

    .listing-filter-native-sheet {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        height: auto;
        inset: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(100%);
    }

    .listing-filter-overlay.active .listing-filter-native-sheet {
        transform: translateY(0);
    }
}

/* ── Compare section (listing) ── */
.listing-compare-wrap {
    padding: 0;
}

.listing-compare-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
    overflow: hidden;
    margin: 0 auto;
}

.listing-compare-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.listing-compare-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.listing-compare-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.listing-compare-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1.5px solid #d81517;
    border-radius: 20px;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.listing-compare-view-all:hover {
    background: #d81517;
    color: #fff;
    text-decoration: none;
}

.listing-compare-body {
    padding: 16px 0 18px;
}

.tb-compare-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 20px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tb-compare-track::-webkit-scrollbar {
    display: none;
}

.tb-compare-track.owl-carousel {
    display: block;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.tb-compare-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
}

.tb-compare-card:hover {
    border-color: #d81517;
    box-shadow: 0 4px 16px rgba(216, 21, 23, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tb-compare-card-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tb-compare-card-vehicle {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.tb-compare-card-img-wrap {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-compare-card-img-wrap img {
    max-width: 100%;
    max-height: 82px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tb-compare-card-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #24272c;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tb-compare-vs {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #24272c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(36, 39, 44, 0.2);
}

.tb-compare-card-cta {
    display: block;
    text-align: center;
    padding: 10px 12px;
    background: #fff5f5;
    border: 1px solid #fde8e8;
    border-radius: 8px;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.tb-compare-card:hover .tb-compare-card-cta {
    background: #d81517;
    border-color: #d81517;
    color: #fff;
}

.tb-compare-track.owl-carousel .tb-compare-card.item {
    width: 320px;
    margin-right: 14px;
}

.tb-compare-empty {
    padding: 24px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

@media (max-width: 767px) {
    .listing-compare-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 16px 12px;
    }

    .listing-compare-view-all {
        align-self: flex-start;
    }

    .listing-compare-title {
        font-size: 18px;
    }

    .tb-compare-track {
        padding: 4px 16px 8px;
        gap: 12px;
    }

    .tb-compare-card {
        flex: 0 0 272px;
        padding: 12px;
    }

    .tb-compare-vs {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .tb-compare-card-name {
        font-size: 11px;
    }
}

/* ── Brands section (listing) ── */
.listing-brands-wrap {
    padding: 0;
}

.listing-brands-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
    overflow: hidden;
    margin: 0 auto;
}

.listing-brands-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.listing-brands-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.listing-brands-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.listing-brands-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1.5px solid #d81517;
    border-radius: 20px;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.listing-brands-view-all:hover {
    background: #d81517;
    color: #fff;
    text-decoration: none;
}

.listing-brands-body {
    padding: 16px 0 18px;
}

.tb-brands-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 20px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tb-brands-track::-webkit-scrollbar {
    display: none;
}

.tb-brands-track.owl-carousel {
    display: block;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
}

.tb-brand-card {
    flex: 0 0 132px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 14px 10px 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
}

.tb-brand-card:hover {
    border-color: #d81517;
    box-shadow: 0 4px 14px rgba(216, 21, 23, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tb-brand-card-logo {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 8px;
    margin-bottom: 10px;
}

.tb-brand-card-logo img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tb-brand-card-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #24272c;
    text-align: center;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.tb-brands-track.owl-carousel .tb-brand-card.item {
    width: 140px;
    margin-right: 12px;
}

.tb-brands-empty {
    padding: 24px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.tb-brands-section--legacy .listing-brands-body {
    padding: 0 0 16px;
}

@media (max-width: 767px) {
    .listing-brands-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 16px 12px;
    }

    .listing-brands-view-all {
        align-self: flex-start;
    }

    .listing-brands-title {
        font-size: 18px;
    }

    .tb-brands-track {
        padding: 4px 16px 8px;
        gap: 10px;
    }

    .tb-brand-card {
        flex: 0 0 118px;
        padding: 12px 8px 10px;
    }

    .tb-brand-card-logo {
        min-height: 64px;
        padding: 8px 6px;
    }

    .tb-brand-card-logo img {
        max-height: 48px;
    }

    .tb-brand-card-name {
        font-size: 11px;
    }
}

/* ── News / blog section (listing) ── */
.listing-news-wrap {
    padding: 0;
}

.listing-news-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
    overflow: hidden;
    margin: 0 auto;
}

.listing-news-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f2f5;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.listing-news-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.listing-news-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.listing-news-view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1.5px solid #d81517;
    border-radius: 20px;
    color: #d81517;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.listing-news-view-all:hover {
    background: #d81517;
    color: #fff;
    text-decoration: none;
}

.listing-news-body {
    padding: 16px 0 18px;
}

.tb-news-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 20px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tb-news-track::-webkit-scrollbar {
    display: none;
}

.tb-news-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    margin: 0;
}

.tb-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
}

.tb-news-card-link:hover {
    border-color: #d81517;
    box-shadow: 0 4px 14px rgba(216, 21, 23, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.tb-news-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
    overflow: hidden;
}

.tb-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 14px 14px 16px;
}

.tb-news-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-news-card-excerpt {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.tb-news-card-read {
    font-size: 13px;
    font-weight: 600;
    color: #d81517;
    margin-top: auto;
}

@media (max-width: 767px) {
    .listing-news-header {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 16px 12px;
    }

    .listing-news-view-all {
        align-self: flex-start;
    }

    .listing-news-title {
        font-size: 18px;
    }

    .tb-news-track {
        padding: 4px 16px 8px;
        gap: 12px;
    }

    .tb-news-card {
        flex: 0 0 248px;
    }

    .tb-news-card-body {
        padding: 12px 12px 14px;
    }

    .tb-news-card-title {
        font-size: 14px;
    }

    .tb-news-card-excerpt {
        font-size: 12px;
    }
}

.listing-results-heading {
    margin: 0 0 12px;
    font-weight: 700;
    color: #24272c;
    line-height: 1.35;
}

.listing-banner-row {
    padding: 0 6px;
}

.listing-banner-row img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
