@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Nanum+Myeongjo:wght@400;700;800&family=Gothic+A1:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #f0e6d4;
  --ink-light: #f6ede0;
  --parchment: #2a1e0e;
  --parchment-dim: #4a3822;
  --gold: #8a5c20;
  --gold-dim: #b8843a;
  --gold-bright: #7a4c18;
  --crimson: #8c2020;
  --crimson-bright: #b03030;
  --jade: #1a5a38;
  --jade-bright: #267a50;
  --indigo: #1e2e50;
  --indigo-bright: #2e4a80;
  --panel-bg: #f2e8d6;
  --panel-surface: #ede0ca;
  --panel-elevated: #e6d6b8;
  --panel-border: rgba(100,75,45,0.22);
  --panel-border-light: rgba(100,75,45,0.14);
  --text-primary: #2a1e0e;
  --text-secondary: #5a4232;
  --text-dim: #9a8060;
  --text-bright: #1a0e04;
  --accent-economy: #1a5a38;
  --accent-history: #6a4020;
  --accent-myth: #4a2a5a;
  --accent-connection: #1e3060;
}

* { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; overflow:hidden; }

body {
  font-family: 'Gothic A1', sans-serif;
  background: var(--ink);
  color: var(--text-primary);
}

/* ═══ LAYOUT ═══ */
.app {
  display: grid;
  grid-template-rows: 56px 1fr;
  grid-template-columns: 260px 1fr;
  height: 100vh;
}

/* ═══ LOADING ═══ */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 16px;
  overflow: hidden;
}
.loading-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 6px;
  position: relative; z-index: 2;
}
.loading-sub {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  position: relative; z-index: 2;
}
.loading-bar-wrap {
  width: 200px;
  height: 2px;
  background: var(--panel-border);
  border-radius: 1px;
  overflow: hidden;
  position: relative; z-index: 2;
}
.loading-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: loadAnim 1.5s ease-in-out infinite;
  border-radius: 1px;
}
@keyframes loadAnim {
  0% { width: 0%; margin-left: 0%; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}
/* 지형 이름 스트림 배경 */
.loading-stream {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  overflow: hidden;
  opacity: 0.13;
  pointer-events: none;
}
.stream-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: streamUp var(--dur) linear infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}
.stream-col span {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
}
@keyframes streamUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ═══ 연결망 오버레이 ═══ */
#networkOverlay {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--ink);
  z-index: 700;
  flex-direction: column;
}
#networkOverlay.open { display: flex; }
#networkCanvas {
  flex: 1;
  width: 100%;
  cursor: grab;
}
#networkCanvas:active { cursor: grabbing; }
.network-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
  background: var(--panel-bg);
}
.network-close {
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  background: transparent;
  font-family: inherit;
}
.network-close:hover { color: var(--text-primary); }
.network-info {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.network-tooltip {
  position: fixed;
  background: rgba(242,232,214,0.96);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'Nanum Myeongjo', serif;
  color: var(--text-primary);
  pointer-events: none;
  display: none;
  z-index: 800;
  white-space: nowrap;
}

/* ═══ 오류신고 모달 ═══ */
.report-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,12,4,0.55);
  z-index: 9000;
  align-items: center; justify-content: center;
}
.report-backdrop.open { display: flex; }
.report-modal {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  width: 360px;
  max-width: 92vw;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
}
.report-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 16px; font-weight: 800;
  color: var(--text-bright); letter-spacing: 1px;
}
.report-loc {
  font-size: 11px; color: var(--text-dim);
  padding: 6px 10px;
  background: var(--panel-surface);
  border-radius: 3px; border-left: 2px solid var(--gold);
}
.report-types {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.report-type-btn {
  padding: 5px 12px; font-size: 11px;
  border: 1px solid var(--panel-border);
  border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--text-secondary);
  font-family: inherit; transition: all 0.15s;
}
.report-type-btn.active,
.report-type-btn:hover {
  background: var(--parchment-dim);
  color: var(--ink); border-color: var(--parchment-dim);
}
.report-textarea {
  width: 100%; height: 90px; resize: vertical;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border); border-radius: 4px;
  padding: 9px 11px; font-family: inherit; font-size: 13px;
  color: var(--text-primary); outline: none;
  transition: border-color 0.2s;
}
.report-textarea:focus { border-color: var(--gold-dim); }
.report-textarea::placeholder { color: var(--text-dim); }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; }
.report-cancel {
  padding: 8px 16px; font-size: 12px; cursor: pointer;
  background: transparent; border: 1px solid var(--panel-border);
  border-radius: 4px; color: var(--text-dim); font-family: inherit;
}
.report-cancel:hover { color: var(--text-primary); }
.report-submit {
  padding: 8px 18px; font-size: 12px; cursor: pointer;
  background: var(--parchment-dim); border: none;
  border-radius: 4px; color: var(--ink);
  font-family: 'Nanum Myeongjo', serif; font-weight: 700;
  letter-spacing: 0.5px; transition: background 0.15s;
}
.report-submit:hover  { background: var(--parchment); }
.report-submit:disabled { opacity: 0.5; cursor: default; }
.report-feedback {
  font-size: 12px; text-align: center;
  padding: 8px; border-radius: 4px; display: none;
}
.report-feedback.ok  { background: rgba(22,95,55,0.12); color: #1a5a38; display: block; }
.report-feedback.err { background: rgba(140,32,32,0.10); color: #8c2020; display: block; }

/* ═══ TOPBAR ═══ */
.topbar {
  grid-column: 1/-1;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 1000;
}
.logo-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.logo {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 3px;
}
.logo-badge {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  padding: 2px 6px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
}
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--panel-border);
}
.search-wrap {
  margin-left: auto;
  position: relative;
  width: 240px;
}
.search-wrap input {
  width: 100%;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 7px 12px 7px 32px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Gothic A1', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--gold-dim); }
.search-wrap input::placeholder { color: var(--text-dim); }
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-dim);
}
.topbar-stats {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.stat-val { color: var(--gold); font-weight: 700; font-size: 13px; margin-right: 2px; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  background: var(--panel-bg);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.sidebar-count {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
}
.chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Gothic A1', sans-serif;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--gold-dim); color: var(--text-secondary); }
.chip.active { background: rgba(201,168,76,0.12); border-color: var(--gold-dim); color: var(--gold); }
.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.sidebar-list::-webkit-scrollbar { width: 3px; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }
.list-group-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 2px;
  padding: 12px 14px 4px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--panel-bg);
  z-index: 1;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.12s;
  border-left: 2px solid transparent;
}
.list-item:hover { background: var(--panel-surface); }
.list-item.active {
  background: rgba(201,168,76,0.06);
  border-left-color: var(--gold);
}
.item-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
}
.item-text { min-width: 0; }
.item-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-sub {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.no-coords-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--panel-border);
  flex-shrink: 0;
  margin-left: auto;
}

/* ═══ MAP AREA ═══ */
.map-area {
  position: relative;
  overflow: hidden;
  background: #e8dcc8;
}
/* 비네팅 — 지도 가장자리 어둡게 (고지도 느낌) */
.map-area::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 50%,
    rgba(160,130,90,0.18) 80%,
    rgba(120,95,60,0.32) 100%);
}
#fantasyMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-bottom-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legend-bar {
  display: flex;
  gap: 12px;
  background: rgba(242,232,214,0.92);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
}
.legend-entry {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-dim);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.map-watermark {
  margin-left: auto;
  font-family: 'Nanum Myeongjo', serif;
  font-size: 10px;
  color: rgba(201,168,76,0.15);
  letter-spacing: 3px;
}
.map-notice {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  background: rgba(242,232,214,0.92);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 10px;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
}
.map-notice span { color: var(--gold); font-weight: 700; }

/* ═══ LEAFLET 커스텀 ═══ */
.leaflet-container {
  background: #e8dcc8 !important;
  font-family: 'Gothic A1', sans-serif;
}
.leaflet-control-attribution { display: none; }
.leaflet-control-zoom {
  border: 1px solid var(--panel-border) !important;
  border-radius: 6px !important;
}
.leaflet-control-zoom a {
  background: rgba(242,232,214,0.92) !important;
  color: var(--text-dim) !important;
  border-color: var(--panel-border) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 16px !important;
}
.leaflet-control-zoom a:hover {
  background: var(--panel-surface) !important;
  color: var(--gold) !important;
}
.leaflet-pane { z-index: 400; }
.leaflet-top, .leaflet-bottom { z-index: 450; }

/* 마커 툴팁 */
.leaflet-tooltip.map-tip {
  background: rgba(242,232,214,0.96);
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: 'Gothic A1', sans-serif;
  font-size: 11px;
  padding: 5px 9px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.leaflet-tooltip.map-tip::before { border: none; }
.tip-name { font-weight: 600; color: var(--text-bright); }
.tip-hanja { color: var(--text-dim); font-size: 10px; margin-left: 4px; }
.tip-density {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
}

/* 성 경계 툴팁 */
.leaflet-tooltip.province-tip {
  background: rgba(242,232,214,0.90);
  border: 1px solid rgba(100,75,45,0.30);
  border-radius: 4px;
  color: rgba(100,65,25,0.80);
  font-family: 'Nanum Myeongjo', serif;
  font-size: 11px;
  padding: 3px 8px;
  pointer-events: none;
}
.leaflet-tooltip.province-tip::before { border: none; }

/* 펄스 마커 애니메이션 */
@keyframes markerPulse {
  0%   { transform: scale(1);   opacity: 0.04; }
  50%  { transform: scale(1.3); opacity: 0.08; }
  100% { transform: scale(1);   opacity: 0.04; }
}
.marker-pulse { animation: markerPulse 3.2s ease-in-out infinite; }

/* ═══ DETAIL PANEL ═══ */
.detail-panel {
  position: fixed;
  right: 0;
  top: 56px;
  bottom: 0;
  width: 280px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 600;
  background: var(--panel-bg);
  border-left: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 0 20px rgba(0,0,0,0.10);
}
.detail-panel.active {
  transform: translateX(0);
}
.detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
}
.empty-icon { font-size: 44px; opacity: 0.2; }
.empty-text { font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.detail-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, transparent 100%);
  flex-shrink: 0;
  text-align: center;
}
.detail-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.detail-name {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 4px;
}
.detail-hanja {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.detail-oneline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}
.detail-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--panel-border);
  flex-shrink: 0;
  padding: 0 12px;
  gap: 4px;
}
.dtab {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: 'Gothic A1', sans-serif;
}
.dtab:hover { color: var(--text-primary); }
.dtab.active { color: var(--gold); border-bottom-color: var(--gold); }
.detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}
.detail-content::-webkit-scrollbar { width: 3px; }
.detail-content::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }
.tab-page { display: none; }
.tab-page.active { display: block; }

/* Narrator */
.narrator-block {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.narrator-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.narrator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--crimson));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.narrator-name {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.narrator-role { font-size: 9px; color: var(--text-dim); }
.narrator-text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.narrator-text::before { content: '「'; color: var(--gold-dim); font-size: 16px; }
.narrator-text::after  { content: '」'; color: var(--gold-dim); font-size: 16px; }
.narrator-empty {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  padding: 8px 0;
}

/* Info sections */
.info-section { margin-bottom: 20px; }
.info-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.info-section-icon { font-size: 12px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.info-card {
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
}
.info-card.full { grid-column: 1/-1; }
.info-label { font-size: 9px; color: var(--text-dim); margin-bottom: 3px; letter-spacing: 0.5px; }
.info-value { font-size: 11px; color: var(--text-primary); line-height: 1.5; }

/* Timeline */
.timeline-item {
  padding: 8px 0 8px 16px;
  border-left: 1px solid var(--panel-border);
  margin-bottom: 4px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dim);
}
.timeline-era { font-size: 9px; color: var(--gold-dim); font-weight: 700; margin-bottom: 2px; }
.timeline-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.6; }

/* Myth */
.myth-entry {
  background: linear-gradient(135deg, rgba(108,76,124,0.08) 0%, transparent 100%);
  border: 1px solid rgba(108,76,124,0.15);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.myth-title { font-size: 11px; font-weight: 700; color: var(--accent-myth); margin-bottom: 4px; }
.myth-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.6; }

/* Connections */
.conn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.12s;
}
.conn-item:hover { background: var(--panel-surface); }
.conn-type {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(76,108,140,0.15);
  color: var(--accent-connection);
  font-weight: 700;
  flex-shrink: 0;
}
.conn-name { font-size: 11px; color: var(--text-primary); font-weight: 600; }
.conn-detail { font-size: 10px; color: var(--text-dim); margin-left: auto; flex-shrink: 0; }

.tag-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 10px; padding: 2px 8px;
  border-radius: 3px;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
}
.landmark-list { display: flex; flex-wrap: wrap; gap: 6px; }
.landmark-chip {
  font-size: 11px; padding: 4px 10px;
  border-radius: 4px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  color: var(--gold);
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--jade-bright);
  background: rgba(42,102,72,0.15);
  border: 1px solid rgba(42,102,72,0.25);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 8px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.detail-head, .narrator-block, .narrator-empty, .info-section, .timeline-item, .myth-entry, .conn-item {
  animation: fadeIn 0.3s ease-out both;
}
.info-section:nth-child(2) { animation-delay: 0.05s; }
.info-section:nth-child(3) { animation-delay: 0.1s; }

/* ═══ 오늘의 강호 ═══ */
.today-btn {
  padding: 5px 11px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 5px;
  color: var(--gold-dim);
  font-size: 10px;
  font-family: 'Nanum Myeongjo', serif;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.today-btn:hover { background: rgba(201,168,76,0.16); color: var(--gold); }

/* ═══ 경공 시뮬레이터 ═══ */
.gongjin-toggle {
  padding: 5px 11px;
  background: rgba(122,160,176,0.08);
  border: 1px solid rgba(122,160,176,0.25);
  border-radius: 5px;
  color: #8ca0b0;
  font-size: 10px;
  font-family: 'Nanum Myeongjo', serif;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.gongjin-toggle:hover, .gongjin-toggle.active {
  background: rgba(122,160,176,0.18); color: #b0c8d8;
}
.gongjin-panel {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(242,232,214,0.97);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px 16px;
  width: 340px;
  backdrop-filter: blur(8px);
  display: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.gongjin-panel.open { display: block; }
.gongjin-head {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px; font-weight: 700;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.gongjin-close {
  cursor: pointer; color: var(--text-dim); font-size: 16px; line-height: 1;
}
.gongjin-close:hover { color: var(--text-primary); }
.gongjin-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.gongjin-lbl { font-size: 10px; color: var(--text-dim); width: 36px; flex-shrink: 0; letter-spacing: 1px; }
.gongjin-sel {
  flex: 1; background: var(--panel-surface);
  border: 1px solid var(--panel-border); border-radius: 4px;
  padding: 6px 8px; color: var(--text-primary); font-size: 11px;
  font-family: 'Gothic A1', sans-serif; outline: none; cursor: pointer;
}
.gongjin-sel:focus { border-color: var(--gold-dim); }
.gongjin-divider {
  display: flex; align-items: center; gap: 6px;
  margin: 6px 0; color: var(--text-dim); font-size: 10px;
}
.gongjin-divider::before, .gongjin-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--panel-border);
}
.grade-grid { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.grade-btn {
  padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--panel-border);
  background: transparent; color: var(--text-dim);
  font-size: 10px; cursor: pointer;
  font-family: 'Gothic A1', sans-serif; transition: all 0.15s;
}
.grade-btn:hover { border-color: var(--gold-dim); color: var(--text-secondary); }
.grade-btn.active { background: rgba(201,168,76,0.14); border-color: var(--gold); color: var(--gold); }
.gongjin-btns { display: flex; gap: 6px; }
.gongjin-run {
  flex: 1; padding: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid var(--gold-dim);
  border-radius: 5px; color: var(--gold);
  font-size: 11px; font-family: 'Nanum Myeongjo', serif; font-weight: 700;
  cursor: pointer; letter-spacing: 1px; transition: all 0.15s;
}
.gongjin-run:hover { background: rgba(201,168,76,0.22); }
.gongjin-route {
  padding: 8px; background: rgba(122,160,176,0.08);
  border: 1px solid rgba(122,160,176,0.2); border-radius: 5px;
  color: #8ca0b0; font-size: 11px; font-family: 'Nanum Myeongjo', serif;
  cursor: pointer; letter-spacing: 1px; transition: all 0.15s;
}
.gongjin-route:hover { background: rgba(122,160,176,0.18); }
.gongjin-result {
  margin-top: 10px; padding: 10px 12px;
  background: var(--panel-surface); border-radius: 6px;
  font-size: 12px; line-height: 1.9; display: none;
}
.gongjin-result.show { display: block; }
.g-val { color: var(--gold); font-weight: 700; font-size: 15px; }
.g-clear {
  float: right; font-size: 10px; color: var(--text-dim);
  cursor: pointer; letter-spacing: 0;
}
.g-clear:hover { color: var(--text-secondary); }

/* ═══ 모바일 반응형 ═══ */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 48px 1fr;
  }
  .topbar {
    padding: 0 10px; gap: 6px;
  }
  .logo { font-size: 15px; letter-spacing: 2px; }
  .logo-badge, .topbar-divider, .topbar-stats,
  .today-btn, .gongjin-toggle { display: none; }
  .search-wrap { width: 140px; }
  .sidebar { display: none !important; }
  .detail-panel { display: none !important; }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border); border-radius: 6px;
    color: var(--text-dim); font-size: 15px; cursor: pointer; flex-shrink: 0;
  }
  .gongjin-panel { width: calc(100vw - 24px); top: 8px; }
}
@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
  .mobile-bottom-sheet, .mobile-fab-group { display: none !important; }
}

/* ═══ 모바일 하단 시트 ═══ */
.mobile-bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--panel-bg);
  border-top: 1px solid var(--panel-border);
  border-radius: 16px 16px 0 0;
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  transform: translateY(calc(100% - 50px));
  max-height: 78vh;
  display: flex; flex-direction: column;
}
.mobile-bottom-sheet.open { transform: translateY(0); }
.sheet-handle-area {
  display: flex; justify-content: center; align-items: center;
  height: 50px; cursor: pointer; flex-shrink: 0;
}
.sheet-handle { width: 36px; height: 4px; background: var(--panel-border); border-radius: 2px; }
.sheet-tabs {
  display: flex; border-bottom: 1px solid var(--panel-border); flex-shrink: 0;
}
.stab {
  flex: 1; padding: 9px 0; font-size: 11px; font-weight: 600;
  text-align: center; color: var(--text-dim); cursor: pointer;
  border-bottom: 2px solid transparent; font-family: 'Gothic A1', sans-serif;
}
.stab.active { color: var(--gold); border-bottom-color: var(--gold); }
.sheet-content { flex: 1; overflow-y: auto; }
.sheet-page { display: none; padding: 4px 0; }
.sheet-page.active { display: block; }
.sheet-page-pad { padding: 14px 16px; font-size: 12px; color: var(--text-secondary); }

/* 모바일 FAB */
.mobile-fab-group {
  position: fixed; bottom: 58px; right: 12px; z-index: 1500;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-fab {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(242,232,214,0.93); border: 1px solid var(--panel-border);
  color: var(--gold-dim); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
  transition: all 0.15s;
}
.mobile-fab:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ═══ SIDEBAR NAV TABS ═══ */
.sidebar-nav {
  display: flex;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel-elevated);
  flex-shrink: 0;
}
.snav {
  flex: 1;
  padding: 7px 4px;
  font-size: 10px;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 700;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.snav:hover { color: var(--text-secondary); }
.snav.active { color: var(--gold); border-bottom-color: var(--gold); background: rgba(201,168,76,0.06); }

/* ═══ SIDEBAR PLACEHOLDER ═══ */
.sidebar-placeholder {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.sidebar-placeholder.visible { display: flex; }
.placeholder-ink {
  font-size: 28px;
  opacity: 0.25;
  margin-bottom: 14px;
}
.placeholder-msg {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.9;
  letter-spacing: 0.5px;
}
.placeholder-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 10px;
  opacity: 0.55;
  letter-spacing: 1px;
}

/* ═══ COLLAPSIBLE GROUP ═══ */
.list-group-label {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.list-group-label:hover { background: var(--panel-surface); }
.group-toggle {
  font-size: 8px;
  color: var(--text-dim);
  padding-right: 2px;
  transition: transform 0.15s;
}
.list-group-items.collapsed { display: none; }

/* Leaflet DivIcon 기본 흰 사각형 제거 */
.leaflet-div-icon { background: transparent !important; border: none !important; }

/* ═══ 강·호수·산 이름 레이블 ═══ */
.mountain-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 11px; font-weight: 700;
  color: rgba(60, 38, 14, 0.78);
  text-shadow:
    0 0 5px rgba(240,230,212,0.95),
    0 0 10px rgba(240,230,212,0.75);
  white-space: nowrap; letter-spacing: 0.5px;
  pointer-events: none;
}
.river-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 12px; font-weight: 700;
  color: rgba(28, 65, 140, 0.88);
  text-shadow:
    0 0 5px rgba(240,230,212,0.95),
    0 0 10px rgba(240,230,212,0.75);
  white-space: nowrap; letter-spacing: 0.5px;
  pointer-events: none;
}
.lake-label {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 11px; font-weight: 600;
  color: rgba(22, 55, 120, 0.80);
  text-shadow:
    0 0 5px rgba(240,230,212,0.95),
    0 0 10px rgba(240,230,212,0.75);
  white-space: nowrap; letter-spacing: 0.3px;
  pointer-events: none;
}

/* ═══ 클러스터 아이콘 ═══ */
.cluster-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  color: #f0e6d4;
  border: 2px solid rgba(255,240,210,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  pointer-events: auto;
}
.cluster-sm  { width:32px; height:32px; font-size:12px; background:rgba(140,32,32,0.82); }
.cluster-md  { width:42px; height:42px; font-size:14px; background:rgba(110,22,22,0.88); box-shadow:0 0 0 5px rgba(140,32,32,0.18), 0 2px 10px rgba(0,0,0,0.4); }
.cluster-lg  { width:54px; height:54px; font-size:16px; background:rgba(80,14,14,0.92); box-shadow:0 0 0 8px rgba(140,32,32,0.15), 0 3px 14px rgba(0,0,0,0.45); }
/* 기본 MarkerCluster 스타일 제거 */
.marker-cluster { background: transparent !important; }
.marker-cluster div { background: transparent !important; }
.leaflet-marker-icon:focus, .leaflet-marker-icon:active { outline: none !important; box-shadow: none !important; }
.marker-icon-clean { background: none !important; border: none !important; outline: none !important; box-shadow: none !important; }

/* ═══ 성(省) 이름 레이블 — Noto Serif KR 900, 먹색 ═══ */
.prov-label-wrap { background: none !important; border: none !important; outline: none !important; pointer-events: none !important; }
.prov-label {
  display: block;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 900;
  color: #1a0e04;
  text-shadow:
    0 0 14px rgba(242,232,214,1),
    0 0 8px rgba(242,232,214,1),
    0 0 4px rgba(242,232,214,1);
  white-space: nowrap;
  letter-spacing: 3px;
  pointer-events: none;
}

/* ═══ 줌 마커 이름 레이블 — Gothic A1 600, 남청색 ═══ */
.map-label-wrap { background: none !important; border: none !important; outline: none !important; pointer-events: none !important; }
.map-label {
  display: block;
  font-family: 'Gothic A1', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #0a3d6e;
  text-shadow:
    0 0 10px rgba(242,232,214,1),
    0 0 6px rgba(242,232,214,1),
    0 0 3px rgba(242,232,214,0.9);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0px;
}
/* ═══ 구파일방 우선 레이블 — Nanum Myeongjo 800, 주홍 ═══ */
.priority-label-wrap { background: none !important; border: none !important; outline: none !important; pointer-events: none !important; }
.priority-label {
  display: block;
  transform: translate(-50%, -50%);
  font-family: 'Nanum Myeongjo', serif;
  font-size: 13px;
  font-weight: 800;
  color: #a81010;
  text-shadow:
    0 0 14px rgba(242,232,214,1),
    0 0 8px rgba(242,232,214,1),
    0 0 4px rgba(242,232,214,1);
  white-space: nowrap;
  letter-spacing: 1.5px;
  pointer-events: none;
}

/* PNG 심볼 마커 */
.map-symbol-icon { display:block; image-rendering: auto; }

/* ═══════════════════════════════════════════════════
   경공 시뮬레이터 v2 — 새 UI 컴포넌트
   패널 배경: rgba(242,232,214,0.97) 밝은 양피지색
   → 모든 텍스트는 어두운 색 사용
   ═══════════════════════════════════════════════════ */

/* 경로 빌더 래퍼 */
.gj-route-builder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

/* 출발/경유/도착 행 */
.gj-point-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gj-wp-row { align-items: flex-start; }

/* 점 뱃지 */
.gj-point-dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Gothic A1', sans-serif;
}
.gj-dot-start { background: rgba(40,160,70,0.88);  color: #fff; }
.gj-dot-end   { background: rgba(185,45,45,0.88);   color: #fff; }
.gj-dot-wp    { background: rgba(50,110,200,0.88);  color: #fff; }

/* 검색 래퍼 (상대 위치 — 드롭다운 기준점) */
.gj-search-wrap {
  position: relative;
  flex: 1;
}

/* 검색 입력창 — 패널 배경이 밝으므로 어두운 텍스트 */
.gj-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  font-family: 'Gothic A1', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}
.gj-search:focus {
  border-color: var(--gold-dim);
  background: rgba(255,255,255,0.8);
}
.gj-search::placeholder { color: var(--text-dim); }

/* 드롭다운 목록 */
.gj-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.gj-drop-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--panel-border-light);
  transition: background 0.1s;
}
.gj-drop-item:last-child { border-bottom: none; }
.gj-drop-item:hover { background: rgba(138,92,32,0.09); }
.gj-drop-name {
  font-size: 12px;
  color: var(--text-primary);
  font-family: 'Noto Serif KR', serif;
}
.gj-drop-hanja {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'Noto Serif KR', serif;
}
.gj-drop-empty {
  padding: 9px 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.gj-drop-label {
  padding: 5px 10px 3px;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--panel-border-light);
}

/* 경유지 삭제 버튼 */
.gj-wp-del {
  flex-shrink: 0;
  background: rgba(185,45,45,0.1);
  border: 1px solid rgba(185,45,45,0.28);
  border-radius: 4px;
  color: var(--crimson-bright);
  font-size: 10px;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.gj-wp-del:hover { background: rgba(185,45,45,0.2); }

/* 경유지 추가 버튼 */
.gj-add-wp {
  align-self: flex-start;
  margin-left: 30px;
  background: rgba(50,110,200,0.08);
  border: 1px solid rgba(50,110,200,0.22);
  border-radius: 5px;
  color: var(--indigo-bright);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Gothic A1', sans-serif;
  transition: background 0.15s;
}
.gj-add-wp:hover { background: rgba(50,110,200,0.16); }

/* 속도 직접 입력 행 */
.gj-speed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.gj-speed-lbl {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.gj-speed-input {
  width: 72px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 12px;
  padding: 5px 8px;
  outline: none;
  font-family: 'Gothic A1', sans-serif;
  text-align: right;
  transition: border-color 0.15s;
}
.gj-speed-input:focus { border-color: var(--gold-dim); }
.gj-speed-unit {
  font-size: 11px;
  color: var(--text-dim);
}

/* 결과 섹션 */
.gj-result-route { padding-bottom: 4px; }
.gj-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.gj-result-title {
  font-size: 12px;
  font-family: 'Noto Serif KR', serif;
  color: var(--gold);
  font-weight: 700;
}
.gj-fav-btn {
  background: none;
  border: 1px solid rgba(138,92,32,0.35);
  border-radius: 4px;
  color: var(--gold);
  font-size: 13px;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}
.gj-fav-btn:hover { background: rgba(138,92,32,0.12); }
.gj-fav-btn:disabled { opacity: 0.5; cursor: default; }

.gj-fallback-note {
  font-size: 10px;
  color: #a85020;
  background: rgba(168,80,32,0.07);
  border-radius: 3px;
  padding: 3px 6px;
  margin-bottom: 5px;
}

/* 다중 구간 목록 */
.gj-segs { margin-bottom: 6px; }
.gj-seg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid var(--panel-border-light);
  font-size: 11px;
}
.gj-seg-label { flex: 1; color: var(--text-dim); }
.gj-seg-dist  { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.gj-seg-fallback {
  font-size: 9px;
  color: #a85020;
  background: rgba(168,80,32,0.1);
  border-radius: 3px;
  padding: 1px 4px;
}

/* 총계 박스 */
.gj-result-total {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--panel-border-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--text-primary);
}

/* 경로 지우기 버튼 — 결과 하단 전체폭 */
.gj-clear-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px 0;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 11px;
  font-family: 'Gothic A1', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.gj-clear-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson-bright);
  background: rgba(140,32,32,0.06);
}

/* 히스토리 / 즐겨찾기 섹션 */
.gj-history-section {
  margin-top: 14px;
  border-top: 1px solid var(--panel-border);
  padding-top: 10px;
}
.gj-hs-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.gj-hs-tab {
  flex: 1;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 11px;
  padding: 5px 0;
  cursor: pointer;
  font-family: 'Gothic A1', sans-serif;
  transition: all 0.15s;
}
.gj-hs-tab.active {
  background: rgba(138,92,32,0.1);
  border-color: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}
.gj-hs-tab:hover:not(.active) {
  background: rgba(138,92,32,0.05);
  border-color: var(--gold-dim);
  color: var(--text-secondary);
}

.gj-hs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px;
  border-radius: 4px;
  border-bottom: 1px solid var(--panel-border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.gj-hs-item:hover { background: rgba(138,92,32,0.07); }
.gj-hs-route {
  flex: 1;
  font-size: 11px;
  color: var(--text-primary);
  font-family: 'Noto Serif KR', serif;
  line-height: 1.4;
}
.gj-hs-meta {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}
.gj-hs-del {
  background: none;
  border: none;
  color: rgba(185,45,45,0.6);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.1s;
}
.gj-hs-del:hover { color: var(--crimson-bright); }
.gj-hs-empty {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 14px 0;
}

/* 주변 명소 목록 */
.gj-nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 4px;
  border-bottom: 1px solid var(--panel-border-light);
  cursor: pointer;
  transition: background 0.1s;
}
.gj-nearby-item:hover { background: rgba(138,92,32,0.09); }
.gj-nearby-name {
  font-size: 12px;
  color: var(--text-primary);
  font-family: 'Noto Serif KR', serif;
}
.gj-nearby-dist {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.gj-nearby-header {
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--panel-border-light);
}

/* 지도 위 경로 마커 (출발/경유/도착) — 지도 위라 밝은 색 유지 */
.gj-start-marker,
.gj-end-marker,
.gj-wp-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Gothic A1', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.7);
}
.gj-start-marker { background: rgba(40,160,70,0.93);  color: #fff; }
.gj-end-marker   { background: rgba(200,45,45,0.93);   color: #fff; }
.gj-wp-marker    { background: rgba(50,110,200,0.93); color: #fff; }

/* 경로 애니메이션 선 */
.route-anim-line {
  animation: routePulse 1.8s ease-in-out infinite;
}
@keyframes routePulse {
  0%, 100% { opacity: 0.95; }
  50%       { opacity: 0.35; }
}
