.vehicle-sale {
  --surface: var(--card-bg);
  --muted: var(--text-muted-color);
  --border: var(--main-border-color);
  --accent: var(--link-color);
  overflow-wrap: anywhere;
}

.vehicle-sale .vehicle-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
}

.vehicle-sale .intro {
  padding-bottom: 2rem;
}

.vehicle-sale .eyebrow {
  margin-bottom: .5rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vehicle-sale #titel {
  margin-top: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.vehicle-sale .intro-text,
.vehicle-sale .section-heading p,
.vehicle-sale .sale-footer {
  color: var(--muted);
}

.vehicle-sale .offer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 4rem;
  margin-top: 2rem;
}

.vehicle-sale .label {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.vehicle-sale .offer-summary strong {
  font-size: 1.1rem;
}

.vehicle-sale .section {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.vehicle-sale .section h2 {
  margin-top: 0;
}

.vehicle-sale .section-heading {
  margin-bottom: 1.5rem;
}

.vehicle-sale .section-heading p {
  margin-bottom: 0;
}

.vehicle-sale .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.vehicle-sale .fact {
  padding: 1.25rem;
  box-shadow: 1px 1px var(--border);
}

.vehicle-sale dt {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .85rem;
}

.vehicle-sale dd {
  margin: 0;
  font-weight: 600;
}

.vehicle-sale .pending {
  color: var(--muted);
  font-weight: 400;
}

.vehicle-sale .notes {
  margin-top: 1.5rem;
}

.vehicle-sale .count {
  display: inline-block;
  vertical-align: middle;
  padding: .15rem .55rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

.vehicle-sale .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vehicle-sale .photo {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
}

.vehicle-sale .photo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vehicle-sale .photo > a.img-link {
  display: block;
  border: 0;
}

.vehicle-sale .photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 0;
  background: var(--surface);
}

.vehicle-sale .photo-caption {
  display: flex;
  justify-content: space-between;
  padding: .55rem .8rem;
  font-size: .8rem;
}

.vehicle-sale .accessories {
  display: grid;
  gap: 1.5rem;
}

.vehicle-sale .accessory {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.vehicle-sale .accessory-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  align-items: baseline;
}

.vehicle-sale .accessory-heading h3 {
  margin-top: 0;
}

.vehicle-sale .accessory-price {
  margin-bottom: .75rem;
  font-size: .9rem;
}

.vehicle-sale .accessory-price .label {
  display: inline;
  margin-right: .5rem;
}

.vehicle-sale .accessory-description {
  color: var(--muted);
}

.vehicle-sale .contact-details {
  margin-bottom: 0;
}

.vehicle-sale .sale-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
}

@media (max-width: 575px) {
  .vehicle-sale .facts,
  .vehicle-sale .gallery {
    grid-template-columns: 1fr;
  }

  .vehicle-sale .accessory {
    padding: 1rem;
  }
}

/* Hide theme navigation and update panel on the vehicle sale page. */
#sidebar,
#topbar-wrapper,
#access-lastmod {
  display: none !important;
}

#main-wrapper {
  margin-left: 0 !important;
}

body.vehicle-lightbox-open {
  overflow: hidden;
}

.vehicle-lightbox {
  padding: 0;
  border: 0;
  max-width: 95vw;
  max-height: 95dvh;
  background: transparent;
  overflow: auto;
  cursor: zoom-out;
}

.vehicle-lightbox::backdrop {
  background: rgb(0 0 0 / 85%);
}

.vehicle-lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 95dvh;
  object-fit: contain;
}

.vehicle-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid white;
  border-radius: 50%;
  background: #222;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
