/* public/css/china-map.css */

/* China Map Container */
.china-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: visible;
  }
  
  /* Wrapper to maintain aspect ratio */
  .map-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 61.8%; /* golden ratio aspect */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }
  
  /* Container into which we inject the SVG */
  #china-map {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
  }
  
  /* Ensure the injected <svg> fills the container */
  #china-map svg {
    flex: 1;
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* Province paths default styling */
  #china-map path {
    fill: #2a2a2a;
    stroke: rgba(255, 215, 0, 0.15);
    /* animate only what changes */
    transition: fill 0.3s ease,
                stroke 0.3s ease,
                filter 0.3s ease;
    cursor: not-allowed;
    vector-effect: non-scaling-stroke;
  }
  
  /* Provinces that have laws */
  #china-map path.has-laws {
    fill: #b8860b;
    cursor: pointer;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
  }
  
  /* Hover state: smooth fade into gold and back */
  #china-map path.has-laws:hover {
    fill: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    stroke: rgba(255, 255, 255, 0.4);
  }
  
  /* Province Tooltip */
  .province-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: #ffd700;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 215, 0, 0.4);
    z-index: 9999;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
  }
  
  /* You can copy over any additional legend/modal/table CSS here,
     replacing .state-tooltip → .province-tooltip and #us-map → #china-map */
  