* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.brand { font-weight: 800; }
.controls { display: flex; gap: 8px; align-items: center; }
.controls input { width: 70px; padding: 6px; }
.controls button { padding: 8px 10px; cursor: pointer; }

.layout { display: grid; grid-template-columns: 1fr 360px; height: calc(100vh - 52px); }
#map { width: 100%; height: 100%; }

.panel { border-left: 1px solid #eee; padding: 12px; overflow: auto; }
.panel-title { font-weight: 700; margin: 10px 0 6px; }
.detail { padding: 10px; border: 1px solid #eee; border-radius: 10px; }
.detail.empty { color: #666; }

.list { display: grid; gap: 8px; }
.item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.item .name { font-weight: 700; }
.item .meta { color: #666; font-size: 13px; margin-top: 4px; }
.item .dist { margin-top: 6px; font-size: 12px; color: #444; }
a { color: inherit; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 55vh 45vh; }
  .panel { border-left: 0; border-top: 1px solid #eee; }
  .controls { flex-wrap: wrap; }
}
