/**
 * Styles for Vehicle Single Page
 */

.vehicle-single {
    padding-bottom: 60px;
}

.vehicle-back-to-list {
  display: inline-block;
  margin-bottom: 20px;
}

.vehicle-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

@media screen and (max-width: 768px) {
    .vehicle-overview {
        grid-template-columns: 1fr;
    }
}

.vehicle-gallery {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
  padding: 20px;
  height: 100%;
}

.vehicle-gallery.hidden {
  display: none;
}

.vehicle-gallery .carousel {
  max-width: 900px;
}

.vehicle-gallery-open {
  cursor: pointer;
  margin-top: 24px;
  font-weight: 500;
}

.vehicle-send-request {
  margin-top: 12px;
  font-weight: 500;
}

.vehicle-gallery-close {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 20;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.vehicle-gallery .carousel-navigation-previous,
.vehicle-gallery .carousel-navigation-next {
  z-index: 20;
  color: #fff;
  top: 50% !important;
  transform: translateY(-50%) !important;
  position: absolute !important;
  bottom: auto !important;
}

.vehicle-gallery .carousel-navigation-previous {
  left: 0 !important;
}

.vehicle-gallery .carousel-navigation-next {
  right: 0 !important;
}

.vehicle-overview-details {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  flex-grow: 1;
}

.vehicle-overview-details-inner {
  /*flex: 1 1 280px;*/
}

.vehicle-overview-details-inner dl {
  display: grid;
  gap: 0 20px;
  grid-template-columns: max-content auto;
}

.vehicle-overview-details-inner dt {
  grid-column-start: 1;
}

.vehicle-overview-details-inner dd {
  grid-column-start: 2;
  font-weight: 600;
}

.vehicle-dealer-details {
  /*flex: 0 1 280px;*/
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

.vehicle-dealer-details-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.vehicle-dealer-details dl {
  display: grid;
  gap: 4px 16px;
  grid-template-columns: max-content 1fr;
  margin: 0;
}

.vehicle-dealer-details dt {
  grid-column-start: 1;
  font-weight: 400;
  font-size: 0.9em;
}

.vehicle-dealer-details dd {
  grid-column-start: 2;
  margin: 0;
  font-weight: 500;
}

.vehicle-attributes {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 20px;
}

@media screen and (max-width: 768px) {
   .vehicle-attributes {
        grid-template-columns: 1fr 1fr;
   }
}

@media screen and (max-width: 576px) {
   .vehicle-attributes {
        grid-template-columns: 1fr;
   }
}

.vehicle-attribute {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
    height: calc(100% + 1px);
    margin-bottom: -2px;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.vehicle-attribute-content {
    font-weight: 300;
    dt {
        font-size: 14px;
    }
}

.vehicle-highlights {
    margin-top: 40px;
}

.vehicle-extras {
    margin-top: 40px;
}

.vehicle-extras-groups {
    column-count: 2;
    column-gap: 20px;
}

@media screen and (max-width: 768px) {
    .vehicle-extras-groups {
        column-count: 1;
    }
 }

.vehicle-extras-group + .vehicle-extras-group {
    margin-top: 20px;
}

.vehicle-extras-groups + .vehicle-extra-text {
    margin-top: 20px;
}

.similar-vehicles {
  margin-top: 40px;
}

.vehicle-back-to-list-bottom {
  display: inline-block;
  margin-top: 40px;
}