﻿:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #18232d;
  --muted: #5f6b76;
  --accent: #0f766e;
  --accent-2: #0ea5a1;
  --warn: #dc2626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, #eef4f8 0%, #f9fafb 50%, #ecfdf5 100%);
}

.app {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 12px;
  height: 100vh;
  padding: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.sidebar {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h1 { margin: 0 0 8px; font-size: 18px; }
h2 { margin: 0 0 8px; font-size: 14px; }

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 4px;
}

input, select, textarea, button {
  width: 100%;
  border: 1px solid #c8d3dc;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

textarea { min-height: 70px; resize: vertical; }

button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}
button:hover { background: var(--accent-2); }
button.secondary { background: #334155; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.small { font-size: 12px; color: var(--muted); }
.error { color: var(--warn); font-size: 12px; }

.map-panel { display: grid; grid-template-rows: 1fr auto; gap: 10px; }
#map { width: 100%; height: calc(100vh - 210px); border-radius: 12px; border: 1px solid #dbe3ea; }

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.route-card {
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  padding: 8px;
  background: #fcfffe;
}
.route-card strong { font-size: 13px; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; height: auto; }
  #map { height: 380px; }
  .routes { grid-template-columns: 1fr; }
}
