html[data-theme="dark"] {
    --client-bg: #000;
    --client-surface: #0b0b0b;
    --bg: #000;
    --bg-muted: #080808;
    --surface: #0b0b0b;
    --surface-soft: #121212;
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer { background: #000; }
html[data-theme="dark"] .site-header { border-color: #242424; }
html[data-theme="dark"] .site-header .jtf-theme-toggle,
html[data-theme="dark"] .site-header .nav-menu { background: #000; }
html[data-theme="dark"] .site-header .jtf-theme-toggle { background: #111; }

html[data-theme="dark"] body.route-home .jtf-orbit-hero,
html[data-theme="dark"] body.route-home .jtf-featured,
html[data-theme="dark"] body.route-home .jtf-available { background: #000; }
html[data-theme="dark"] body.route-home .jtf-journey { background-color: #000; }
html[data-theme="dark"] body.route-home .jtf-story { background: #101010; }

html[data-theme="dark"] body.route-vehicles,
html[data-theme="dark"] body.route-vehicle_show {
    --inv-bg: #000;
    --inv-surface: #101010;
    --inv-line: #303030;
}
html[data-theme="dark"] body.route-vehicles .urban-inventory-hero { background: #000; }
html[data-theme="dark"] body.route-vehicles .urban-inventory-hero::after {
    background: linear-gradient(90deg, #000 0%, #000 42%, #000e 52%, #0000 76%);
}

html[data-theme="dark"] body.route-about .jtf-about-hero,
html[data-theme="dark"] body.route-about .jtf-about-services,
html[data-theme="dark"] body.route-about .jtf-about-faq,
html[data-theme="dark"] body.route-about .jtf-about-end,
html[data-theme="dark"] body.route-contact .jtf-contact-main,
html[data-theme="dark"] body.route-contact .jtf-contact-map-section { background: #000; }
html[data-theme="dark"] body.route-about .jtf-about-conversation,
html[data-theme="dark"] body.route-about .jtf-about-visit,
html[data-theme="dark"] body.route-contact .jtf-contact-intro { background: #101010; }
html[data-theme="dark"] body.route-contact .jtf-contact-map .map-placeholder { background: #101010; }

/* Shared footer: it follows the selected site theme on every route. */
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer .footer-bottom {
    background: #fff;
    color: #192026;
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer .footer-bottom {
    border-top-color: #dce2e5;
}

html[data-theme="light"] .site-footer .footer-bottom__inner,
html[data-theme="light"] .site-footer .footer-bottom__link,
html[data-theme="light"] .site-footer .footer-bottom__button {
    color: #192026;
}

html[data-theme="light"] .site-footer .footer-bottom__link:hover,
html[data-theme="light"] .site-footer .footer-bottom__button:hover {
    color: #8A6412;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer .footer-bottom {
    background: #000;
    color: #fff;
}

html[data-theme="dark"] .site-footer .footer-bottom__inner,
html[data-theme="dark"] .site-footer .footer-bottom__link,
html[data-theme="dark"] .site-footer .footer-bottom__button {
    color: #fff;
}

html[data-theme="dark"] .site-footer .footer-bottom__link:hover,
html[data-theme="dark"] .site-footer .footer-bottom__button:hover {
    color: #D4AF62;
}

.site-footer .footer-hours__line,
.site-footer .footer-hours__line:first-child {
    font-weight: 400;
}

/* Final theme overrides: black canvas, subtly raised near-black cards. */
html[data-theme="dark"] body.route-home :is(.jtf-featured, .jtf-available, .jtf-team, .jtf-visit),
html[data-theme="dark"] body.route-about .jtf-about-team { background: #000; }
html[data-theme="dark"] body.route-home :is(.jtf-featured, .jtf-available) .vehicle-card.urban-vehicle-card,
html[data-theme="dark"] body.route-home .jtf-team-card,
html[data-theme="dark"] body.route-about .jtf-about-team__card { background: #080808; border-color: #262626; }
html[data-theme="dark"] body.route-home .jtf-team-card__body { background: transparent; }
html[data-theme="dark"] body.route-home .jtf-visit__image::after {
    background: linear-gradient(90deg,#000 0%,#000 35%,rgb(0 0 0 / 96%) 42%,rgb(0 0 0 / 65%) 48%,rgb(0 0 0 / 12%) 56%,transparent 64%);
}
html[dir="rtl"][data-theme="dark"] body.route-home .jtf-visit__image::after {
    background: linear-gradient(270deg,#000 0%,#000 35%,rgb(0 0 0 / 96%) 42%,rgb(0 0 0 / 65%) 48%,rgb(0 0 0 / 12%) 56%,transparent 64%);
}
@media (min-width: 761px) {
    html[data-theme="dark"] body.route-home .jtf-visit__image img { filter:none; }
}

html[data-theme="dark"] body:is(.route-vehicles, .route-vehicle_show) {
    --inv-bg: #000;
    --inv-surface: #080808;
    --inv-line: #303030;
    background: #000;
}
html[data-theme="dark"] body.route-vehicles .urban-filter-console,
html[data-theme="dark"] body:is(.route-vehicles, .route-vehicle_show) .vehicle-card { background: #080808; }
html[data-theme="dark"] body.route-vehicles .urban-filter-console__actions .btn { background: #101010; }
html[data-theme="dark"] body.route-vehicles .urban-filter-console__actions .btn:hover { background: #6F4F0E; }
html[data-theme="dark"] body.route-vehicle_show :is(.urban-detail__summary, .urban-detail-panel--cta) { background: #000; }
html[data-theme="dark"] body.route-vehicle_show .urban-detail-panel--specs { background: #000; border-color: #303030; box-shadow: none; }

html[data-theme="dark"] body.route-workshop :is(.workshop-end__benefits-wrap, .workshop-end__benefits),
html[data-theme="dark"] body.route-vehicle_sale .purchase-signals,
html[data-theme="dark"] body.route-vehicle_mediation .med-benefits,
html[data-theme="dark"] body.route-vehicle_search .vsearch-benefits { background: #000; border-color: #262626; }
html[data-theme="dark"] body.route-vehicle_sale .purchase-signals,
html[data-theme="dark"] body.route-workshop .workshop-end__benefits-wrap { border-top:0; }

/* Contact photography meets the black canvas at the left and bottom edges. */
html[data-theme="dark"] body.route-contact .jtf-contact-intro { background:#000; }
html[data-theme="dark"] body.route-contact .jtf-contact-intro::after {
    background:linear-gradient(0deg,#000 0%,transparent 25%),linear-gradient(90deg,#000 0%,rgb(0 0 0 / 96%) 32%,rgb(0 0 0 / 42%) 54%,transparent 74%);
}
html[dir="rtl"][data-theme="dark"] body.route-contact .jtf-contact-intro::after {
    background:linear-gradient(0deg,#000 0%,transparent 25%),linear-gradient(270deg,#000 0%,rgb(0 0 0 / 96%) 32%,rgb(0 0 0 / 42%) 54%,transparent 74%);
}
@media(max-width:700px) {
    html[data-theme="dark"] body.route-contact .jtf-contact-intro::after,
    html[dir="rtl"][data-theme="dark"] body.route-contact .jtf-contact-intro::after {
        background:linear-gradient(180deg,#000 0%,#000 52%,rgb(0 0 0 / 70%) 72%,rgb(0 0 0 / 20%) 86%,#000 100%);
    }
}

html[data-theme="dark"] body.route-vehicle_search .vsearch-hero::before {
    background: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 98%) 20%, rgb(0 0 0 / 90%) 34%, rgb(0 0 0 / 48%) 59%, rgb(0 0 0 / 20%) 100%);
}
html[dir="rtl"][data-theme="dark"] body.route-vehicle_search .vsearch-hero::before {
    background: linear-gradient(270deg, #000 0%, rgb(0 0 0 / 98%) 20%, rgb(0 0 0 / 90%) 34%, rgb(0 0 0 / 48%) 59%, rgb(0 0 0 / 20%) 100%);
}
@media (max-width: 760px) {
    html[data-theme="dark"] body.route-home .jtf-visit__image::after,
    html[dir="rtl"][data-theme="dark"] body.route-home .jtf-visit__image::after {
        background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 94%) 16%, rgb(0 0 0 / 52%) 50%, rgb(0 0 0 / 82%) 100%);
    }
    html[data-theme="dark"] body.route-vehicle_search .vsearch-hero::before,
    html[dir="rtl"][data-theme="dark"] body.route-vehicle_search .vsearch-hero::before {
        background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 95%) 24%, rgb(0 0 0 / 88%) 43%, rgb(0 0 0 / 70%) 70%, rgb(0 0 0 / 48%) 100%);
    }
}
