/**
 * site-venue-list.css - a venue as a row: optional image, name, address, tags, one action.
 *
 * Consumers: the map's List view (venues{,-bg}.html, action "Show on map") and the Book a venue
 * page (action "Book", with the venue's photo on the left). The markup comes from buildVenueRow in
 * scripts/generate-partner-venue-pages.js, so both lists are one component. The Partner badge and
 * the sport / access pills are the venue pages' own, from site-venue-tags.css.
 *
 * Built on the tokens in site-theme.css.
 */

@import url("/assets/css/site-venue-tags.css");

.vl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--sn-surface);
  box-shadow: 0 2px 10px rgba(7, 26, 52, 0.07);
}

.vl-item[hidden] { display: none; }

.vl-media {
  flex: 0 0 auto;
  display: block;
  width: 172px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--sn-radius);
  background: var(--sn-surface-alt);
}

.vl-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.vl-main { flex: 1; min-width: 0; }

.vl-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.vl-name { color: var(--sn-text); text-decoration: none; }
.vl-name:hover { color: var(--sn-primary); }
.vl-name:focus-visible { outline: 2px solid var(--sn-primary); outline-offset: 2px; border-radius: 4px; }

.vl-address { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--sn-text-2); }

.vl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-tags .venue-tag { padding: 4px 11px; font-size: 12.5px; }

/* The action: outlined for "Show on map" (a way to look), the CTA fill for "Book" (the thing to do). */
.vl-map-btn, .vl-book {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--sn-radius-cta);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--sn-cta-ease);
}

.vl-map-btn { border: 1.5px solid var(--sn-primary); background: var(--sn-surface); color: var(--sn-primary); }
.vl-book { border: none; background: var(--sn-cta); color: var(--sn-cta-text); }

@media (hover: hover) and (pointer: fine) {
  .vl-map-btn:hover { background: var(--sn-primary); color: var(--sn-on-dark); }
  .vl-book:hover { transform: var(--sn-cta-hover-scale); opacity: var(--sn-cta-hover-opacity); }
}

.vl-map-btn:focus-visible, .vl-book:focus-visible { outline: 2px solid var(--sn-primary); outline-offset: 2px; }

.vl-empty { margin-top: 24px; text-align: center; color: var(--sn-text-2); font-size: 15px; }
.vl-empty[hidden] { display: none; }
.vl-suggest { padding: 0; border: none; background: none; font: inherit; font-weight: 700; color: var(--sn-primary); text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .vl-item { flex-direction: column; align-items: stretch; }
  .vl-media { width: 100%; }
  .vl-map-btn, .vl-book { align-self: flex-start; }
}
