/* Vienna Trades Heatmap — small custom layer on top of Tailwind */

html { scroll-behavior: smooth; }

#vienna-map {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(8,24,168,0.04), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(6,147,227,0.04), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #f3f5fb 100%);
  display: block;
}

.district {
  cursor: pointer;
  transition: filter 120ms ease, stroke 120ms ease, stroke-width 120ms ease, transform 120ms ease;
  stroke: #ffffff;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  outline: none;
}
.district:hover {
  filter: brightness(0.94) saturate(1.05);
  stroke: #0818a8;
  stroke-width: 1.8;
}
.district:focus-visible {
  stroke: #0818a8;
  stroke-width: 2.2;
}
.district.is-selected {
  stroke: #0818a8;
  stroke-width: 2.6;
  filter: drop-shadow(0 2px 4px rgba(8,24,168,0.25));
}

.district-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  fill: #ffffff;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(8,24,168,0.35);
  stroke-width: 0.4;
  letter-spacing: 0.04em;
}

.trade-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}
.trade-pill:hover {
  border-color: rgba(8,24,168,0.35);
  color: #0818a8;
}
.trade-pill.is-active {
  background: #0818a8;
  border-color: #0818a8;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(8,24,168,0.25);
}

/* Range slider polish */
input[type="range"] {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0818a8;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 3px rgba(8,24,168,0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0818a8;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 3px rgba(8,24,168,0.4);
  cursor: pointer;
}

/* Tooltip nudge above district on small viewports */
@media (max-width: 640px) {
  .district-label { font-size: 8px; }
  #map-tooltip { font-size: 11px; }
}
