/* Pages — reusable grid & card styles for static info pages */

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 80ch) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 55ch) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 35ch) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.info-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.info-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.info-card__name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.info-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.info-card__link {
  font-size: 0.85rem;
  margin-top: auto;
}

/* Rental listings — stacked rows divided by hairlines, not cards.
   Each rental is one media-object row: logo left, body right.
   Collapses to logo-on-top on narrow screens. */
.rental-list {
  display: flex;
  flex-direction: column;
  margin-block: 1.5rem;
}

.rental {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;

  @media (max-width: 55ch) {
    grid-template-columns: 1fr;
  }
}

.rental + .rental {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.rental__image {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  margin-inline: auto;
}

.rental__name {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.rental__desc {
  margin: 0;
  color: var(--color-text-muted);
}

