/* =========================================
   Single Vehicle Page — Autobedrijf Aal
   Gebaseerd op Strikwerda-stijl
   ========================================= */

/* ── Elementra thema-overrides voor single voertuig ── */

/*
 * De autonaam staat als Elementor heading-widget in de custom header (elementor-266).
 * We verbergen die heading + de featured-image achtergrond van de header op voertuig-pagina's.
 */
body.single-autobedrijf_voertuig header.top_panel .elementor-widget-heading {
    display: none !important;
}

/* Verwijder de (grote) featured-image hero-ruimte uit de header */
body.single-autobedrijf_voertuig header.top_panel.with_featured_image {
    background-image: none !important;
}

body.single-autobedrijf_voertuig header.top_panel .e-con-boxed,
body.single-autobedrijf_voertuig header.top_panel .elementor-section {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Verwijder padding boven/onder de content-wrap */
body.single-autobedrijf_voertuig .page_content_wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Laat content_wrap de volle breedte nemen */
body.single-autobedrijf_voertuig .content_wrap,
body.single-autobedrijf_voertuig .content_container {
    width: 100%;
    max-width: 100%;
}

/* .content de volle paginabreedte geven zonder float (sidebar is al verborgen) */
body.single-autobedrijf_voertuig .content {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
}

/* Verberg eventuele theme-sidebar op voertuig-pagina's */
body.single-autobedrijf_voertuig .sidebar {
    display: none !important;
}


:root {
    --sv-yellow: #FFD700;
    --sv-yellow-d: #E6C200;
    --sv-black: #111827;
    --sv-border: #E5E7EB;
    --sv-muted: #6B7280;
    --sv-bg: #F3F4F6;
    --sv-card: #FFFFFF;
    --sv-green: #22C35D;
    --sv-green-d: #1aab4f;
    --sv-radius: 0.875rem;
}

/* ── Page background ── */
.sv-page-bg {
    background: var(--sv-bg);
    min-height: 60vh;
}

/* ── Container ── */
.sv-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

/* ── Back button ── */
.sv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--sv-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color 0.15s;
}

.sv-back-btn:hover {
    color: var(--sv-black);
}

/* ── Page header (titel + type boven grid) ── */
.sv-page-header {
    margin-bottom: 1.5rem;
}

.sv-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sv-black);
    line-height: 1.2;
    margin: 0 0 0.25rem;
}

.sv-page-subtitle {
    font-size: 1rem;
    color: var(--sv-muted);
    margin: 0;
    font-weight: 500;
}

@media (min-width: 768px) {
    .sv-page-title {
        font-size: 2.25rem;
    }
}

/* ── Main 2-col grid ── */
.sv-main-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: start;
}

.sv-left-col {
    width: 60%;
}


/* ── Gallery ── */
.sv-gallery {
    margin-bottom: 2rem;
}

.sv-main-image {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 580px;
    border-radius: var(--sv-radius);
    overflow: hidden;
    background: #E5E7EB;
}

.sv-slider-container {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sv-slider-container::-webkit-scrollbar { display: none; }

.sv-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 100%;
}

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

.sv-slide--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-muted);
    font-size: 0.875rem;
}

/* Nav arrows */
.sv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.15s;
}

.sv-nav:hover {
    background: rgba(17, 24, 39, 0.8);
}

.sv-nav--prev {
    left: 0.75rem;
}

.sv-nav--next {
    right: 0.75rem;
}

.sv-nav svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    pointer-events: none;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

/* Counter */
.sv-counter {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    z-index: 5;
}

/* Status badges */
.sv-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 0.5rem;
    z-index: 5;
}

.sv-badge--sold {
    background: #DC2626;
    color: #fff;
}

.sv-badge--reserved {
    background: #D97706;
    color: #fff;
}

/* Thumbnail strip */
.sv-thumbstrip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--sv-border) transparent;
}

.sv-thumbstrip::-webkit-scrollbar {
    height: 3px;
}

.sv-thumbstrip::-webkit-scrollbar-thumb {
    background: var(--sv-border);
    border-radius: 2px;
}

.sv-thumb {
    flex: 0 0 96px;
    height: 64px;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: opacity 0.15s, border-color 0.15s;
}

.sv-thumb:hover {
    opacity: 0.85;
}

.sv-thumb--active {
    border-color: var(--sv-yellow);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35);
}

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

/* ── Content blocks ── */
.sv-content-block {
    margin-bottom: 2.25rem;
}

.sv-block-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sv-black);
    margin: 0 0 0.875rem;
}

.sv-description {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--sv-muted);
    white-space: pre-line;
    margin: 0;
}

/* Option tag pills */
.sv-option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sv-option-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff;
    border: 1px solid var(--sv-border);
    color: var(--sv-black);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.sv-option-tag svg {
    color: var(--sv-yellow);
    flex-shrink: 0;
}

/* Aal Zekerheden */
.sv-zekerheden {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.04);
    border-radius: var(--sv-radius);
    padding: 1.25rem 1.5rem;
}

.sv-zekerheden-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sv-zekerheden-title svg {
    color: var(--sv-yellow);
    flex-shrink: 0;
}

.sv-zekerheden-intro {
    font-size: 0.875rem;
    color: var(--sv-muted);
    margin: 0 0 0.875rem;
}

.sv-zekerheden-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sv-zekerheden-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--sv-black);
}

.sv-zekerheden-list li svg {
    color: var(--sv-yellow);
    flex-shrink: 0;
}

.sv-zekerheden-note {
    font-size: 0.75rem;
    color: var(--sv-muted);
    margin: 0;
}

/* Specs table (full detail) */
.sv-specs-table {
    background: #fff;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sv-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--sv-border);
    font-size: 0.8125rem;
}

.sv-spec-row:nth-child(odd) {
    border-right: 1px solid var(--sv-border);
}

.sv-spec-row:nth-last-child(1),
.sv-spec-row:nth-last-child(2) {
    border-bottom: none;
}

.sv-spec-label {
    color: var(--sv-muted);
}

.sv-spec-value {
    font-weight: 700;
    color: var(--sv-black);
}

/* ── Sidebar ── */
.sv-sidebar {
    position: sticky;
    top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cards */
.sv-card {
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Contact card */

.sv-contact-location {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--sv-black);
    margin: 0 0 0.2rem;
}

.sv-contact-sub {
    font-size: 0.8125rem;
    color: var(--sv-muted);
    margin: 0 0 1rem;
}

.sv-contact-btns {
    display: flex;
    gap: 0.5rem;
}

.sv-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sv-black);
    background: var(--sv-bg);
    border: 1px solid var(--sv-border);
    border-radius: 0.625rem;
    padding: 0.5rem 0.875rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.sv-contact-btn:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

/* Details card */
.sv-card--details {
    padding: 1.5rem;
}

.sv-detail-header {
    margin-bottom: 0.75rem;
}

.sv-car-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--sv-black);
    line-height: 1.15;
    margin: 0;
}

.sv-car-subtitle {
    font-size: 1rem;
    color: var(--sv-muted);
    margin: 0.2rem 0 0;
    font-weight: 400;
}

/* Price */
.sv-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sv-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sv-black);
    line-height: 1;
}

.sv-price--sold {
    color: #DC2626;
}

/* Rijklaar badge */
.sv-rijklaar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sv-black);
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 0.625rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
}

.sv-rijklaar svg {
    color: var(--sv-yellow);
    flex-shrink: 0;
}

/* Specs grid (sidebar) */
.sv-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--sv-border);
    border-bottom: 1px solid var(--sv-border);
    margin-bottom: 1.25rem;
}

.sv-sg-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sv-sg-icon {
    width: 15px;
    height: 15px;
    color: #9CA3AF;
    flex-shrink: 0;
    margin-top: 1px;
}

.sv-sg-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
    line-height: 1.2;
}

.sv-sg-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sv-black);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CTA stack */
.sv-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, opacity 0.15s;

}

.sv-btn--primary {
    background: var(--sv-green);
    color: #fff;
    font-size: 1rem;
}

.sv-btn--primary:hover {
    background: var(--sv-green-d);
}

.sv-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.sv-btn--secondary {
    background: var(--sv-bg);
    color: var(--sv-black);
    border: 1px solid var(--sv-border);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 0.75rem;
}

.sv-btn--secondary:hover {
    background: #E5E7EB;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sv-main-grid {
        flex-direction: column;
    }

    .sv-left-col {
        width: 100%;
    }

    .sv-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .sv-specs-table {
        grid-template-columns: 1fr;
    }

    .sv-spec-row:nth-child(odd) {
        border-right: none;
    }

    .sv-spec-row:nth-last-child(2) {
        border-bottom: 1px solid var(--sv-border);
    }

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

    .sv-spec-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sv-car-title {
        font-size: 1.375rem;
    }

    .sv-price {
        font-size: 1.625rem;
    }
}