/* ============================================================
   State Map — Screen 5
   ============================================================ */

#state-map-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* Legend */
.state-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7E8A;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot--active { background: var(--color-eastern-blue, #2399b4); }
.legend-dot--soon   { background: #A8B5C0; }
.legend-dot--unlicensed {
  background: #FAFBFC;
  box-shadow: inset 0 0 0 1px #B8D4EE;
}

/* Fallback dropdown */
.state-map-fallback {
  text-align: center;
  margin-top: 14px;
}

.fallback-label {
  font-size: 11px;
  color: #9BAAB2;
  margin: 0 0 5px;
}

.state-map-select {
  font-size: 13px;
  color: #2D4A5A;
  background: #FFFFFF;
  border: 1px solid #D0DCE2;
  border-radius: 8px;
  padding: 7px 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BAAB2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.state-map-select:focus {
  border-color: var(--color-eastern-blue, #2399b4);
  box-shadow: 0 0 0 3px rgba(35, 153, 180, 0.12);
}

/* Tooltip */
.state-map-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: opacity 0.1s ease;
}

.state-map-tooltip--active {
  background: var(--color-eastern-blue, #2399b4);
  color: #ffffff;
}

.state-map-tooltip--coming-soon {
  background: #6F7F8C;
  color: #FFFFFF;
}

.state-map-tooltip--unlicensed {
  background: #9AA8B4;
  color: #1a2b36;
}

/* Status hint (reuses existing classes, just in case not already in style.css) */
.state-status-hint {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
  transition: color 0.2s ease;
}

.state-hint-active      { color: var(--color-eastern-blue, #2399b4); }
.state-hint-coming-soon { color: #5C7A8A; }
.state-hint-unlicensed  { color: #8A9BA3; }

/* ── Mobile: hide map, promote dropdown ── */
@media (max-width: 479px) {
  #state-map-container > svg,
  .state-map-legend {
    display: none;
  }

  .state-map-fallback {
    margin-top: 0;
    text-align: left;
  }

  .state-map-fallback .fallback-label {
    display: none;
  }

  .state-map-select {
    width: 100%;
    height: 52px;
    font-size: 16px;
    padding: 0 40px 0 14px;
    border-radius: 10px;
    border-width: 2px;
  }
}
