/* Header acima do Leaflet (panes usam z-index 400+) */
.hubr-iniciativa-mapa-page .site-header,
.hubr-iniciativa-mapa-page header {
  position: relative;
  z-index: 1000;
}

.hubr-iniciativa-mapa-page .hubr-mapa {
  position: relative;
  z-index: 0;
}

.hubr-mapa {
  padding: 0;
  background-color: #f9f7f2;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.hubr-mapa__inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hubr-mapa__filters-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .hubr-mapa__filters-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.hubr-mapa__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.hubr-mapa__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.hubr-mapa__label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.hubr-mapa__select {
  width: 100%;
  min-width: 160px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background-color: transparent;
  color: #1f2937;
  font-size: 14px;
  padding: 10px 36px 10px 16px;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #727372 50%), linear-gradient(135deg, #727372 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hubr-mapa__select:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 1px #9ca3af;
}

.hubr-mapa__filter-btn {
  border: 1.5px solid #111827;
  border-radius: 999px;
  background-color: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 56px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.hubr-mapa__filter-btn:hover {
  background-color: rgba(17, 24, 39, 0.05);
}

.hubr-mapa__list-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
}

.hubr-mapa__list-link:hover {
  color: #111827;
}

.hubr-mapa__status {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.hubr-mapa__error {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 16px 20px;
  color: #b91c1c;
  text-align: center;
}

.hubr-mapa__canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 280px);
  overflow: hidden;
  background: #e5e7eb;
}

.hubr-mapa__canvas {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 480px;
}

.hubr-map-pin-icon {
  background: transparent;
  border: none;
}

.hubr-map-pin-icon svg {
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
  transition: transform 0.2s ease;
}

.hubr-map-pin-icon--active svg {
  transform: scale(1.08);
}

.hubr-mapa-card {
  position: absolute;
  z-index: 1000;
  width: min(440px, calc(100vw - 2rem));
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.hubr-mapa-card__inner {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hubr-mapa-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.hubr-mapa-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.hubr-mapa-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hubr-mapa-card__title {
  margin: 0;
  padding-top: 4px;
  flex: 1;
  min-width: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  overflow-wrap: anywhere;
}

.hubr-mapa-card__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.hubr-mapa-card__tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hubr-mapa-card__tags-row--residuos {
  gap: 6px;
}

.hubr-mapa-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.hubr-mapa-card__tag--wrap {
  white-space: normal;
}

.hubr-mapa-card__tag-icon {
  display: flex;
  flex-shrink: 0;
}

.hubr-mapa-card__tag--tipo {
  background: transparent;
  color: #4b5563;
}

.hubr-mapa-card__tag--categoria {
  background: #f0fdf4;
  color: #15803d;
}

.hubr-mapa-card__tag--residuo-item {
  flex-shrink: 0;
}

.hubr-mapa-card__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hubr-mapa-card__location {
  margin: 12px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.hubr-mapa-card__location-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
  color: #6b7280;
}

.hubr-mapa-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.hubr-mapa-card__link:hover {
  color: #e95e0b;
}

.hubr-mapa-card__link-icon {
  display: flex;
}

.leaflet-container {
  font-family: inherit;
}
