:root {
    --bc-primary: #007bff;
    --bc-primary-hover: #0056b3;
    --bc-bg: #f8f9fa;
    --bc-surface: #ffffff;
    --bc-text: #212529;
    --bc-text-muted: #6c757d;
    --bc-border: #e9ecef;
    /*
       The open dropdown list is drawn by the browser, not by this stylesheet,
       and it takes the text colour from the control while keeping its own
       white background. In a dark scheme that means white on white — the list
       of models was there but unreadable.

       It needs its own pair, because --bc-surface is not always usable here:
       the glass theme sets it to rgba(255,255,255,0.03), which over the
       browser's white popup renders as plain white.
    */
    --bc-option-bg: #ffffff;
    --bc-option-text: #212529;
    --bc-radius: 12px;
    --bc-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --bc-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --bc-transition: all 0.3s ease;
}

/* Dark mode support - could be toggled via class on body */
@media (prefers-color-scheme: dark) {
    :root {
        --bc-bg: #0f172a;
        --bc-surface: #1e293b;
        --bc-text: #f8fafc;
        --bc-text-muted: #94a3b8;
        --bc-border: #334155;
        --bc-shadow: 0 4px 6px -1px rgba(0,0,0,0.5);
        --bc-option-bg: #1e293b;
        --bc-option-text: #f8fafc;
    }
}

/* Every dropdown the plugin renders — the grid, the standalone search form
   and the detail page all sit inside one of these two wrappers. */
.basiscars-wrapper select option,
.basiscars-wrapper select optgroup,
.basiscars-single-wrapper select option,
.basiscars-single-wrapper select optgroup {
    background-color: var(--bc-option-bg, #ffffff);
    color: var(--bc-option-text, #212529);
}

/* An entry with nothing left behind it is shown, but greyed and unselectable.
   Removing it would be worse: an option that disappears cannot be deselected,
   and a filter list that changes length under the cursor is unusable. */
.basiscars-wrapper select option:disabled {
    color: var(--bc-text-muted, #6c757d);
    font-style: italic;
}

/* The same state on a filter tile, in every design variant. */
.bc-visual-item.bc-visual-empty {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.bc-visual-item.bc-visual-empty:hover {
    transform: none;
    box-shadow: none;
}

.basiscars-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--bc-text);
    background: var(--bc-bg);
    padding: 2rem 0;
    box-sizing: border-box;
}

.basiscars-wrapper * {
    box-sizing: inherit;
}

.bc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bc-block-section + .bc-block-section {
    margin-top: 40px;
}

/* Base Styles */
.basiscars-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.basiscars-layout.bc-no-sidebar {
    grid-template-columns: 1fr;
}

@media (max-width: 992px) {
    .basiscars-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar / Filters */
.basiscars-sidebar {
    background: var(--bc-surface);
    border-radius: var(--bc-radius);
    padding: 1.5rem;
    box-shadow: var(--bc-shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.basiscars-sidebar-title {
    color: var(--bc-text);
}
[data-theme="glass"] .basiscars-sidebar-title,
[data-theme="dark"] .basiscars-sidebar-title {
    color: #f8fafc;
}

.basiscars-filter-group {
    margin-bottom: 1.5rem;
}

.basiscars-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bc-text-muted);
}

.basiscars-filter-group select,
.basiscars-filter-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bc-border);
    border-radius: 8px;
    background: var(--bc-surface);
    color: var(--bc-text);
    font-size: 1rem;
    line-height: 1.5 !important;
    height: auto !important;
    transition: var(--bc-transition);
}

.basiscars-filter-group select:focus,
.basiscars-filter-group input:focus {
    outline: none;
    border-color: var(--bc-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Grid */
.basiscars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.basiscars-wrapper .bc-grid-classic a.bc-card-style-overlay {
    flex-direction: column !important;
}
.basiscars-wrapper .bc-grid-classic a.bc-card-style-overlay .basiscars-card-image {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--bc-border) !important;
}

/* Card */
.basiscars-card,
.basiscars-wrapper a.basiscars-card {
    position: relative;
    background: var(--bc-surface);
    border-radius: var(--bc-radius);
    overflow: hidden;
    box-shadow: var(--bc-shadow);
    transition: var(--bc-transition);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--bc-text) !important;
    border: 1px solid var(--bc-border);
}

/* Also declared at line 1408. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.basiscars-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--bc-border);
}

.basiscars-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.basiscars-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: var(--bc-text) !important;
}

.basiscars-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bc-primary);
    margin: 0 0 1rem 0;
}

.basiscars-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--bc-text-muted);
}

.basiscars-spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.basiscars-spec-item svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Loading State */
.basiscars-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    grid-column: 1 / -1;
}

.basiscars-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bc-border);
    border-top-color: var(--bc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Buttons */
/* Also declared at line 474. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Also declared at line 492. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bc-primary-rgb, 59, 130, 246), 0.3);
    color: #ffffff !important;
}

#basiscars-load-more {
    min-width: 200px;
}

/* Gallery & Lightbox */
/* Also declared at line 575. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
/* Also declared at line 582 and 790. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-gallery-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Also declared at line 536 and 711. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}
/* Also declared at line 550 and 726. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}
/* Also declared at line 742. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.bc-lightbox-close:hover {
    color: #bbb;
}
/* Also declared at line 761. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-prev, .bc-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 4px;
    text-decoration: none !important;
}
/* Also declared at line 785. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-prev:hover, .bc-lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-decoration: none !important;
}

/* From shortcode-search.php */
.basiscars-standalone-search .basiscars-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}
.basiscars-standalone-search .basiscars-filter-group {
    margin-bottom: 0;
}

/* From shortcode-single.php */
/* Modern Glassmorphism & Layout Styles */
.basiscars-single-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    color: #1f2937;
    max-width: 1200px;
    margin: 0 auto;
}

.bc-hero {
    position: relative;
    border-radius: var(--bc-single-radius, 24px);
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    min-height: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bc-hero-split .bc-hero-image {
    width: 60%;
    background-size: cover;
    background-position: center;
}

.bc-hero-split .bc-hero-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bc-hero-full .bc-hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

.bc-hero-full .bc-hero-content {
    position: relative;
    z-index: 2;
    margin: auto 40px 40px 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: calc(100% - 80px);
    box-sizing: border-box;
}

.bc-hero-gallery .bc-hero-gallery-left {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.bc-hero-gallery .bc-hero-main-img {
    width: 100%;
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    transition: background-image 0.3s ease-in-out;
}

.bc-hero-gallery .bc-hero-thumbs {
    display: flex;
    height: 100px;
    background: #111;
}

.bc-hero-gallery .bc-hero-thumb {
    flex: 1;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-right: 1px solid #333;
}
.bc-hero-gallery .bc-hero-thumb:last-child {
    border-right: none;
}
.bc-hero-gallery .bc-hero-thumb:hover {
    opacity: 1;
}

.bc-hero-gallery .bc-hero-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Split, mirrored: image on the right. Same proportions, other side — which
   is the whole difference, so it borrows the split rules and flips the row. */
.bc-hero-split-right {
    flex-direction: row-reverse;
}

.bc-hero-split-right .bc-hero-image {
    width: 60%;
    background-size: cover;
    background-position: center;
}

.bc-hero-split-right .bc-hero-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Stacked: wide image, the text on a card that overlaps its lower edge.
   For inventories whose photos are the argument. */
.bc-hero-stacked {
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    box-shadow: none;
    margin-bottom: 40px;
}

.bc-hero-stacked .bc-hero-image {
    width: 100%;
    height: 460px;
    background-size: cover;
    background-position: center;
    border-radius: var(--bc-single-radius, 24px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.bc-hero-stacked .bc-hero-content {
    width: calc(100% - 80px);
    margin: -70px auto 0 auto;
    padding: 32px 40px;
    position: relative;
    z-index: 2;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-single-radius, 24px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Minimal: no overlay, no glass, no shadow. The text sits under the image in
   the theme's own rhythm — for sites whose design does the talking. */
.bc-hero-minimal {
    flex-direction: column;
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.bc-hero-minimal .bc-hero-image {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: var(--bc-single-radius, 24px);
}

.bc-hero-minimal .bc-hero-content {
    width: 100%;
    padding: 28px 0 0 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ── Bausteine des Titelbereichs ───────────────────────────────────────── */
.bc-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bc-hero-title-row .bc-title {
    margin: 0;
}

.bc-price-net {
    margin-top: 4px;
    font-size: 0.9rem;
    opacity: 0.75;
}

.bc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0;
}

.bc-hero-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    background: color-mix(in srgb, var(--bc-primary) 12%, transparent);
    color: var(--bc-primary);
    border: 1px solid color-mix(in srgb, var(--bc-primary) 35%, transparent);
}

/* color-mix is recent; without it the badge would be invisible on itself. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .bc-hero-badge {
        background: rgba(0, 0, 0, 0.06);
        color: inherit;
        border-color: currentColor;
    }
}

.bc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.bc-hero-actions .bc-btn {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-hero-actions .bc-print-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.bc-hero-actions .bc-print-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.bc-quick-facts svg {
    margin-right: 5px;
    vertical-align: middle;
}

.bc-title {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.bc-price {
    font-size: 2rem;
    color: var(--bc-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.bc-quick-facts {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-weight: 500;
    color: #4b5563;
}

/* Also declared at line 236. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.bc-btn-primary {
    background-color: var(--bc-btn-color, var(--bc-primary));
    color: #ffffff !important;
}

/* Also declared at line 251. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none !important;
}

.bc-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.bc-layout-focus {
    grid-template-columns: 1fr;
}

.bc-layout-focus .bc-sidebar {
    width: 100%;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .bc-layout-focus .bc-sidebar {
        grid-template-columns: 1fr;
    }
}

.bc-layout-focus .bc-contact-box {
    grid-column: 1 / -1;
}

.bc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Lightbox Styles */
/* Also declared at line 280 and 711. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

/* Also declared at line 293 and 726. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation-name: bc-zoom;
    animation-duration: 0.3s;
}

@keyframes bc-zoom {
    from {transform:scale(0.9)} 
    to {transform:scale(1)}
}

.bc-section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

/* Also declared at line 263. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Also declared at line 270 and 790. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--bc-single-radius, 16px);
    cursor: pointer;
    transition: transform 0.3s;
}

.bc-gallery-img:hover {
    transform: scale(1.05);
}

.bc-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--bc-single-radius, 24px);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.bc-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bc-contact-form input, .bc-contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
}

.bc-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Styles */
.bc-form-solid {
    background: #f8f9fa;
    padding: 35px;
    border-radius: var(--bc-single-radius, 12px);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bc-form-glass {
    background: rgba(255, 255, 255, 0.6);
    padding: 35px;
    border-radius: var(--bc-single-radius, 24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.bc-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bc-data-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bc-data-list li:last-child {
    border-bottom: none;
}
.bc-data-list span {
    color: #6b7280;
}

.bc-features-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bc-features-style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-features-style-tags .bc-feature-item {
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}
.bc-features-style-tags .bc-feature-item svg {
    display: none; /* Hide icon in tag style */
}

.bc-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.bc-feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--bc-primary);
    flex-shrink: 0;
}

.bc-env-box {
    padding: 25px;
}

/* Lightbox Styles */
/* Also declared at line 280 and 536. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

/* Also declared at line 293 and 550. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation-name: bc-zoom;
    animation-duration: 0.3s;
}

@keyframes bc-zoom {
    from {transform:scale(0.9)} 
    to {transform:scale(1)}
}

/* Also declared at line 301. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.bc-lightbox-close:hover,
.bc-lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Also declared at line 315. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-prev, .bc-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.bc-lightbox-next {
    right: 20px;
}
.bc-lightbox-prev {
    left: 20px;
}

/* Also declared at line 332. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-lightbox-prev:hover, .bc-lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Also declared at line 270 and 582. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-gallery-img {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .bc-hero { flex-direction: column; }
    .bc-hero-split .bc-hero-image { width: 100%; height: 300px; }
    .bc-hero-split .bc-hero-content { width: 100%; padding: 20px; }
    .bc-hero-gallery .bc-hero-gallery-left { width: 100%; height: 400px; }
    .bc-hero-gallery .bc-hero-content { width: 100%; padding: 20px; }
    .bc-hero-split-right { flex-direction: column; }
    .bc-hero-split-right .bc-hero-image { width: 100%; height: 300px; }
    .bc-hero-split-right .bc-hero-content { width: 100%; padding: 20px; }
    .bc-hero-stacked .bc-hero-image,
    .bc-hero-minimal .bc-hero-image { height: 260px; }
    /* The overlap needs room the phone does not have. */
    .bc-hero-stacked .bc-hero-content { width: 100%; margin-top: 16px; padding: 20px; }
    .bc-content-grid { grid-template-columns: 1fr; }
}

/* Print / PDF Styles */
/* ── Exposé (Druck / PDF) ───────────────────────────────────────────────
   On screen the sheet does not exist. In print it is the only thing left:
   printing the web page itself gave a hero built for a monitor, an enquiry
   form nobody can fill in on paper, and no word about who is selling the
   car. */
.bc-print-sheet {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10.5pt;
        line-height: 1.45;
    }

    /*
     * Nothing paints except the sheet — with visibility, not display.
     *
     * The first attempt hid every child of <body> and then tried to bring the
     * sheet back. That cannot work: the sheet sits several levels down inside
     * the theme's article markup, and hiding an ancestor with display removes
     * its whole subtree, which no declaration on a descendant can undo. The
     * printed page came out empty apart from the browser's own header.
     *
     * visibility is inherited and reversible, so it works wherever in the
     * document the sheet happens to be.
     */
    body * {
        visibility: hidden !important;
    }

    .bc-print-sheet,
    .bc-print-sheet * {
        visibility: visible !important;
    }

    /*
     * Hidden elements still occupy their space, so the sheet is lifted out of
     * the flow to the top of the page instead of starting wherever the theme
     * had put it.
     */
    .bc-print-sheet {
        display: block !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        color: #000;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    /*
     * Once the script has moved the sheet to the end of <body> there are no
     * ancestors left to worry about, and the rest of the page can go for good
     * — otherwise its reserved space trails blank sheets behind the exposé.
     */
    body.bc-printing > *:not(.bc-print-sheet) {
        display: none !important;
    }

    body.bc-printing .bc-print-sheet {
        position: static !important;
    }

    /* Letterhead */
    .bc-print-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12mm;
        padding-bottom: 3mm;
        margin-bottom: 6mm;
        border-bottom: 2pt solid #000;
    }

    .bc-print-dealer {
        font-size: 13pt;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .bc-print-contact {
        font-size: 9pt;
        text-align: right;
    }

    .bc-print-title {
        font-size: 20pt;
        line-height: 1.15;
        margin: 0 0 2mm 0;
        /* A headline alone at the foot of a page is the classic bad break. */
        break-after: avoid;
        page-break-after: avoid;
    }

    .bc-print-headline {
        margin-bottom: 5mm;
        break-after: avoid;
        page-break-after: avoid;
    }

    .bc-print-price {
        font-size: 16pt;
        font-weight: 700;
    }

    .bc-print-vat {
        display: block;
        font-size: 8.5pt;
        font-weight: 400;
    }

    /* Photographs: one large, the rest as a strip. Fixed heights, because a
       sheet has a fixed height and the data must not be pushed to page three. */
    .bc-print-lead-image {
        display: block;
        width: 100%;
        height: 85mm;
        object-fit: cover;
        margin-bottom: 3mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bc-print-thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3mm;
        margin-bottom: 7mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bc-print-thumbs img {
        width: 100%;
        height: 32mm;
        object-fit: cover;
    }

    .bc-print-h2 {
        font-size: 12pt;
        margin: 7mm 0 2.5mm 0;
        padding-bottom: 1mm;
        border-bottom: 0.5pt solid #999;
        break-after: avoid;
        page-break-after: avoid;
    }

    /*
     * The data as a data sheet: two label/value pairs per row.
     *
     * Every border is stated here, and stated as final. A WordPress theme
     * styles tables too, and its rules are written for the editor's content —
     * the exposé came out as a grid of boxed cells with an empty frame where
     * a pair had no second entry.
     *
     * The widths are fixed rather than suggested: a long location pushed the
     * first column to half the page and left the value columns squeezed.
     */
    .bc-print-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        border: none !important;
        font-size: 9.5pt;
        margin: 0;
    }

    .bc-print-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
        background: none !important;
    }

    .bc-print-table th,
    .bc-print-table td {
        text-align: left;
        vertical-align: top;
        border: none !important;
        border-bottom: 0.25pt solid #e2e2e2 !important;
        padding: 1.8mm 4mm 1.8mm 0 !important;
        background: none !important;
        overflow-wrap: anywhere;
    }

    .bc-print-table th {
        width: 21%;
        font-weight: 400;
        color: #666;
        letter-spacing: 0.01em;
    }

    .bc-print-table td {
        width: 29%;
        font-weight: 600;
        color: #000;
        padding-right: 6mm !important;
    }

    /* A row whose pair has no second entry spans instead of drawing two
       empty cells next to itself. */
    .bc-print-table td[colspan] {
        padding-right: 0 !important;
    }

    /* The last line of a block closes it, so two tables under one another do
       not read as one. */
    .bc-print-table tr:last-child th,
    .bc-print-table tr:last-child td {
        border-bottom: none !important;
    }

    .bc-print-text {
        font-size: 9.5pt;
        /* orphans/widows keep single lines from being stranded across pages. */
        orphans: 3;
        widows: 3;
    }

    .bc-print-text p {
        margin: 0 0 2mm 0;
    }

    .bc-print-features {
        columns: 3;
        column-gap: 6mm;
        font-size: 9pt;
        margin: 0;
        padding-left: 4mm;
    }

    .bc-print-features li {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 0.6mm;
    }

    .bc-print-note {
        margin-top: 6mm;
        padding-top: 2mm;
        border-top: 0.25pt solid #999;
        font-size: 8pt;
        color: #333;
    }

    /*
     * One closing line, at the end, in the flow.
     *
     * Repeating it on every sheet needs position:fixed, and that turned out
     * to be a coin toss: inside the text area the browser printed it over
     * whatever ended the page, in the margin it appeared on the last sheet
     * only. A line that is reliably there beats one that is sometimes
     * everywhere — the letterhead identifies page one, which is the page that
     * is read.
     */
    .bc-print-closing {
        display: flex !important;
        justify-content: space-between;
        gap: 6mm;
        margin-top: 8mm;
        padding-top: 1.5mm;
        border-top: 0.25pt solid #bbb;
        font-size: 7.5pt;
        color: #555;
    }

    /*
     * The code sits in a corner, not between the dealer's name and the
     * reference number — there it read as something that had fallen into the
     * letterhead. Which corner is a setting, because it has to live with
     * whatever letterhead the dealer uses.
     */
    .bc-print-qr {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1mm;
    }

    /* The size comes from the setting, on the element itself — a width here
       would override it and make the option do nothing. */
    .bc-print-qr svg {
        display: block;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* A code with no caption is a grey square; this says what it is for. */
    .bc-print-qr-caption {
        font-size: 6.5pt;
        color: #555;
        text-align: center;
        line-height: 1.2;
    }

    /* In the letterhead: before the name, or after the reference. */
    .bc-print-qr-top-left {
        order: -1;
        margin-right: 6mm;
    }

    .bc-print-qr-top-right {
        order: 3;
        margin-left: 6mm;
    }

    /* At the foot: on its own line above the closing rule. */
    .bc-print-qr-bottom-left,
    .bc-print-qr-bottom-right {
        margin-top: 6mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bc-print-qr-bottom-left {
        align-items: flex-start;
        margin-right: auto;
    }

    .bc-print-qr-bottom-right {
        align-items: flex-end;
        margin-left: auto;
    }

    .bc-print-qr-bottom-left .bc-print-qr-caption {
        text-align: left;
    }

    .bc-print-qr-bottom-right .bc-print-qr-caption {
        text-align: right;
    }

    /* Letterhead: name on the left, reference and date on the right. */
    .bc-print-meta {
        text-align: right;
        font-size: 8.5pt;
        color: #444;
        white-space: nowrap;
    }

    /* The figures a customer looks for before anything else. */
    .bc-print-summary {
        margin-top: 1.5mm;
        font-size: 10pt;
        color: #333;
    }

    /* The consumption declaration is a legal notice, not a footnote. */
    .bc-print-legal {
        margin-top: 2.5mm;
        font-size: 7pt;
        line-height: 1.35;
        color: #555;
        text-align: justify;
    }

    .bc-print-desc-list {
        margin: 0;
        padding-left: 5mm;
        font-size: 9.5pt;
    }

    .bc-print-desc-list li {
        margin-bottom: 1mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Photographs and shaded areas only survive with this. */
    .bc-print-sheet img,
    .bc-print-table th,
    .bc-print-head {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        text-decoration: none !important;
        color: #000 !important;
    }
}

/* Favoriten Button */
.bc-fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.2s;
    color: #9ca3af;
}
.bc-fav-btn:hover {
    transform: scale(1.1);
    color: #ef4444;
}
.bc-fav-btn.bc-fav-active {
    color: #ef4444;
}
.bc-fav-btn svg {
    width: 20px;
    height: 20px;
}
.bc-hero-content .bc-fav-btn {
    position: static;
    display: inline-flex;
    margin-left: 15px;
    vertical-align: middle;
}

/* Glass Theme Overrides */
:root[data-theme="glass"] {
    /* Variables injected via PHP */
}

[data-theme="glass"] .basiscars-card {
    background: var(--bc-surface);
    backdrop-filter: var(--bc-glass-blur);
    border: 1px solid var(--bc-border);
    box-shadow: var(--bc-card-glow), var(--bc-shadow);
    position: relative;
    overflow: hidden;
}

[data-theme="glass"] .basiscars-card:hover {
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 12px 40px rgba(0,0,0,0.5) !important;
}

[data-theme="glass"] .basiscars-card-content {
    background: transparent;
    padding: 15px;
}

[data-theme="glass"] .basiscars-card-specs {
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    margin-top: 10px;
}

[data-theme="glass"] .basiscars-sidebar {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bc-border);
    border-radius: 16px;
    box-shadow: var(--bc-shadow);
}

/* Visual Filters Style */
.bc-visual-filters .basiscars-filter-group {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.bc-visual-filters label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bc-visual-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bc-visual-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #334155;
    min-width: 40px;
    font-weight: 500;
}

.bc-visual-item:hover {
    background: #e2e8f0;
}

.bc-visual-item.active {
    background: var(--bc-primary);
    border-color: var(--bc-primary);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme="glass"] .bc-visual-item,
[data-theme="dark"] .bc-visual-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
}

[data-theme="glass"] .bc-visual-item:hover,
[data-theme="dark"] .bc-visual-item:hover {
    background: rgba(255,255,255,0.1);
}

[data-theme="glass"] .bc-visual-item.active,
[data-theme="dark"] .bc-visual-item.active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3);
}

.bc-color-swatches .bc-visual-item {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid #e2e8f0;
}
[data-theme="glass"] .bc-color-swatches .bc-visual-item,
[data-theme="dark"] .bc-color-swatches .bc-visual-item {
    border-color: rgba(255,255,255,0.2);
}

.bc-color-swatches .bc-visual-item.active {
    border: 2px solid var(--bc-primary) !important;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bc-surface), 0 0 0 4px var(--bc-primary);
}

/* Range Sliders */
.bc-range-slider-container {
    width: 100%;
}

.bc-range-slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    margin-bottom: 12px;
}

[data-theme="glass"] .bc-range-slider-container input[type="range"],
[data-theme="dark"] .bc-range-slider-container input[type="range"] {
    background: rgba(255,255,255,0.2);
}

.bc-range-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bc-primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid white;
}

[data-theme="glass"] .bc-range-slider-container input[type="range"]::-webkit-slider-thumb,
[data-theme="dark"] .bc-range-slider-container input[type="range"]::-webkit-slider-thumb {
    border-color: #1e293b;
}

.bc-range-value {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    font-weight: 500;
}
[data-theme="glass"] .bc-range-value,
[data-theme="dark"] .bc-range-value {
    color: #94a3b8;
}

/* Classic Horizontal Grid */
.bc-grid-classic {
    grid-template-columns: 1fr !important;
}
.basiscars-wrapper .bc-grid-classic .basiscars-card,
.basiscars-wrapper .bc-grid-classic a.basiscars-card {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
.basiscars-wrapper .bc-grid-classic .basiscars-card-image {
    width: 300px;
    flex: 0 0 300px;
    height: auto;
    min-height: 220px;
    border-bottom: none;
    border-right: 1px solid var(--bc-border);
}
[data-theme="glass"] .bc-grid-classic .basiscars-card-image {
    border-radius: 8px 0 0 8px;
}
@media (max-width: 768px) {
    .basiscars-wrapper .bc-grid-classic .basiscars-card,
    .basiscars-wrapper .bc-grid-classic a.basiscars-card {
        flex-direction: column;
    }
    .basiscars-wrapper .bc-grid-classic .basiscars-card-image {
        width: 100%;
        height: 220px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--bc-border);
    }
    [data-theme="glass"] .basiscars-wrapper .bc-grid-classic .basiscars-card-image {
        border-radius: 8px 8px 0 0;
    }
}

/* --- Emissions Sticker Badges --- */
.bc-env-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.bc-env-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}
.bc-env-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
[data-theme="glass"] .bc-env-badge,
[data-theme="dark"] .bc-env-badge {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
.bc-euro-badge {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}
[data-theme="glass"] .bc-euro-badge,
[data-theme="dark"] .bc-euro-badge {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

/* Plaketten (German Emission Stickers) */
.bc-plakette {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    color: #000;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1;
}
.bc-plakette-green {
    border-color: #22c55e;
}
.bc-plakette-yellow {
    border-color: #eab308;
}
.bc-plakette-red {
    border-color: #ef4444;
}

/* Dual Range Sliders */
.bc-dual-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 5px;
}

/* Background static track */
.bc-dual-slider-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

[data-theme="glass"] .bc-dual-slider-container::before,
[data-theme="dark"] .bc-dual-slider-container::before {
    background: rgba(255,255,255,0.2);
}

/* Active colored track */
.bc-dual-slider-container .bc-slider-track {
    position: absolute;
    height: 6px;
    background: var(--bc-primary);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

[data-theme="glass"] .bc-dual-slider-container .bc-slider-track,
[data-theme="dark"] .bc-dual-slider-container .bc-slider-track {
    background: var(--bc-primary) !important;
}

.bc-dual-range {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    z-index: 2 !important;
    pointer-events: none !important;
    outline: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.bc-dual-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: var(--bc-primary) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: 2px solid white !important;
    pointer-events: auto !important;
    position: relative !important;
    margin-top: 5px !important; /* (30px container - 20px thumb) / 2 = 5px */
}

.bc-dual-range::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: var(--bc-primary) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    border: 2px solid white !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.bc-dual-range::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also declared at line 1305. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-dual-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
[data-theme="glass"] .bc-dual-value,
[data-theme="dark"] 
.bc-dual-range::-webkit-slider-runnable-track {
    -webkit-appearance: none !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bc-dual-range::-moz-range-track {
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bc-dual-range:focus {
    outline: none !important;
}

/* Also declared at line 1276. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.bc-dual-value {
    color: #94a3b8;
}

/* Make Logos */
.bc-logo-item {
    padding: 8px !important;
    width: 60px;
    height: 60px;
}

.bc-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

[data-theme="glass"] .bc-logo-item img,
[data-theme="dark"] .bc-logo-item img {
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
}

/* Favorite Button Visibility */
.bc-grid-fav-hidden .bc-fav-btn {
    display: none !important;
}
.bc-grid-fav-hover .bc-vehicle-card .bc-fav-btn {
    opacity: 0;
}
.bc-grid-fav-hover .bc-vehicle-card:hover .bc-fav-btn,
.bc-grid-fav-hover .bc-vehicle-card .bc-fav-btn.bc-fav-active {
    opacity: 1;
}

/* Sort control above the grid */
.basiscars-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.basiscars-toolbar .basiscars-sort-label {
    font-size: 0.9rem;
    color: var(--bc-text);
    opacity: 0.75;
}
.basiscars-toolbar select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--bc-border, #e2e8f0);
    background: var(--bc-surface, #fff);
    color: var(--bc-text, #1f2937);
    font-size: 0.9rem;
}

/* --- Accessibility ---------------------------------------------------
   Filter tiles, favourite toggles, hero thumbnails and gallery items are
   real <button> elements so they can be reached by keyboard. They must not
   inherit the browser's button chrome, but they must keep a visible focus
   ring. */
.bc-visual-item,
.bc-fav-btn,
.bc-hero-thumb,
.bc-gallery-item,
.bc-lightbox-close,
.bc-lightbox-prev,
.bc-lightbox-next {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.bc-gallery-item {
    display: block;
    width: 100%;
    line-height: 0;
}

.bc-visual-item:focus-visible,
.bc-fav-btn:focus-visible,
.bc-hero-thumb:focus-visible,
.bc-gallery-item:focus-visible,
.bc-lightbox-close:focus-visible,
.bc-lightbox-prev:focus-visible,
.bc-lightbox-next:focus-visible,
.basiscars-card:focus-visible,
.basiscars-toolbar select:focus-visible {
    outline: 3px solid var(--bc-primary, #3b82f6);
    outline-offset: 2px;
}

/* Intrinsic sizing keeps the grid from jumping while images load.
   Scoped to the card image on purpose: .bc-gallery-img already defines its
   own aspect ratio further up and must not be overridden here. */
/* Also declared at line 158. Same selector, different declarations: the later block wins per property, so editing the wrong copy changes nothing. */
.basiscars-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Respect a reduced-motion preference (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
    .basiscars-card,
    .basiscars-card:hover,
    .bc-gallery-img,
    .bc-gallery-img:hover,
    .bc-visual-item,
    .bc-fav-btn {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
