﻿:root {
  --bg: #ffffff;
  --text: #111827;
  --shadow: rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Pretendard", "SUIT", "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  height: 100%;
}

.stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  cursor: grab;
}

.stage.is-dragging {
  cursor: grabbing;
}

.map {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform;
}

.map img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.marker {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  overflow: visible;
  box-shadow: none;
  outline: none;
  transition: transform 160ms ease;
  z-index: 2;
}

.marker:hover {
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 3;
}

.marker .avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px var(--shadow);
  outline: 2px solid rgba(17, 24, 39, 0.12);
}

.marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.tooltip {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translate(-50%, -100%);
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.marker:hover .tooltip {
  opacity: 1;
}

@media (max-width: 900px) {
  .marker {
    width: 52px;
    height: 52px;
  }
}

.add-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  max-width: 360px;
  z-index: 9999;
  font-size: 12px;
  display: none;
}

.add-panel.visible {
  display: block;
}

.add-panel pre {
  margin: 8px 0 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
}

.add-panel button {
  border: 0;
  background: #f59e0b;
  color: #111827;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
