/* ============================================================
   Matrix Print — Seção Mapa
   Prefixo: mpm- (mp-mapa)
   ============================================================ */

.mpm-section {
  background: #e8eaed;
  padding: clamp(60px, 8vw, 110px) 0;
}

.mpm-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* HEADING */
.mpm-heading {
  text-align: center;
  margin-bottom: 36px;
}

.mpm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FF6B1A;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.mpm-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  color: #0f1220;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.mpm-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #6b7280;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* STATS */
.mpm-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  padding: 20px 32px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.mpm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mpm-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  color: #FF6B1A;
  line-height: 1;
}

.mpm-stat-plus {
  font-size: 0.6em;
  vertical-align: super;
}

.mpm-stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mpm-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .mpm-stats { gap: 20px; }
  .mpm-stat-div { display: none; }
  .mpm-stat { min-width: calc(50% - 10px); }
}

/* MAPA WRAP */
.mpm-map-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  height: 700px;
}

@media (max-width: 860px) {
  .mpm-map-wrap {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* SIDEBAR */
.mpm-sidebar {
  background: #0f1220;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mpm-sidebar-head {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.mpm-sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mpm-sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
}

.mpm-search-input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  color: #ffffff;
  width: 100%;
}

.mpm-search-input::placeholder {
  color: rgba(160,168,192,0.4);
}

.mpm-cities-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,107,26,0.3) transparent;
}

.mpm-cities-list::-webkit-scrollbar { width: 4px; }
.mpm-cities-list::-webkit-scrollbar-thumb { background: rgba(255,107,26,0.3); border-radius: 2px; }

.mpm-city-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 2px solid transparent;
}

.mpm-city-item:hover {
  background: rgba(255,255,255,0.05);
  border-left-color: rgba(255,107,26,0.4);
}

.mpm-city-item.mpm-active {
  background: rgba(255,107,26,0.1);
  border-left-color: #FF6B1A;
}

.mpm-city-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,107,26,0.4);
  flex-shrink: 0;
  transition: background 0.2s;
}

.mpm-city-item.mpm-active .mpm-city-dot,
.mpm-city-item:hover .mpm-city-dot {
  background: #FF6B1A;
}

.mpm-city-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: rgba(160,168,192,0.8);
  transition: color 0.2s;
  flex: 1;
}

.mpm-city-item.mpm-active .mpm-city-name,
.mpm-city-item:hover .mpm-city-name {
  color: #ffffff;
}

.mpm-city-state {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: rgba(160,168,192,0.35);
  flex-shrink: 0;
}

.mpm-sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.mpm-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.mpm-sidebar-cta:hover {
  background: #1da851;
  color: #fff;
}

/* MAPA */
.mpm-map-inner {
  position: relative;
  isolation: isolate;
}

/* Impede que as camadas do Leaflet vazem para fora do container */
.mpm-map-wrap {
  isolation: isolate;
}

.mpm-section {
  position: relative;
  z-index: 1;
}

.mpm-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

/* CONTROLES */
.mpm-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mpm-ctrl {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #0f1220;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s;
  line-height: 1;
}

.mpm-ctrl:hover {
  background: #FF6B1A;
  color: #fff;
  border-color: #FF6B1A;
}

/* Toggle mobile */
.mpm-sidebar-toggle {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 999;
  background: #0f1220;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 860px) {
  .mpm-sidebar {
    display: none;
    height: 300px;
  }
  .mpm-sidebar.mpm-open {
    display: flex;
  }
  .mpm-sidebar-toggle {
    display: flex;
  }
  .mpm-map-wrap {
    height: auto;
  }
  .mpm-map {
    height: 400px;
  }
}

/* Popup Leaflet customizado */
.mpm-popup {
  font-family: 'Space Grotesk', sans-serif;
  padding: 4px;
}
.mpm-popup-city {
  font-size: 14px;
  font-weight: 700;
  color: #0f1220;
  margin-bottom: 6px;
}
.mpm-popup-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}
.mpm-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.mpm-popup-btn:hover { background: #1da851; color: #fff; }