/* ── Reset & Base ─────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6fb;
  color: #333;
}

/* ── Header ───────────────────────────────────────────── */
header {
  background: #1a3c6e;
  color: white;
  padding: 16px 24px;
}
header h1 { font-size: 1.4rem; }
header p  { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* ── Main Layout ──────────────────────────────────────── */
.container {
  display: flex;
  height: calc(100vh - 70px);
}

/* ── Map ──────────────────────────────────────────────── */
#map {
  flex: 1;
  min-height: 400px;
  cursor: crosshair;
}

/* ── Right Panel ──────────────────────────────────────── */
.panel {
  width: 360px;
  overflow-y: auto;
  background: white;
  border-left: 1px solid #e0e0e0;
}

.panel-section {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-section h2 {
  font-size: 1rem;
  color: #1a3c6e;
  margin-bottom: 10px;
}

.hint {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Result Box ───────────────────────────────────────── */
.result-box {
  background: #f8faff;
  border: 1px solid #d0daf5;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.88rem;
}

.result-box.hidden { display: none; }

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #eee;
}
.result-row:last-child { border-bottom: none; }

.result-row .label { color: #666; }
.result-row .value { font-weight: 600; color: #1a3c6e; }

/* ── Loading spinner ──────────────────────────────────── */
.loading {
  text-align: center;
  color: #888;
  padding: 10px;
  font-style: italic;
}

/* ── Guideline Search Form ────────────────────────────── */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.search-form input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
}

.search-form button {
  padding: 9px;
  background: #1a3c6e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.search-form button:hover { background: #2a5298; }

/* ── Guideline table ──────────────────────────────────── */
.gv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 8px;
}
.gv-table th {
  background: #1a3c6e;
  color: white;
  padding: 6px 8px;
  text-align: left;
}
.gv-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #eee;
}
.gv-table tr:hover td { background: #f0f5ff; }
