body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#container {
  display: flex;
  height: 100vh;
}

#map {
  flex: 1;
}

/* SIDEBAR */
#sidebar {
  width: 300px;
  padding: 20px;
  background: #344F8A; /* azul institucional */
  color: #fff;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.titulo {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
}

/* BLOCOS */
.bloco {
  margin-bottom: 25px;
}

label {
  font-size: 13px;
  color: #fff;
}

/* SELECT */
select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: none;
  outline: none;
}

/* RANKING */
.cidade-item {
  margin-bottom: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
}

.cidade-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(5px);
  cursor: pointer;
}


/* */

/* PIN */
.marker-pin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

/* TEXTO */
.marker-pin span {
  font-size: 12px;
}

/* HOVER */
.marker-pin:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.marker-pin::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* **/

/* POPUP CONTAINER */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

/* REMOVE ESPAÇO PADRÃO */
.leaflet-popup-content {
  margin: 0;
}

/* POPUP CUSTOM */
.popup {
  font-family: Arial, sans-serif;
  width: 200px;
}

/* HEADER */
.popup-header {
  background: #344F8A;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

/* BODY */
.popup-body {
  padding: 10px;
  background: #f9f9f9;
}

/* ITEM */
.popup-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza tudo */
  margin-bottom: 10px;
  text-align: center;
}

/* LABEL */
.label {
  font-size: 12px;
  color: #777;
  margin-bottom: 2px;
}

/* VALUE */
.value {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  text-align: center;
  word-break: break-word; /* quebra só se precisar */
}

.popup-body {
  padding: 12px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* FOOTER */
.popup-footer {
  padding: 8px;
  text-align: center;
  background: #eee;
  font-size: 13px;
  font-weight: bold;
}

/*/*