/* AUTO 001 Brno – dark mode, CZ/EN, all site pages.
   Keep a single overlay rather than changing the two production Bootstrap bundles. */
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #131922;
  --bs-body-bg-rgb: 19, 25, 34;
  --bs-body-color: #e8edf4;
  --bs-body-color-rgb: 232, 237, 244;
  --bs-emphasis-color: #f7fafc;
  --bs-emphasis-color-rgb: 247, 250, 252;
  --bs-secondary-bg: #242f3d;
  --bs-secondary-bg-rgb: 36, 47, 61;
  --bs-tertiary-bg: #1c2531;
  --bs-tertiary-bg-rgb: 28, 37, 49;
  --bs-secondary-color: #b4c0ce;
  --bs-tertiary-color: #9eafc1;
  --bs-border-color: #3c4b5e;
  --bs-border-color-translucent: rgba(153, 175, 199, .22);
  --bs-link-color: #91c6ff;
  --bs-link-color-rgb: 145, 198, 255;
  --bs-link-hover-color: #c3e1ff;
  --bs-link-hover-color-rgb: 195, 225, 255;
  --bs-light-rgb: 38, 50, 65;
  --bs-dark-rgb: 23, 30, 40;
}
html[data-bs-theme="dark"] body {background:#131922; color:var(--bs-body-color);}
html[data-bs-theme="dark"] .navbar,
html[data-bs-theme="dark"] .offcanvas {background-color:#1b2430 !important;}
html[data-bs-theme="dark"] .navbar {border-bottom-color:#344153 !important;}
html[data-bs-theme="dark"] .navbar-brand,
html[data-bs-theme="dark"] .navbar-nav .nav-link {color:#e8edf4;}
html[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
html[data-bs-theme="dark"] .navbar-nav .nav-link:focus,
html[data-bs-theme="dark"] .navbar-nav .nav-link.active {color:#ffd467;}
html[data-bs-theme="dark"] .btn-outline-dark {
  --bs-btn-color:#e3eaf2;
  --bs-btn-border-color:#8193a8;
  --bs-btn-hover-color:#151b24;
  --bs-btn-hover-bg:#dce5ef;
  --bs-btn-hover-border-color:#dce5ef;
  --bs-btn-active-color:#151b24;
  --bs-btn-active-bg:#dce5ef;
  --bs-btn-active-border-color:#dce5ef;
  --bs-btn-disabled-color:#9aaaba;
  --bs-btn-disabled-border-color:#576679;
}
html[data-bs-theme="dark"] .btn-dark {
  --bs-btn-color:#fff;
  --bs-btn-bg:#354256;
  --bs-btn-border-color:#596b82;
  --bs-btn-hover-bg:#475d75;
  --bs-btn-hover-border-color:#657e9b;
}
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light {background-color:#202a37 !important;}
html[data-bs-theme="dark"] .text-dark {color:#e9eff6 !important;}
html[data-bs-theme="dark"] .text-bg-light {background-color:#2a3747 !important;color:#f4f7fb !important;}
html[data-bs-theme="dark"] .bg-body-tertiary {background-color:#1d2633 !important;}
html[data-bs-theme="dark"] .text-muted {color:#b4c0ce !important;}
html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-top {border-color:#3c4b5e !important;}
html[data-bs-theme="dark"] .border-secondary {border-color:#455569 !important;}
html[data-bs-theme="dark"] .card {--bs-card-bg:#1e2835;--bs-card-color:#e8edf4;--bs-card-border-color:#405168;}
html[data-bs-theme="dark"] .card-header.bg-success {
  background:#23553f !important;
  color:#effcf5 !important;
  text-align:center;
  padding-left:1rem;
  padding-right:1rem;
}
html[data-bs-theme="dark"] .card-header.bg-success > * {
  width:100%;
  text-align:center;
}

html[data-bs-theme="dark"] .card-footer.bg-white {background-color:#1d2633 !important;}
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text {background-color:#16202b;color:#e8edf4;border-color:#48596c;}
html[data-bs-theme="dark"] .form-control::placeholder {color:#a2b1c1;opacity:1;}
html[data-bs-theme="dark"] .table-light {
  --bs-table-bg:#283443;
  --bs-table-color:#e8edf4;
  --bs-table-border-color:#4b5d72;
  --bs-table-striped-bg:#293747;
  --bs-table-active-bg:#374659;
  --bs-table-hover-bg:#344457;
}
html[data-bs-theme="dark"] .table {--bs-table-border-color:#435268;}
html[data-bs-theme="dark"] .home-hero-benefits .badge {
  background-color:#2c394a !important;
  color:#f5f8fc !important;
  border:1px solid #53667d;
  font-size:.82rem;
  font-weight:600;
}
/* Vehicle photos are the only deliberately light surfaces: original photos have white studio backdrops. */
html[data-bs-theme="dark"] header .ratio:has(img),
html[data-bs-theme="dark"] .a001-home-category-card .ratio:has(img),
html[data-bs-theme="dark"] .auto001-category-car-imgbox,
html[data-bs-theme="dark"] .auto001-car-detail-main-imgbox,
html[data-bs-theme="dark"] .auto001-similar-car-imgbox,
html[data-bs-theme="dark"] .auto001-price-imgbox,
html[data-bs-theme="dark"] .auto001-price-imgbox-mobile,
html[data-bs-theme="dark"] .auto001-car-thumbs,
html[data-bs-theme="dark"] .auto001-car-thumb {background:#f5f7f9 !important;}
/* Preserve readability of the thumbnail gallery controls on the light photo surface. */
html[data-bs-theme="dark"] .auto001-car-thumb {color:#18202b;}
html[data-bs-theme="dark"] .home-featured-videos .card-header {min-height:2.65rem;display:flex;align-items:center;justify-content:center;}
html[data-bs-theme="dark"] .home-featured-videos .card-body {padding:.85rem !important;}
html[data-bs-theme="dark"] .home-featured-videos .card-body .fw-semibold {color:#d8e6f4;}
html[data-bs-theme="dark"] .home-featured-videos .card-footer .small.fw-semibold {
  text-align:center;
  width:100%;
}

html[data-bs-theme="dark"] .home-featured-videos .card-footer {margin-top:auto;}
html[data-bs-theme="dark"] footer {background:#18212c; border-top-color:#415067 !important;}
html[data-bs-theme="dark"] footer .link-secondary {color:#b5c6d8 !important;}
html[data-bs-theme="dark"] footer .link-secondary:hover {color:#fff !important;}
/* Consent panel: own palette, so changing Bootstrap variables alone is not enough. */
html[data-bs-theme="dark"] #cc-main {
  --cc-bg:#1e2835;
  --cc-primary-color:#e8edf4;
  --cc-secondary-color:#c0cbd8;
  --cc-btn-primary-bg:#405b78;
  --cc-btn-primary-color:#fff;
  --cc-btn-primary-border-color:#6884a3;
  --cc-btn-primary-hover-bg:#557493;
  --cc-btn-primary-hover-color:#fff;
  --cc-btn-primary-hover-border-color:#7596b6;
  --cc-btn-secondary-bg:#2c3a4b;
  --cc-btn-secondary-color:#f0f4f9;
  --cc-btn-secondary-border-color:#4e6178;
  --cc-btn-secondary-hover-bg:#41546a;
  --cc-btn-secondary-hover-color:#fff;
  --cc-btn-secondary-hover-border-color:#6c7f96;
  --cc-separator-border-color:#3c4b5e;
  --cc-cookie-category-block-bg:#263444;
  --cc-cookie-category-block-border:#44576c;
  --cc-cookie-category-block-hover-bg:#304155;
  --cc-cookie-category-block-hover-border:#607189;
  --cc-cookie-category-expanded-block-hover-bg:#35495f;
  --cc-toggle-readonly-bg:#425369;
  --cc-footer-bg:#1a2430;
  --cc-footer-color:#cbd6e2;
  --cc-footer-border-color:#3a4a60;
}
@media (min-width:992px) {
  html[data-bs-theme="dark"] .home-hero-benefits {flex-wrap:nowrap !important;}
  html[data-bs-theme="dark"] .home-hero-benefits .badge {white-space:nowrap;}
}
/* Contrast for action links and catalog / price buttons on dark surfaces. */
html[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color:#dae4ef;
  --bs-btn-border-color:#7a8ea7;
  --bs-btn-hover-color:#111821;
  --bs-btn-hover-bg:#c4d3e4;
  --bs-btn-hover-border-color:#c4d3e4;
  --bs-btn-active-color:#111821;
  --bs-btn-active-bg:#c4d3e4;
  --bs-btn-active-border-color:#c4d3e4;
}
html[data-bs-theme="dark"] .btn-outline-success {
  --bs-btn-color:#84dbae;
  --bs-btn-border-color:#4eb782;
  --bs-btn-hover-color:#101a15;
  --bs-btn-hover-bg:#84dbae;
  --bs-btn-hover-border-color:#84dbae;
  --bs-btn-active-color:#101a15;
  --bs-btn-active-bg:#84dbae;
  --bs-btn-active-border-color:#84dbae;
}
