/* Dark theme for the whole site (Steven 10.11.2026). Off unless html[data-theme="dark"]. */
html[data-theme="dark"] {
    color-scheme: dark;
    --dark-text: #f1effa; --light-text: #a7a3b8; --white: #16142a; --light-bg: #0f0e1b; --lighter-bg: #121122; --border-light: #2c2946;
    --primary-bg: rgba(255, 255, 255, .08);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.35); --shadow-md: 0 6px 22px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.5); --shadow-xl: 0 22px 60px rgba(0,0,0,.55);
}
html[data-theme="dark"] body { background: #0f0e1b; color: #f1effa; }
html[data-theme="dark"] .logo-image { content: url('/uploads/logo/hyperlot-light.png'); }
html[data-theme="dark"] header, html[data-theme="dark"] header.scrolled { background: rgba(15, 14, 27, .95); }
html[data-theme="dark"] .mobile-menu-toggle span { background: #f1effa; }
html[data-theme="dark"] .btn-rent-now, html[data-theme="dark"] .btn-nav-signup, html[data-theme="dark"] .btn-book, html[data-theme="dark"] .filter-tab.active { color: #fff; }

/* Theme button */
.hl-nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 1px solid #e3e1ee; border-radius: 50%; background: transparent; color: #2c3e50; font-size: 17px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.theme-toggle:hover { background: rgba(21, 20, 28, .07); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle { border-color: #38345a; color: #ffd166; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
@media (min-width: 992px) { .hl-nav-right { order: 3; margin-left: 12px; } }

/* Surfaces with hard-coded white */
html[data-theme="dark"] :is(.car-card,.car-image-wrapper,.related-page-card,.page-link,.accordion-item,.accordion-button,.process-step-card,.header-stat,.rp-card,.car-details,.booking-widget,.hl-bar,.date-display,.form-control-custom,.form-control,.form-select,.filter-tab,.slider-nav-btn,.car-favorite,.search-widget,.delivery-option,.spec-card,.modal-content,.feature-card,.benefit-card,.testimonial-card,.content-card,.seo-grid-tabs .nav-link,.detail-section,.signin-section,.rp-tabs a) { background: #16142a !important; color: #f1effa; border-color: #2c2946 !important; }
html[data-theme="dark"] :is(.seo-footer-grid,.seo-cars,.seo-faq,.seo-intro,.seo-related,.seo-things-to-do,.page-header-simple,.car-detail-container,.cars-section,.bg-light,.bg-white,.features-section,.benefits-section,.process-section,.testimonials-section) { background: #0f0e1b !important; }
html[data-theme="dark"] .rp-how { background: #16142a; }
html[data-theme="dark"] .rp-tabs a.on { background: #f1effa !important; color: #15141c !important; }
html[data-theme="dark"] .rp-dark { background: #f1effa; color: #15141c !important; }
html[data-theme="dark"] .filter-tab.active, html[data-theme="dark"] .seo-grid-tabs .nav-link.active { background: var(--gradient-primary) !important; color: #fff !important; }
html[data-theme="dark"] .page-item.active .page-link { background: var(--primary-color) !important; color: #fff; }
html[data-theme="dark"] .hl-bar-price { background: #1f1c38; border-color: #38345a; }
html[data-theme="dark"] .hl-chips span, html[data-theme="dark"] .rp-card span { background: rgba(255, 255, 255, .12); color: #f1f1f3; }
html[data-theme="dark"] .related-page-card i { background: rgba(255, 255, 255, .12) !important; }

/* Text */
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.section-title,.car-title,.step-title,.rp-card h3,.rp-how h2,.rp-cars h2,.hl-dates-title,.hl-total,.hl-bar-price) { color: #f1effa; }
html[data-theme="dark"] :is(.seo-intro-text,.accordion-body,.section-subtitle,.text-muted,.rp-card p,.rp-how p,.rp-sub,.hl-spec,.hl-note,.car-specs,.car-spec,.form-label,label,p) { color: #b9b5ca !important; }
html[data-theme="dark"] :is(.seo-hero-subtitle,.rp-in p,.footer-description) { color: #e6e4ee !important; }
html[data-theme="dark"] .hero-slide-badge, html[data-theme="dark"] .rp-badge { background: #fff !important; color: #15141c !important; }
html[data-theme="dark"] .hero-slide-badge * { color: #15141c !important; }
/* car badge on a photo: dark glass in the dark theme (Steven 13.11) */
html[data-theme="dark"] .car-badge-delivery, html[data-theme="dark"] .hh-ph em { background: rgba(22,20,42,.86) !important; color: #f1effa !important; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 4px 12px rgba(0,0,0,.35) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-theme="dark"] .car-badge-delivery * { color: #f1f1f3 !important; }
/* search summary on /cars */
html[data-theme="dark"] .search-info-bar { background: #16142a !important; border-color: #2c2946 !important; box-shadow: none !important; }
html[data-theme="dark"] .info-badge { background: rgba(255, 255, 255, .1) !important; color: #f1f1f3 !important; }
html[data-theme="dark"] .hl-chips span { color: #f1f1f3 !important; }
html[data-theme="dark"] .accordion-button::after { filter: invert(1); }
html[data-theme="dark"] .accordion-button:not(.collapsed) { background: #1f1c38 !important; color: #fff; box-shadow: none; }
html[data-theme="dark"] .btn-close { filter: invert(1); }
html[data-theme="dark"] .form-control-custom::placeholder, html[data-theme="dark"] .form-control::placeholder { color: #8f8ba3; }

/* Checkout window and calendar */
html[data-theme="dark"] :is(.checkout-modal-content,.checkout-content,.protection-plan,.booking-summary,.price-summary,.summary-box,.deposit-agreement,.idv-gate) { background: #16142a !important; color: #f1effa; border-color: #2c2946 !important; }
html[data-theme="dark"] .protection-plan.selected, html[data-theme="dark"] .delivery-option.selected { background: rgba(255, 255, 255, .1) !important; border-color: var(--primary-color) !important; }
html[data-theme="dark"] .flatpickr-calendar { background: #1a1830; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
html[data-theme="dark"] .flatpickr-day, html[data-theme="dark"] .flatpickr-weekday, html[data-theme="dark"] .flatpickr-current-month, html[data-theme="dark"] .flatpickr-current-month input, html[data-theme="dark"] .flatpickr-monthDropdown-months { color: #f1effa !important; fill: #f1effa; }
html[data-theme="dark"] .flatpickr-prev-month svg, html[data-theme="dark"] .flatpickr-next-month svg { fill: #f1effa !important; }
html[data-theme="dark"] .flatpickr-day.flatpickr-disabled { color: #5b5870 !important; }
html[data-theme="dark"] .flatpickr-day:hover { background: #2c2946; }

/* Landing pages (PHL, minivan, SUV) */
html[data-theme="dark"] .ll { --ink:#f1effa; --mut:#b9b5ca; --line:#2c2946; --soft:#16142a; background:#0f0e1b; color:#f1effa; }
html[data-theme="dark"] .ll-chip, html[data-theme="dark"] .ll-all, html[data-theme="dark"] .ll-n { background:#16142a !important; color:#f1effa !important; border-color:#2c2946 !important; }
html[data-theme="dark"] .ll-chip.on { background:#f1effa !important; color:#15141c !important; }
html[data-theme="dark"] .ll-tag, html[data-theme="dark"] .ll-go { color:#2b1c00 !important; }

/* App badges in the footer keep their own look */
html[data-theme="dark"] .app-store-button, html[data-theme="dark"] .google-play-button { background: #1f1c38 !important; }
html[data-theme="dark"] .app-main-text { color: #fff !important; }

/* One look across the site (Steven 10.11.2026): black actions on light, as on the home page. */
html:not([data-theme="dark"]) :is(.btn-rent-now,.btn-book,.hl-bar-book,.btn-nav-signup,.btn-hero-primary,.filter-tab.active,.seo-grid-tabs .nav-link.active,.page-item.active .page-link,.btn-cta-primary,.btn-search,.btn-search-main,.btn-view-car) { background: #15141c !important; border-color: #15141c !important; color: #fff !important; box-shadow: none !important; }
html:not([data-theme="dark"]) .btn-nav-login { color: #15141c; border-color: #15141c; }
html:not([data-theme="dark"]) .related-page-card i { color: #15141c !important; background: #f1f0ec !important; }
html:not([data-theme="dark"]) .ll { --deep: #15141c; --p: #15141c; --p2: #15141c; --soft: #f4f3ef; --line: #e7e5df; }
/* light theme: no purple text or tiles on landings (Steven 14.11), like the dark theme */
html:not([data-theme="dark"]) .ll-chip:hover, html:not([data-theme="dark"]) .ll-lnk a:hover { background: #e9e7e1; }
html:not([data-theme="dark"]) .ll-go { background: #fff; color: #15141c !important; }
html:not([data-theme="dark"]) .ll-chip.on { background: #15141c !important; border-color: #15141c !important; color: #fff !important; }

/* Catalog header in the same style as the other heroes */
section.page-header-simple { background: linear-gradient(180deg, rgba(12,14,22,.35), rgba(12,14,22,.75)), url('/images/seo-hero-road.jpg') center/cover !important; }
section.page-header-simple::before, section.page-header-simple::after { display: none; }
.page-header-simple .page-title, .page-header-simple .page-title span { color: #fff !important; background: none !important; -webkit-text-fill-color: #fff !important; }
.page-header-simple .page-title-icon { display: none; }
.page-header-simple .page-subtitle, .page-header-simple .page-subtitle i { color: #e6e4ee !important; }
.header-stat { border-radius: 14px; box-shadow: none; }
.header-stat i { background: #f2f2f4; color: #15141c; }
html[data-theme="dark"] section.page-header-simple { background: linear-gradient(180deg, rgba(12,14,22,.45), rgba(12,14,22,.85)), url('/images/seo-hero-road.jpg') center/cover !important; }
html[data-theme="dark"] .header-stat i { background: rgba(255, 255, 255, .12); color: #f1f1f3; }

/* Same cards everywhere */
.car-card { border-radius: 16px; border: 1px solid var(--border-light); box-shadow: none; }
.car-card:hover { box-shadow: var(--shadow-md); }
.filter-tab, .seo-grid-tabs .nav-link { border-radius: 20px; }
html:not([data-theme="dark"]) .btn-search-main, html:not([data-theme="dark"]) .btn-search-main::before, html:not([data-theme="dark"]) .btn-search-main:hover { background: #15141c !important; background-image: none !important; }
/* car page "Read more" fade: into the dark card, not white (Steven 13.11) */
html[data-theme="dark"] .hl-more:not(.open):after { background: linear-gradient(rgba(22,20,42,0), #16142a) !important; }
html[data-theme="dark"] .seo-footer-grid { border-top-color: #2c2946 !important; }
/* legal pages (privacy, terms) in the dark theme */
html[data-theme="dark"] .legal-doc { background: #16142a !important; color: #d9d6e6 !important; box-shadow: none !important; border: 1px solid #2c2946; }
html[data-theme="dark"] .legal-doc :is(h1,h2,h3,strong,b,th) { color: #f1effa !important; }
html[data-theme="dark"] .legal-doc :is(p,li,td) { color: #d9d6e6 !important; }
html[data-theme="dark"] .legal-doc .legal-meta { color: #a7a3b8 !important; }
html[data-theme="dark"] .legal-doc h2 { border-top-color: #2c2946 !important; }
html[data-theme="dark"] .legal-doc :is(th,td) { border-color: #2c2946 !important; }
html[data-theme="dark"] .legal-doc th { background: #1f1c35 !important; }
html[data-theme="dark"] .legal-doc a { color: #f1f1f3 !important; }
/* car page: one price colour top and bottom (Steven 13.11) */
html[data-theme="dark"] .hl-price, html[data-theme="dark"] .hl-bar-price { color: #b197fc !important; }
html[data-theme="dark"] .hl-bar-price span, html[data-theme="dark"] .hl-price span { color: #a7a3b8 !important; }
/* calendar: past and booked days without white discs */
html[data-theme="dark"] .flatpickr-day.flatpickr-disabled, html[data-theme="dark"] .flatpickr-day.prevMonthDay, html[data-theme="dark"] .flatpickr-day.nextMonthDay { background: transparent !important; border-color: transparent !important; color: #5b5870 !important; }
html[data-theme="dark"] .flatpickr-day.booked-date { background: rgba(220,38,38,.16) !important; color: #fca5a5 !important; border-color: transparent !important; }
html[data-theme="dark"] .flatpickr-calendar.arrowTop:after { border-bottom-color: #1a1830; }
/* checkout: summary and deposit blocks */
html[data-theme="dark"] .checkout-body .detail-section { background: transparent !important; }
html[data-theme="dark"] .checkout-summary, html[data-theme="dark"] .deposit-authorization, html[data-theme="dark"] .checkout-body .detail-section[style*="light-gray"] { background: #1f1c35 !important; border-color: #2c2946 !important; color: #d9d6e6 !important; }
html[data-theme="dark"] .checkout-summary :is(h4,.summary-total,.summary-total span), html[data-theme="dark"] .deposit-authorization strong { color: #f1effa !important; }
html[data-theme="dark"] .checkout-summary .summary-row span, html[data-theme="dark"] .deposit-authorization label, html[data-theme="dark"] .checkout-summary div { color: #d9d6e6; }
html[data-theme="dark"] .checkout-summary .summary-row { border-color: #2c2946 !important; }
html[data-theme="dark"] .deposit-authorization span { color: #d9d6e6 !important; }

/* ===== Light theme: black accents instead of purple (Steven 13.11) ===== */
html:not([data-theme="dark"]) { --primary-color: #15141c; --primary-dark: #000; --primary-light: #3a3846; --primary-bg: rgba(21,20,28,.05); --gradient-primary: linear-gradient(135deg, #15141c 0%, #2d2b38 100%); }
html:not([data-theme="dark"]) .hh-p { color: #15141c; }
html:not([data-theme="dark"]) .hh-st i { background: #15141c; color: #fff; }
html:not([data-theme="dark"]) .hh-f:focus-within { border-color: #15141c; }
html:not([data-theme="dark"]) .chat-toggle { background: #15141c !important; box-shadow: 0 8px 24px rgba(21,20,28,.3) !important; }
html:not([data-theme="dark"]) .hl-price, html:not([data-theme="dark"]) .hl-bar-price { color: #15141c !important; }
html:not([data-theme="dark"]) .hl-bar-price { background: #f4f3f0 !important; border-color: #e1dfda !important; }
html:not([data-theme="dark"]) .hl-chips span { background: #f1f0ec !important; color: #15141c !important; }
html:not([data-theme="dark"]) .hl-bar-book { background: #15141c !important; }
html:not([data-theme="dark"]) .delivery-option.selected, html:not([data-theme="dark"]) .delivery-option:has(input:checked) { border-color: #15141c !important; background: #f6f5f2 !important; box-shadow: none !important; }
html:not([data-theme="dark"]) .delivery-option input[type="radio"], html:not([data-theme="dark"]) .checkout-modal input[type="radio"], html:not([data-theme="dark"]) .checkout-modal input[type="checkbox"] { accent-color: #15141c !important; }
html:not([data-theme="dark"]) .checkout-header { background: #15141c !important; }
html:not([data-theme="dark"]) .checkout-modal :is(.option-card,.mileage-option,.protection-option,.extra-option).selected,
html:not([data-theme="dark"]) .checkout-modal label:has(input:checked) { border-color: #15141c !important; background: #f6f5f2 !important; }
html:not([data-theme="dark"]) .idv-gate { border-color: #d6d3cc !important; background: #f6f5f2 !important; }
html:not([data-theme="dark"]) .idv-gate .btn-idv, html:not([data-theme="dark"]) .idv-gate-icon { background: #15141c !important; }
html:not([data-theme="dark"]) .car-detail-container :is(.feature-icon,.policy-icon,.detail-icon) i, html:not([data-theme="dark"]) .detail-section i.fa-shield-alt { color: #15141c; }
