.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin-top: 96px;
  margin-bottom: 0px;
  height: 128px;
}

.car-status {
  padding: 8px;
  border-radius: 10px;
  font-weight: bold;
}

.bg-av {
  background-color: var(--thirty);
}

.bg-pending {
  background-color: var(--ten);
  color: var(--sixty);
}

.bg-coming-soon {
  background-color: var(--thirty);
}

.bg-sold {
  background-color: var(--red);
}

.vehicle {
  display: flex;
  justify-content: space-between;
}

.vehicle-gallery {
  width: 984px;
}

.vehicle-current-photo-wrapper {
  width: 100%;
  height: 576px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.vehicle-current-photo-wrapper > img {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  object-fit: cover;
	object-position: 50% 50%;
}

.car-id {
  position: absolute;
  left: 16px;
  top: 16px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--sixty);
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

.gallery-car-id {
  position: absolute;
  width: auto;
  left: 24px;
  top: 24px;
}

.action-icons {
  display: flex;
  gap: 16px;
  position: absolute;
  right: 24px;
  top: 16px;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 4px;
}

.action-icons > svg {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 5px;
  transition: 0.3s ease;
  cursor: pointer;
}

.action-icons > svg:hover {
  background-color: white;
}

.vehicle-current-photo-wrapper > .slider-arrows-wrapper:hover .slider-arrow {
  display: flex;
}

.vehicle-small-photos {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  height: 160px;
  margin-bottom: 32px;
  margin-top: 16px;
}

.vehicle-small-photo-wrapper {
  height: 100%;
  width: 25%;
  overflow: hidden;
  border-radius: 10px;
  width: 235px;
  position: relative;
}

.vehicle-small-photo {
  height: 100%;
  width: 100%;
  cursor: pointer;
  object-fit: cover;
  display: block;
}

.last-small-photo-overlay {
  position: absolute;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--sixty-rgb), 0.8);
  cursor: pointer;
}

.vehicle-small-photo--last:hover::after {
  content: "View all photos";
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.selected-photo {
  border: 2px solid var(--thirty);
}

.gallery-wrapper {
  display: flex;
  position: fixed;
  top: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(var(--sixty-rgb), 0.8);
  width: 100%;
  height: 100%;
  z-index: 999;
}

.gallery {
  position: relative;
  height: 80%;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow-y: auto;
}

.gallery > img {
  user-select: none;
}

.carfax-link-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carfax-link-wrapper a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carfax-link {
  max-width: 60%;
  cursor: pointer;
  display: block;
}

.vehicle-details-group {
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: auto;
  width: 100%;
  padding-left: 16px;
}

.vehicle-detail {
  display: flex;
  justify-content: space-between;
}

.vehicle-detail__label {
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.5;
}

.vehicle-detail__value {
  text-transform: uppercase;
  text-align: right;
}

.vehicle-detail--price {
  width: 100%;
  height: 48px;
  font-size: 1.44rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--thirty);
  border-radius: 10px;
}

.vehicle-inspection-notice {
  text-align: center;
  font-size: 1rem;
  color: var(--ten);
  opacity: 0.5;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 16px;
}

.vehicle-action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.vehicle-test-drive-button {
  width: 232px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border: 0;
  border-radius: 10px;
  background-color: var(--ten);
  text-transform: uppercase;
  font-size: 1rem;
  gap: 8px;
  cursor: pointer;
}

.test-drive-form-wrapper {
  display: flex;
  position: fixed;
  top: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(var(--sixty-rgb), 0.8);
  width: 100%;
  height: 100%;
  z-index: 999;
}

.test-drive-form {
  width: 360px;
  height: 240px;
  background-color: white;
  color: var(--sixty);
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-drive-form > h3 {
  margin: 0;
  text-align: center;
  color: var(--sixty);
}

.test-drive-form > input {
  border: 1px solid var(--thirty);
  border-radius: 5px;
  height: 24px;
}

.test-drive-form > button {
  border: 0;
  color: white;
  background-color: var(--ten);
  height: 32px;
  font-size: 16px;
  border-radius: 32px;
  cursor: pointer;
}

.vehicle-print-button, .vehicle-share-button {
  width: 112px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background-color: var(--thirty);
  color: white;
  text-transform: uppercase;
  font-size: 1rem;
  gap: 8px;
  cursor: pointer;
}

.vehicle-description > h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.vehicle-description > p {
  width: 100%;
}

.vehicle-mpg {
  padding: 16px;
  border: 2px solid white;
  border-radius: 10px;
  display: flex;
  width: 100%;
  gap: 32px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  margin-top: 24px;
}

.mpg-title {
  text-align: center;
  margin-bottom: 16px;
}

.vehicle-mpg h4 {
  margin: 0;
  font-weight: 400;
}

.contact-and-location {
  margin-top: 0px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.contact-and-location > section {
  width: 50%;
}

.contact-and-location > section > h3 {
  margin-bottom: 16px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  height: 304px;
  border: 1px solid var(--ten);
  border-radius: 20px;
  padding: 24px;
}

.contact-content a {
  text-decoration: none;
  color: white;
}

.contact-content > span {
  display: flex;
  align-items: center;
  gap: 16px;
}

.location-content {
  height: 304px;
  border: 1px solid white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
}

.location-content > img {
  height: 100%;
}

.hidden {
  display: none;
}

.edit-btn-wrapper {
  display: flex;
  justify-content: end;
}

.edit-btn {
  margin-top: 32px;
  width: 128px;
  height: 40px;
  font-size: 1rem;
}

@media(max-width: 1550px) {
  .vehicle {
    flex-direction: column;
  }

  .vehicle-current-photo-wrapper {
    width: 800px;
    height: auto;
  }

  .vehicle-small-photos {
    height: auto;
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    margin-top: 16px;
  }

  .vehicle-gallery {
    width: 800px;
  }
}

@media(max-width: 800px) {
  .vehicle-current-photo-wrapper {
    width: 600px;
  }
  .vehicle-gallery {
    width: 600px;
  }
}

@media (max-width: 560px) {
  .page-header {
    margin-top: 72px;
    height: 216px;
    flex-direction: column;
    align-items: start;
  }

  .car-title {
    margin-bottom: 8px;
  }

  .car-status {
    margin-top: 0;
    font-size: 1rem;
  }

  .car-id {
    font-size: 1rem;
  }

  .vehicle {
    flex-direction: column;
  }

  .vehicle-gallery {
    width: 100%;
  }
  
  .vehicle-current-photo-wrapper {
    width: 360px;
    height: 210px;
  }

  .vehicle-small-photo-wrapper {
    width: 172px;
    height: 112px;
  }

  .vehicle-small-photo {
    width: 175px;
    margin-top: 0;
  }

  .vehicle-details-group {
    padding-left: 0;
  }

  .gallery {
    width: 360px;
  }

  .vehicle-action-buttons {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
  }

  .vehicle-test-drive-button {
    width: 100%;
    grid-column: span 2;
  }

  .vehicle-print-button, .vehicle-share-button {
    width: 175px;
  }

  .vehicle-description > p {
    width: 100%;
  }

  .contact-and-location {
    flex-direction: column;
  }

  .contact-and-location > section {
    width: 100%;
  }
}
