/* China Standard Map Plugin Styles
 * Fully adheres to the National Standard Map Service norms of the Ministry of Natural Resources (PRC)
 */

.china-map-container {
  position: relative;
  width: 100%;
}

/* Compliance Badge at Bottom */
.map-compliance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(244, 246, 248, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.map-compliance-badge svg {
  width: 14px;
  height: 14px;
  fill: #16a34a;
  flex-shrink: 0;
}

.map-compliance-badge strong {
  color: #0f172a;
  font-weight: 600;
}

/* Map Mode Switcher in top right of map artwork */
.map-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

.map-toolbar-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-toolbar-btn:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.map-toolbar-btn.active {
  background: #900314;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(144, 3, 20, 0.3);
}

/* South China Sea & Island Annotations on Artwork */
.map-island-tag {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  color: #78350f;
  background: rgba(255, 255, 255, 0.82);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.map-island-tag--taiwan {
  right: 14%;
  top: 84%;
}

.map-island-tag--scs {
  right: 18%;
  bottom: 4%;
}

/* Dedicated Vector Plugin Container */
.map-vector-plugin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #e2f0fc;
  display: none;
  overflow: hidden;
  z-index: 2;
}

.map-vector-plugin.active {
  display: block;
}

.map-vector-plugin svg {
  width: 100%;
  height: 100%;
  display: block;
}

.province-path {
  fill: #fffedf;
  stroke: #c8b99c;
  stroke-width: 0.8;
  transition: fill 0.25s ease, stroke 0.25s ease;
  cursor: pointer;
}

.province-path:hover,
.province-path.active {
  fill: #fed7aa;
  stroke: #ea580c;
  stroke-width: 1.2;
}

.province-path--taiwan {
  fill: #fffedf;
}

/* South China Sea Inset Box */
.scs-inset-box {
  stroke: #94a3b8;
  stroke-width: 1.5;
  fill: #e8f4fd;
}

.scs-dash-line {
  stroke: #b45309;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Markers styling enhancements */
.marker-dot--prov {
  background: #b45309 !important;
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.3);
}

.map-marker[data-map-marker="taiwan"] .marker-label,
.map-marker[data-map-marker="scs"] .marker-label {
  background: #fff;
  color: #900314;
  font-weight: 600;
  border: 1px solid #fed7aa;
}
