/* A consistent card structure keeps the fleet tidy at every breakpoint. */
.fleet-grid {
  align-items: stretch;
}

.car-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  overflow: hidden;
}

.car-card > .vehicle-photo,
.car-card > .poster-crop {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
}

.car-top {
  min-height: 52px;
  align-items: center;
}

.car-top > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.car-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.car-info p {
  flex: 1;
  min-height: 0;
}

.car-info a {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .fleet-grid {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .car-top {
    min-height: 0;
  }
}
