/* ===================== Nadcházející akce (events) ===================== */
.mm-web-events {
  padding: 0 var(--gutter);
  margin-bottom: 160px;
  color: var(--fg-base);
}

.mm-web-events__title { margin: 0 0 48px; }

/* 3 karty vedle sebe, oddělené 1px linkami, nahoře horizontální linka */
.mm-web-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(10, 44, 34, 0.07);
}

.mm-web-events__card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-right: 1px solid rgba(10, 44, 34, 0.07);
  border-bottom: 1px solid rgba(10, 44, 34, 0.07);
}
.mm-web-events__card:last-child { border-right: 0; }

/* Barevná 16:9 dlaždice s mini logem a městem */
.mm-web-events__tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--tile-bg, var(--green-muted));
}
.mm-web-events__tile--lime   { --tile-bg: var(--lime); }
.mm-web-events__tile--purple { --tile-bg: var(--purple-muted); }
/* Proběhlá akce: šedá dlaždice (přebíjí barevné schéma výše). */
.mm-web-events__tile--past   { --tile-bg: var(--bg-subtle); }
/* Prokliknutelná dlaždice (web akce): odkaz se chová jako blok bez link stylů. */
.mm-web-events__tile--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mm-web-events__logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 120px;
  height: auto;
}
.mm-web-events__city {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-family: "Founders Grotesk", system-ui, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Štítek „Proběhlo" v pravém horním rohu dlaždice */
.mm-web-events__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(10, 44, 34, 0.1);
  font-family: "Founders Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-base);
}

.mm-web-events__date {
  min-height: 52px;
  margin: 16px 0 0;
  font-family: "Founders Grotesk", system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

/* Spodní blok: titulek + popis nahoře, tlačítko přilepené dole */
.mm-web-events__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 54px;
}
.mm-web-events__name {
  margin: 0;
  font-family: "Founders Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.mm-web-events__desc {
  margin: 24px 0 24px;
  font-family: "Inter Display", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
.mm-web-events__cta { margin-top: auto; align-self: flex-start; }

/* ===================== Mobil (≤900px) ===================== */
@media (max-width: 900px) {
  .mm-web-events { margin-bottom: 72px; }
  .mm-web-events__title { margin-bottom: 32px; }

  /* swipe carousel: 1 karta na obrazovku, nativní scroll-snap */
  .mm-web-events__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-top: 0;
    scrollbar-width: none;
  }
  .mm-web-events__grid::-webkit-scrollbar { display: none; }
  .mm-web-events__card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0;
    border: 0;
  }
  .mm-web-events__body { margin-top: 48px; }
}
