/* Hörby Bilcentrum: globalt kundtema */
:root {
  --hbc-black: #090a0b;
  --hbc-surface: #141517;
  --hbc-raised: #202225;
  --hbc-white: #f7f7f5;
  --hbc-muted: #b8babd;
  --hbc-border: #414448;
  --hbc-red: #ce3038;
  --hbc-red-hover: #c52e37;
  --hbc-red-active: #ae232b;
  --hbc-focus: #ff8187;
  --bo-field-bg: var(--hbc-surface);
  --bo-field-color: var(--hbc-white);
  --bo-field-placeholder-color: var(--hbc-muted);
  --bo-field-border: var(--hbc-border);
  --bo-field-radius: 0;
  --bo-field-hover-border: var(--hbc-muted);
  --bo-field-focus-border: var(--hbc-focus);
  --bo-field-focus-ring: 0 0 0 2px var(--hbc-focus);
  --bo-field-disabled-bg: var(--hbc-raised);
  --bo-field-disabled-color: var(--hbc-muted);
}

body {
  background: var(--hbc-black);
  color: var(--hbc-white);
  font-family: "LINE Seed JP", system-ui, sans-serif;
  line-height: 1.625;
}

.bo-btn {
  border-radius: 0;
  --bo-btn-shadow: none;
  --bo-btn-shadow-hover: none;
  --bo-btn-shadow-active: none;
  --bo-btn-disabled-bg: var(--hbc-raised);
  --bo-btn-disabled-color: var(--hbc-muted);
  --bo-btn-disabled-border: var(--hbc-border);
}
.bo-btn:focus-visible {
  outline: 2px solid var(--hbc-focus);
  outline-offset: 3px;
}

.bo-btn--primary, .bo-btn-group--primary .bo-btn {
  --bo-btn-bg: var(--hbc-red);
  --bo-btn-color: var(--hbc-white);
  --bo-btn-border: var(--hbc-red);
  --bo-btn-hover-bg: var(--hbc-red-hover);
  --bo-btn-hover-color: var(--hbc-white);
  --bo-btn-hover-border: var(--hbc-red-hover);
  --bo-btn-active-bg: var(--hbc-red-active);
  --bo-btn-active-color: var(--hbc-white);
  --bo-btn-active-border: var(--hbc-red-active);
}
.bo-btn--secondary, .bo-btn-group--secondary .bo-btn {
  --bo-btn-bg: var(--hbc-white);
  --bo-btn-color: var(--hbc-black);
  --bo-btn-border: var(--hbc-white);
  --bo-btn-hover-bg: var(--hbc-muted);
  --bo-btn-hover-color: var(--hbc-black);
  --bo-btn-hover-border: var(--hbc-muted);
  --bo-btn-active-bg: var(--hbc-muted);
  --bo-btn-active-color: var(--hbc-black);
  --bo-btn-active-border: var(--hbc-muted);
}
.bo-btn--outline, .bo-btn-group--outline .bo-btn {
  --bo-btn-bg: transparent;
  --bo-btn-color: var(--hbc-white);
  --bo-btn-border: var(--hbc-muted);
  --bo-btn-hover-bg: var(--hbc-raised);
  --bo-btn-hover-color: var(--hbc-white);
  --bo-btn-hover-border: var(--hbc-white);
  --bo-btn-active-bg: var(--hbc-border);
  --bo-btn-active-color: var(--hbc-white);
  --bo-btn-active-border: var(--hbc-white);
}
.bo-btn--ghost, .bo-btn-group--ghost .bo-btn {
  --bo-btn-bg: transparent;
  --bo-btn-color: var(--hbc-white);
  --bo-btn-border: transparent;
  --bo-btn-hover-bg: var(--hbc-raised);
  --bo-btn-hover-color: var(--hbc-white);
  --bo-btn-hover-border: transparent;
  --bo-btn-active-bg: var(--hbc-border);
  --bo-btn-active-color: var(--hbc-white);
  --bo-btn-active-border: transparent;
}
/* Kundspecifik global CSS. Lämnas tom i CMS-baslinjen. */

/* Hörby Bilcentrum – redaktionella ytor och mobiltypografi */
body .hbc-home .hbc-home__eyebrow,
body .hbc-sub .hbc-sub__kicker { color: var(--hbc-muted); }
body .hbc-home__hero > .hbc-home__hero-photo,
body .hbc-sub__hero > img { width: 100%; inset-inline: 0; }
body .hbc-home__hero > .hbc-home__hero-photo { object-position: center 55%; }
body .hbc-sub__hero > img { object-position: center 50%; }
body .hbc-home__hero,
body .hbc-sub__hero { overflow: hidden; }
body .hbc-home .hbc-home__tile,
body .hbc-home .hbc-home__about-photo { border-radius: 0; }
.hbc-editorial-photo { overflow: hidden; min-width: 0; }
.hbc-editorial-photo > img { display: block; }
.hbc-home__tile > img:first-child,
.hbc-editorial-photo > img,
.hbc-home__hero > .hbc-home__hero-photo,
.hbc-sub__hero > img { transition: transform 480ms cubic-bezier(.22,.78,.26,1); }
.hbc-sub__section > .hbc-sub__inner > .hbc-sub__heading:has(> h1)::after,
.hbc-sub__split > .hbc-sub__stack > .hbc-sub__heading:has(> h1)::after,
.hbc-sub__hero-address::before {
  display: block;
  width: 48px;
  height: 2px;
  content: "";
  background: var(--hbc-red);
}
.hbc-sub__hero-address::before { margin-block-end: 20px; }
body .hbc-sub__contact-block > .hbc-sub__banner {
  padding-inline: max(var(--sub-pad), calc((100% - 1280px) / 2));
}
.hbc-sub__contact-block > .hbc-sub__banner .hbc-sub__heading { max-width: 680px; }
@media (min-width: 48rem) {
  body .hbc-sub__contact-block > .hbc-sub__banner::after {
    background: linear-gradient(to right, #090a0b, rgba(9,10,11,.86) 44%, rgba(9,10,11,.18));
  }
}
@media (max-width: 47.999rem) {
  body .hbc-home__hero h1, body .hbc-sub__hero h1 { font-size: clamp(26px, 8vw, 30px); line-height: 1.24; }
  body .hbc-sub h1:not(.hbc-sub__hero h1) { font-size: 28px; line-height: 36px; }
  body :is(.hbc-home, .hbc-sub) h2 { font-size: 24px; line-height: 32px; }
  body :is(.hbc-home, .hbc-sub) h3 { font-size: 18px; line-height: 26px; }
  body .hbc-sub .hbc-sub__details h2, body .hbc-sub .hbc-sub__form > h2 { font-size: 18px; line-height: 26px; }
  body .hbc-home__hero, body .hbc-sub__hero { min-height: min(560px, 82svh); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hbc-home__tile:is(:hover, :focus-visible) > img:first-child,
  .hbc-editorial-photo:hover > img,
  :is(.hbc-home__about, .hbc-sub__split):has(.bo-btn:is(:hover, :focus-visible)) .hbc-editorial-photo > img,
  :is(.hbc-home__hero, .hbc-sub__hero):has(.bo-btn:is(:hover, :focus-visible)) > img { transform: scale(1.045); }
}

/* Hörby Bilcentrum – Bilonlines fordonsytor */
:root {
  --hbc-vehicle-max: 1280px;
  --hbc-vehicle-gutter: clamp(24px, 5.56vw, 80px);
}
#bodycontainer > .main-container7,
#bodycontainer > #container8.main-container8,
#bilvisning > #containerbilvisning.main-containerbilvisning {
  width: min(var(--hbc-vehicle-max), calc(100% - 2 * var(--hbc-vehicle-gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
#bodycontainer > .main-container7 .hbc-home__latest-intro { padding-inline: 0; }
:where(.main-container7, .main-container8, #bilvisning, .bo-offcanvas-filter, #liknandefordonsektion) {
  color-scheme: dark;
  --bo-surface: var(--hbc-surface);
  --bo-surface-soft: var(--hbc-raised);
  --bo-surface-subtle: var(--hbc-surface);
  --bo-surface-muted: var(--hbc-raised);
  --bo-text: var(--hbc-white);
  --bo-text-strong: var(--hbc-white);
  --bo-text-muted: var(--hbc-muted);
  --bo-text-soft: var(--hbc-muted);
  --bo-border-color: var(--hbc-border);
  --bo-border-color-strong: var(--hbc-muted);
  --bo-border-color-soft: var(--hbc-border);
  --bo-card-bg: var(--hbc-surface);
  --bo-card-media-bg: var(--hbc-raised);
  --bo-input-bg: var(--hbc-surface);
  --bo-input-color: var(--hbc-white);
  --bo-input-border: var(--hbc-border);
  --bo-filter-head-bg: var(--hbc-raised);
  --bo-filter-head-bg-hover: var(--hbc-border);
  --bo-filter-tag-bg: var(--hbc-raised);
  --bo-filter-tag-bg-hover: var(--hbc-border);
  --bo-filter-tag-bg-active: var(--hbc-border);
  --bo-filter-heading-bg: var(--hbc-raised);
  --bo-chip-bg: var(--hbc-raised);
  --bo-chip-color: var(--hbc-white);
  --bo-chip-border: var(--hbc-border);
  --bo-chip-x-border: var(--hbc-border);
  --bo-spec-row-bg: var(--hbc-raised);
  --bo-selection-bg: var(--hbc-raised);
  --bo-icon-btn-color: var(--hbc-white);
  --bo-fav-btn-color: var(--hbc-black);
  --bo-brand-primary: var(--hbc-red);
  --bo-brand-primary-soft: var(--hbc-surface);
  --bo-brand-primary-muted: var(--hbc-raised);
  --bo-brand-primary-strong: var(--hbc-red-hover);
  --bo-brand-on-primary: var(--hbc-white);
  --bo-link: var(--hbc-focus);
  --bo-link-hover: var(--hbc-white);
  --bo-focus-ring: 0 0 0 2px var(--hbc-focus);
}
:where(.main-container7, .main-container8, #liknandefordonsektion) .bo-car-card {
  background-color: var(--bo-card-bg);
  color: var(--bo-text);
}
#bilvisning { background-color: var(--hbc-surface); }
.bo-offcanvas-filter {
  --bs-offcanvas-bg: var(--hbc-surface);
  --bs-offcanvas-color: var(--hbc-white);
  --bs-offcanvas-border-color: var(--hbc-border);
  --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
}
@media (min-width: 992px) {
  #containerbilvisning .bo-main-row > .bo-col:first-child { width: 61%; }
  #containerbilvisning .bo-main-row > .bo-col:nth-child(2) { width: 39%; }
}

/* Hörby Bilcentrum – fordonskontrast och sidjusteringar */
.bo-vehicle-listing .bo-btn-query {
  --bs-btn-color: var(--hbc-white);
  --bs-btn-hover-color: var(--hbc-white);
  --bs-btn-active-color: var(--hbc-white);
  --bo-selection-text: var(--hbc-white);
}
#bilvisning .bo-pricebar .bo-detail-badge:not(.bo-detail-badge--offer) {
  --bo-information-bg: var(--hbc-raised);
  --bo-information-text: var(--hbc-white);
}
#bilvisning .bo-eq-intro.text-muted { --bs-secondary-color: var(--hbc-muted); }
#bilvisning .bo-fin-risk__copy { --bo-text-strong: #39151a; }
body .hbc-sub__hero--contact > img { object-position: center 55%; }
.hbc-sub__hero--contact .hbc-sub__hero-rule { margin-block-start: 24px; }
#hbc-contact-form-title { scroll-margin-block-start: 84px; }
@media (min-width: 64rem) {
  body .hbc-sub__process { padding-block: 80px; }
  body .hbc-sub__process .hbc-sub__inner { gap: 48px; }
  body .hbc-sub__process .hbc-sub__steps { gap: 40px; }
}

/* Hörby Bilcentrum – formulärdetaljer */
.hbc-sub__field .hbc-sub__required { color: var(--hbc-focus); }
.hbc-sub__field #hbc-contact-topic.bo-field-control {
  appearance: none;
  background-image: url("/images/sektioner/uploads/horby-bilcentrum-select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: auto;
  padding-inline-end: 48px;
}

