/* Vehicle Detail page styles */

/* =========================================================
   VEHICLE DETAIL — PREMIUM SALES PAGE
========================================================= */

.vehicle-detail-page {
    --vd-accent: var(--primary, #dc2626);
    --vd-ink: #191b24;
    --vd-muted: #737987;
    --vd-line: #e7e9ef;
    color: var(--vd-ink);
    padding-bottom: 76px;
}

.vehicle-detail-note {
    margin-top: 12px;
    color: var(--vd-muted);
    font-size: 12px;
    line-height: 1.7;
}

.vd-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.vd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 26px 0;
    color: var(--vd-muted);
    font-size: 13px;
}

.vd-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.vd-breadcrumb a:hover {
    color: var(--vd-accent);
}

.vd-breadcrumb span:last-child {
    color: var(--vd-ink);
    overflow-wrap: anywhere;
}

.vd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 44px;
    align-items: center;
    padding: 10px 0 48px;
}

.vd-image-wrap {
    overflow: hidden;
    border: 1px solid var(--vd-line);
    border-radius: 22px;
    background: #f3f4f7;
}

.vd-main-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.vd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: var(--vd-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.vd-eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 4px;
    background: currentColor;
}

.vd-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 49px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -1.4px;
    overflow-wrap: anywhere;
}

.vd-category {
    display: inline-flex;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8e9e9;
    color: var(--vd-accent);
    font-size: 12px;
    font-weight: 800;
}

.vd-description {
    margin: 16px 0 0;
    color: var(--vd-muted);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.vd-description p,
.vd-description h3,
.vd-description h4 {
    margin: 0 0 10px;
}

.vd-description > :last-child {
    margin-bottom: 0;
}

.vd-full-description {
    padding: 8px 0 38px;
}

.vd-full-description-copy {
    width: 100%;
    color: var(--vd-muted);
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.vd-full-description-copy > :first-child {
    margin-top: 0;
}

.vd-full-description-copy h3,
.vd-full-description-copy h4 {
    color: var(--vd-ink);
    line-height: 1.45;
}

.vd-full-description-copy h3 {
    margin: 20px 0 8px;
    font-size: 19px;
}

.vd-full-description-copy h4 {
    margin: 22px 0 8px;
    font-size: 18px;
}

.vd-full-description-copy p {
    margin: 0 0 14px;
}

.vd-full-description-copy ul,
.vd-full-description-copy ol {
    margin: 0 0 16px;
    padding-inline-start: 24px;
}

.vd-full-description-copy li + li {
    margin-top: 5px;
}

.vd-full-description-copy a {
    color: var(--vd-accent);
}

.vd-full-description-copy blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--vd-accent);
    background: #f8f9fb;
}

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

.vd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 19px;
    border: 1px solid var(--vd-accent);
    border-radius: 11px;
    background: var(--vd-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.vd-button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.vd-button-outline {
    background: #fff;
    color: var(--vd-accent);
}

/* VARIAN DAN HARGA */
.vd-variants {
    padding-top: 42px;
    border-top: 1px solid var(--vd-line);
}

.vd-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.vd-section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 850;
    letter-spacing: -.8px;
}

.vd-section-heading p {
    margin: 9px 0 0;
    color: var(--vd-muted);
    font-size: 14px;
    line-height: 1.8;
}

.vd-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--vd-line);
    border-radius: 16px;
    background: #fff;
}

.vd-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: left;
}

.vd-table th,
.vd-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--vd-line);
    vertical-align: middle;
}

.vd-table th {
    background: #f8f9fb;
    color: #545b6b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.vd-table td {
    font-size: 14px;
    line-height: 1.65;
}

.vd-table tbody tr:last-child td {
    border-bottom: 0;
}

.vd-table tbody tr:hover {
    background: #fcfcfd;
}

.vd-variant-name {
    font-weight: 800;
}

.vd-transmission {
    color: var(--vd-muted);
}

.vd-price {
    color: var(--vd-accent);
    font-weight: 850;
    white-space: nowrap;
}

.vd-no-variants {
    padding: 28px;
    border: 1px dashed #d9dce5;
    border-radius: 14px;
    background: #fafbfc;
    color: var(--vd-muted);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

/* CTA PENUTUP */
.vd-contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 38px;
    padding: 30px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 100% 0, rgba(255,255,255,.12), transparent 40%),
        #191b24;
    color: #fff;
}

.vd-contact-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.3;
}

.vd-contact-copy p {
    max-width: 620px;
    margin: 0;
    color: #c4c8d2;
    font-size: 14px;
    line-height: 1.8;
}

.vd-contact-panel .vd-button {
    flex-shrink: 0;
    background: #fff;
    border-color: #fff;
    color: #191b24;
}

/* 404 */
.vd-not-found {
    max-width: 680px;
    margin: 70px auto;
    padding: 48px 26px;
    border: 1px solid var(--vd-line);
    border-radius: 22px;
    background: #fafbfc;
    text-align: center;
}

.vd-not-found h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.vd-not-found p {
    max-width: 470px;
    margin: 0 auto 24px;
    color: var(--vd-muted);
    font-size: 14px;
    line-height: 1.85;
}

@media (max-width: 850px) {
    .vd-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vd-contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .vd-container {
        width: min(100% - 28px, 1180px);
    }

    .vd-breadcrumb {
        margin: 20px 0;
        font-size: 12px;
    }

    .vd-hero {
        gap: 24px;
        padding-bottom: 32px;
    }

    .vd-image-wrap {
        border-radius: 14px;
    }

    .vd-hero h1 {
        font-size: 34px;
        letter-spacing: -.8px;
    }

    .vd-description,
    .vd-full-description-copy {
        font-size: 14px;
    }

    .vd-full-description {
        padding-bottom: 30px;
    }

    .vd-full-description-copy h3 {
        margin-top: 22px;
        font-size: 19px;
    }

    .vd-full-description-copy h4 {
        font-size: 17px;
    }

    .vd-hero-actions {
        flex-direction: column;
    }

    .vd-hero-actions .vd-button {
        width: 100%;
    }

    .vd-variants {
        padding-top: 30px;
    }

    .vd-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .vd-table th,
    .vd-table td {
        padding: 14px;
    }

    .vd-contact-panel {
        padding: 24px;
        border-radius: 14px;
    }

    .vd-contact-panel .vd-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-detail-page *,
    .vehicle-detail-page *::before,
    .vehicle-detail-page *::after {
        transition: none !important;
    }
}
