/* v0.11 — mapa territorial refinado, información de hover estable y navegación enfocada en el mapa. */

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

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

/* El mapa ocupa el papel principal; la información auxiliar tiene altura fija. */
.page-home-mockup-v11 .tenencias-map-wrap {
  padding: .32rem;
  border: 1px solid #dce4f2;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
}

.tenencias-map-shell-v11 {
  display: grid;
  gap: .72rem;
}

.tenencias-map-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f9fe;
}

.tenencias-map-svg-v11 {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  border-radius: inherit;
  background: #f7f9fe;
}

.municipio-silhouette {
  stroke: #113276;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.municipio-outline {
  pointer-events: none;
}

.map-primary-route {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4.3;
  opacity: .88;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-roads {
  stroke-width: 2.35;
  opacity: .93;
}

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

.map-city-label {
  fill: #153678;
  font-family: Arial, sans-serif;
  font-size: 10.2px;
  font-weight: 900;
}

.tenencia-map-label {
  fill: #123476;
  font-family: Arial, sans-serif;
  font-size: 8.8px;
  font-weight: 800;
  letter-spacing: -.03px;
  pointer-events: none;
  transition: fill .15s 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,.48);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .15s ease, transform .15s ease;
}

.tenencia-map-dot {
  fill: #ffffff;
  stroke: #173c8d;
  stroke-width: 3.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .15s ease, stroke .15s ease, transform .15s ease, filter .15s ease;
}

.tenencia-map-center {
  fill: #423fa6;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .15s ease, transform .15s ease;
}

.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: .82;
  transform: scale(1.65);
}

.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: #f7dc77;
  stroke: #332c82;
  transform: scale(1.2);
  filter: url(#morelia-map-glow-v11);
}

.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: #2b267f;
  transform: scale(1.18);
}

.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;
}

/* Esta card no cambia de altura entre nombres cortos y largos. */
.tenencias-map-status-fixed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .82rem;
  min-height: 104px;
  height: 104px;
  padding: .82rem .9rem;
  border: 1px solid #dce3f1;
  border-radius: 14px;
  background: linear-gradient(105deg, #ffffff 0%, #f6f4ff 100%);
}

.map-status-copy {
  min-width: 0;
}

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

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

.tenencias-map-status-fixed strong {
  min-height: 2.45em;
  color: var(--v7-ink);
  font-size: .92rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tenencias-map-status-fixed span {
  min-height: 2.62em;
  margin-top: .12rem;
  color: var(--v7-muted);
  font-size: .74rem;
  line-height: 1.31;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tenencias-map-status-fixed .map-status-link {
  flex: 0 0 auto;
  max-width: 132px;
  color: var(--v7-violet);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1.32;
  text-align: right;
}

.tenencias-map-note {
  margin: 0;
  padding: 0 .18rem;
  color: #7480a0;
  font-size: .67rem;
  line-height: 1.35;
}

/* Ya no se presenta la lista completa: los 13 nombres viven en el mapa y aparecen en hover/focus. */
.tenencias-map-shell-v11 .tenencias-map-legend,
.tenencias-map-shell-v11 .tenencias-map-footer,
.tenencias-map-shell-v11 .map-list-toggle {
  display: none !important;
}

/* Más detalle de lectura, sin comprimir las miniaturas. */
@media (min-width: 980px) {
  .page-home-mockup-v11 .tenencias-explorer-layout {
    grid-template-columns: minmax(0, 1.24fr) minmax(225px, .76fr);
    gap: .9rem;
  }

  .page-home-mockup-v11 .tenencia-mini-grid {
    gap: .65rem;
  }

  .page-home-mockup-v11 .tenencia-mini-card img {
    aspect-ratio: 1.17;
  }

  .page-home-mockup-v11 .tenencia-mini-card strong {
    font-size: .89rem;
  }

  .page-home-mockup-v11 .tenencia-mini-card small {
    font-size: .72rem;
  }
}

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

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

  .tenencias-map-status-fixed {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 128px;
  }

  .tenencias-map-status-fixed .map-status-link {
    max-width: none;
    text-align: left;
  }
}


/* En inicio las tenencias viven en el mapa: se elimina la repetición de mini-cards. */
.page-home-mockup-v11 .tenencias-explorer-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

.page-home-mockup-v11 .tenencias-mini-grid {
  display: none !important;
}

.page-home-mockup-v11 .tenencias-map-wrap {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

@media (min-width: 980px) {
  .page-home-mockup-v11 .tenencias-map-wrap {
    max-width: 530px;
  }
}
