/* Navaan Bangladesh Clean Map Stylesheet */

.navaan-map-clean {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.navaan-map-svg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: auto;
}

/* District Paths */
.district-path {
  cursor: pointer;
  paint-order: fill stroke;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

/* Hover: Pure White Fill & Stroke */
.district-path:hover {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 1.6 !important;
}

/* Active Project District - solid white, static glow (no filter animation) */
.district-path.is-active-project-district {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 1.8 !important;
  vector-effect: non-scaling-stroke;
}

/* Clean Floating Tooltip (Flicker-Free) */
.navaan-tooltip {
  position: absolute;
  z-index: 100;
  padding: 8px 14px;
  background: rgba(8, 16, 10, 0.96);
  border: 1px solid rgba(149, 173, 99, 0.45);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #EEF0E7;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  pointer-events: none !important;
  max-width: 280px;
  line-height: 1.35;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.navaan-tooltip .tip-district-name {
  font-weight: 700;
  font-size: 14.5px;
  color: #ffffff;
}

.navaan-tooltip .tip-project-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(63, 163, 82, 0.25);
  color: #95AD63;
  border: 1px solid rgba(149, 173, 99, 0.4);
  margin-top: 4px;
  margin-bottom: 2px;
}

.navaan-tooltip .tip-project-title {
  font-size: 11.5px;
  color: #F7E7B6;
  font-weight: 600;
  margin-top: 2px;
}

/* Density Legend UI */
.home-map-density-legend {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(8, 16, 10, 0.65);
  border: 1px solid rgba(149, 173, 99, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 680px;
}

.density-legend-note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #F7E7B6;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.density-legend-note i {
  color: #95AD63;
  margin-right: 4px;
}

.density-legend-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  font-size: 0.78rem;
  color: #EEF0E7;
}

.density-scale-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.density-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.density-swatch.swatch-high {
  background: #3fa352;
  border: 1px solid #95AD63;
  box-shadow: 0 0 6px rgba(63, 163, 82, 0.5);
}

.density-swatch.swatch-mid {
  background: #264e2a;
  border: 1px solid rgba(149, 173, 99, 0.4);
}

.density-swatch.swatch-base {
  background: #132415;
  border: 1px solid rgba(149, 173, 99, 0.25);
}

@media (max-width: 768px) {
  .navaan-map-clean {
    max-width: 100%;
  }
  .density-legend-scale {
    gap: 0.4rem 0.8rem;
  }
}
