/* Negeri Kami — Map styles (map-style.css) */

.negerikami-map-root {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  position: relative;
}

/* Container: responsive height (adjust as needed) */
.negerikami-map-container {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 880px;
  position: relative;
  overflow: hidden;
}

/* Wrapper holds the SVG (we allow SVG to scale responsively) */
.negerikami-map-wrapper {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

/* Make inline SVG responsive */
.negerikami-map-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* Remove user-select to avoid text selection on drag */
  -webkit-user-select: none;
  user-select: none;
}

/* Default province link styling (targeting <a> inside svg) */
.negerikami-map-wrapper svg a,
.negerikami-map-wrapper svg a * {
  transition: all 0.22s ease;
  cursor: pointer;
  outline: none;
}

/* default fill/stroke can be set on path or via CSS if the SVG uses currentColor */
/* Hover/focus style */
.negerikami-map-wrapper svg a:hover path,
.negerikami-map-wrapper svg a:focus path {
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  opacity: 0.95;
}

/* Tooltip */
.negerikami-map-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
  z-index: 9999;
  white-space: nowrap;
  transform: translate(-50%, -120%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* small accessible focus outline for keyboard users */
.negerikami-map-wrapper svg a:focus {
  outline: 2px dashed rgba(0, 86, 153, 0.9);
  outline-offset: 4px;
}

/* fallback message styling */
.negerikami-map-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: #333;
  background: #fafafa;
  border: 1px dashed #e6e6e6;
}

/* small responsive tweaks */
@media (max-width: 768px) {
  .negerikami-map-container { height: 56vh; min-height: 360px; }
  .negerikami-map-tooltip { font-size: 12px; padding: 5px 8px; }
}
