.rtg-activity-map-wrap {
  width: 100%;
  margin: 0 0 14px 0;
}

.rtg-activity-map {
  width: 100%;
  min-height: 500px;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  background: #f3f6f9;
}

.rtg-map-error {
  padding: 16px;
  color: #7a120d;
  font-weight: 600;
}

.rtg-map-legend {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  background: #fff;
}

.rtg-map-legend-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.rtg-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  margin-bottom: 6px;
}

.rtg-map-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid transparent;
}

.rtg-map-swatch-law {
  background: rgba(47, 111, 228, 0.35);
  border-color: #123a8f;
}

.rtg-map-swatch-fire {
  background: rgba(255, 59, 48, 0.35);
  border-color: #7a120d;
}

.rtg-map-swatch-medical {
  background: rgba(255, 149, 0, 0.35);
  border-color: #8a4b00;
}

.rtg-map-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rtg-map-test-row input,
.rtg-map-test-row select,
.rtg-map-test-row button {
  min-height: 38px;
  padding: 7px 10px;
}

.rtg-map-input-area {
  min-width: 260px;
}

.rtg-map-input-state {
  min-width: 170px;
}

.rtg-map-input-ttl {
  width: 100px;
}

.rtg-map-btn-set,
.rtg-map-btn-clear {
  border: 1px solid #ccd4dd;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.rtg-map-btn-set:hover,
.rtg-map-btn-clear:hover {
  background: #eef3f8;
}

.rtg-area-label {
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
  opacity: 1;
}

.rtg-area-label::before {
  display: none;
}

.rtg-area-label .rtg-area-label-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;             

  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;

  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;

  color: #ffffff;
  text-shadow:
    0 0 3px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.8);

  transform-origin: center center;
}

.rtg-area-label .rtg-area-label-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.rtg-area-label .rtg-area-label-text {
  display: inline-block;
  flex: 0 1 auto;
  letter-spacing: 0.3px;
  text-align: center;
}
