/**
 * Custom UK Regions Map Styles
 * Dark theme matching Planning Handbook design
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: transparent;
  overflow: hidden;
}

/* For standalone viewing */
body.standalone {
  background: #1e293b;
}

.uk-map-container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.uk-map {
  width: 100%;
  height: 100%;
}

/* Region paths */
.uk-region {
  stroke: #ffffff;
  stroke-width: 0.5;
  stroke-opacity: 0.5;
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}

.uk-region:hover,
.uk-region.active {
  fill: #4281b6 !important;
  filter: drop-shadow(0 0 8px rgba(66, 129, 182, 0.5));
}

/* Base colors applied via JS, these are fallbacks */
.uk-region.base { fill: #475569; }
.uk-region.alt { fill: #64748b; }
.uk-region.minor { fill: #94a3b8; }

/* Region Label */
.uk-map-tooltip {
  position: absolute;
  background: transparent;
  color: #ffffff;
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: system-ui, -apple-system, Inter, Roboto, sans-serif;
  font-size: 20px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
  white-space: nowrap;
  /* Text stroke for sharp outline */
  -webkit-text-stroke: 2px #1e293b;
  paint-order: stroke fill;
  /* Fallback for browsers without paint-order */
  text-shadow: -2px -2px 0 #1e293b, 2px -2px 0 #1e293b, -2px 2px 0 #1e293b, 2px 2px 0 #1e293b, 0 -2px 0 #1e293b, 0 2px 0 #1e293b, -2px 0 0 #1e293b, 2px 0 0 #1e293b;
}

.uk-map-tooltip.visible {
  opacity: 1;
}
