/* =========================
   MAP
========================= */

#exquisheat-map {
  width: 100%;
  height: 700px;
  z-index: 1;
}

.leaflet-container {
  background: transparent;
}

/* =========================
   PAÍSES
========================= */

/* País padrão */
.exquisheat-country {
  fill: #e0e0e0;
  stroke: #ffffff;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.2s ease;
}

/* País com parceiros */
.exquisheat-country.has-partners {
  fill: #ef5350;
}

/* Hover */
.exquisheat-country:hover {
  fill: #ef5350;
}

/* =========================
   LABEL FIXO (MARKER)
========================= */

/* remove qualquer fundo padrão do Leaflet */
.country-count {
  background: transparent !important;
  border: 0 !important;
}

/* conteúdo visual do label */
.country-count-inner {
  background: #84b83b;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1.15;
  text-align: center;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* nome do país */
.country-count-inner strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

/* quantidade */
.country-count-inner span {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

/* =========================
   MODAL
========================= */

#exquisheat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#exquisheat-modal.open {
  display: flex;
}

/* caixa do modal */
#exquisheat-modal .box {
  background: #ffffff;
  padding: 20px 22px;
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* título */
#exquisheat-modal .title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

/* links */
#exquisheat-modal .content a {
  display: block;
  margin-bottom: 6px;
  color: #c62828;
  text-decoration: none;
  font-size: 14px;
}

#exquisheat-modal .content a:hover {
  text-decoration: underline;
}

/* botão fechar */
.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {

  /* altura reduzida do mapa */
  #exquisheat-map {
    height: 450px;
  }

  /* margem lateral e inferior no modal */
  #exquisheat-modal {
    padding: 20px;
    box-sizing: border-box;
  }

  #exquisheat-modal .box {
    max-width: 100%;
    margin: auto;
  }

  /* label um pouco menor no mobile */
  .country-count-inner {
    padding: 5px 8px;
  }

  .country-count-inner strong,
  .country-count-inner span {
    font-size: 11px;
  }
}
