/* v0.10 — Mapa territorial de Morelia, interactivo y preparado para crecer. */

.page-home-mockup-v10 .tenencias-explorer-card {
  overflow: hidden;
}

.page-home-mockup-v10 .tenencias-explorer-layout {
  align-items: start;
}

/* La card se queda contenida: el mapa es el foco y la lista se despliega solo si se necesita. */
.page-home-mockup-v10 .tenencias-map-wrap {
  padding: .15rem;
  border: 1px solid #e2e7f3;
  border-radius: 18px;
  background: #fbfcff;
}

.tenencias-map-shell-territorial {
  display: grid;
  gap: .7rem;
}

.tenencias-map-svg-territorial {
  display: block;
  width: 100%;
  min-height: 280px;
  height: auto;
  overflow: visible;
  border-radius: 15px;
  background: #f7f9fe;
}

.municipio-silhouette {
  stroke: #102f76;
  stroke-width: 4;
  stroke-linejoin: round;
}

.municipio-urban-core {
  stroke: #d9e4ff;
  stroke-width: 2;
}

.map-roads {
  stroke-width: 2.6;
  opacity: .82;
}

.map-city-label,
.tenencia-map-label,
.map-north text {
  paint-order: stroke;
  stroke: rgba(255,255,255,.92);
  stroke-width: 3.8px;
  stroke-linejoin: round;
}

.map-city-label {
  fill: #173a83;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.tenencia-map-label {
  fill: #1a3579;
  font-family: Arial, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  pointer-events: none;
  transition: fill .18s ease, font-size .18s ease;
}

.map-north text {
  fill: #234c9e;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.tenencia-map-link {
  cursor: pointer;
  outline: none;
}

.tenencia-map-ping {
  fill: rgba(255,255,255,.5);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.tenencia-map-dot {
  fill: #fff;
  stroke: #183c8c;
  stroke-width: 3.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .18s ease, stroke .18s ease, transform .18s ease, filter .18s ease;
}

.tenencia-map-center {
  fill: #3d42a2;
  transition: fill .18s ease, transform .18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.tenencia-map-link.is-urban .tenencia-map-dot {
  fill: #f7d66c;
  stroke: #5a449d;
}

.tenencia-map-link:hover .tenencia-map-ping,
.tenencia-map-link:focus .tenencia-map-ping,
.tenencia-map-link:focus-visible .tenencia-map-ping,
.tenencia-map-link.is-active .tenencia-map-ping {
  opacity: .8;
  transform: scale(1.7);
}

.tenencia-map-link:hover .tenencia-map-dot,
.tenencia-map-link:focus .tenencia-map-dot,
.tenencia-map-link:focus-visible .tenencia-map-dot,
.tenencia-map-link.is-active .tenencia-map-dot {
  fill: #f6dc77;
  stroke: #342d83;
  transform: scale(1.22);
  filter: url(#morelia-map-glow);
}

.tenencia-map-link:hover .tenencia-map-center,
.tenencia-map-link:focus .tenencia-map-center,
.tenencia-map-link:focus-visible .tenencia-map-center,
.tenencia-map-link.is-active .tenencia-map-center {
  fill: #2c267f;
  transform: scale(1.25);
}

.tenencia-map-link:hover .tenencia-map-label,
.tenencia-map-link:focus .tenencia-map-label,
.tenencia-map-link:focus-visible .tenencia-map-label,
.tenencia-map-link.is-active .tenencia-map-label {
  fill: #2f2783;
  font-size: 9.3px;
}

.tenencias-map-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .72rem .8rem;
  border: 1px solid #dde3f1;
  border-radius: 13px;
  background: linear-gradient(90deg, #ffffff 0%, #f5f4ff 100%);
}

.map-status-kicker {
  margin: 0 0 .18rem;
  color: #16709c;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tenencias-map-status strong,
.tenencias-map-status span {
  display: block;
}

.tenencias-map-status strong {
  color: var(--v7-ink);
  font-size: .88rem;
}

.tenencias-map-status span {
  margin-top: .16rem;
  color: var(--v7-muted);
  font-size: .74rem;
  line-height: 1.35;
}

.map-status-link {
  flex: 0 0 auto;
  color: var(--v7-violet);
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.tenencias-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .12rem .2rem 0;
}

.tenencias-map-footer > span {
  max-width: 58ch;
  color: #7380a0;
  font-size: .66rem;
  line-height: 1.35;
}

.map-list-toggle {
  flex: 0 0 auto;
  border: 0;
  padding: .35rem .55rem;
  border-radius: 8px;
  color: var(--v7-violet);
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.map-list-toggle:hover,
.map-list-toggle:focus-visible {
  background: #eeeefe;
  outline: none;
}

.tenencias-map-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .5rem;
  margin: 0;
  padding: .55rem 0 0;
  border-top: 1px solid #e5e9f3;
  list-style: none;
}

.tenencias-map-legend a {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: start;
  gap: .45rem;
  padding: .28rem .35rem;
  border-radius: 8px;
  color: #344770;
  font-size: .71rem;
  line-height: 1.25;
}

.tenencias-map-legend a:hover,
.tenencias-map-legend a:focus-visible {
  color: var(--v7-violet);
  background: #f0f1fe;
  outline: none;
}

.legend-dot {
  width: 8px;
  height: 8px;
  margin-top: .2rem;
  border: 2px solid #173d91;
  border-radius: 999px;
  background: #fff;
}

/* Integra mejor el mapa con las miniaturas adyacentes. */
@media (min-width: 980px) {
  .page-home-mockup-v10 .tenencias-explorer-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr);
  }

  .page-home-mockup-v10 .tenencia-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .page-home-mockup-v10 .tenencia-mini-card img {
    aspect-ratio: 1.18;
  }
}

@media (max-width: 680px) {
  .tenencias-map-svg-territorial {
    min-height: 240px;
  }

  .tenencia-map-label,
  .map-city-label {
    display: none;
  }

  .tenencias-map-status {
    align-items: start;
    flex-direction: column;
  }

  .tenencias-map-footer {
    align-items: start;
    flex-direction: column;
  }

  .tenencias-map-legend {
    grid-template-columns: 1fr;
  }
}
