/*
 * MCR hub full listings - depth phase 2.
 *
 * Styles only the listings block appended by mcrcity_hub_v4_full_listings().
 * Every selector is scoped to .hub-listings / .hl-*, so nothing here can reach
 * the approved hub design (.hub, .ev-strip, .ev-card, .cat-grid) above it.
 *
 * The block is a sibling of .hub inside main.CENTRE.static-prototype-page, so
 * it carries its own horizontal padding to line up with the hub above.
 */

.hub-listings,
.hub-listings * {
  box-sizing: border-box;
}

.hub-listings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  width: 100%;
}

/* Desktop hub pages widen .hub to full width; match it so the rows line up
   with the card strip rather than floating in a narrower column. */
@media (min-width: 901px) {
  main.CENTRE.static-prototype-page .hub-listings {
    max-width: none;
  }
}

/* Under 900px the page shell already supplies 14px side padding and zeroes
   .hub's own padding, so the block must not add a second gutter. */
@media (max-width: 900px) {
  .hub-listings {
    padding: 0 0 40px;
  }
}

.hub-listings .hl-head {
  margin: 0 0 12px;
}

/* Matches the hub's own .sec-title (800 / 1.05rem / -.01em) so the block
   reads as another hub section, not a bolted-on list. */
.hub-listings .hl-h {
  margin: 0 0 4px;
  color: #111114;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.hub-listings .hl-sub {
  margin: 0;
  color: #6b7280;
  font-size: .76rem;
  line-height: 1.35;
}

.hub-listings .hl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(17, 17, 20, .10);
}

.hub-listings .hl-row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(17, 17, 20, .08);
  list-style: none;
}

.hub-listings .hl-row::marker {
  content: "";
}

.hub-listings .hl-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease;
}

.hub-listings .hl-link:hover,
.hub-listings .hl-link:focus-visible {
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 17, 20, .08);
  outline: none;
}

.hub-listings .hl-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  padding: 5px 0 6px;
  border-radius: 8px;
  background: #f3f4f6;
  line-height: 1;
}

.hub-listings .hl-dow,
.hub-listings .hl-mon {
  color: #6b7280;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hub-listings .hl-day {
  margin: 2px 0 1px;
  color: #111114;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.hub-listings .hl-row-today .hl-date {
  background: #E8201A;
}

.hub-listings .hl-row-today .hl-dow,
.hub-listings .hl-row-today .hl-mon,
.hub-listings .hl-row-today .hl-day {
  color: #fff;
}

.hub-listings .hl-main {
  min-width: 0;
}

.hub-listings .hl-title {
  display: block;
  color: #111114;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.hub-listings .hl-meta {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hub-listings .hl-price {
  justify-self: end;
  color: #E8201A;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.hub-listings .hl-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
}

.hub-listings .hl-all {
  color: #E8201A;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.hub-listings .hl-all:hover {
  text-decoration: underline;
}

/* Narrow phones: price drops under the title instead of squeezing the
   middle column to nothing. The date block stays pinned left. */
@media (max-width: 540px) {
  .hub-listings .hl-link {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "date main"
      "date price";
    align-items: start;
    gap: 3px 10px;
    padding: 9px 4px;
  }

  .hub-listings .hl-date {
    grid-area: date;
    width: 46px;
    min-width: 46px;
    align-self: start;
  }

  .hub-listings .hl-main {
    grid-area: main;
  }

  .hub-listings .hl-price {
    grid-area: price;
    justify-self: start;
  }

  .hub-listings .hl-title {
    font-size: .86rem;
  }

  .hub-listings .hl-meta {
    font-size: .69rem;
  }

  .hub-listings .hl-h {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-listings .hl-link {
    transition: none;
  }
}
