/**
 * SmallBizMap — 독립형 상권 지도 스타일
 * 원본: mashup_view/proposals/smallbiz_site/assets/css/style.css 발췌
 *
 * 주요 변수:
 *   --neon-cyan, --neon-pink, --neon-mint, --neon-gold, --neon-purple
 */

:root {
  --neon-cyan:  #00f0ff;
  --neon-pink:  #ff006e;
  --neon-purple:#8338ec;
  --neon-mint:  #06ffa5;
  --neon-gold:  #ffd60a;
  --neon-rose:  #ec4899;
  --bg-dark:    #0a0f1c;
  --bg-shell:   #050814;
  --text-main:  #e0e7ff;
  --text-muted: #a8b3d4;
  --text-dim:   #6b7896;
  --border-subtle: rgba(0, 240, 255, 0.15);
}

/* ─────────────── 컨테이너 (필수) ─────────────── */
.smb-map-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  background: var(--bg-shell);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  min-height: 540px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.smb-map-shell.no-side {
  grid-template-columns: 1fr;
}
.smb-map-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 540px;
}
.smb-map-frame > div {
  width: 100%;
  height: 100%;
  min-height: 540px;
}
@media (max-width: 880px) {
  .smb-map-shell {
    grid-template-columns: 1fr;
  }
}

/* ─────────────── 사이드바 ─────────────── */
.smb-side {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 14px;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
  max-height: 700px;
  overflow-y: auto;
}
.smb-side h4 {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.smb-filter-group {
  margin-bottom: 10px;
}
.smb-filter-group select {
  width: 100%;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.smb-filter-group select:hover {
  border-color: var(--neon-cyan);
}

/* ─────────────── 핀 범례 ─────────────── */
.smb-legend-pin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.1);
}
.smb-legend-pin:last-child { border-bottom: none; }
.smb-legend-pin .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.smb-legend-pin .info {
  flex: 1;
  font-size: 11.5px;
}
.smb-legend-pin .info b {
  color: var(--text-main);
  font-weight: 700;
}
.smb-legend-pin .info span {
  display: block;
  color: var(--text-dim);
  font-size: 10px;
}
.smb-legend-pin .cnt {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ─────────────── 핀 아이콘 ─────────────── */
.biz-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 16px currentColor, 0 2px 8px rgba(0,0,0,0.5);
}
.biz-pin.b1 { background: #00f0ff; color: #050814; }
.biz-pin.b2 { background: #ff006e; color: #fff; }
.biz-pin.b3 { background: #8338ec; color: #fff; }
.biz-pin.b4 { background: #06ffa5; color: #050814; }
.biz-pin.b5 { background: #ffd60a; color: #050814; }
.biz-pin.b6 { background: #ec4899; color: #fff; }

/* ─────────────── Leaflet 다크 팝업 ─────────────── */
.leaflet-popup-content-wrapper {
  background: rgba(10, 15, 28, 0.92) !important;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}
.leaflet-popup-tip { background: rgba(10, 15, 28, 0.92) !important; }
.leaflet-popup-content {
  color: #e0e7ff !important;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 12px;
  margin: 10px 14px;
  line-height: 1.55;
}
.leaflet-popup-content b { color: #00f0ff; }
.leaflet-popup-content .meta {
  color: #a8b3d4;
  font-size: 11px;
  margin-top: 4px;
  display: block;
}
.leaflet-popup-close-button { color: #6b7896 !important; }
.leaflet-control-zoom a {
  background: rgba(10, 15, 28, 0.85) !important;
  color: #00f0ff !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  backdrop-filter: blur(8px);
}
.leaflet-control-attribution {
  background: rgba(10, 15, 28, 0.85) !important;
  color: #6b7896 !important;
  backdrop-filter: blur(8px);
}
.leaflet-control-attribution a { color: #00f0ff !important; }

/* ─────────────── KPI 박스 ─────────────── */
.smb-kpi-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
}
.smb-kpi-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.smb-kpi-row:last-child { margin-bottom: 0; }
.smb-kpi-row .lbl { color: var(--text-dim); font-size: 11px; }
.smb-kpi-row .val { font-weight: 800; font-variant-numeric: tabular-nums; }
