/* 지도 화면 */
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.map-controls select {
  font-family: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; background: #fff;
}
.map-layers { display: flex; gap: 6px; flex-wrap: wrap; }
.map-body { display: grid; grid-template-columns: 1fr 320px; gap: 12px; align-items: start; }
.map-wrap { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
#hub-map { width: 100%; height: 66vh; min-height: 380px; }
#map-legend {
  position: absolute; left: 10px; bottom: 10px; z-index: 10; background: rgba(255,255,255,.94);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5;
}
#map-legend .row { display: flex; align-items: center; gap: 6px; }
#map-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
#map-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 13.5px; line-height: 1.6; min-height: 120px; }
#map-panel h3 { margin: 0 0 2px; font-size: 17px; }
#map-panel .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
#map-panel .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0; }
#map-panel .kv span:nth-child(odd) { color: var(--muted); }
#map-panel .badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; margin-left: 6px; }
.near-item { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 9px 2px; cursor: pointer; font-family: inherit; font-size: 13.5px; color: var(--ink); }
.near-item:hover { background: var(--brand-tint); }
.near-item small { color: var(--muted); white-space: nowrap; }

/* 지도 위 핀 */
.mp {
  font-size: 11px; font-weight: 700; color: #1f2937; padding: 2px 6px; border-radius: 999px; border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; white-space: nowrap; transform: translateY(-2px);
}
.mp.na { background: #e5e7eb !important; color: #6b7280; }
.mp.sel { outline: 3px solid var(--brand); z-index: 5; }
.mp.dot { font-size: 0; padding: 0; width: 12px; height: 12px; }
.mp.lg { color: #fff; }
.lay-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.5); }
.lay-dot.subway { background: #2563eb; }
.lay-dot.school { background: #16a34a; border-radius: 2px; }
.lay-dot.auction { background: #dc2626; width: 12px; height: 12px; cursor: pointer; }
.lay-label { font-size: 10.5px; font-weight: 600; color: #1e3a8a; background: rgba(255,255,255,.85); padding: 0 3px; border-radius: 3px; white-space: nowrap; margin-top: 2px; }
.lay-label.hide { display: none; }

@media (max-width: 800px) {
  .map-body { grid-template-columns: 1fr; }
  #hub-map { height: 56vh; }
}

.map-controls select { width: auto; min-width: 110px; }
