/**
 * Vinacles Public Styles
 *
 * CSS variables (--vinacles-primary, --vinacles-primary-hover, --vinacles-accent,
 * --vinacles-shadow) are injected inline via class-vinacles-public.php
 * from the admin Style settings.
 *
 * Text colors, fonts, and backgrounds inherit from the active theme.
 */

/* Fallback variables (overridden by inline style from settings) */
:root {
    --vinacles-primary: #2563eb;
    --vinacles-primary-rgb: 37, 99, 235;
    --vinacles-primary-hover: #1d4ed8;
    --vinacles-accent: #22c55e;
    --vinacles-radius: 6px;
    --vinacles-btn-radius: var(--vinacles-radius); /* alias for backward compat */
    --vinacles-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --vinacles-border: #e2e8f0;
    --vinacles-bg: #f5f6f8;
    --vinacles-text-muted: #6b7280;
    --vinacles-text-body: #475569;
    --vinacles-card-bg: #ffffff;
    --vinacles-text-primary: #111827;
    --vinacles-border-color: #e5e7eb;
    --vinacles-filter-bg: #ffffff;
    --vinacles-hero-gallery-bg: #1a1f2e;
    --vinacles-spec-pill-bg: #eff6ff;
    --vinacles-spec-pill-color: #3b5bdb;
}

/* Wrapper */
.vinacles-vehicles-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Filters */
.vinacles-filters {
    background: var(--vinacles-filter-bg, #fff);
    border-radius: var(--vinacles-radius, 6px);
    box-shadow: var(--vinacles-shadow);
    border: 1px solid var(--vinacles-border-color);
    padding: calc(20px * var(--vin-fe-hexon-density, var(--vin-fe-density, 1)));
    margin-bottom: 16px;
}

.vinacles-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.vinacles-filter-field {
    flex: 1;
    min-width: 150px;
}

.vinacles-filter-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--vinacles-text-muted);
    margin-bottom: 5px;
}

.vinacles-filter-field select,
.vinacles-filter-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--vinacles-border);
    border-radius: calc(var(--vinacles-radius, 6px) / 2);
    font-size: 14px;
    background: #fff;
}

.vinacles-filter-submit {
    flex: 0 0 auto;
}

.vinacles-filter-submit .vinacles-button {
    background: var(--vinacles-primary);
    color: #fff;
}

.vinacles-filter-submit .vinacles-button:hover {
    background: var(--vinacles-primary-hover);
}

/* Buttons */
.vinacles-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--vinacles-radius, 6px);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vinacles-button-primary {
    background: var(--vinacles-primary);
    color: #fff;
}

.vinacles-button-primary:hover {
    background: var(--vinacles-primary-hover);
    color: #fff;
}

.vinacles-button-secondary {
    background: #fff;
    color: var(--vinacles-primary);
    border: 2px solid var(--vinacles-primary);
}

.vinacles-button-secondary:hover {
    background: var(--vinacles-primary);
    color: #fff;
}

/* Results info */
.vinacles-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--vinacles-text-muted);
    font-size: 14px;
}

.vinacles-sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vinacles-sort-control label {
    font-size: 13px;
    font-weight: 500;
    color: var(--vinacles-text-muted);
    white-space: nowrap;
}

.vinacles-sort-select {
    padding: 6px 10px;
    border: 1px solid var(--vinacles-border);
    border-radius: calc(var(--vinacles-radius, 6px) / 2);
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* Vehicle Grid (Fix 5: redesign version kept) */
.vinacles-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: calc(20px * var(--vin-fe-hexon-density, var(--vin-fe-density, 1)));
}

/* Vehicle Card (Fix 5: redesign version kept) */
.vinacles-vehicle-card {
    background: var(--vinacles-card-bg, #fff);
    border-radius: var(--vinacles-radius, 6px);
    overflow: hidden;
    box-shadow: var(--vinacles-shadow);
    border: 1px solid var(--vinacles-border-color);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vinacles-vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.vinacles-card-unavailable { opacity: 0.75; }

.vinacles-vehicle-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Vehicle Image (Fix 5: redesign version kept) */
.vinacles-vehicle-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--vinacles-border-color);
}

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

.vinacles-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vinacles-bg);
    color: var(--vinacles-text-muted);
    font-size: 13px;
}

/* Pill-style badges (Fix 5: redesign version kept) */
.vinacles-vehicle-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.vinacles-badge-reserved    { background: var(--vin-fe-hexon-status-reserved, var(--vin-fe-status-reserved, #f59e0b)); }
.vinacles-badge-sold        { background: var(--vin-fe-hexon-status-sold, var(--vin-fe-status-sold, #6b7280)); }
.vinacles-badge-expected    { background: var(--vin-fe-hexon-status-expected, var(--vin-fe-status-expected, #8b5cf6)); }
.vinacles-badge-unavailable { background: var(--vin-fe-hexon-status-sold, var(--vin-fe-status-sold, #6b7280)); }
.vinacles-badge-sale        { background: var(--vinacles-accent, #e63946); }

.vinacles-vehicle-content { padding: calc(14px * var(--vin-fe-hexon-density, var(--vin-fe-density, 1))) calc(16px * var(--vin-fe-hexon-density, var(--vin-fe-density, 1))); }

/* Vehicle Title/Type (Fix 5: redesign version kept) */
.vinacles-vehicle-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--vinacles-text-primary);
    margin: 0 0 2px;
}

.vinacles-vehicle-type {
    font-size: 11px;
    color: var(--vinacles-text-muted);
    margin: 0 0 10px;
}

.vinacles-vehicle-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.vinacles-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 0;
}

.vinacles-specs-grid .vinacles-spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--vinacles-text-muted);
}

.vinacles-spec {
    display: flex;
    flex-direction: column;
}

.vinacles-spec-label {
    font-size: 11px;
    color: var(--vinacles-text-muted);
    text-transform: uppercase;
}

.vinacles-spec-value {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

.vinacles-vehicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--vinacles-border-color);
    padding-top: 12px;
    margin-top: 10px;
}

.vinacles-vehicle-price {
    border-top: 1px solid var(--vinacles-border);
    padding-top: 12px;
    margin-top: 12px;
}

/* Price (Fix 5: redesign version kept) */
.vinacles-price-old {
    font-size: 11px;
    color: var(--vinacles-text-muted);
    text-decoration: line-through;
    display: block;
    margin-right: 8px;
}

.vinacles-price-current {
    font-size: 17px;
    font-weight: 800;
    color: var(--vinacles-text-primary);
}

.vinacles-price-discount { color: var(--vinacles-accent, #e63946); }

.vinacles-view-btn {
    font-size: 11px;
    font-weight: 600;
    background: var(--vinacles-text-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--vinacles-radius, 6px);
    white-space: nowrap;
}
.vinacles-view-btn-disabled { background: #dde1e7; color: #595f6b; }

/* Pagination */
.vinacles-pagination {
    margin-top: 30px;
    text-align: center;
}

.vinacles-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--vinacles-border);
}

.vinacles-pagination .page-numbers.current,
.vinacles-pagination .page-numbers:hover {
    background: var(--vinacles-primary);
    color: #fff;
    border-color: var(--vinacles-primary);
}

/* No results */
.vinacles-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--vinacles-bg);
}

.vinacles-no-results p {
    color: var(--vinacles-text-muted);
    font-size: 16px;
    margin: 0;
}

/* ========================
   Single Vehicle - Modern
   ======================== */
.vinacles-vehicle-single {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back link (Fix 5: redesign version kept) */
.vinacles-back-link {
    display: inline-block;
    padding: 10px 0;
    font-size: 13px;
    color: var(--vinacles-primary);
    text-decoration: none;
}
.vinacles-back-link:hover { text-decoration: underline; }

/* Top: Gallery + Info Card */
.vinacles-detail-top {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-bottom: 32px;
}

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

.vinacles-gallery-main {
    overflow: hidden;
    background: var(--vinacles-bg);
    margin-bottom: 12px;
    aspect-ratio: 16/10;
    border-radius: var(--vinacles-radius, 6px);
    position: relative;
}

.vinacles-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.vinacles-gallery-main img:hover {
    opacity: 0.95;
}

.vinacles-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinacles-no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--vinacles-text-muted);
}

.vinacles-no-image-placeholder svg {
    opacity: 0.4;
}

.vinacles-no-image-placeholder span {
    font-size: 14px;
}

/* Carousel wrapper */
.vinacles-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vinacles-carousel-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--vinacles-text-muted);
    transition: color 0.2s ease;
}

.vinacles-carousel-arrow:hover:not(:disabled) {
    color: var(--vinacles-primary);
}

.vinacles-carousel-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.vinacles-gallery-thumbs {
    flex: 1;
    overflow: hidden;
}

.vinacles-thumbs-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

.vinacles-thumb {
    flex: 0 0 calc((100% - 32px) / 5);
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--vinacles-bg);
    position: relative;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    border-radius: 4px;
}

.vinacles-thumb:hover {
    border-color: var(--vinacles-text-muted);
}

.vinacles-thumb:hover img {
    transform: scale(1.05);
}

.vinacles-thumb.active {
    border-color: var(--vinacles-primary);
}

.vinacles-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vinacles-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

/* Lightbox */
.vinacles-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinacles-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.vinacles-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.vinacles-lightbox-close:hover {
    opacity: 1;
}

.vinacles-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.2s ease;
    border-radius: 50%;
}

.vinacles-lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.vinacles-lightbox-prev {
    left: 20px;
}

.vinacles-lightbox-next {
    right: 20px;
}

.vinacles-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Info Card */
.vinacles-detail-card {
    background: var(--vinacles-card-bg, #fff);
    padding: 28px;
    border-radius: var(--vinacles-radius, 6px);
    box-shadow: var(--vinacles-shadow);
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 40px;
}

.vinacles-card-header {
    margin-bottom: 12px;
}

/* Status badge (Fix 5: redesign version kept) */
.vinacles-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vinacles-status-available   { background: #dcfce7; color: var(--vin-fe-hexon-status-available, var(--vin-fe-status-available, #16a34a)); }
.vinacles-status-reserved    { background: #fef3c7; color: var(--vin-fe-hexon-status-reserved, var(--vin-fe-status-reserved, #d97706)); }
.vinacles-status-sold        { background: #f1f5f9; color: var(--vin-fe-hexon-status-sold, var(--vin-fe-status-sold, #64748b)); }
.vinacles-status-expected    { background: #ede9fe; color: var(--vin-fe-hexon-status-expected, var(--vin-fe-status-expected, #7c3aed)); }
.vinacles-status-unavailable { background: #f1f5f9; color: #64748b; }

.vinacles-detail-card .vinacles-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: inherit;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.vinacles-card-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--vinacles-border);
}

.vinacles-detail-card .vinacles-price-amount {
    display: block;
    font-size: 26px !important;
    font-weight: 800;
    color: var(--vinacles-primary);
    line-height: 1.2 !important;
}

.vinacles-price-sale {
    color: #dc2626;
}

.vinacles-price-original {
    font-size: 16px;
    color: var(--vinacles-text-muted);
    text-decoration: line-through;
    margin-top: 4px;
    display: inline-block;
}

.vinacles-price-vat {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--vinacles-text-muted);
}

/* Trust signals strip (Fix 7) */
.vinacles-trust-strip {
    list-style: none;
    padding: 0;
    margin: 8px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vinacles-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vinacles-text-muted, #6b7280);
}

.vinacles-trust-icon {
    flex-shrink: 0;
    color: var(--vinacles-primary, #2563eb);
    display: flex;
}

/* CTA Buttons */
.vinacles-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.vinacles-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: var(--vinacles-radius, 6px);
}

.vinacles-btn-primary {
    background: var(--vinacles-primary);
    color: #fff;
    border-color: var(--vinacles-primary);
}

.vinacles-btn-primary:hover {
    background: var(--vinacles-primary-hover);
    color: #fff;
}

.vinacles-btn-primary svg {
    stroke: #fff;
}

.vinacles-btn-outline {
    background: #fff;
    color: inherit;
    border-color: var(--vinacles-border);
}

.vinacles-btn-outline:hover {
    border-color: inherit;
    color: inherit;
}

/* Card Meta (Fix 5: redesign version kept) */
.vinacles-card-meta {
    padding: 16px 0;
    border-top: 1px solid var(--vinacles-border);
}

.vinacles-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 6px 0;
}

.vinacles-meta-label { color: var(--vinacles-text-muted); }
.vinacles-meta-value { color: var(--vinacles-text-primary); font-weight: 600; }

/* Utility buttons (Fix 5: redesign version kept) */
.vinacles-card-utility { display: flex; gap: 8px; }

.vinacles-util-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--vinacles-bg, #f5f6f8);
    border: 1px solid var(--vinacles-border-color);
    color: var(--vinacles-text-muted);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: calc(var(--vinacles-radius, 6px) * 0.7);
    cursor: pointer;
    transition: background 0.15s;
}
.vinacles-util-btn:hover { background: var(--vinacles-border-color); }

/* ========================
   Specification Cards
   ======================== */
.vinacles-vehicle-single .vinacles-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: inherit;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.vinacles-section-title svg {
    color: var(--vinacles-primary);
    flex-shrink: 0;
}

.vinacles-spec-cards,
.vinacles-features-section,
.vinacles-full-specs,
.vinacles-description-section,
.vinacles-contact-section {
    background: var(--vinacles-card-bg, #fff);
    padding: 28px;
    border-radius: var(--vinacles-radius, 6px);
    box-shadow: var(--vinacles-shadow);
    margin-bottom: 24px;
}

.vinacles-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vinacles-spec-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--vinacles-bg);
    border: 1px solid var(--vinacles-border);
    border-radius: var(--vinacles-radius, 6px);
    transition: border-color 0.2s ease;
}

.vinacles-spec-card:hover {
    border-color: var(--vinacles-primary);
}

.vinacles-spec-icon {
    color: var(--vinacles-primary);
    margin-bottom: 10px;
}

.vinacles-spec-card .vinacles-spec-label {
    display: block;
    font-size: 11px;
    color: var(--vinacles-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.vinacles-spec-card .vinacles-spec-value {
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

/* ========================
   Features & Options
   ======================== */
.vinacles-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 24px;
}

.vinacles-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vinacles-border);
    font-size: 14px;
    color: inherit;
}

.vinacles-feature-check {
    flex-shrink: 0;
    color: var(--vinacles-accent);
}

.vinacles-features-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--vinacles-text-muted);
}

.vinacles-feature-hidden {
    display: none;
}

.vinacles-features-expanded .vinacles-feature-hidden {
    display: flex;
}

.vinacles-features-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: none;
    border: 1px solid var(--vinacles-border);
    border-radius: var(--vinacles-radius, 6px);
    color: var(--vinacles-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vinacles-features-toggle:hover {
    background: var(--vinacles-bg);
    border-color: var(--vinacles-primary);
}

.vinacles-features-toggle-icon {
    transition: transform 0.3s ease;
}

.vinacles-features-toggle-active .vinacles-features-toggle-icon {
    transform: rotate(180deg);
}

/* ========================
   Full Specs Table
   ======================== */
.vinacles-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.vinacles-specs-table th,
.vinacles-specs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--vinacles-border);
    font-size: 14px;
}

.vinacles-specs-table th {
    width: 40%;
    font-weight: 500;
    color: var(--vinacles-text-muted);
    background: var(--vinacles-bg);
}

.vinacles-specs-table td {
    font-weight: 600;
    color: inherit;
}

.vinacles-specs-table tr:last-child th,
.vinacles-specs-table tr:last-child td {
    border-bottom: none;
}

/* ========================
   Description
   ======================== */
.vinacles-description-text {
    line-height: 1.8;
    color: var(--vinacles-text-body);
    font-size: 15px;
}

.vinacles-description-text p:first-child {
    margin-top: 0;
}

.vinacles-description-text p:last-child {
    margin-bottom: 0;
}

/* ========================
   Contact Section (Tabs)
   ======================== */
.vinacles-contact-section .vinacles-section-title {
    margin-bottom: 20px;
}

.vinacles-contact-tabs {
    display: flex;
    /* Three tabs do not fit the row between the 480px column breakpoint and about
       590px, and without this they all flex-shrink until every label breaks onto
       two lines. Wrapping places each tab at its natural width and moves the
       overflowing one to a second row instead. Inert with one or two tabs. */
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--vinacles-border);
    margin-bottom: 24px;
}

.vinacles-contact-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vinacles-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vinacles-contact-tab:hover {
    color: inherit;
}

.vinacles-contact-tab.active {
    color: var(--vinacles-primary);
    border-bottom-color: var(--vinacles-primary);
}

.vinacles-contact-tab svg {
    flex-shrink: 0;
}

.vinacles-contact-panel {
    display: none;
}

.vinacles-contact-panel.active {
    display: block;
}

/* Lead Form */
.vinacles-lead-form-wrapper {
    max-width: 600px;
}

.vinacles-form-vehicle-info {
    background: var(--vinacles-bg);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vinacles-form-vehicle-price {
    font-weight: 600;
    color: var(--vinacles-primary);
}

.vinacles-lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vinacles-form-row {
    display: flex;
    flex-direction: column;
}

.vinacles-form-row label {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 6px;
}

.vinacles-form-row-half {
    flex-direction: row;
    gap: 16px;
}

.vinacles-form-row-half .vinacles-form-field {
    flex: 1;
}

.vinacles-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    margin-bottom: 6px;
}

.vinacles-lead-form input[type="text"],
.vinacles-lead-form input[type="email"],
.vinacles-lead-form input[type="tel"],
.vinacles-lead-form input[type="number"],
.vinacles-lead-form input[type="date"],
.vinacles-lead-form select,
.vinacles-lead-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--vinacles-border);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vinacles-lead-form input:focus,
.vinacles-lead-form select:focus,
.vinacles-lead-form textarea:focus {
    outline: none;
    border-color: var(--vinacles-primary);
    box-shadow: 0 0 0 3px rgba(var(--vinacles-primary-rgb), 0.15);
}

.vinacles-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.vinacles-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.vinacles-form-conditional h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: inherit;
}

.vinacles-submit-btn {
    align-self: flex-start;
    min-width: 150px;
}

.vinacles-form-message {
    padding: 12px 16px;
    font-size: 14px;
}

.vinacles-message-success {
    background: #d1fae5;
    color: #065f46;
}

.vinacles-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.vinacles-form-privacy {
    font-size: 13px;
    color: var(--vinacles-text-muted);
    margin: 0;
}

.vinacles-form-privacy a {
    color: var(--vinacles-primary);
}

/* ========================
   Collapsible Specifications
   ======================== */
.vinacles-specs-collapse {
    max-height: 280px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.vinacles-specs-collapse.vinacles-specs-expanded {
    max-height: 2000px;
}

.vinacles-specs-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--vinacles-card-bg, #fff));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vinacles-specs-expanded .vinacles-specs-gradient {
    opacity: 0;
}

.vinacles-specs-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: none;
    border: 1px solid var(--vinacles-border);
    border-radius: var(--vinacles-radius, 6px);
    color: var(--vinacles-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vinacles-specs-toggle:hover {
    background: var(--vinacles-bg);
    border-color: var(--vinacles-primary);
}

.vinacles-specs-toggle-icon {
    transition: transform 0.3s ease;
}

.vinacles-specs-toggle-active .vinacles-specs-toggle-icon {
    transform: rotate(180deg);
}

/* ========================
   Stock List Layout (Fix 5: redesign version kept)
   ======================== */
.vinacles-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vinacles-vehicle-row {
    background: var(--vinacles-card-bg, #fff);
    border-radius: var(--vinacles-radius, 6px);
    overflow: hidden;
    box-shadow: var(--vinacles-shadow);
    border: 1px solid var(--vinacles-border-color);
}
.vinacles-vehicle-row.vinacles-row-unavailable { opacity: 0.7; }

.vinacles-row-link {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-height: 90px;
}

.vinacles-row-image {
    position: relative;
    height: 90px;
    background: var(--vinacles-border-color);
    flex-shrink: 0;
}

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

.vinacles-row-content { padding: 12px 16px; }

.vinacles-row-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--vinacles-text-primary);
    margin-bottom: 6px;
}

.vinacles-row-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vinacles-row-specs span {
    font-size: 11px;
    color: var(--vinacles-text-muted);
}

/* Fix 4: mobile price visible — .vinacles-row-price { display: none } removed */
.vinacles-row-price {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: 130px;
    border-left: 1px solid var(--vinacles-border-color);
}

.vinacles-row-view-btn {
    font-size: 11px;
    font-weight: 600;
    background: var(--vinacles-text-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--vinacles-radius, 6px);
    white-space: nowrap;
}

/* ========================
   Layout Variants
   ======================== */
.vinacles-layout-fullwidth .vinacles-detail-top {
    grid-template-columns: 1fr;
}

.vinacles-layout-fullwidth .vinacles-detail-card {
    position: static;
}

.vinacles-layout-compact .vinacles-detail-top {
    grid-template-columns: 1fr 320px;
}

.vinacles-layout-compact .vinacles-detail-card {
    padding: 20px;
}

.vinacles-layout-compact .vinacles-detail-card .vinacles-card-title {
    font-size: 20px !important;
}

.vinacles-layout-compact .vinacles-detail-card .vinacles-price-amount {
    font-size: 26px !important;
}

.vinacles-layout-compact .vinacles-spec-cards,
.vinacles-layout-compact .vinacles-features-section,
.vinacles-layout-compact .vinacles-full-specs,
.vinacles-layout-compact .vinacles-description-section,
.vinacles-layout-compact .vinacles-contact-section {
    padding: 20px;
}

/* ========================
   Immersive Hero
   ======================== */
.vinacles-hero-immersive {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 400px;
    border-radius: 0 0 var(--vinacles-radius, 6px) var(--vinacles-radius, 6px);
    overflow: hidden;
    margin-bottom: 16px;
}
.vinacles-hero-gallery {
    background: var(--vinacles-hero-gallery-bg, #1a1f2e);
    display: flex;
    flex-direction: column;
    position: relative;
}
.vinacles-hero-gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}
.vinacles-hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vinacles-hero-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
}
.vinacles-hero-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    pointer-events: none;
}
.vinacles-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
}
.vinacles-hero-arrow:hover { background: rgba(0,0,0,0.7); }
.vinacles-hero-prev { left: 10px; }
.vinacles-hero-next { right: 10px; }
.vinacles-hero-thumbs-strip {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.35);
    flex-shrink: 0;
}
.vinacles-hero-thumb {
    width: 54px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    padding: 0;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.vinacles-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vinacles-hero-thumb.active { border-color: var(--vinacles-primary, #2563eb); }
.vinacles-hero-thumbs-overflow {
    width: 54px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.vinacles-hero-info {
    background: var(--vinacles-card-bg, #fff);
    border-left: 1px solid var(--vinacles-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vinacles-hero-info-body {
    padding: 22px 24px 16px;
    flex: 1;
}
.vinacles-hero-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--vinacles-text-primary);
    margin: 10px 0 4px;
    line-height: 1.25;
}
.vinacles-hero-subtitle {
    font-size: 12px;
    color: var(--vinacles-text-muted);
    margin: 0 0 14px;
}
.vinacles-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.vinacles-hero-pill {
    background: var(--vinacles-spec-pill-bg, #eff6ff);
    color: var(--vinacles-spec-pill-color, #3b5bdb);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}
.vinacles-hero-price-wrap { margin-bottom: 18px; }
.vinacles-hero-price {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: var(--vinacles-text-primary);
    line-height: 1;
}
.vinacles-hero-price-sale {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: var(--vinacles-accent, #e63946);
    line-height: 1;
}
.vinacles-hero-price-original {
    font-size: 13px;
    color: var(--vinacles-text-muted);
    text-decoration: line-through;
}
.vinacles-hero-price-vat {
    display: block;
    font-size: 11px;
    color: var(--vinacles-text-muted);
    margin-top: 2px;
}
.vinacles-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vinacles-hero-ctas .vinacles-btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--vinacles-radius, 6px);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.vinacles-hero-ctas .vinacles-btn-primary {
    background: var(--vinacles-text-primary);
    color: #fff;
}
.vinacles-hero-ctas .vinacles-btn-outline {
    background: transparent;
    color: var(--vinacles-text-primary);
    border: 1.5px solid var(--vinacles-border-color);
}
.vinacles-hero-info-footer {
    padding: 14px 24px 18px;
    border-top: 1px solid var(--vinacles-border-color);
}
.vinacles-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

/* --- Spec icon strip ----------------------------------------- */
.vinacles-spec-icon-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.vinacles-spec-icon-card {
    background: var(--vinacles-card-bg, #fff);
    border: 1px solid var(--vinacles-border-color);
    border-radius: var(--vinacles-radius, 6px);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--vinacles-shadow);
}
.vinacles-spec-icon-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--vinacles-text-primary);
    margin-bottom: 2px;
}
.vinacles-spec-icon-label {
    font-size: 10px;
    color: var(--vinacles-text-muted);
}

/* ========================
   Responsive
   ======================== */

/* Tablet landscape / small desktop */
@media (max-width: 992px) {
    .vinacles-detail-top {
        grid-template-columns: 1fr;
    }

    .vinacles-detail-card {
        position: static;
    }

    .vinacles-detail-card .vinacles-card-title {
        font-size: 22px !important;
    }

    .vinacles-detail-card .vinacles-price-amount {
        font-size: 28px !important;
    }

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

    .vinacles-layout-compact .vinacles-detail-top {
        grid-template-columns: 1fr;
    }

    .vinacles-thumb {
        flex: 0 0 calc((100% - 32px) / 5);
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .vinacles-vehicles-wrapper,
    .vinacles-search-widget {
        padding: 16px 12px;
    }

    .vinacles-vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .vinacles-results-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .vinacles-sort-control {
        width: 100%;
    }

    .vinacles-sort-select {
        flex: 1;
    }

    .vinacles-filter-row {
        flex-direction: column;
    }

    .vinacles-filter-field {
        width: 100%;
    }

    .vinacles-filter-submit {
        width: 100%;
    }

    .vinacles-filter-submit .vinacles-button {
        width: 100%;
        text-align: center;
    }

    /* Fix: >=16px on mobile controls to stop iOS auto-zoom on focus */
    .vinacles-lead-form input,
    .vinacles-lead-form select,
    .vinacles-lead-form textarea,
    .vinacles-filter-field select,
    .vinacles-filter-field input,
    .vinacles-sort-select {
        font-size: 16px;
    }

    .vinacles-form-row-half {
        flex-direction: column;
    }

    .vinacles-thumb {
        flex: 0 0 calc((100% - 24px) / 4);
    }

    .vinacles-spec-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .vinacles-features-grid {
        grid-template-columns: 1fr;
    }

    .vinacles-spec-cards,
    .vinacles-features-section,
    .vinacles-full-specs,
    .vinacles-description-section,
    .vinacles-contact-section {
        padding: 20px;
    }

    .vinacles-detail-card {
        padding: 20px;
    }

    .vinacles-detail-card .vinacles-card-title {
        font-size: 20px !important;
    }

    .vinacles-detail-card .vinacles-price-amount {
        font-size: 24px !important;
    }

    .vinacles-gallery-main {
        aspect-ratio: 16/10;
    }

    .vinacles-contact-tab {
        padding: 12px 16px;
        font-size: 14px;
    }

    .vinacles-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .vinacles-lightbox-prev {
        left: 8px;
    }

    .vinacles-lightbox-next {
        right: 8px;
    }

    .vinacles-lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .vinacles-specs-table th,
    .vinacles-specs-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .vinacles-specs-table th {
        width: 45%;
    }

    /* Immersive hero: stack on tablet */
    .vinacles-hero-immersive { grid-template-columns: 1fr; }
    .vinacles-hero-gallery { min-height: 240px; }
    .vinacles-spec-icon-strip { grid-template-columns: repeat(3, 1fr); }
    /* Fix 4: row price visible on mobile — no display:none here */
    .vinacles-row-link { grid-template-columns: 120px 1fr; }
    .vinacles-row-price {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid var(--vinacles-border-color);
        min-width: 0;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .vinacles-vehicles-grid {
        grid-template-columns: 1fr;
    }

    .vinacles-thumb {
        flex: 0 0 calc((100% - 16px) / 3);
    }

    .vinacles-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .vinacles-spec-grid {
        gap: 10px;
    }

    .vinacles-spec-card {
        padding: 14px 8px;
    }

    .vinacles-spec-card .vinacles-spec-value {
        font-size: 14px;
    }

    .vinacles-spec-cards,
    .vinacles-features-section,
    .vinacles-full-specs,
    .vinacles-description-section,
    .vinacles-contact-section {
        padding: 16px;
    }

    .vinacles-detail-card {
        padding: 16px;
    }

    .vinacles-vehicle-single .vinacles-section-title {
        font-size: 17px !important;
    }

    .vinacles-detail-card .vinacles-card-title {
        font-size: 18px !important;
    }

    .vinacles-detail-card .vinacles-price-amount {
        font-size: 22px !important;
    }

    .vinacles-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .vinacles-gallery-main {
        aspect-ratio: 4/3;
        margin-bottom: 8px;
    }

    .vinacles-gallery-counter {
        font-size: 12px;
        padding: 3px 8px;
        bottom: 8px;
        right: 8px;
    }

    .vinacles-contact-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
        border-left: 2px solid var(--vinacles-border);
    }

    .vinacles-contact-tab {
        padding: 12px 16px;
        font-size: 14px;
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
        margin-left: 0;
    }

    .vinacles-contact-tab.active {
        border-bottom: none;
        border-left-color: var(--vinacles-primary);
        background: var(--vinacles-bg);
    }

    .vinacles-lightbox img {
        max-width: 100%;
        max-height: 75vh;
    }

    .vinacles-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .vinacles-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .vinacles-lightbox-prev {
        left: 4px;
    }

    .vinacles-lightbox-next {
        right: 4px;
    }

    .vinacles-lightbox-counter {
        bottom: 12px;
        font-size: 13px;
    }

    .vinacles-back-link {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .vinacles-card-utility {
        gap: 12px;
    }

    .vinacles-meta-label,
    .vinacles-meta-value {
        font-size: 12px;
    }

    .vinacles-specs-table th,
    .vinacles-specs-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .vinacles-description-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .vinacles-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }

    .vinacles-filters {
        padding: 16px;
    }

    .vinacles-spec-icon-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ========================
   Similar Vehicles
   ======================== */
.vinacles-similar-section {
    margin-top: 32px;
}

.vinacles-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.vinacles-similar-grid .vinacles-vehicle-card {
    box-shadow: var(--vinacles-shadow);
}

/* ========================
   Vehicle Comparison
   ======================== */
.vinacles-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vinacles-compare-bar-bg, #fff);
    border-top: 2px solid var(--vinacles-compare-bar-accent, var(--vinacles-primary));
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.vinacles-compare-bar.active {
    transform: translateY(0);
}

.vinacles-compare-items {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vinacles-compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--vinacles-bg);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}

.vinacles-compare-remove {
    background: none;
    border: none;
    color: var(--vinacles-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.vinacles-compare-remove:hover {
    color: #ef4444;
}

.vinacles-compare-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vinacles-compare-count {
    font-size: 13px;
    color: var(--vinacles-text-muted);
}

.vinacles-compare-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.vinacles-compare-label {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.vinacles-compare-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.vinacles-compare-bar .vinacles-compare-btn {
    background: var(--vinacles-compare-btn-bg, var(--vinacles-primary));
    color: var(--vinacles-compare-btn-text, #fff);
    border-color: var(--vinacles-compare-btn-bg, var(--vinacles-primary));
}

/* Comparison Table */
.vinacles-comparison-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vinacles-comparison-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

.vinacles-comparison-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--vinacles-bg);
    font-size: 13px;
    font-weight: 500;
    color: var(--vinacles-text-muted);
    border-bottom: 1px solid var(--vinacles-border);
    width: 160px;
}

.vinacles-comparison-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid var(--vinacles-border);
}

.vinacles-comparison-table .vinacles-compare-header td {
    padding: 16px;
    vertical-align: top;
}

.vinacles-compare-vehicle-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 8px;
}

.vinacles-compare-vehicle-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}

.vinacles-compare-vehicle-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--vinacles-primary);
}

/* Error state */
.vinacles-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px;
    text-align: center;
}

/* ========================
   Vehicle Carousel Shortcode
   ======================== */
.vinacles-carousel-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

.vinacles-carousel-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.vinacles-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vinacles-carousel-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vinacles-card-bg, #fff);
    border: 1px solid var(--vinacles-border-color);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    cursor: pointer;
    color: var(--vinacles-text-muted);
    transition: all 0.2s ease;
    padding: 0;
    z-index: 2;
}

.vinacles-carousel-nav-btn:hover:not(:disabled) {
    color: var(--vinacles-primary);
    border-color: var(--vinacles-primary);
}

.vinacles-carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.vinacles-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.vinacles-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.vinacles-carousel-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

.vinacles-carousel-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--vinacles-card-bg, #fff);
    border: 1px solid var(--vinacles-border-color);
    border-radius: var(--vinacles-radius, 6px);
    box-shadow: var(--vinacles-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vinacles-carousel-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vinacles-carousel-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--vinacles-bg);
}

.vinacles-carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vinacles-carousel-card-image .vinacles-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vinacles-bg);
    color: var(--vinacles-text-muted);
    font-size: 13px;
}

.vinacles-carousel-card-content {
    padding: 14px 16px;
}

.vinacles-carousel-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinacles-carousel-card-type {
    font-size: 13px;
    color: var(--vinacles-text-muted);
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinacles-carousel-card-price .vinacles-price-current {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .vinacles-carousel-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .vinacles-carousel-card {
        flex: 0 0 100%;
    }

    .vinacles-carousel-nav-btn {
        width: 32px;
        height: 32px;
    }

    .vinacles-carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================
   Print Stylesheet
   ======================== */
@media print {
    .vinacles-filters,
    .vinacles-sort-control,
    .vinacles-pagination,
    .vinacles-back-link,
    .vinacles-lightbox,
    .vinacles-card-actions,
    .vinacles-card-utility,
    .vinacles-contact-section,
    .vinacles-filter-submit,
    .vinacles-carousel-wrapper,
    .vinacles-carousel-nav-btn,
    .vinacles-gallery-counter,
    .vinacles-features-toggle,
    .vinacles-specs-toggle,
    .vinacles-specs-gradient,
    .vinacles-compare-bar {
        display: none !important;
    }

    .vinacles-vehicle-single,
    .vinacles-vehicles-wrapper {
        max-width: 100%;
    }

    .vinacles-detail-top {
        grid-template-columns: 1fr 1fr;
    }

    .vinacles-detail-card {
        position: static;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .vinacles-vehicle-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .vinacles-vehicle-card:hover {
        transform: none;
        box-shadow: none;
    }

    .vinacles-specs-collapse {
        max-height: none !important;
        overflow: visible !important;
    }

    .vinacles-feature-hidden {
        display: flex !important;
    }

    .vinacles-spec-cards,
    .vinacles-features-section,
    .vinacles-full-specs,
    .vinacles-description-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .vinacles-vehicle-badge,
    .vinacles-status-badge {
        border: 1px solid #333;
    }

    .vinacles-gallery-thumbs {
        display: none;
    }

    .vinacles-gallery-main {
        aspect-ratio: auto;
    }

    .vinacles-gallery-main img {
        max-height: 300px;
        object-fit: contain;
    }

    a[href]:after {
        content: none;
    }
}

/* Mobile filter toggle */
.vinacles-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--vinacles-primary);
    color: #fff;
    border: none;
    border-radius: var(--vinacles-btn-radius, 6px);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.vinacles-toggle-count {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 12px;
    display: none;
}
.vinacles-toggle-count.has-filters {
    display: inline-block;
}
@media (max-width: 768px) {
    .vinacles-filters-toggle {
        display: flex;
    }
    .vinacles-filters {
        display: none;
    }
    /* Fix 4: display: flex (not block) so flex children lay out correctly */
    .vinacles-filters.vinacles-filters-open {
        display: flex;
        flex-direction: column;
    }
}

/* ========================
   Search Widget
   ======================== */
.vinacles-search-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--vinacles-filter-bg, #fff);
    border-radius: var(--vinacles-radius, 6px);
    border: 1px solid var(--vinacles-border-color);
    box-shadow: var(--vinacles-shadow);
}

.vinacles-search-widget--stacked .vinacles-filter-row {
    flex-direction: column;
}

.vinacles-search-widget--stacked .vinacles-filter-field,
.vinacles-search-widget--stacked .vinacles-filter-submit {
    flex: 1 1 100%;
}

@media (max-width: 600px) {
    .vinacles-search-widget .vinacles-filter-field,
    .vinacles-search-widget .vinacles-filter-submit {
        flex: 1 1 100%;
    }
}

/* Active filter chips (Fix 6) */
.vinacles-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    min-height: 0;
}

.vinacles-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    background: var(--vinacles-primary, #2563eb);
    color: #fff;
    border-radius: var(--vinacles-btn-radius, 20px);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.vinacles-chip:hover {
    filter: brightness(0.9);
}

.vinacles-chip__remove {
    font-size: 15px;
    line-height: 1;
    opacity: 0.75;
    margin-left: 2px;
}

.vinacles-chip:hover .vinacles-chip__remove {
    opacity: 1;
}

/* ========================
   Reduced Motion
   ======================== */
@media (prefers-reduced-motion: reduce) {
    [class*="vinacles-"],
    [class*="vinacles-"]::before,
    [class*="vinacles-"]::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto;
    }
}
