.garage-v179 {
  --garage-primary: #3182f6;
  display: grid;
  gap: 18px;
  padding: 0 20px 28px;
}

.garage-v179 .garage-hero {
  aspect-ratio: 16 / 9;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-color: #dce8f3;
  background-image: var(--garage-scene);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
}

.garage-hero-shade {
  display: none;
}

.garage-hero-ant {
  position: absolute;
  z-index: 3;
  width: clamp(54px, 15%, 96px);
  left: 8%;
  bottom: 7%;
}

.garage-hero-ant:empty {
  display: none;
}

.garage-hero-ant-avatar {
  display: block;
  width: 100%;
  height: auto;
}

.garage-hero-copy {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  display: grid;
  gap: 2px;
  width: min(78%, 430px);
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  left: 14px;
  top: 12px;
  color: #191f28;
  text-shadow: none;
  background: rgb(255 255 255 / 94%);
  border: 1px solid #d1d6db;
  border-radius: 8px;
}

.garage-hero-copy > span {
  color: #3182f6;
  font-size: 11px;
  font-weight: 850;
}

.garage-hero-copy strong {
  overflow-wrap: anywhere;
  font-size: clamp(17px, 4.8vw, 24px);
  font-weight: 850;
  line-height: 1.2;
}

.garage-hero-copy small {
  color: #4e5968;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.garage-hero:is([data-garage-trip-status="active"], [data-garage-trip-status="arrived"]) .garage-hero-copy {
  color: #191f28;
  text-shadow: none;
}

.garage-hero:is([data-garage-trip-status="active"], [data-garage-trip-status="arrived"]) .garage-hero-copy > span {
  color: #3182f6;
}

.garage-hero:is([data-garage-trip-status="active"], [data-garage-trip-status="arrived"]) .garage-hero-copy small {
  color: #4e5968;
}

.garage-arrival-button {
  position: absolute;
  z-index: 5;
  min-height: 42px;
  right: 12px;
  top: 12px;
  padding: 0 14px;
  color: #fff;
  background: var(--garage-primary);
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.garage-hero:has(.garage-arrival-button) .garage-hero-copy {
  width: min(56%, 360px);
  max-width: calc(100% - 154px);
}

.garage-route-picker {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  gap: 10px;
  padding: 14px;
  background: #f2f4f6;
  border-radius: 8px;
}

.garage-route-picker > header {
  display: grid;
  gap: 2px;
}

.garage-route-picker > header span {
  color: #6b7684;
  font-size: 12px;
  font-weight: 700;
}

.garage-route-picker > header strong {
  color: #191f28;
  font-size: 17px;
  font-weight: 850;
}

.garage-route-list {
  display: grid;
  gap: 8px;
}

.garage-route-button {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: 66px;
  padding: 11px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #191f28;
  background: #fff;
  border: 1px solid #d1d6db;
  border-radius: 7px;
}

.garage-route-copy,
.garage-route-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.garage-route-copy strong {
  font-size: 15px;
  font-weight: 850;
}

.garage-route-copy small,
.garage-route-meta small {
  color: #6b7684;
  font-size: 12px;
  line-height: 1.35;
}

.garage-route-copy small {
  overflow-wrap: break-word;
}

.garage-route-meta {
  justify-items: end;
}

.garage-route-meta b {
  color: var(--garage-primary);
  font-size: 14px;
}

.garage-v179 .garage-vehicle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.garage-v179 .garage-vehicle-card {
  display: grid;
  min-width: 0;
  min-height: 242px;
  padding: 10px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 94px 82px 48px;
  align-items: center;
  gap: 6px 8px;
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
}

.garage-v179 .garage-vehicle-card[data-vehicle-state="selected"] {
  border-color: #3182f6;
  box-shadow: inset 0 0 0 1px #3182f6;
}

.garage-vehicle-media {
  display: grid;
  min-width: 0;
  height: 94px;
  grid-column: 1 / -1;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
}

.garage-v179 .garage-vehicle-image {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.garage-v179 .garage-vehicle-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  grid-column: 1 / -1;
  align-content: start;
}

.garage-v179 .garage-vehicle-copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.garage-v179 .garage-vehicle-copy span,
.garage-v179 .garage-vehicle-copy small {
  color: #6b7684;
  font-size: 11px;
  line-height: 1.3;
}

.garage-v179 .garage-vehicle-requirements {
  min-height: 40px;
  overflow: hidden;
  word-break: keep-all;
}

.garage-v179 .garage-vehicle-action {
  width: 100%;
  min-width: 58px;
  min-height: 36px;
  padding: 0 9px;
  grid-column: 1 / -1;
  font-size: 12px;
}

.garage-v179 .garage-vehicle-selected:disabled {
  color: #3182f6;
  background: #edf5ff;
}

.garage-roadbook {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f2f4f6;
  border-radius: 8px;
}

.garage-roadbook > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.garage-roadbook > header div {
  display: grid;
  gap: 1px;
}

.garage-roadbook > header span,
.garage-roadbook p,
.garage-roadbook small {
  margin: 0;
  color: #6b7684;
  font-size: 12px;
}

.garage-roadbook h3 {
  margin: 0;
  color: #191f28;
  font-size: 17px;
}

.garage-roadbook > header > strong {
  color: #3182f6;
  font-size: 15px;
}

.garage-roadbook > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.garage-roadbook > div > span {
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  align-items: center;
  background: #fff;
  border-radius: 6px;
}

.garage-roadbook b {
  font-size: 12px;
}

@media (max-width: 390px) {
  .garage-v179 {
    padding-inline: 14px;
  }

  .garage-hero-copy {
    width: min(82%, 320px);
    padding: 9px 12px;
  }

  .garage-hero:has(.garage-arrival-button) .garage-hero-copy {
    width: calc(100% - 142px);
    max-width: calc(100% - 142px);
  }

  .garage-arrival-button {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (min-width: 720px) {
  .garage-v179 {
    width: min(calc(100% - 40px), 820px);
    margin-inline: auto;
  }

  .garage-v179 .garage-vehicle-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .garage-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .garage-route-button:only-child {
    grid-column: 1 / -1;
  }
}

/* The empty state shares the same full-width bottom banner as gallery and vault. */
.garage-v179 .garage-hero.garage-hero-empty .garage-empty-copy.showcase-room-empty {
  inset: auto 12px 12px;
  width: auto;
  max-width: none;
}
