/* Related Markets (Bricks template 4318 on single market pages): the listings card with its component
   properties set to hide the side panel + and Show on map and to show "Map it". Card styles: market-card.css. */

.market-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--space-xs) * 17)), 1fr));
  align-items: stretch; /* equal-height cards so date bands line up */
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.market-related__grid > li {
  list-style: none;
}
/* Room between the city and the date band, which stays pinned to the card bottom. */
.market-related__grid .market-card__city {
  margin-block-end: var(--space-s);
}

@media (max-width: 480px) {
  .market-related__grid {
    gap: var(--space-xs);
  }
}
