.heatmap-wrap {
  margin: 20px 0;
}

#pa-heatmap {
  width: 100%;
  height: 720px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f7fa;
}

.heatmap-legend-block {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  line-height: 1.3;
  backdrop-filter: blur(4px);
}

.heatmap-legend-block .legend-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.heatmap-legend-block .legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.heatmap-legend-block .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.heatmap-legend-block .swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.heatmap-legend-block .legend-meta {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}

.leaflet-tooltip {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}

/*  Responsive Adjustments */

@media (max-width: 768px) {
  #pa-heatmap {
    height: 560px;
  }

  .heatmap-legend-block {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  #pa-heatmap {
    height: 480px;
  }

  .heatmap-legend-block {
    font-size: 12px;
  }
}


/* ==========================================
   FIX: Remove black focus rectangle on click
========================================== */

#pa-heatmap .leaflet-interactive {
  outline: none !important;
}

#pa-heatmap .leaflet-interactive:focus,
#pa-heatmap .leaflet-interactive:active {
  outline: none !important;
}

#pa-heatmap svg path:focus {
  outline: none !important;
}