/* Vos Motor Overzicht - Frontend stijl */

.vosmo-wrapper,
.vosmo-detail {
    --vosmo-accent: #d40000;
    --vosmo-accent-dark: #a30000;
    --vosmo-text: #1a1a1a;
    --vosmo-muted: #6b6b6b;
    --vosmo-bg: #ffffff;
    --vosmo-page-bg: #f5f5f5;
    --vosmo-border: #e5e5e5;
    --vosmo-header-bg: #0d0d0d;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--vosmo-text);
}

.vosmo-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* OVERZICHT — zelfde taal als detailpagina (witte panelen, randen, typografie) */
.vosmo-overview-panel {
    background: #fff;
    border: 1px solid var(--vosmo-border);
    border-radius: 12px;
    padding: 24px 28px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.vosmo-overview-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--vosmo-text);
    line-height: 1.2;
}
.vosmo-filters {
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    align-items: start;
}
.vosmo-filter-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.vosmo-filter-field-label {
    display: flex;
    align-items: flex-end;
    min-height: 2.64em;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--vosmo-text);
}
.vosmo-filter-search input,
.vosmo-filter-select select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--vosmo-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--vosmo-text);
    box-sizing: border-box;
    min-height: 44px;
    transition: border-color 0.15s ease;
}
.vosmo-filter-search input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
.vosmo-filter-search input::-webkit-search-decoration,
.vosmo-filter-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.vosmo-filter-search input:focus,
.vosmo-filter-select select:focus {
    outline: none;
    border-color: var(--vosmo-accent);
}
.vosmo-filter-select select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.vosmo-grid {
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.vosmo-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--vosmo-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vosmo-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
.vosmo-card__link:focus-visible {
    outline: 2px solid var(--vosmo-accent);
    outline-offset: 3px;
}
.vosmo-card-image,
.vosmo-card-body {
    position: relative;
    z-index: 1;
}
.vosmo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.vosmo-card-image {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid var(--vosmo-border);
}
.vosmo-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.vosmo-card-image-placeholder { color: var(--vosmo-muted); font-size: 0.9rem; }
.vosmo-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vosmo-card-brand {
    font-size: 0.8rem;
    color: var(--vosmo-muted);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 2px;
}
.vosmo-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--vosmo-text);
    line-height: 1.15;
}
.vosmo-card-class { font-size: 0.92rem; color: var(--vosmo-text); margin-top: 2px; }
.vosmo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--vosmo-muted);
}
.vosmo-card-meta-item { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35em; }
.vosmo-card-meta-label { font-weight: 600; color: var(--vosmo-text); }
.vosmo-card .vosmo-detail-pricebox {
    margin-top: 14px;
    margin-bottom: 0;
    padding: 12px 14px;
    gap: 12px;
}
.vosmo-card .vosmo-detail-price-amount { font-size: 1.2rem; }
.vosmo-card .vosmo-detail-price-monthly { font-size: 1.05rem; }
.vosmo-card .vosmo-detail-finance-sub { font-size: 0.72rem; }
.vosmo-card-disclaimer {
    font-size: 0.72rem;
    color: var(--vosmo-muted);
    margin: 8px 0 0;
    line-height: 1.4;
}
.vosmo-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--vosmo-muted);
    background: var(--vosmo-page-bg);
    border-radius: 12px;
    border: 1px solid var(--vosmo-border);
}
.vosmo-wrapper.is-loading .vosmo-grid {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* DETAILPAGINA */
.vosmo-detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 60px;
}
.vosmo-detail-crumb {
    color: var(--vosmo-muted);
    font-size: 0.9rem;
    padding: 20px 0;
}
.vosmo-detail-crumb a { color: var(--vosmo-muted); text-decoration: none; }
.vosmo-detail-crumb a:hover { color: var(--vosmo-accent); }
.vosmo-crumb-sep { margin: 0 8px; color: #ccc; }

.vosmo-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.vosmo-detail-photo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 32px;
}
.vosmo-detail-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vosmo-detail-photo-placeholder { color: var(--vosmo-muted); }

.vosmo-detail-location {
    margin-bottom: 28px;
}
.vosmo-detail-location-inner {
    background: var(--vosmo-page-bg);
    border: 1px solid var(--vosmo-border);
    border-radius: 12px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.vosmo-detail-location-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vosmo-text);
}
.vosmo-detail-location-icon {
    display: flex;
    color: var(--vosmo-text);
    flex-shrink: 0;
}
.vosmo-detail-location-address {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--vosmo-text);
}
.vosmo-detail-location-linkwrap { margin: 0 0 8px; }
.vosmo-detail-location-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vosmo-accent);
    text-decoration: none;
}
.vosmo-detail-location-link:hover { text-decoration: underline; }
.vosmo-detail-location-map {
    margin-top: 4px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--vosmo-border);
    background: #e8e8e8;
}
.vosmo-detail-location-map iframe {
    display: block;
    width: 100%;
    height: 150px !important;
    vertical-align: top;
}

.vosmo-detail-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 24px 0 16px;
    color: var(--vosmo-text);
}
.vosmo-detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.vosmo-spec {
    background: #fff;
    border: 1px solid var(--vosmo-border);
    border-radius: 8px;
    padding: 14px 18px;
}
.vosmo-spec-label {
    font-size: 0.8rem;
    color: var(--vosmo-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vosmo-spec-value { font-size: 1.05rem; font-weight: 600; color: var(--vosmo-text); }
.vosmo-detail-description {
    background: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid var(--vosmo-border);
    line-height: 1.6;
}

.vosmo-detail-right { position: sticky; top: 20px; }

.vosmo-detail-card {
    background: #fff;
    border: 1px solid var(--vosmo-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.vosmo-detail-brand {
    font-size: 0.8rem;
    color: var(--vosmo-muted);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 6px;
}
.vosmo-detail-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.15;
}
.vosmo-detail-pricebox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border: 1px solid var(--vosmo-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.vosmo-detail-price-label {
    font-size: 0.8rem;
    color: var(--vosmo-muted);
    margin-bottom: 4px;
}
.vosmo-info-asterisk { color: var(--vosmo-accent); }
.vosmo-detail-price-amount { font-size: 1.5rem; font-weight: 800; color: var(--vosmo-text); }
.vosmo-detail-price-monthly { font-size: 1.2rem; font-weight: 700; color: var(--vosmo-accent); }
.vosmo-detail-per { font-size: 0.85rem; color: var(--vosmo-muted); font-weight: 500; }
.vosmo-detail-finance-sub { font-size: 0.78rem; color: var(--vosmo-muted); margin-top: 2px; }

.vosmo-btn {
    display: block;
    width: 100%;
    border: 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, transform 0.1s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.vosmo-btn:active { transform: translateY(1px); }
.vosmo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vosmo-btn-finance {
    background: #fff;
    border: 1px solid var(--vosmo-text);
    color: var(--vosmo-text);
    margin-bottom: 14px;
}
.vosmo-btn-finance:hover { background: #f7f7f7; }
.vosmo-detail-actions { display: grid; gap: 10px; }
.vosmo-btn-primary { background: var(--vosmo-text); color: #fff; }
.vosmo-btn-primary:hover { background: #000; }
.vosmo-btn-secondary { background: #fff; border: 1px solid var(--vosmo-border); color: var(--vosmo-text); }
.vosmo-btn-secondary:hover { border-color: var(--vosmo-text); }
.vosmo-detail-disclaimer { font-size: 0.75rem; color: var(--vosmo-muted); margin: 14px 0 0; line-height: 1.5; }

.vosmo-detail-trust {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--vosmo-border);
    border-radius: 12px;
    padding: 20px 24px;
}
.vosmo-detail-trust h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--vosmo-accent);
}
.vosmo-detail-trust ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.vosmo-detail-trust li { margin-bottom: 6px; }

/* MODAL */
.vosmo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vosmo-modal[hidden] { display: none; }
.vosmo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    cursor: pointer;
}
.vosmo-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.vosmo-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--vosmo-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.vosmo-modal-close:hover { background: #f0f0f0; color: var(--vosmo-text); }
.vosmo-modal-panel h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
}
.vosmo-modal-sub { color: var(--vosmo-muted); margin: 0 0 24px; font-size: 0.95rem; }
.vosmo-modal-disclaimer {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--vosmo-muted);
    line-height: 1.5;
    padding-top: 16px;
    border-top: 1px solid var(--vosmo-border);
}

.vosmo-tabs {
    display: flex;
    gap: 4px;
    margin: 20px 0;
    background: var(--vosmo-page-bg);
    padding: 4px;
    border-radius: 8px;
}
.vosmo-tab {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--vosmo-muted);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}
.vosmo-tab.is-active {
    background: #fff;
    color: var(--vosmo-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vosmo-form-row { margin-bottom: 16px; }
.vosmo-form-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vosmo-form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.vosmo-form-hint {
    font-weight: 400;
    color: var(--vosmo-muted);
    font-size: 0.8rem;
    margin-left: 6px;
}
.vosmo-required { color: var(--vosmo-accent); }

.vosmo-form-row input[type=text],
.vosmo-form-row input[type=email],
.vosmo-form-row input[type=tel],
.vosmo-form-row input[type=number],
.vosmo-form-row input[type=date],
.vosmo-form-row select,
.vosmo-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--vosmo-border);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}
.vosmo-form-row input:focus,
.vosmo-form-row select:focus,
.vosmo-form-row textarea:focus {
    outline: none;
    border-color: var(--vosmo-accent);
}

.vosmo-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.4;
    cursor: pointer;
}
.vosmo-form-checkbox input { margin-top: 3px; }

.vosmo-form-section {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vosmo-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 20px 0 12px;
    border-bottom: 1px solid var(--vosmo-border);
    padding-bottom: 8px;
}

.vosmo-form-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}
.vosmo-form-feedback.is-success {
    display: block;
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}
.vosmo-form-feedback.is-error {
    display: block;
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

/* Calculator result */
.vosmo-calc-result {
    background: var(--vosmo-page-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.vosmo-calc-monthly {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vosmo-border);
    margin-bottom: 14px;
}
.vosmo-calc-monthly-label { font-size: 0.95rem; font-weight: 600; }
.vosmo-calc-monthly-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--vosmo-accent);
}
.vosmo-calc-details { display: grid; gap: 6px; font-size: 0.88rem; }
.vosmo-calc-details > div { display: flex; justify-content: space-between; }
.vosmo-calc-details span:first-child { color: var(--vosmo-muted); }
.vosmo-calc-details span:last-child { font-weight: 600; }
.vosmo-calc-provisie-row { display: none !important; }
.vosmo-calc-result.is-zakelijk .vosmo-calc-provisie-row { display: flex !important; }
.vosmo-calc-error {
    color: var(--vosmo-accent);
    font-size: 0.85rem;
    margin-top: 10px;
    display: none;
}
.vosmo-calc-error.is-visible { display: block; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .vosmo-grid { grid-template-columns: repeat(3, 1fr); }
    .vosmo-detail-grid { grid-template-columns: 1fr; }
    .vosmo-detail-right { position: static; }
}
@media (max-width: 768px) {
    .vosmo-filters { grid-template-columns: 1fr; }
    .vosmo-grid { grid-template-columns: repeat(2, 1fr); }
    .vosmo-overview-panel {
        padding-left: 18px;
        padding-right: 18px;
    }
    .vosmo-detail-specs { grid-template-columns: 1fr; }
    .vosmo-form-row-double { grid-template-columns: 1fr; }
    .vosmo-modal-panel { padding: 24px 20px; }
    .vosmo-detail-pricebox { grid-template-columns: 1fr; }
    .vosmo-card .vosmo-detail-pricebox { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .vosmo-grid { grid-template-columns: 1fr; }
    .vosmo-detail-title { font-size: 1.4rem; }
}
