:root {
  --ink: #202124;
  --text: #3f444a;
  --muted: #7f8387;
  --line: #e8e4dc;
  --soft: #f7f5f1;
  --white: #fff;
  --gold: #b28a55;
  --gold-dark: #8f6d42;
  --graphite: #85878a;
  --shadow: 0 18px 48px rgba(32, 33, 36, .1);
  --radius: 10px;
  --font: "Manrope", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 0;
}
.topbar i { color: var(--gold); margin-right: 7px; }

.navbar {
  min-height: 78px;
  background: rgba(32, 33, 36, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(32, 33, 36, .16);
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-mark {
  position: relative;
  display: grid;
  width: 48px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--graphite), var(--gold));
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 10px;
  border-top: 2px solid #e3c48e;
  border-radius: 50% 50% 0 0;
}
.navbar-brand strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}
.navbar-brand small {
  display: block;
  color: rgba(255,255,255,.64);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.nav-link {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 13px !important;
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-cta,
.btn-primary {
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
  box-shadow: 0 14px 26px rgba(178, 138, 85, .24);
}
.navbar-toggler {
  border-color: rgba(255,255,255,.22);
  background: #fff;
}
.mobile-drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-drawer .navbar-brand strong { color: var(--ink); }
.mobile-drawer .navbar-brand small { color: var(--muted); }
.mobile-drawer .offcanvas-body {
  display: grid;
  gap: 8px;
}
.mobile-drawer .offcanvas-body > a:not(.btn) {
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font-weight: 800;
}

.detail-hero { padding: 34px 0 28px; }
.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.breadcrumb-row i { color: var(--gold); font-size: 10px; }
.title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.dark { color: var(--gold-dark); }
h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.title-actions {
  display: flex;
  gap: 9px;
}
.title-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.gallery-card,
.summary-card,
.info-card,
.contact-card,
.loan-card,
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(32,33,36,.04);
}
.gallery-card { overflow: hidden; }
.detail-description-card {
  margin-top: 18px;
  margin-bottom: 0;
}
.main-photo {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #ddd;
}
.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.expand-btn,
.photo-count {
  position: absolute;
  border: 0;
  border-radius: 8px;
  background: rgba(32,33,36,.78);
  color: #fff;
}
.expand-btn {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
}
.photo-count {
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}
.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
}
.thumb-row button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  aspect-ratio: 4 / 3;
}
.thumb-row button.active { border-color: var(--gold); }
.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-open {
  overflow: hidden;
}

html:has(.gallery-lightbox.is-open),
body.gallery-lightbox-open {
  max-width: 100%;
  overflow-x: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 18px;
  padding: 42px;
  background: rgba(15, 16, 18, .92);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
  min-width: 0;
}

.gallery-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 132px);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.gallery-lightbox__count {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background .16s ease, transform .16s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
}

.gallery-lightbox__nav {
  width: 54px;
  height: 54px;
  justify-self: center;
}

.summary-card { padding: 18px; }
.price-box {
  border-radius: 10px;
  background: linear-gradient(135deg, #202124, #393b3f);
  color: #fff;
  padding: 18px;
  margin-bottom: 14px;
}
.price-box > span {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
}
.price-box strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 4px 0 10px;
}
.price-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
}
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.summary-list div:last-child { border-bottom: 0; }
.summary-list span { color: var(--muted); font-weight: 700; }
.summary-list strong {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.content-section { padding: 12px 0 42px; }
.info-card { padding: 28px; margin-bottom: 24px; }
.section-title { margin-bottom: 22px; }
.section-title span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-title h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-title.compact { margin-bottom: 14px; }
.section-title.compact h2 { font-size: 20px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-grid div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf8;
  padding: 14px;
}
.info-grid span,
.info-grid strong {
  display: block;
}
.info-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.info-grid strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  margin-top: 5px;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}
.legend-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.original { background: #8fbf73; }
.painted { background: #d8654f; }
.local { background: #e39b55; }
.changed { background: #7b61d1; }
.scratched { background: #4b5563; }
.dent { background: #d9b64e; }

.inspection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 24px;
  align-items: center;
}
.car-map {
  display: grid;
  min-height: 520px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(178,138,85,.08) 1px, transparent 1px),
    linear-gradient(rgba(178,138,85,.08) 1px, transparent 1px),
    #fbfaf8;
  background-size: 28px 28px;
}
.car-shell {
  position: relative;
  width: min(92%, 420px);
  height: 455px;
}
.car-shell::before {
  content: "";
  position: absolute;
  inset: 38px 112px;
  border: 3px solid #cfd2d4;
  border-radius: 48% 48% 34% 34%;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 18px rgba(32,33,36,.03);
}
.panel {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(32,33,36,.08);
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 5px;
  box-shadow: 0 8px 18px rgba(32,33,36,.08);
}
.hood { top: 40px; left: 150px; width: 120px; height: 58px; }
.roof { top: 158px; left: 140px; width: 140px; height: 118px; }
.trunk { bottom: 42px; left: 150px; width: 120px; height: 58px; }
.left-front { top: 62px; left: 44px; width: 76px; height: 92px; }
.left-door { top: 168px; left: 38px; width: 78px; height: 112px; }
.left-rear { bottom: 62px; left: 44px; width: 76px; height: 92px; }
.right-front { top: 62px; right: 44px; width: 76px; height: 92px; }
.right-door { top: 168px; right: 38px; width: 78px; height: 112px; }
.right-rear { bottom: 62px; right: 44px; width: 76px; height: 92px; }
.wheel {
  position: absolute;
  width: 38px;
  height: 64px;
  border-radius: 999px;
  background: #2d2f31;
  box-shadow: inset 0 0 0 7px #44474a;
}
.w1 { top: 75px; left: 14px; }
.w2 { bottom: 75px; left: 14px; }
.w3 { top: 75px; right: 14px; }
.w4 { bottom: 75px; right: 14px; }
.panel-status {
  display: grid;
  gap: 7px;
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid currentColor;
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}
.status-row span { color: var(--text); font-weight: 700; }
.status-row strong { color: var(--ink); font-weight: 800; }
.status-row.all-original {
  align-items: center;
  border-left-color: #9aa0a6;
  background: #fbfaf8;
}
.status-row.paint-ok { color: #9aa0a6; }
.status-row.paint-lb { color: #f08b4f; }
.status-row.paint-b { color: #4f7fcf; }
.status-row.paint-d { color: #f05a45; }
.status-note {
  display: flex;
  gap: 10px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--text);
  padding: 13px;
}
.status-note i { color: var(--gold); margin-top: 4px; }
.status-note p { margin: 0; font-size: 12px; font-weight: 700; }
.damage-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-stack {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}
.contact-card,
.loan-card { padding: 20px; }
.contact-card > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-card > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  margin: 8px 0 16px;
}
.contact-card > a i { color: var(--gold); }
.contact-card button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  margin-top: 9px;
}
.loan-card label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}
.input-suffix input,
.loan-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 800;
}
.input-suffix input { border: 0; }
.input-suffix span {
  color: var(--muted);
  font-weight: 800;
  padding-right: 12px;
}
.loan-result {
  border-radius: 8px;
  background: #fbfaf8;
  padding: 12px;
  margin: 14px 0 10px;
}
.loan-result span,
.loan-result strong { display: block; }
.loan-result span { color: var(--muted); font-size: 12px; font-weight: 800; }
.loan-result strong { color: var(--ink); font-size: 14px; font-weight: 800; margin-top: 3px; }
.loan-card p { color: var(--muted); font-size: 12px; margin: 0; }
.loan-call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 12px;
  box-shadow: 0 12px 24px rgba(178, 138, 85, .22);
}

.similar-section { padding: 32px 0 84px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0;
}
.section-head > a {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
}
.vehicle-card {
  overflow: hidden;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vehicle-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.vehicle-card > div { padding: 16px; }
.vehicle-card .year {
  display: inline-flex;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
}
.vehicle-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}
.vehicle-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 12px;
}
.vehicle-card b {
  display: block;
  color: var(--gold-dark);
  font-size: 17px;
  margin-bottom: 12px;
}
.vehicle-card a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  background: #202124;
  color: rgba(255,255,255,.68);
  padding: 58px 0;
}
.footer-brand {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.site-footer h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
.site-footer p,
.site-footer a {
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.site-footer a {
  display: block;
  margin-bottom: 9px;
}

@media (max-width: 1199.98px) {
  .side-stack { position: static; }
}

@media (max-width: 991.98px) {
  .navbar { min-height: 68px; }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inspection-layout {
    grid-template-columns: 1fr;
  }
  .car-map { min-height: 460px; }
  .car-shell {
    transform: scale(.9);
  }
}

@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .detail-hero { padding-top: 22px; }
  h1 { font-size: 27px; }
  .title-actions { width: 100%; }
  .title-actions button { flex: 1; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); }
  .summary-card,
  .info-card,
  .contact-card,
  .loan-card { padding: 18px; }
  .price-box strong { font-size: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .legend-grid span { font-size: 11px; }
  .car-map {
    min-height: 390px;
    overflow: hidden;
  }
  .car-shell {
    transform: scale(.72);
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head h2 { font-size: 27px; }
}

.paint-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(178, 138, 85, .12), transparent 56%),
    linear-gradient(135deg, #fff, #fbfaf8);
  overflow: hidden;
}

.paint-visual img {
  width: min(82%, 470px);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(32, 33, 36, .14));
}

.paint-zone {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(32, 33, 36, .18);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.paint-zone:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(32, 33, 36, .24);
}

.paint-zone.original { background: #8fbf73; }
.paint-zone.painted { background: #d8654f; }
.paint-zone.local { background: #e39b55; }
.paint-zone.changed { background: #7b61d1; }
.paint-zone.scratched { background: #4b5563; }
.paint-zone.dent { background: #d9b64e; }

.paint-zone.hood { top: 13%; left: 50%; transform: translateX(-50%); }
.paint-zone.roof { top: 43%; left: 50%; transform: translateX(-50%); }
.paint-zone.trunk { bottom: 12%; left: 50%; transform: translateX(-50%); }
.paint-zone.left-front { top: 25%; left: 29%; }
.paint-zone.left-door { top: 48%; left: 27%; }
.paint-zone.left-rear { bottom: 23%; left: 31%; }
.paint-zone.right-front { top: 25%; right: 29%; }
.paint-zone.right-door { top: 48%; right: 27%; }
.paint-zone.right-rear { bottom: 23%; right: 31%; }
.paint-zone.bumper-front { top: 5%; left: 50%; transform: translateX(-50%); }
.paint-zone.bumper-rear { bottom: 5%; left: 50%; transform: translateX(-50%); }

.status-row.original,
.status-row.painted,
.status-row.local,
.status-row.changed,
.status-row.scratched,
.status-row.dent {
  background: #fff;
}

.status-row.original { color: #8fbf73; }
.status-row.painted { color: #d8654f; }
.status-row.local { color: #e39b55; }
.status-row.changed { color: #7b61d1; }
.status-row.scratched { color: #4b5563; }
.status-row.dent { color: #d9b64e; }

/* Shared header/footer are controlled by assets/css/style.css. */
.topbar {
  background: #202124;
  color: rgba(255, 255, 255, .78);
}

.navbar {
  min-height: 78px;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .08), 0 12px 28px rgba(16, 24, 40, .04);
}

.navbar-brand strong {
  color: var(--ink);
}

.navbar-brand small {
  color: var(--muted);
}

.nav-link {
  color: #344054;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-dark);
}

.site-footer {
  background: #202124;
}

@media (max-width: 991.98px) {
  .paint-visual {
    min-height: 500px;
  }
}

.expertise-image-wrap > .expertise-badge,
.expertise-legend .expertise-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  clip-path: none !important;
  opacity: 1 !important;
}

.expertise-image-wrap > .expertise-badge {
  position: absolute !important;
  transform: translate(-50%, -50%) !important;
}

.expertise-legend .expertise-badge {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  position: static !important;
  transform: none !important;
}

.expertise-image-wrap > .expertise-badge.hood { left: 50% !important; top: 20% !important; }
.expertise-image-wrap > .expertise-badge.roof { left: 50% !important; top: 52% !important; }
.expertise-image-wrap > .expertise-badge.front-bumper { left: 50% !important; top: 7% !important; }
.expertise-image-wrap > .expertise-badge.rear-bumper { left: 50% !important; top: 93% !important; }
.expertise-image-wrap > .expertise-badge.trunk-lid { left: 50% !important; top: 83% !important; }
.expertise-image-wrap > .expertise-badge.left-front-fender { left: 22% !important; top: 23% !important; }
.expertise-image-wrap > .expertise-badge.left-front-door { left: 22% !important; top: 42% !important; }
.expertise-image-wrap > .expertise-badge.left-rear-door { left: 22% !important; top: 62% !important; }
.expertise-image-wrap > .expertise-badge.left-rear-fender { left: 22% !important; top: 78% !important; }
.expertise-image-wrap > .expertise-badge.right-front-fender { left: 78% !important; top: 23% !important; }
.expertise-image-wrap > .expertise-badge.right-front-door { left: 78% !important; top: 42% !important; }
.expertise-image-wrap > .expertise-badge.right-rear-door { left: 78% !important; top: 62% !important; }
.expertise-image-wrap > .expertise-badge.right-rear-fender { left: 78% !important; top: 78% !important; }

@media (max-width: 575.98px) {
  .expertise-image-wrap > .expertise-badge {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }

  .gallery-lightbox {
    inset: 0;
    width: 100vw;
    width: 100dvw;
    max-width: 100vw;
    max-width: 100dvw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 58px 14px 34px;
    overflow: hidden !important;
    box-sizing: border-box;
  }

  .gallery-lightbox__figure {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .gallery-lightbox__image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 126px);
    object-fit: contain;
    border-radius: 8px;
  }

  .gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    background: rgba(15, 16, 18, .55);
  }

  .gallery-lightbox__nav:hover {
    transform: translateY(-50%);
  }

  .gallery-lightbox__nav--prev {
    left: 8px;
  }

  .gallery-lightbox__nav--next {
    right: 8px;
  }

  .gallery-lightbox__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 575.98px) {
  .paint-visual {
    min-height: 420px;
  }

  .paint-visual img {
    width: 96%;
  }

  .paint-zone {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
}

.paint-diagram {
  border: 1px solid #ede7d8;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  text-align: center;
}

.expertise-map-img {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  border-radius: 10px;
  background: transparent;
}

.expertise-image-wrap {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.expertise-badge {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  max-width: 30px;
  max-height: 30px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(32, 33, 36, .18);
  overflow: hidden;
}

.expertise-badge i {
  font-size: 11px;
  line-height: 1;
}

.expertise-image-wrap > .expertise-badge {
  position: absolute;
  transform: translate(-50%, -50%);
}

.expertise-badge.ok {
  background: #9aa0a6;
}

.expertise-badge.lb {
  background: #f08b4f;
}

.expertise-badge.b {
  background: #4f7fcf;
}

.expertise-badge.d {
  background: #f05a45;
}

.expertise-badge.hood { left: 50%; top: 20%; }
.expertise-badge.roof { left: 50%; top: 42%; }
.expertise-badge.trunk { left: 50%; top: 70%; }
.expertise-badge.front-bumper { left: 50%; top: 7%; }
.expertise-badge.rear-bumper { left: 50%; top: 93%; }
.expertise-badge.left-front { left: 23%; top: 22%; }
.expertise-badge.left-door { left: 23%; top: 50%; }
.expertise-badge.left-rear { left: 23%; top: 76%; }
.expertise-badge.right-front { left: 77%; top: 22%; }
.expertise-badge.right-door { left: 77%; top: 50%; }
.expertise-badge.right-rear { left: 77%; top: 76%; }
.expertise-badge.left-front-fender { left: 22%; top: 23%; }
.expertise-badge.left-front-door { left: 22%; top: 42%; }
.expertise-badge.left-rear-door { left: 22%; top: 62%; }
.expertise-badge.left-rear-fender { left: 22%; top: 78%; }
.expertise-badge.right-front-fender { left: 78%; top: 23%; }
.expertise-badge.right-front-door { left: 78%; top: 42%; }
.expertise-badge.right-rear-door { left: 78%; top: 62%; }
.expertise-badge.right-rear-fender { left: 78%; top: 78%; }
.expertise-badge.trunk-lid { left: 50%; top: 72%; }

.expertise-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.expertise-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.expertise-legend .expertise-badge {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-width: 2px;
  font-size: 9px;
  box-shadow: none;
}

.paint-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  color: #6f7479;
  font-size: 13px;
  font-weight: 800;
}

.paint-legend.bottom {
  margin: 18px 0 0;
  gap: 22px;
}

.paint-legend span {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #202124;
  text-transform: uppercase;
}

.legend-box {
  display: inline-block;
  width: 82px;
  height: 16px;
  border: 2px solid #202124;
  border-radius: 3px;
}

.car-blueprint {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  min-height: 680px;
  margin: 0 auto;
  place-items: center;
}

.paint-car-svg {
  width: min(100%, 430px);
  height: auto;
  overflow: visible;
}

.part-shape {
  stroke: #2d2f31;
  stroke-width: 2.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: filter .16s ease, opacity .16s ease;
  fill: url(#whiteBody);
  opacity: .88;
}

.part-shape:hover {
  filter: brightness(1.05);
  opacity: .92;
}

.part-shape.original { fill: url(#whiteBody); }
.part-shape.local { fill: rgba(114, 185, 229, .78); }
.part-shape.painted { fill: rgba(156, 205, 129, .78); }
.part-shape.changed { fill: rgba(211, 86, 86, .66); }

.glass-shape {
  fill: url(#darkGlass);
  stroke: #2d2f31;
  stroke-width: 3;
}

.glass-shape.rear {
  fill: url(#darkGlass);
}

.body-center {
  fill: url(#whiteBody);
  stroke: #2d2f31;
  stroke-width: 2;
}

.car-shadow {
  fill: #d0d0d0;
  stroke: #2d2f31;
  stroke-width: 2;
}

.tire-shape {
  fill: #242629;
  stroke: #2d2f31;
  stroke-width: 3;
}

.wheel-detail circle:first-child {
  fill: #242629;
  stroke: #111;
  stroke-width: 2;
}

.wheel-detail circle:nth-child(2) {
  fill: #d8d8d8;
  stroke: #6e7174;
  stroke-width: 2;
}

.wheel-detail circle:nth-child(3) {
  fill: #888b8f;
}

.wheel-detail path {
  stroke: #888b8f;
  stroke-width: 3;
  stroke-linecap: round;
}

.lamp {
  fill: #fff;
  opacity: .9;
}

.rear-lamp {
  fill: #d32222;
}

.door-line {
  fill: none;
  stroke: #2d2f31;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .55;
}

.window-detail {
  fill: rgba(34, 37, 40, .56);
  stroke: #2d2f31;
  stroke-width: 2;
}

.loose-panel {
  fill: url(#whiteBody);
  stroke: #2d2f31;
  stroke-width: 2;
  opacity: .75;
}

.panel-label {
  fill: #202124;
  font: 800 15px "Manrope", Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.panel-label.small {
  font-size: 12px;
}
}

.part {
  position: absolute;
  border: 3px solid #e3e4e5;
  background: #c9c9c9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}

.part:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.legend-box.original,
.part.original { background: #f7f7f5; }
.legend-box.local,
.part.local { background: #9ed0ef; }
.legend-box.painted,
.part.painted { background: #b7dca1; }
.legend-box.changed,
.part.changed { background: #f05a45; }
.legend-box.sok-tak { background: #f2d66d; }

.front-bumper {
  top: 10px;
  left: 50%;
  width: 122px;
  height: 36px;
  border-radius: 8px;
  transform: translateX(-50%);
}

.hood {
  top: 58px;
  left: 50%;
  width: 132px;
  height: 92px;
  border-radius: 22px 22px 8px 8px;
  transform: translateX(-50%);
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
}

.windshield {
  top: 154px;
  left: 50%;
  width: 140px;
  height: 76px;
  border-radius: 50% 50% 8px 8px;
  transform: translateX(-50%);
  opacity: .62;
}

.roof {
  top: 232px;
  left: 50%;
  width: 116px;
  height: 96px;
  border-radius: 4px;
  transform: translateX(-50%);
}

.trunk {
  top: 332px;
  left: 50%;
  width: 140px;
  height: 82px;
  border-radius: 8px 8px 38px 38px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.rear-bumper {
  bottom: 10px;
  left: 50%;
  width: 122px;
  height: 36px;
  border-radius: 8px;
  transform: translateX(-50%);
}

.left-front-fender {
  top: 76px;
  left: 72px;
  width: 64px;
  height: 100px;
  border-radius: 20px 0 0 8px;
  clip-path: polygon(20% 0, 100% 20%, 100% 100%, 0 76%, 0 18%);
}

.left-front-door {
  top: 180px;
  left: 68px;
  width: 86px;
  height: 128px;
  clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 83%);
}

.left-rear-door {
  top: 310px;
  left: 68px;
  width: 86px;
  height: 126px;
  clip-path: polygon(0 17%, 100% 0, 100% 86%, 0 100%);
}

.left-rear-fender {
  bottom: 62px;
  left: 72px;
  width: 64px;
  height: 100px;
  border-radius: 8px 0 0 20px;
  clip-path: polygon(0 24%, 100% 0, 100% 80%, 20% 100%, 0 82%);
}

.right-front-fender {
  top: 76px;
  right: 72px;
  width: 64px;
  height: 100px;
  border-radius: 0 20px 8px 0;
  clip-path: polygon(0 20%, 80% 0, 100% 18%, 100% 76%, 0 100%);
}

.right-front-door {
  top: 180px;
  right: 68px;
  width: 86px;
  height: 128px;
  clip-path: polygon(0 14%, 100% 0, 100% 83%, 0 100%);
}

.right-rear-door {
  top: 310px;
  right: 68px;
  width: 86px;
  height: 126px;
  clip-path: polygon(0 0, 100% 17%, 100% 100%, 0 86%);
}

.right-rear-fender {
  bottom: 62px;
  right: 72px;
  width: 64px;
  height: 100px;
  border-radius: 0 8px 20px 0;
  clip-path: polygon(0 0, 100% 24%, 100% 82%, 80% 100%, 0 80%);
}

.tire {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 4px solid #fffdf1;
  border-radius: 50%;
  background: #d4d4d4;
  box-shadow: 0 0 0 3px #e8e8e8;
}

.tire-fl { top: 104px; left: 42px; }
.tire-rl { bottom: 112px; left: 42px; }
.tire-fr { top: 104px; right: 42px; }
.tire-rr { bottom: 112px; right: 42px; }

@media (max-width: 575.98px) {
  .paint-diagram {
    padding: 10px;
  }

  .expertise-map-img {
    width: 100%;
  }

  .expertise-badge {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    border-width: 2px;
    font-size: 10px;
  }

  .expertise-legend {
    gap: 9px;
    font-size: 11px;
  }
}
