/* ============================================================
   Planos del evento — three halls in a row. Each: title, the
   legend lifted out of the artwork as live HTML, then the map.
   No coloured card frame, no icon.
   ============================================================ */

.ff-maps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.8rem, 5vw, 2.6rem);
  max-width: 30rem;
  margin-inline: auto;
}

.ff-map {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

@media (min-width: 768px) {
  .ff-maps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.4rem, 3vw, 2.2rem);
    max-width: none;
  }

  /* Keep titles, legends and maps aligned across the row even when the
     halls have a different number of legend entries. */
  @supports (grid-template-rows: subgrid) {
    .ff-maps { grid-template-rows: auto auto auto; }
    .ff-map {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: .9rem;
    }
  }
}

.ff-map__title {
  margin: 0;
  font-family: "MatrixIIOT-Book", "Uncial Antiqua", "Outfit", system-ui;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.15;
  color: var(--ff-ink);
  text-align: center;
}

/* ---- legend (before the map) ---- */
.ff-map__legend {
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--ff-parchment-card);
  border: 1px solid rgba(var(--ff-ink-rgb), .18);
  box-shadow: 0 4px 12px rgba(var(--ff-ink-rgb), .08);
}

.ff-map__legend-title {
  margin: 0 0 .55rem;
  font-family: "Outfit", "Inter", system-ui;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ff-ink-soft);
}

.ff-map__legend-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .88rem;
  line-height: 1.3;
  color: var(--ff-ink);
}

.ff-map__legend-item + .ff-map__legend-item {
  margin-top: .45rem;
}

.ff-map__dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: .2em;
  border-radius: 50%;
  background: var(--dot);
  border: 1px solid rgba(var(--ff-ink-rgb), .35);
}

/* ---- map ---- */
.ff-map__figure {
  position: relative;
  margin: 0;
  align-self: start;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(var(--ff-ink-rgb), .5);
  box-shadow: inset 0 0 0 2px rgba(var(--ff-parchment-card-rgb), .9);
  background-color: var(--ff-parchment-card);
}

.ff-map__link {
  display: block;
  cursor: zoom-in;
}

.ff-map__link img {
  display: block;
  width: 100%;
  height: auto;
}

.ff-map__hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Outfit", "Inter", system-ui;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(var(--ff-ink-rgb), .82);
  padding: .34rem .7rem;
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference) {
  .ff-map__figure {
    transition: transform .18s ease, box-shadow .18s ease;
  }
}
