/* ==========================================================================
   AZTECH METAL - MAPA DE CONCIERTOS
   Leaflet trae su propia hoja; aquí solo va lo que lo pone en el tono del
   sitio y los marcadores propios.
   ========================================================================== */

.mp-main { padding-bottom: 4rem; }

.mp-cabeza {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
}

.mp-eyebrow {
  display: inline-block;
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gx-red, #FF2A24);
  padding: 0.28rem 0.6rem;
  margin-bottom: 0.9rem;
}

.mp-titulo {
  font-family: var(--font-headline, 'Barlow Condensed', sans-serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.8rem;
}
.mp-titulo em { font-style: normal; color: var(--gx-red, #FF2A24); }

.mp-bajada {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.4rem;
  max-width: 62ch;
}

/* ------------------------------- Controles ------------------------------- */
.mp-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem;
  padding-bottom: 1rem;
}

.mp-filtro { display: flex; flex-direction: column; gap: 0.3rem; }
.mp-filtro span {
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.mp-filtro select {
  min-width: 170px;
  padding: 0.55rem 0.7rem;
  background: var(--gx-panel, #101014);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.88rem;
  cursor: pointer;
}
.mp-filtro select:focus { outline: 2px solid var(--gx-red, #FF2A24); outline-offset: 1px; }

.mp-limpiar {
  padding: 0.6rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.mp-limpiar:hover { border-color: var(--gx-red, #FF2A24); color: #fff; }

.mp-cuenta {
  margin-left: auto;
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gx-red, #FF2A24);
  padding-bottom: 0.6rem;
}

/* ------------------------------- El lienzo ------------------------------- */
.mp-lienzo-caja {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#mapa-lienzo {
  height: clamp(420px, 68vh, 720px);
  width: 100%;
  background: #0b0b0e;
  z-index: 1;
}

/* Las teselas de OpenStreetMap son claras y el sitio es oscuro. Se oscurecen
   con un filtro para que no deslumbren, sin llegar a volverlas ilegibles. */
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.86) contrast(0.92) saturate(0.55);
}

.leaflet-container { background: #0b0b0e; font-family: var(--font-data, 'Barlow', sans-serif); }
.leaflet-control-attribution {
  background: rgba(10, 10, 12, 0.85) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.66rem !important;
}
.leaflet-control-attribution a { color: var(--gx-red, #FF2A24) !important; }
.leaflet-control-zoom a {
  background: #101014 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.leaflet-control-zoom a:hover { background: var(--gx-red, #FF2A24) !important; }

/* ------------------------------ Marcadores ------------------------------ */
.mp-pin {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--gx-red, #FF2A24);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.16s ease;
}
.mp-pin:hover { transform: scale(1.15); }
.mp-pin-multi { font-size: 0.95rem; }
.mp-pin-aprox { border-style: dashed; opacity: 0.85; }

/* -------------------------------- Globo -------------------------------- */
.leaflet-popup-content-wrapper {
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
}
.leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup-tip { background: #101014; border: 1px solid rgba(255, 255, 255, 0.16); }
.leaflet-popup-close-button { color: rgba(255, 255, 255, 0.5) !important; }
.leaflet-popup-close-button:hover { color: #fff !important; }

.mp-globo { padding: 0.85rem 0.95rem; }
.mp-globo h4 {
  font-family: var(--font-headline, 'Barlow Condensed', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.05;
}
.mp-globo-ciudad {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 0.6rem;
}
.mp-globo-ciudad em { font-style: normal; color: rgba(255, 255, 255, 0.55); }

.mp-globo-lista { list-style: none; margin: 0; padding: 0; max-height: 210px; overflow-y: auto; }
.mp-globo-lista li { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.mp-globo-lista a {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.5rem 0;
  text-decoration: none;
}
.mp-globo-lista a:hover span { color: var(--gx-red, #FF2A24); }
.mp-globo-lista b {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gx-red, #FF2A24);
  white-space: nowrap;
}
.mp-globo-lista span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  transition: color 0.15s ease;
}
.mp-globo-lista i {
  grid-column: 2;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* -------------------------------- Aviso -------------------------------- */
.mp-aviso {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 4vw, 3rem) 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}
.mp-aviso a { color: var(--gx-red, #FF2A24); }

@media (max-width: 720px) {
  .mp-cuenta { margin-left: 0; width: 100%; padding-bottom: 0; }
  .mp-filtro { flex: 1 1 100%; }
  .mp-filtro select { width: 100%; }
}

/* Círculo de un grupo de recintos. El número es la suma de fechas. */
.mp-grupo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 42, 36, 0.92);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-data, 'Barlow', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 0 0 7px rgba(255, 42, 36, 0.22), 0 4px 16px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s ease;
}
.mp-grupo:hover { transform: scale(1.1); }

/* La línea que Leaflet dibuja al abrir un grupo en abanico. */
.leaflet-cluster-spider-leg { stroke: rgba(255, 42, 36, 0.6) !important; }
