/* ── View Car Page ── */
.view-car-page {
    background: #f4f6f8;
    padding-top: 72px;
    padding-bottom: 3rem;
    min-height: 60vh;
}

@media (min-width: 768px) {
    .view-car-page {
        padding-top: 86px;
    }
}

.view-car-page--admin {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
}

/* ── Breadcrumb bar ── */
.vc-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.85rem 0;
}

.vc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.vc-breadcrumb li + li::before {
    content: "/";
    color: #ced4da;
    font-weight: 400;
}

.vc-breadcrumb a {
    color: #495057;
    text-decoration: none;
    transition: color 0.15s;
}

.vc-breadcrumb a:hover {
    color: #EA3323;
}

.vc-breadcrumb .active {
    color: #1a1d21;
    font-weight: 600;
}

/* ── Main layout ── */
.vc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .vc-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
        gap: 2rem;
        align-items: start;
    }
}

/* ── Gallery ── */
.vc-gallery {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.vc-gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #1a1d21 0%, #2d3238 100%);
    overflow: hidden;
    cursor: zoom-in;
}

.vc-gallery-main.is-single {
    cursor: default;
}

.vc-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.vc-gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.vc-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.vc-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.45);
    gap: 0.75rem;
}

.vc-gallery-placeholder i {
    font-size: 3.5rem;
    opacity: 0.5;
}

.vc-gallery-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Nav arrows */
.vc-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1d21;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.15s, color 0.15s, transform 0.15s;
    opacity: 0;
}

.vc-gallery:hover .vc-gallery-nav,
.vc-gallery-nav:focus-visible {
    opacity: 1;
}

.vc-gallery-nav:hover {
    background: #EA3323;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.vc-gallery-nav:disabled {
    opacity: 0 !important;
    cursor: default;
    pointer-events: none;
}

.vc-gallery-nav--prev { left: 1rem; }
.vc-gallery-nav--next { right: 1rem; }

/* Counter + expand */
.vc-gallery-meta {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.vc-gallery-counter {
    background: rgba(26, 29, 33, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
}

.vc-gallery-expand {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(26, 29, 33, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-gallery-expand:hover {
    background: #EA3323;
}

/* Thumbnails */
.vc-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
    background: #fafbfc;
    border-top: 1px solid #e9ecef;
}

.vc-thumbs::-webkit-scrollbar {
    height: 4px;
}

.vc-thumbs::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.vc-thumb {
    flex: 0 0 88px;
    height: 66px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #eef0f3;
    transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
    opacity: 0.65;
}

.vc-thumb:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.vc-thumb.active {
    border-color: #EA3323;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(234, 51, 35, 0.25);
}

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

/* ── Info panel ── */
.vc-info-panel {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 992px) {
    .vc-info-panel {
        position: sticky;
        top: 100px;
    }
}

.vc-title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: #1a1d21;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.35rem;
}

.vc-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

.vc-price-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.vc-price-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
}

.vc-price {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #EA3323;
    line-height: 1;
}

.vc-key-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.vc-key-spec {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.vc-key-spec i {
    color: #EA3323;
    font-size: 1rem;
    flex-shrink: 0;
}

.vc-key-spec span {
    line-height: 1.2;
}

.vc-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.vc-btn-enquire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #EA3323;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.vc-btn-enquire:hover {
    background: #bd2316;
    color: #fff;
    transform: translateY(-1px);
}

.vc-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1d21;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.vc-btn-secondary:hover {
    border-color: #EA3323;
    color: #EA3323;
}

/* ── Details sections ── */
.vc-details {
    margin-top: 2rem;
}

.vc-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .vc-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .vc-details-grid--triple {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vc-detail-card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.vc-detail-card--full {
    grid-column: 1 / -1;
}

.vc-detail-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #EA3323;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.vc-detail-heading i {
    font-size: 1rem;
}

.vc-spec-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.875rem;
}

.vc-spec-row:last-child {
    border-bottom: none;
}

.vc-spec-label {
    color: #6c757d;
    flex-shrink: 0;
}

.vc-spec-value {
    font-weight: 600;
    color: #1a1d21;
    text-align: right;
}

.vc-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    white-space: pre-line;
}

/* ── Lightbox ── */
.vc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 14, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.vc-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.vc-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.vc-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-lightbox-close:hover {
    background: #EA3323;
}

.vc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.15s;
}

.vc-lightbox-nav:hover {
    background: #EA3323;
}

.vc-lightbox-nav--prev { left: 1.5rem; }
.vc-lightbox-nav--next { right: 1.5rem; }

.vc-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Empty state ── */
.vc-not-found {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    margin-top: 1.5rem;
}

.vc-not-found i {
    font-size: 2.5rem;
    color: #adb5bd;
    display: block;
    margin-bottom: 1rem;
}
