.page-header {
  display: flex;
  flex-direction: column;
  margin-top: 96px;
  margin-bottom: 0px;
  min-height: 128px;
  padding-top: 0;
  padding-bottom: 0;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.status-and-edit-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.car-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.car-status-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

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

.vehicle-gallery {
  width: 984px;
}

.vehicle-current-photo-wrapper {
  width: 100%;
  height: 648px;
  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%;
}

.vehicle-current-photo-wrapper > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background-color: black;
}

.car-id {
  position: absolute;
  left: 16px;
  top: 16px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--sixty);
  padding: 8px;
  background-color: var(--glass-bg-light);
  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: var(--glass-bg-light);
  border-radius: 5px;
  padding: 4px;
}

.action-icons > .action-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  transition: 0.3s ease;
  cursor: pointer;
}

/* The svg fills the wrapper so it stays the hover/click target the JS is bound to. */
.action-icons > .action-icon > svg {
  width: 100%;
  height: 100%;
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

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

.action-icons > .action-icon[data-tooltip]::after,
.vin-copy-btn[data-tooltip]::after,
.mileage-copy-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: rgba(var(--sixty-rgb), 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: normal;
  white-space: nowrap;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.action-icons > .action-icon[data-tooltip]::after {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}

/* Keep the last icon's tooltip inside the photo wrapper, which clips overflow. */
.action-icons > .action-icon:last-child[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: none;
}

.action-icons > .action-icon[data-tooltip]:hover::after,
.action-icons > .action-icon[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.slider-arrows-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
  z-index: 15;
}

.slider-arrow,
.fullscreen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--glass-bg-light);
  cursor: pointer;
  transition: 0.3s ease;
}

.slider-arrow:hover,
.fullscreen-btn:hover {
  background-color: white;
}

.slider-arrow {
  pointer-events: auto;
}

.photo-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 15;
  background-color: var(--glass-bg-light);
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--sixty);
  font-family: inherit;
  cursor: pointer;
}

.fullscreen-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 15;
}

.media-bottom-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-bottom-bar .fullscreen-btn {
  position: static;
  flex: 0 0 auto;
}

.media-bottom-bar .photo-counter-wrapper {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.media-bottom-bar .video-controls {
  position: static;
  flex: 1 1 auto;
}

.photo-counter-wrapper .photo-counter {
  position: static;
}

.gallery-photo-counter-wrapper {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 15;
}

.video-controls {
  display: none;
  position: absolute;
  left: 64px;
  right: 92px;
  bottom: 16px;
  box-sizing: border-box;
  z-index: 16;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: var(--glass-bg-light);
}

.video-controls.visible {
  display: flex;
}

.gallery-video-controls {
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(480px, 90vw);
}

.video-control-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--sixty);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.video-control-btn:hover {
  opacity: 0.75;
}

.video-time-current,
.video-time-duration {
  flex: 0 0 auto;
  color: var(--sixty);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.video-progress-track {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(var(--sixty-rgb), 0.25);
  cursor: pointer;
  touch-action: none;
}

.video-progress-track::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  right: 0;
}

.video-progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background-color: var(--thirty);
  pointer-events: none;
}

.video-progress-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
}

.video-progress-track:hover .video-progress-fill::after,
.video-progress-track.scrubbing .video-progress-fill::after {
  transform: translateY(-50%) scale(1);
}

.video-center-play-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 16;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.video-center-play-btn:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.video-center-play-btn.visible {
  display: flex;
}

.media-grid-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 25;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.media-grid-cell {
  position: relative;
  width: 64px;
  height: 48px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background-color: rgba(var(--sixty-rgb), 0.08);
  transition: outline-color 0.2s ease;
}

.media-grid-cell img,
.media-grid-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-grid-cell.current {
  outline: 3px solid var(--thirty);
  outline-offset: -3px;
}

.media-grid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.6rem;
  pointer-events: none;
}

.vehicle-small-photos {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 16px;
  height: 160px;
  width: 984px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.damage-pics-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.request-damage-pics-btn {
  width: auto;
  height: 32px;
  padding: 0 16px;
  margin-bottom: 0;
  background-color: var(--thirty);
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}

.request-damage-pics-btn:hover {
  opacity: 0.9;
}

.copy-folder-path-btn,
.copy-description-btn {
  width: auto;
  height: 32px;
  padding: 0 16px;
  margin-bottom: 0;
  background-color: transparent;
  border: 1px solid var(--thirty);
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-folder-path-btn:hover,
.copy-description-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.description-copy-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.description-copy-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre;
  border: 0;
}

.vehicle-small-photos::-webkit-scrollbar {
  display: none;
}

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

.vehicle-small-photo {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  cursor: pointer;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  opacity: 0.6;
  transition: opacity 0.2s ease, outline 0.2s ease;
}

.vehicle-small-photo:hover {
  opacity: 1;
}

.selected-photo {
  opacity: 1;
  outline: 3px solid var(--thirty);
  outline-offset: -3px;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.85rem;
  pointer-events: none;
}

.gallery-wrapper {
  background-color: rgba(var(--sixty-rgb), 0.95);
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  touch-action: none;
}

.gallery-photo {
  display: none;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  transition: transform 0.15s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-photo.active {
  display: block;
}

.gallery-photo.zoomed {
  cursor: grab;
}

.gallery-photo.dragging {
  cursor: grabbing;
  transition: none;
}

.gallery-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.gallery-zoom-btn,
.gallery-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--glass-bg-light);
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s ease;
  color: var(--sixty);
}

.gallery-zoom-btn:hover,
.gallery-close-btn:hover {
  background-color: white;
}

.gallery-zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery-close-btn {
  font-size: 1.8rem;
}

.document-links-row {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.document-links-row .carfax-link-wrapper {
  flex: 1;
  margin-bottom: 0;
}

.carfax-link-wrapper {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* border: solid white 1px; */
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.window-sticker-link-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.carfax-link-wrapper a {
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: var(--thirty);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.carfax-update-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carfax-update-btn:hover {
  background-color: var(--thirty);
}

.carfax-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.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__value > a {
  color: white;
}

.vehicle-detail__value-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-detail__value--color {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.vin-copy-btn,
.mileage-copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: none;
  color: white;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vin-copy-btn:hover,
.mileage-copy-btn:hover {
  opacity: 1;
}

.vin-copy-btn[data-tooltip]::after,
.mileage-copy-btn[data-tooltip]::after {
  top: calc(100% + 6px);
  right: 0;
  text-transform: none;
}

.vin-copy-btn[data-tooltip]:hover::after,
.mileage-copy-btn[data-tooltip]:hover::after {
  opacity: 1;
}

.price-card {
  width: 100%;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vehicle-detail--price {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  opacity: 0.6;
}

.vehicle-detail--price.vehicle-price {
  margin-bottom: 0;
  background-color: transparent;
  color: white;
  font-weight: 600;
}

.vehicle-price .vehicle-detail--price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ten);
}

.vehicle-detail--price.vehicle-retail-price {
  margin-bottom: 0;
  font-size: 1rem;
  background-color: transparent;
  opacity: 0.6;
}

.vehicle-retail-price .vehicle-detail--price-value {
  text-decoration: line-through;
  font-weight: 600;
}

.price-savings-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: rgba(76, 175, 80, 0.16);
  color: #4caf50;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vehicle-warranty-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ten);
  color: var(--sixty);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}

.vehicle-warranty-badge svg {
  flex-shrink: 0;
}

.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;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.vehicle-action-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vehicle-test-drive-button {
  width: 100%;
  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 {
  width: 380px;
}

.test-drive-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.test-drive-field-row {
  display: flex;
  gap: 12px;
}

.test-drive-form label {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.6;
}

.test-drive-form input {
  border: 1px solid rgba(var(--sixty-rgb), 0.25);
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
  font-size: 0.95rem;
  color: var(--sixty);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.test-drive-form input:focus {
  outline: none;
  border-color: var(--thirty);
}

.test-drive-form input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(var(--sixty-rgb), 0.06);
}

.test-drive-hours-hint {
  margin: -8px 0 0;
  font-size: 0.78rem;
  color: rgba(var(--sixty-rgb), 0.65);
}

.test-drive-hours-hint--error {
  color: var(--red);
}

.test-drive-submit-btn {
  border: 0;
  color: white;
  background-color: var(--ten);
  height: 40px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 32px;
  cursor: pointer;
  transition: 0.2s ease;
}

.test-drive-submit-btn:hover {
  opacity: 0.9;
}

.vehicle-print-button, .vehicle-share-button, .vehicle-request-similar-button {
  flex: 1;
  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;
  padding: 0 12px;
  cursor: pointer;
}

.vehicle-request-similar-button {
  flex: 1.6;
  text-decoration: none;
  white-space: nowrap;
}

.vehicle-description {
  margin-bottom: 40px;
}

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

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

.vehicle-options-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.vehicle-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vehicle-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: white;
}

.vehicle-option-pill svg {
  flex-shrink: 0;
}

.vehicle-option-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.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 !important;
}

.admin-panel-wrapper {
  margin-top: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.print-letterhead {
  display: none;
}

.print-price-card {
  display: none;
}

.right-carfax {
  display: none;
}

.views-count-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 0.9rem;
}

.views-count-wrapper svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.views-count-wrapper strong {
  font-weight: 700;
}

.edit-btn {
  width: 64px;
  height: 48px;
  font-size: 1rem;
}

.car-titles {
  margin-top: 40px;
  margin-bottom: 40px
}

.car-titles > h1 {
  margin-bottom: 0px;
}

.car-titles > h2 {
  margin-top: 0;
}

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

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

  .vehicle-small-photos {
    height: auto;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
  }

  .vehicle-gallery {
    width: 800px;
  }

  .carfax-link-wrapper {
    margin-top: 75px;
    margin-bottom: 75px;
  }
}

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

  .vehicle-current-photo-wrapper {
    width: 100%;
    height: auto;
  }
  .vehicle-gallery {
    width: 100%;
  }

  .vehicle-details-group {
    padding-left: 0;
    margin-top: 24px;
  }

  .vehicle-small-photos {
    width: 100%;
  }

  .car-id {
    font-size: 1rem;
    padding: 6px;
    border-radius: 8px;
  }

  .action-icons {
    gap: 10px;
    padding: 3px;
  }

  .action-icons > .action-icon {
    width: 22px;
    height: 22px;
  }

  .action-icons > .action-icon > svg {
    padding: 3px;
  }

  .action-icons > .action-icon[data-tooltip]::after {
    top: calc(100% + 6px);
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
  }

  .slider-arrow svg {
    width: 9px;
    height: 15px;
  }

  .photo-counter {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
  }

  .fullscreen-btn {
    width: 30px;
    height: 30px;
  }

  .fullscreen-btn svg {
    width: 14px;
    height: 14px;
  }

  .gallery-controls {
    top: 16px;
    right: 16px;
    gap: 8px;
  }

  .gallery-zoom-btn,
  .gallery-close-btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .gallery-close-btn {
    font-size: 1.4rem;
  }
}

@media (max-width: 560px) {
  .page-header {
    margin-top: 72px;
    min-height: 0;
    align-items: start;
  }

  .page-header-row {
    flex-direction: column;
    align-items: start;
  }

  .vehicle-small-photos {
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
  }

  .car-title {
    margin: 0px;
  }

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

  .vehicle {
    flex-direction: column;
  }

  .vehicle-gallery {
    width: 100%;
  }
  
  .vehicle-current-photo-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 210;
  }

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

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

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

  .vehicle-action-buttons-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }

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

  .vehicle-request-similar-button {
    flex: none;
    width: 100%;
  }

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

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

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

@page {
  margin: 0.25in 0.5in;
}

@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  header, footer, nav {
    display: none;
  }

  .container {
    max-width: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  body {
    background-color: white;
    color: black;
    font-size: 11pt;
    line-height: 1.35;
  }

  a {
    color: black;
    text-decoration: none;
  }

  path {
    fill: black;
  }

  hr {
    display: none;
  }

  .top-bar, .breadcrumb {
    display: none;
  }

  /* Letterhead */
  .print-letterhead {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid black;
  }

  .print-letterhead-logo {
    height: 36px;
    width: auto;
  }

  .print-letterhead-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .print-letterhead-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: black;
  }

  .print-letterhead-contact {
    font-size: 0.8rem;
    color: black;
    opacity: 0.75;
  }

  /* Header / title */
  .page-header {
    margin-top: 0px;
    min-height: 0;
  }

  .page-header-row {
    min-height: 0;
  }

  .h2-title {
    display: none;
    margin-top: 0;
  }

  .car-titles {
    margin-top: 0;
    margin-bottom: 4px;
  }

  .car-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: black;
    margin: 0;
  }

  h3 {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .yellow-text {
    font-size: inherit;
    color: black;
  }

  .car-status, .action-icons, .vehicle-action-buttons {
    display: none;
  }

  .edit-btn, .fullscreen-btn, .vin-copy-btn, .mileage-copy-btn, .carfax-update-btn {
    display: none;
  }

  /* Gallery */
  .vehicle {
    flex-direction: column;
  }

  .vehicle-gallery, .vehicle-details-group {
    width: 100%;
    padding-left: 0;
  }

  .vehicle-gallery {
    display: flow-root;
  }

  .vehicle-current-photo-wrapper {
    height: 210px;
    width: 46%;
    float: left;
    margin-right: 4%;
    border: 1px solid black;
  }

  .vehicle-gallery:not(:has(.vehicle-description-text)):not(:has(.print-price-card)) .vehicle-current-photo-wrapper {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .print-info-column {
    float: left;
    width: 50%;
  }

  .car-id {
    background-color: white;
    border: 1px solid black;
    color: black;
  }

  .vehicle-small-photos, .slider-arrows-wrapper, .photo-counter {
    display: none;
  }

  #vehicle-current-video, .video-controls, .video-center-play-btn, .media-grid-dropdown {
    display: none !important;
  }

  .carfax-link-wrapper {
    display: none;
  }

  .damage-pics-buttons-row {
    display: none;
  }

  .description-copy-buttons-row {
    display: none;
  }

  .vehicle-description {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .vehicle-description > h3 {
    font-size: 0.95rem;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .vehicle-description > .half-transparent {
    margin-top: 8px;
    margin-bottom: 0px;
  }

  .vehicle-description-text {
    font-size: 0.8rem;
    margin: 0;
  }

  .right-carfax {
    display: none;
  }

  /* Price — moved up next to the photo, above Vehicle Overview */
  .vehicle-details-group {
    display: flow-root;
  }

  .document-links-row {
    display: none;
  }

  .screen-price-card {
    display: none;
  }

  .print-price-card {
    display: block;
    width: auto;
  }

  .price-card {
    background-color: transparent;
    border: 1px solid black;
    height: auto;
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 6px 12px;
    gap: 2px;
  }

  .price-card > .vehicle-detail--price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
  }

  .price-label {
    color: black;
    opacity: 0.7;
    font-size: 0.65rem;
  }

  .vehicle-detail--price-value {
    color: black;
  }

  .vehicle-price .vehicle-detail--price-value {
    font-size: 1.3rem;
  }

  .vehicle-retail-price {
    display: none;
  }

  .price-savings-badge {
    background-color: transparent;
    color: black;
    border: 1px solid black;
  }

  /* Specs list */
  .vehicle-details {
    width: 100%;
    margin-top: 6px;
  }

  .vehicle-detail {
    padding: 2px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #ccc;
    break-inside: avoid;
  }

  .vehicle-detail > label {
    color: black;
    opacity: 1;
  }

  .vehicle-detail > span > a {
    color: black;
  }

  /* Options / features / services pills — side by side, one row */
  .vehicle-options-section {
    float: left;
    width: 48%;
    margin-right: 4%;
    margin-top: 6px;
    margin-bottom: 6px;
    break-inside: avoid;
  }

  .vehicle-options-section + .vehicle-options-section {
    margin-right: 0;
  }

  .vehicle-options-section > h3 {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 4px;
  }

  .vehicle-options-grid {
    margin-top: 4px;
    gap: 4px;
  }

  .vehicle-option-pill {
    color: black;
    background-color: transparent;
    border: 1px solid black;
    padding: 3px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }

  .vehicle-option-pill svg {
    width: 10px;
    height: 10px;
  }

  .contact-and-location {
    clear: both;
  }

  /* MPG */
  .vehicle-mpg {
    clear: both;
    padding: 5px;
    gap: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    font-size: 10px;
    border: 1px solid black;
  }

  .vehicle-mpg > svg {
    width: 22px;
    height: auto;
  }

  .vehicle-mpg > svg > path {
    fill: black;
  }

  .vehicle-mpg h4 {
    font-size: 0.95rem;
  }

  /* Warranty / inspection notice */
  .vehicle-inspection-notice {
    clear: both;
    display: block;
    opacity: 1;
    color: black;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .vehicle-warranty-badge {
    clear: both;
    background-color: transparent;
    color: black;
    border: 1px solid black;
    margin-top: 6px;
  }

  /* Contact */
  .contact-and-location > .location {
    display: none;
  }

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

  .contact-content {
    height: auto;
    gap: 6px;
    padding: 8px 14px;
    border-color: black;
    border-radius: 8px;
    font-size: 0.8rem;
    break-inside: avoid;
  }

  .contact-content > span {
    gap: 8px;
  }

  .contact-content > span > svg {
    width: 13px;
    height: 13px;
  }

  .contact-and-location {
    break-inside: avoid;
  }

  .contact-and-location > section > h3 {
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .contact-content > span > a {
    color: black;
  }

  /* Sections not relevant to a printed handout */
  .small-listings {
    display: none;
  }

  .hr-container {
    display: none;
  }

  .fat-description {
    display: none;
  }

  .admin-panel-wrapper {
    display: none;
  }

  .gallery-wrapper {
    display: none;
  }
}