/**
 * WP Vehicle Sync - Frontend Styles (Audaris Style)
 */

/* ========================================
   ELEMENTOR LOOP TEMPLATE: Rabatt Badge
   ======================================== */
.wpvs-rabatt-badge {
    background: var(--wpvs-primary, #15779b);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wpvs-rabatt-badge:empty {
    display: none;
}

:root {
    --wpvs-primary: #15779b;
    --wpvs-primary-dark: #0f5f7d;
    --wpvs-text: #2b2b2b;
    --wpvs-text-light: #666;
    --wpvs-text-muted: #999;
    --wpvs-bg: #f4f4f4;
    --wpvs-white: #fff;
    --wpvs-border: #e0e0e0;
    --wpvs-radius: 6px;
    --wpvs-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --wpvs-shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
}

/* ========================================
   ARCHIVE LAYOUT (Sidebar + Grid)
   ======================================== */

.wpvs-archive-layout {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0;
}

.wpvs-sidebar {
    flex: 0 0 280px;
    min-width: 280px;
}

.wpvs-main {
    flex: 1;
    min-width: 0;
}

.wpvs-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 0;
}

.wpvs-sort-bar .wpvs-count {
    color: var(--wpvs-text-light);
    font-size: 14px;
}

.wpvs-sort-bar select {
    padding: 6px 12px;
    border: 1px solid var(--wpvs-border);
    border-radius: var(--wpvs-radius);
    font-size: 14px;
    background: var(--wpvs-white);
}

/* ========================================
   VEHICLE GRID
   ======================================== */

.wpvs-vehicle-list,
.wpvs-vehicle-grid {
    display: grid;
    gap: 16px;
    margin: 0;
}

.wpvs-vehicle-list.wpvs-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wpvs-vehicle-list.wpvs-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wpvs-vehicle-list.wpvs-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   VEHICLE CARD
   ======================================== */

.wpvs-card {
    background: var(--wpvs-white);
    border-radius: var(--wpvs-radius);
    box-shadow: var(--wpvs-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wpvs-card:hover {
    box-shadow: var(--wpvs-shadow-hover);
    transform: translateY(-2px);
}

.wpvs-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.wpvs-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.wpvs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wpvs-card:hover .wpvs-card-image img {
    transform: scale(1.03);
}

.wpvs-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    background: #f5f5f5;
}

/* Price Overlay */
.wpvs-card-price-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    text-align: right;
}

.wpvs-card-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--wpvs-white);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.wpvs-card-mwst {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Badges */
.wpvs-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wpvs-white);
    line-height: 1.3;
}

.wpvs-badge-rabatt {
    background: var(--wpvs-primary);
}

.wpvs-badge-sold {
    background: #d63638;
}

/* Card Body */
.wpvs-card-body {
    padding: 14px 16px 16px;
}

/* Title */
.wpvs-card-title {
    margin-bottom: 6px;
    line-height: 1.3;
}

.wpvs-card-title strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--wpvs-text);
}

.wpvs-card-variant {
    display: block;
    font-size: 12px;
    color: var(--wpvs-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Tags */
.wpvs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.wpvs-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--wpvs-primary);
    background: rgba(21, 119, 155, 0.1);
    border-radius: 3px;
}

.wpvs-tag-highlight {
    color: var(--wpvs-white);
    background: var(--wpvs-primary);
}

/* Info Rows */
.wpvs-card-info {
    border-top: 1px solid var(--wpvs-border);
    padding-top: 10px;
}

.wpvs-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: var(--wpvs-text-light);
    line-height: 1.6;
}

.wpvs-card-row span:not(:last-child)::after {
    content: " | ";
    color: var(--wpvs-border);
}

.wpvs-card-wltp {
    font-size: 11px;
    color: var(--wpvs-text-muted);
    margin-top: 4px;
}

/* Sold State */
.wpvs-status-verkauft .wpvs-card-image img {
    filter: grayscale(40%);
    opacity: 0.7;
}

.wpvs-status-verkauft .wpvs-card-price-overlay {
    display: none;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */

.wpvs-filter-form {
    background: var(--wpvs-white);
    border-radius: var(--wpvs-radius);
    box-shadow: var(--wpvs-shadow);
    padding: 20px;
}

.wpvs-filter-form h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wpvs-text);
}

.wpvs-filter-group {
    margin-bottom: 14px;
}

.wpvs-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpvs-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpvs-filter-group select,
.wpvs-filter-group input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--wpvs-border);
    border-radius: var(--wpvs-radius);
    font-size: 14px;
    background: var(--wpvs-white);
    color: var(--wpvs-text);
    transition: border-color 0.2s;
}

.wpvs-filter-group select:focus,
.wpvs-filter-group input:focus {
    outline: none;
    border-color: var(--wpvs-primary);
}

.wpvs-filter-group-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wpvs-filter-group-range input {
    flex: 1;
    min-width: 0;
}

.wpvs-range-separator {
    color: var(--wpvs-text-muted);
    font-size: 14px;
}

.wpvs-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

/* Buttons */
.wpvs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: var(--wpvs-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.wpvs-btn-primary {
    background: var(--wpvs-primary);
    color: var(--wpvs-white);
}

.wpvs-btn-primary:hover {
    background: var(--wpvs-primary-dark);
    color: var(--wpvs-white);
}

.wpvs-btn-secondary {
    background: transparent;
    color: var(--wpvs-text-light);
    border: 1px solid var(--wpvs-border);
}

.wpvs-btn-secondary:hover {
    background: var(--wpvs-bg);
    color: var(--wpvs-text);
}

/* Mobile Filter Toggle */
.wpvs-filter-toggle {
    display: none;
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    background: var(--wpvs-primary, #15779b);
    border: none;
    border-radius: var(--wpvs-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: #fff;
}

.wpvs-filter-toggle:hover,
.wpvs-filter-toggle:focus {
    color: #fff;
    opacity: 0.9;
}

/* ========================================
   PAGINATION
   ======================================== */

.wpvs-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.wpvs-pagination a,
.wpvs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--wpvs-border);
    border-radius: var(--wpvs-radius);
    font-size: 14px;
    text-decoration: none;
    color: var(--wpvs-text);
    background: var(--wpvs-white);
    transition: all 0.2s;
}

.wpvs-pagination a:hover {
    border-color: var(--wpvs-primary);
    color: var(--wpvs-primary);
}

.wpvs-pagination .current {
    background: var(--wpvs-primary);
    border-color: var(--wpvs-primary);
    color: var(--wpvs-white);
}

/* ========================================
   LOADING STATE
   ======================================== */

.wpvs-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.wpvs-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--wpvs-border);
    border-top-color: var(--wpvs-primary);
    border-radius: 50%;
    animation: wpvs-spin 0.6s linear infinite;
}

@keyframes wpvs-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   SINGLE VEHICLE PAGE
   ======================================== */

.wpvs-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

.wpvs-single-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* Gallery */
.wpvs-gallery {
    position: relative;
}



/* Single Sidebar (right) */
.wpvs-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpvs-single-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wpvs-text);
    margin: 0 0 4px;
}

.wpvs-single-subtitle {
    font-size: 14px;
    color: var(--wpvs-text-light);
    margin: 0 0 12px;
}

.wpvs-single-price-box {
    background: var(--wpvs-bg);
    padding: 16px;
    border-radius: var(--wpvs-radius);
}

.wpvs-single-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--wpvs-text);
}

.wpvs-single-price-mwst {
    font-size: 13px;
    color: var(--wpvs-text-light);
}

.wpvs-single-price-original {
    font-size: 14px;
    color: var(--wpvs-text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Key Specs Table */
.wpvs-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.wpvs-specs-table tr {
    border-bottom: 1px solid var(--wpvs-border);
}

.wpvs-specs-table th {
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: var(--wpvs-text-muted);
    padding: 8px 0;
    width: 40%;
}

.wpvs-specs-table td {
    font-size: 13px;
    font-weight: 600;
    color: var(--wpvs-text);
    padding: 8px 0;
}

/* CTA Button */
.wpvs-btn-cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--wpvs-primary);
    color: var(--wpvs-white);
    border: none;
    border-radius: var(--wpvs-radius);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.wpvs-btn-cta:hover {
    background: var(--wpvs-primary-dark);
    color: var(--wpvs-white);
}

/* WLTP Section */
.wpvs-wltp-section {
    margin-bottom: 32px;
}

.wpvs-wltp-section h3,
.wpvs-equipment-section h3,
.wpvs-description-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wpvs-text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wpvs-primary);
}

/* Equipment Section */
.wpvs-equipment-section {
    margin-bottom: 32px;
}

.wpvs-equipment-category {
    margin-bottom: 16px;
}

.wpvs-equipment-category h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--wpvs-text);
    margin: 0 0 6px;
}

.wpvs-equipment-category span.wpvs-equip-count {
    font-weight: 400;
    color: var(--wpvs-text-muted);
    font-size: 12px;
}

.wpvs-equipment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpvs-equipment-list li {
    font-size: 13px;
    color: var(--wpvs-text-light);
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Description */
.wpvs-description-section {
    margin-bottom: 32px;
}

.wpvs-description-section .wpvs-description-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--wpvs-text-light);
}

/* Similar Vehicles */
.wpvs-similar-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--wpvs-border);
}

.wpvs-similar-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Breadcrumb */
.wpvs-breadcrumb {
    font-size: 13px;
    color: var(--wpvs-text-muted);
    margin-bottom: 16px;
}

.wpvs-breadcrumb a {
    color: var(--wpvs-primary);
    text-decoration: none;
}

.wpvs-breadcrumb a:hover {
    text-decoration: underline;
}

.wpvs-breadcrumb span {
    margin: 0 4px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .wpvs-vehicle-list.wpvs-columns-4,
    .wpvs-vehicle-grid.wpvs-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wpvs-archive-layout {
        flex-direction: column;
    }

    .wpvs-sidebar {
        flex: none;
        min-width: 100%;
    }

    .wpvs-sidebar .wpvs-filter-form {
        display: none;
    }

    .wpvs-sidebar .wpvs-filter-form.wpvs-filter-open {
        display: block;
    }

    .wpvs-filter-toggle {
        display: block;
    }

    .wpvs-vehicle-list.wpvs-columns-3,
    .wpvs-vehicle-list.wpvs-columns-4,
    .wpvs-vehicle-grid.wpvs-columns-3,
    .wpvs-vehicle-grid.wpvs-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpvs-single-header {
        grid-template-columns: 1fr;
    }

    .wpvs-equipment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wpvs-vehicle-list.wpvs-columns-2,
    .wpvs-vehicle-list.wpvs-columns-3,
    .wpvs-vehicle-list.wpvs-columns-4,
    .wpvs-vehicle-grid.wpvs-columns-2,
    .wpvs-vehicle-grid.wpvs-columns-3,
    .wpvs-vehicle-grid.wpvs-columns-4 {
        grid-template-columns: 1fr;
    }

    .wpvs-card-price {
        font-size: 17px;
    }

    .wpvs-single-price {
        font-size: 22px;
    }
}

/* ========================================
   DARK VEHICLE CARD (Audaris Style)
   ======================================== */

.wpvs-dcard {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    background: #1a1f2e;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
}

.wpvs-dcard:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wpvs-dcard-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image */
.wpvs-dcard-image {
    position: relative;
    background: #111;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.wpvs-dcard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpvs-dcard-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #444;
}

.wpvs-dcard-top {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f5a623, #f7c948);
    color: #1a1f2e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.wpvs-dcard-rabatt {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--wpvs-primary, #15779b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
}

.wpvs-dcard-sold {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

/* Price Bar */
.wpvs-dcard-pricebar {
    background: var(--wpvs-primary, #15779b);
    padding: 8px 14px;
    display: flex;
    justify-content: flex-end;
}

.wpvs-dcard-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.wpvs-dcard-price-original {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    min-height: 1em;
}

.wpvs-dcard-price {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.wpvs-dcard-mwst {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* Body */
.wpvs-dcard-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wpvs-dcard-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.wpvs-dcard-variant {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.wpvs-dcard-tags {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--wpvs-primary, #15779b);
    border-radius: 3px;
    padding: 4px 8px;
    align-self: flex-start;
    margin-bottom: 4px;
}

.wpvs-dcard-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 6px 0;
}

.wpvs-dcard-divider-light {
    background: rgba(255,255,255,0.08);
    margin: 8px 0 4px;
}

/* Spec Rows (2x2 grid) */
.wpvs-dcard-specs-row {
    display: flex;
    gap: 8px;
    margin: 2px 0;
}

.wpvs-dcard-spec {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.wpvs-dcard-spec i {
    color: #fff;
    font-size: 14px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.wpvs-dcard-spec span {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* WLTP */
.wpvs-dcard-wltp {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   SEARCH WIDGET (Elementor)
   ======================================== */

.wpvs-search-widget {
    width: 100%;
}

.wpvs-search-widget.wpvs-layout-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wpvs-search-widget.wpvs-layout-sidebar .wpvs-search-filters {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: var(--wpvs-sticky-top, 20px);
}

.wpvs-search-widget.wpvs-layout-sidebar .wpvs-search-main {
    flex: 1;
    min-width: 0;
}

.wpvs-search-widget.wpvs-sidebar-right {
    flex-direction: row-reverse;
}

.wpvs-search-widget.wpvs-layout-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpvs-search-widget.wpvs-layout-top .wpvs-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpvs-search-widget.wpvs-layout-top .wpvs-filter-group {
    flex: 1 1 180px;
    max-width: 250px;
}

/* Filter Sidebar */
.wpvs-search-filters {
    padding: 0;
}

.wpvs-filter-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.wpvs-active-filters .wpvs-filter-reset {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--wpvs-reset-color, #e53935);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
    white-space: nowrap;
}

.wpvs-active-filters .wpvs-filter-reset:hover {
    text-decoration: underline;
}

.wpvs-search-widget .wpvs-filter-toggle {
    display: none;
}

.wpvs-filter-group {
    margin-bottom: 14px;
}

.wpvs-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpvs-text-light, #666);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpvs-filter-select,
.wpvs-filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--wpvs-border, #e0e0e0);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: var(--wpvs-text, #2b2b2b);
    transition: border-color 0.2s;
}

.wpvs-filter-select:focus,
.wpvs-filter-input:focus {
    border-color: var(--wpvs-primary, #15779b);
    outline: none;
}

.wpvs-filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dual Range Slider */
.wpvs-filter-range-slider {
    padding-bottom: 4px;
}

.wpvs-slider-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--wpvs-text, #2b2b2b);
    font-weight: 600;
    margin-bottom: 8px;
}

.wpvs-dual-slider {
    position: relative;
    height: 28px;
}

.wpvs-dual-slider input[type="range"] {
    position: absolute;
    width: 100%;
    top: 0;
    height: 28px;
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.wpvs-dual-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wpvs-primary, #15779b);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.wpvs-dual-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wpvs-primary, #15779b);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
}

.wpvs-slider-track {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wpvs-border, #e0e0e0);
    border-radius: 2px;
    z-index: 1;
}

.wpvs-slider-track::after {
    content: '';
    position: absolute;
    height: 100%;
    background: var(--wpvs-primary, #15779b);
    border-radius: 2px;
    left: var(--lo, 0%);
    right: var(--hi, 0%);
}

/* Toolbar */
.wpvs-search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}


.wpvs-search-count {
    font-size: 14px;
    color: var(--wpvs-text-light, #666);
}

.wpvs-count-number {
    font-size: 18px;
    color: var(--wpvs-text, #2b2b2b);
}

.wpvs-sort-select {
    padding: 6px 10px;
    border: 1px solid var(--wpvs-border, #e0e0e0);
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

/* Active Filters */
.wpvs-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(21, 119, 155, 0.06);
    border-radius: var(--wpvs-radius, 6px);
    border: 1px solid rgba(21, 119, 155, 0.12);
}

.wpvs-active-filters-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--wpvs-text-light, #666);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

.wpvs-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wpvs-white, #fff);
    color: var(--wpvs-text, #2b2b2b);
    border: 1px solid var(--wpvs-border, #e0e0e0);
    border-radius: 4px;
    padding: 4px 8px 4px 10px;
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.2s;
}

.wpvs-filter-pill:hover {
    border-color: var(--wpvs-primary, #15779b);
}

.wpvs-filter-pill-label {
    color: var(--wpvs-text-light, #666);
    font-weight: 400;
}

.wpvs-pill-remove {
    background: none;
    border: none;
    color: var(--wpvs-text-muted, #999);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.wpvs-pill-remove:hover {
    color: var(--wpvs-reset-color, #e53935);
}

/* Vehicle Grid (Search Widget) */
.wpvs-vehicle-grid {
    position: relative;
    min-height: 200px;
}

/* Skeleton Loading Cards */
@keyframes wpvs-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.wpvs-skeleton {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    background: #1a1f2e;
}

.wpvs-skeleton-bone {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 800px 100%;
    animation: wpvs-shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
}

.wpvs-skeleton-image {
    aspect-ratio: 4/3;
    background: #111;
}

.wpvs-skeleton-pricebar {
    padding: 8px 14px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.08);
}

.wpvs-skeleton-pricebar .wpvs-skeleton-bone:first-child {
    width: 60%;
    height: 22px;
}

.wpvs-skeleton-pricebar .wpvs-skeleton-bone:last-child {
    width: 35%;
    height: 10px;
}

.wpvs-skeleton-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpvs-skeleton-title {
    width: 75%;
    height: 15px;
}

.wpvs-skeleton-variant {
    width: 55%;
    height: 12px;
    margin-bottom: 2px;
}

.wpvs-skeleton-tags {
    width: 90%;
    height: 9px;
}

.wpvs-skeleton-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 0;
}

.wpvs-skeleton-specs {
    display: flex;
    gap: 8px;
    margin: 2px 0;
}

.wpvs-skeleton-spec {
    flex: 1;
    height: 14px;
}

.wpvs-skeleton-wltp {
    width: 80%;
    height: 10px;
    margin-top: 2px;
}

.wpvs-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--wpvs-text-muted, #999);
}

/* Load More */
.wpvs-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.wpvs-load-more {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .wpvs-search-widget.wpvs-layout-sidebar {
        display: flex;
        flex-direction: column;
    }

    .wpvs-search-widget.wpvs-layout-sidebar .wpvs-search-filters {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .wpvs-search-widget .wpvs-filter-toggle {
        display: block !important;
        width: 100%;
        padding: 10px;
        background: var(--wpvs-primary, #15779b);
        color: #fff !important;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 10px;
        text-align: left;
    }

    .wpvs-search-widget .wpvs-filter-toggle:hover,
    .wpvs-search-widget .wpvs-filter-toggle:focus {
        background: var(--wpvs-primary, #15779b);
        color: #fff !important;
        opacity: 0.9;
    }

    .wpvs-search-widget .wpvs-filter-form {
        display: none;
    }

    .wpvs-sidebar .wpvs-filter-form {
        display: none;
    }

    .wpvs-vehicle-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .wpvs-vehicle-grid.wpvs-columns-2,
    .wpvs-vehicle-grid.wpvs-columns-3,
    .wpvs-vehicle-grid.wpvs-columns-4 {
        grid-template-columns: 1fr;
    }

    .wpvs-search-toolbar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* ========================================
   DETAIL PAGE
   ======================================== */

.wpvs-detail {
    width: 100%;
    font-family: inherit;
}

/* --- Top: Gallery + Sidebar --- */

.wpvs-detail-top {
    display: grid;
    grid-template-columns: 1fr 30%;
    gap: 32px;
    margin-bottom: 40px;
    align-items: center;
}

/* Gallery */
.wpvs-detail-gallery {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.wpvs-detail-sold-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpvs-detail-rabatt-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: var(--wpvs-primary, #15779b);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    min-width: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wpvs-gallery-main {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
}

/* Gallery Nav Arrows */
.wpvs-gallery-prev,
.wpvs-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.wpvs-gallery-prev:hover,
.wpvs-gallery-next:hover,
.wpvs-gallery-prev:focus,
.wpvs-gallery-next:focus {
    background: rgba(0,0,0,0.8);
    color: #fff;
    outline: none;
}

.wpvs-gallery-prev { left: 12px; }
.wpvs-gallery-next { right: 12px; }

.wpvs-gallery-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
}

.wpvs-gallery-main img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.wpvs-gallery-noimg {
    color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wpvs-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    scrollbar-width: none;
    max-height: 0;
    align-self: flex-start;
}

.wpvs-gallery-thumbs.wpvs-thumbs-ready {
    overflow-y: auto;
}

.wpvs-gallery-thumbs::-webkit-scrollbar {
    display: none;
    width: 10%;
    flex-shrink: 0;
    align-self: stretch;
}

.wpvs-gallery-thumb {
    flex: 0 0 auto;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: #111;
    transition: border-color 0.15s;
}

.wpvs-gallery-thumb {
    opacity: 0.5;
    transition: border-color 0.15s, opacity 0.15s;
}

.wpvs-gallery-thumb.active,
.wpvs-gallery-thumb:hover {
    border-color: var(--wpvs-primary, #15779b);
    opacity: 1;
}

.wpvs-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sidebar */
.wpvs-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpvs-detail-header {
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.wpvs-detail-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.wpvs-detail-variant {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Price Box */
.wpvs-detail-price-box {
    background: var(--wpvs-primary, #15779b);
    color: #fff;
    padding: 16px;
    border-radius: 6px;
    text-align: right;
}

.wpvs-detail-sold-box {
    background: #1a1f2e;
    text-align: center;
}

.wpvs-detail-sold-box .wpvs-detail-price {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wpvs-detail-sold-box .wpvs-detail-mwst {
    opacity: 0.7;
    font-size: 12px;
}

.wpvs-detail-price-original {
    font-size: 13px;
    text-decoration: line-through;
    opacity: 0.7;
    display: block;
}

.wpvs-detail-price {
    font-size: 28px;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.wpvs-detail-mwst {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

/* Specs Grid */
.wpvs-detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.wpvs-detail-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.wpvs-detail-spec:nth-child(odd) {
    border-right: 1px solid #eee;
}

.wpvs-detail-spec:nth-last-child(-n+2) {
    border-bottom: none;
}

.wpvs-detail-spec i {
    color: var(--wpvs-primary, #15779b);
    width: 16px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.wpvs-detail-spec-label {
    color: #999;
    font-size: 11px;
    display: none;
}

.wpvs-detail-spec-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions */
.wpvs-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpvs-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.15s;
    border: none;
}

.wpvs-btn-block:hover {
    opacity: 0.85;
}

.wpvs-btn-primary {
    background: var(--wpvs-primary, #15779b);
    color: #fff;
}

.wpvs-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.wpvs-btn-phone {
    background: #1a1f2e;
    color: #fff;
}

.wpvs-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.wpvs-detail-ref-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
}

.wpvs-detail-ref {
    font-size: 14px;
    font-weight: 600;
    color: #999;
}

.wpvs-btn-print,
.wpvs-btn-print:visited,
.wpvs-btn-print:active {
    background: #f0f0f0 !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
    margin: 0 !important;
}

.wpvs-btn-print:hover {
    background: #e4e4e4 !important;
    color: #333 !important;
}

/* --- Bottom: Equipment (80%) + Environment (20%) --- */

.wpvs-detail-bottom {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.wpvs-detail-equipment {
    min-width: 0;
    overflow: hidden;
}

.wpvs-detail-section {
    margin-bottom: 16px;
}

.wpvs-detail-section.wpvs-collapsible {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wpvs-detail-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wpvs-primary, #15779b);
}

.wpvs-detail-section.wpvs-collapsible h2 {
    margin: 0;
    padding: 14px 18px;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background-color 0.15s;
}

.wpvs-detail-section.wpvs-collapsible h2:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.wpvs-toggle-icon {
    font-size: 12px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.wpvs-detail-section.wpvs-collapsible.wpvs-open .wpvs-toggle-icon {
    transform: rotate(180deg);
}

.wpvs-detail-section.wpvs-collapsible .wpvs-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wpvs-detail-section.wpvs-collapsible.wpvs-open .wpvs-section-body {
    max-height: 5000px;
}

.wpvs-detail-section.wpvs-collapsible.wpvs-open h2 {
    border-bottom: 1px solid #ddd;
}

.wpvs-detail-section.wpvs-collapsible .wpvs-section-body > * {
    padding: 18px;
}

.wpvs-detail-section.wpvs-collapsible .wpvs-section-body > .wpvs-equip-groups {
    padding: 18px;
}

/* Preview mode: collapsed but shows a few lines with fade */
.wpvs-detail-section.wpvs-has-preview .wpvs-section-body {
    max-height: 120px;
    position: relative;
}

.wpvs-detail-section.wpvs-has-preview:not(.wpvs-open) .wpvs-section-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #fafafa);
    pointer-events: none;
}

.wpvs-detail-section.wpvs-has-preview.wpvs-open .wpvs-section-body {
    max-height: 5000px;
}

.wpvs-detail-section.wpvs-has-preview.wpvs-open .wpvs-section-body::after {
    display: none;
}

.wpvs-detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.wpvs-detail-description a {
    color: inherit;
    text-decoration: underline;
}

/* Equipment Groups */
.wpvs-equip-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wpvs-equip-group h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.wpvs-equip-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 4;
    column-gap: 24px;
}

.wpvs-equip-group li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
    break-inside: avoid;
}

.wpvs-equip-group li i {
    color: var(--wpvs-primary, #15779b);
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Panorama / Damage grids */
.wpvs-panorama-grid,
.wpvs-damage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.wpvs-panorama-grid img,
.wpvs-damage-grid img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
}

/* Environment Sidebar */
.wpvs-detail-environment {
    align-self: start;
}

.wpvs-detail-environment .wpvs-detail-section.wpvs-collapsible h2 {
    font-size: 15px;
    padding: 12px 16px;
    cursor: default;
}

.wpvs-env-content {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpvs-env-content h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    color: #999;
}

.wpvs-env-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpvs-env-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.15s ease;
}

.wpvs-env-row:hover {
    background: #f0f1f3;
}

.wpvs-env-label {
    color: #666;
    white-space: nowrap;
}

.wpvs-env-value {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.wpvs-env-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.wpvs-env-badge--green {
    background: #e8f5e9;
    color: #2e7d32;
}

.wpvs-env-badge--yellow {
    background: #fff8e1;
    color: #f9a825;
}

.wpvs-env-badge--red {
    background: #fce4ec;
    color: #c62828;
}

/* WLTP Verbrauchstabelle */
.wpvs-wltp-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.wpvs-wltp-header,
.wpvs-wltp-row {
    display: grid;
    gap: 0;
    padding: 6px 10px;
    align-items: center;
}

.wpvs-wltp-header {
    padding-top: 0;
    padding-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #999;
    border-bottom: 1px solid #e8e8e8;
}

.wpvs-wltp-header span:not(:first-child) {
    text-align: right;
}

/* Column layouts depending on number of data columns */
.wpvs-wltp-cols-1 .wpvs-wltp-header,
.wpvs-wltp-cols-1 .wpvs-wltp-row { grid-template-columns: 60% 40%; }

.wpvs-wltp-cols-2 .wpvs-wltp-header,
.wpvs-wltp-cols-2 .wpvs-wltp-row { grid-template-columns: 40% 30% 30%; }

.wpvs-wltp-cols-3 .wpvs-wltp-header,
.wpvs-wltp-cols-3 .wpvs-wltp-row { grid-template-columns: 40% 20% 20% 20%; }

.wpvs-wltp-row {
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.wpvs-wltp-row:hover {
    background: #f0f1f3;
}

.wpvs-wltp-row:first-of-type {
    background: #eef2ff;
    font-weight: 600;
}

.wpvs-wltp-row:first-of-type:hover {
    background: #e4e9fc;
}

.wpvs-dat-link,
.wpvs-dat-link:visited,
.wpvs-dat-link:active,
.wpvs-dat-link:focus {
    color: #222 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}

.wpvs-dat-link:hover {
    color: #555 !important;
}

.wpvs-dat-link i {
    font-size: 0.8em;
    color: #999;
}

.wpvs-wltp-footnotes {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    padding: 0.4em 0.6em 0;
    font-size: 0.85em;
    color: #999;
}

.wpvs-wltp-label {
    color: #444;
}

.wpvs-wltp-value {
    text-align: right;
    font-weight: 600;
    color: #222;
}

.wpvs-wltp-value:last-child {
    padding-right: 0.5em;
}

.wpvs-wltp-header span:last-child {
    padding-right: 0.5em;
}

/* CO₂-Klassen-Anzeige */
.wpvs-co2-class-display {
    display: flex;
    gap: 3px;
}

.wpvs-co2-class-step {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    background: #f0f0f0;
    color: #aaa;
    transition: all 0.15s ease;
}

.wpvs-co2-class-label {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 0.2em;
}

.wpvs-co2-class-display + .wpvs-co2-class-label {
    margin-top: 0.5em;
}

.wpvs-co2-class-active {
    transform: scaleY(1.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.wpvs-env-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
}

.wpvs-env-cost-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.wpvs-env-cost-card .wpvs-env-cost-amount {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.wpvs-env-cost-card .wpvs-env-cost-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Back Button */
.wpvs-detail-back-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1em;
}

.wpvs-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 0;
    transition: all 0.15s ease;
}

.wpvs-detail-back:hover {
    color: #222;
    border-color: #bbb;
    background: #f8f8f8;
}

/* Similar Vehicles */
.wpvs-detail-similar {
    margin-top: 48px;
}

.wpvs-detail-similar h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #222;
}

.wpvs-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .wpvs-detail-top {
        grid-template-columns: 1fr !important;
    }

    .wpvs-detail-bottom {
        grid-template-columns: 1fr !important;
    }

    .wpvs-detail-environment {
        position: static;
    }

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

@media (max-width: 600px) {
    .wpvs-detail-title {
        font-size: 18px;
    }

    .wpvs-detail-price {
        font-size: 24px;
    }

    .wpvs-detail-specs {
        grid-template-columns: 1fr;
    }

    .wpvs-detail-spec:nth-child(odd) {
        border-right: none;
    }

    .wpvs-equip-groups {
        grid-template-columns: 1fr;
    }

    .wpvs-equip-group ul {
        columns: 2;
    }

    .wpvs-similar-grid {
        grid-template-columns: 1fr;
    }

}
