:root {
  --guide-ink: #17332a;
  --guide-muted: #64746d;
  --guide-green: #176447;
  --guide-green-dark: #0d4d37;
  --guide-lime: #dcebb5;
  --guide-paper: #f8faf4;
  --guide-line: rgba(23, 51, 42, 0.14);
  --guide-shadow: 0 14px 40px rgba(10, 45, 34, 0.2);
  --guide-footer-height: 34px;
  --guide-nav-height: 68px;
  --guide-sheet-height: 220px;
}

.guide-brand,
.guide-sheet,
.guide-nav,
.guide-footer,
.viewport-summary,
.character-guide {
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* v1.3 기능 엔진은 유지하되 중복된 도구막대와 경로 요약 UI는 v1.4에서 노출하지 않는다. */
.topbar,
.map-actions {
  display: none !important;
}

.guide-brand {
  position: fixed;
  z-index: 820;
  top: calc(12px + env(safe-area-inset-top));
  left: 14px;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  background: rgba(248, 250, 244, 0.94);
  color: var(--guide-ink);
  box-shadow: 0 8px 24px rgba(7, 40, 30, 0.16);
  backdrop-filter: blur(14px);
}

.guide-brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  background: var(--guide-green);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.guide-brand__home { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.guide-brand__home:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.55); outline-offset: 3px; border-radius: 11px; }
.guide-brand .guide-brand__mark { margin-top: 0; color: #fff; font-size: 22px; }
.app-shell[data-experience="visitor"] .guide-brand__mark { background: #f2c94c; color: #17332a; }
.app-shell[data-experience="expert"] .guide-brand__mark { background: var(--guide-green); color: #fff; }
#guide-compact-locate { display: grid; float: right; clear: both; box-sizing: border-box; width: 48px; height: 48px; margin: 0 10px 8px 0 !important; place-items: center; border: 0; border-radius: 13px; background: var(--panel-bg); color: var(--guide-green-dark); box-shadow: var(--shadow); cursor: pointer; }
#guide-compact-locate svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
#guide-compact-locate:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.68); outline-offset: 2px; }
.game-shortcut { display: grid; float: right; clear: both; box-sizing: border-box; width: 48px; height: 48px; margin: 0 10px 8px 0 !important; place-items: center; overflow: hidden; border: 0; border-radius: 13px; background: #f2c94c; box-shadow: var(--shadow); }
.game-shortcut img { display: block; width: 44px; height: 44px; object-fit: contain; }
.game-shortcut:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.72); outline-offset: 2px; }

.guide-sheet {
  position: fixed;
  z-index: 800;
  left: 0;
  right: 0;
  bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + env(safe-area-inset-bottom));
  height: var(--guide-sheet-height);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px 26px 0 0;
  background: rgba(248, 250, 244, 0.97);
  box-shadow: 0 -12px 34px rgba(7, 40, 30, 0.17);
  color: var(--guide-ink);
  backdrop-filter: blur(18px);
  transition: height 220ms cubic-bezier(.22, 1, .36, 1);
}

.guide-sheet--dragging { transition: none; }
.guide-sheet[data-collapsed="true"] { height: 30px; }
.guide-sheet[data-expanded="true"] { height: min(46dvh, 390px); }
.guide-sheet__handle { display: grid; width: 100%; height: 28px; place-items: center; border: 0; background: transparent; cursor: ns-resize; touch-action: none; }
.guide-sheet__handle span { width: 36px; height: 4px; border-radius: 999px; background: #aab7b1; }
.guide-view { height: calc(100% - 28px); overflow: auto; padding: 0 16px 18px; scrollbar-width: thin; }
.guide-view[hidden] { display: none !important; }
.guide-view--active { display: block; }
.today-plant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px 12px;
  border-bottom: 1px solid var(--guide-line);
  padding: 0 0 14px;
}
.today-plant h1 { margin: 0 0 5px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(22px, 6vw, 28px); line-height: 1.05; letter-spacing: -0.04em; }
.today-plant h1 small,.today-plant h1 span { display: block; }
.today-plant h1 small { margin-bottom: 4px; color: var(--guide-green); font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif; font-size: 11px; font-weight: 850; letter-spacing: 0; }
.today-plant p { margin: 0; color: var(--guide-muted); font-size: 12px; line-height: 1.45; }
.today-plant img { width: 86px; height: 86px; align-self: center; border-radius: 18px 18px 18px 5px; background: #e8efe4; object-fit: cover; }
.today-plant__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.today-plant__meta span { padding: 4px 7px; border-radius: 7px; background: #e8efe4; color: #3f5a50; font-size: 10px; font-weight: 800; }
.today-plant__actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.today-plant__actions button,
.guide-primary { min-height: 42px; border: 1px solid var(--guide-line); border-radius: 12px; background: #fff; color: var(--guide-ink); font-weight: 850; }
.today-plant__actions .guide-primary,
.guide-primary { border-color: var(--guide-green); background: var(--guide-green); color: #fff; }

.game-encounter { position: fixed; z-index: 790; top: var(--encounter-y, 38dvh); left: var(--encounter-x, 70vw); width: clamp(170px, 43vw, 230px); pointer-events: none; transform: translate(-50%, -50%); }
.game-encounter[hidden] { display: none !important; }
.game-encounter a { display: grid; place-items: center; color: inherit; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.game-encounter img { position: relative; z-index: 1; display: block; width: 100%; height: auto; transform-origin: 50% 92%; animation: game-encounter-hop 1.55s cubic-bezier(.22, .78, .32, 1) infinite; filter: drop-shadow(0 12px 18px rgb(7 40 30 / 35%)); }
.game-encounter a::after { width: 42%; height: 12px; margin-top: -17px; border-radius: 50%; background: rgb(7 40 30 / 30%); content: ""; animation: game-encounter-shadow 1.55s ease-in-out infinite; filter: blur(5px); }
.game-encounter a:focus-visible { border-radius: 16px; outline: 4px solid #f2c94c; outline-offset: 6px; }
.game-encounter a:active img { transform: scale(.96); }
@keyframes game-encounter-hop {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
  10% { transform: translateY(3px) scale(1.04, .95); }
  27% { transform: translateY(-22px) rotate(2deg) scale(.99, 1.02); }
  39% { transform: translateY(0) rotate(-1deg) scale(1.03, .96); }
  50% { transform: translateY(2px) scale(1.05, .94); }
  72% { transform: translateY(-38px) rotate(-2deg) scale(.98, 1.03); }
  87% { transform: translateY(0) rotate(1deg) scale(1.04, .95); }
}
@keyframes game-encounter-shadow {
  0%, 39%, 50%, 87%, 100% { opacity: .78; transform: scaleX(1); }
  27% { opacity: .42; transform: scaleX(.72); }
  72% { opacity: .28; transform: scaleX(.58); }
}
@media (prefers-reduced-motion: reduce) {
  .game-encounter img, .game-encounter a::after { animation: none; }
}
@media (max-width: 860px) {
  .game-encounter { width: clamp(85px, 21.5vw, 115px); }
}

.question-launcher { display: grid; position: relative; width: 100%; min-height: 54px; margin: 12px 0 8px; padding: 8px 12px 8px 45px; border: 1px solid rgba(23, 100, 71, 0.2); border-radius: 15px; background: #fff; color: var(--guide-ink); text-align: left; }
.question-launcher > svg { position: absolute; left: 14px; top: 14px; width: 24px; color: var(--guide-green); fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.question-launcher strong { align-self: end; font-size: 14px; }
.question-launcher small { color: var(--guide-muted); font-size: 10px; }
.guide-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.guide-chips::-webkit-scrollbar { display: none; }
.guide-chips button { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid var(--guide-line); border-radius: 999px; background: #fff; color: #395048; font-size: 11px; font-weight: 800; }
.guide-chips button[aria-pressed="true"] { border-color: var(--guide-green); background: var(--guide-green); color: #fff; }

.guide-section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 13px; }
.guide-section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 24px; letter-spacing: -0.035em; }
.guide-section-heading h2 small { display: block; margin-bottom: 2px; color: var(--guide-green); font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif; font-size: 11px; font-weight: 850; letter-spacing: 0; }
.guide-view-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #e8efe9; color: var(--guide-ink); font-size: 25px; }
.guide-view-close svg,.character-guide button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.guide-summary-card { margin-top: 12px; padding: 14px; border-radius: 14px; background: #dfeadd; box-shadow: inset 0 0 0 1px rgba(23, 100, 71, 0.12); }
.guide-summary-card strong { font-size: 14px; }
.guide-summary-card p { margin: 4px 0 0; color: var(--guide-muted); font-size: 12px; line-height: 1.45; }

.guide-question-form { display: grid; grid-template-columns: 1fr 56px; gap: 7px; }
.guide-question-form input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid #9db1a7; border-radius: 13px; background: #fff; color: var(--guide-ink); font-size: 16px; outline: 0; }
.guide-question-form input:focus { border-color: var(--guide-green); box-shadow: 0 0 0 3px rgba(23, 100, 71, 0.12); }
.guide-question-form button { border: 0; border-radius: 13px; background: var(--guide-green); color: #fff; font-weight: 850; }
#guide-question-suggestions { margin-top: 9px; }
.guide-answer { margin-top: 10px; }
.guide-answer__empty { padding: 14px 2px; color: var(--guide-muted); }
.guide-answer__empty strong { color: var(--guide-ink); font-size: 14px; }
.guide-answer__empty p { margin: 4px 0 0; font-size: 12px; }
.answer-card { padding: 14px; border: 1px solid var(--guide-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 18px rgba(28, 57, 47, 0.06); }
.answer-card + .answer-card { margin-top: 8px; }
.answer-card h3 { margin: 0 0 4px; font-family: Georgia, "Noto Serif KR", serif; font-size: 19px; }
.answer-card p { margin: 0; color: var(--guide-muted); font-size: 12px; line-height: 1.55; }
.answer-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 9px 0; }
.answer-card__meta span { padding: 4px 7px; border-radius: 7px; background: #edf2ec; color: #43574f; font-size: 10px; font-weight: 800; }
.answer-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.answer-card__actions button { min-height: 36px; padding: 0 10px; border: 1px solid var(--guide-line); border-radius: 10px; background: #f7faf6; color: var(--guide-ink); font-size: 11px; font-weight: 850; }
.answer-card__actions button:first-child { border-color: var(--guide-green); background: var(--guide-green); color: #fff; }
.answer-note { margin-top: 8px; color: var(--guide-muted); font-size: 10px; }
.answer-card--commentary { border-color: #aac6b6; background: linear-gradient(145deg, #f7fbf5, #edf5ed); }
.answer-card--commentary .answer-card__meta { margin-top: 0; }
.answer-card--commentary .answer-card__meta span:first-child { background: #176447; color: #fff; }
.answer-card--commentary > img { display: block; width: 100%; max-height: 190px; margin: 0 0 10px; border-radius: 12px; object-fit: cover; background: #e5eee6; }
.answer-card--commentary p + p { margin-top: 8px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 14px; background: #e5ebe6; }
.segmented button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: #51645c; font-weight: 850; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--guide-green-dark); box-shadow: 0 3px 9px rgba(26, 58, 46, 0.1); }
.walk-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.walk-themes button { min-height: 68px; padding: 11px; border: 1px solid var(--guide-line); border-radius: 13px; background: #fff; color: var(--guide-ink); text-align: left; }
.walk-themes button[aria-pressed="true"] { border-color: var(--guide-green); background: #eaf2df; box-shadow: inset 0 0 0 1px var(--guide-green); }
.walk-themes strong,.walk-themes span { display: block; }
.walk-themes strong { font-size: 12px; }
.walk-themes span { margin-top: 3px; color: var(--guide-muted); font-size: 10px; }
.guide-primary--wide { width: 100%; min-height: 48px; margin-top: 10px; }

.walk-audio-choice {
  width: min(360px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--guide-paper);
  color: var(--guide-ink);
  box-shadow: var(--guide-shadow);
}
.walk-audio-choice::backdrop { background: rgba(9, 31, 24, 0.56); backdrop-filter: blur(3px); }
.walk-audio-choice > div { padding: 22px; }
.walk-audio-choice h2 { margin: 0 0 8px; font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; line-height: 1.18; letter-spacing: -0.035em; }
.walk-audio-choice p { margin: 0 0 16px; color: var(--guide-muted); font-size: 12px; line-height: 1.55; }
.walk-audio-choice button { width: 100%; min-height: 46px; border: 1px solid var(--guide-line); border-radius: 12px; background: #fff; color: var(--guide-ink); font-weight: 850; }
.walk-audio-choice button:first-of-type { margin-bottom: 7px; border-color: var(--guide-green); background: var(--guide-green); color: #fff; }

.guide-nav { position: fixed; z-index: 830; left: 0; right: 0; bottom: calc(var(--guide-footer-height) + env(safe-area-inset-bottom)); display: grid; box-sizing: border-box; height: var(--guide-nav-height); grid-template-columns: repeat(3, 1fr); padding: 4px 9px; border-top: 1px solid var(--guide-line); background: rgba(250, 251, 247, 0.98); box-shadow: 0 -4px 18px rgba(20, 48, 38, 0.08); }
.guide-nav button { display: grid; min-width: 0; place-content: center; justify-items: center; gap: 0; border: 0; border-radius: 13px; background: transparent; color: #65756e; font-size: 11px; font-weight: 850; cursor: pointer; }
.guide-nav button img { width: 38px; height: 38px; margin-bottom: -2px; object-fit: contain; transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1); }
.guide-nav button:hover img { transform: translateY(-2px); }
.guide-nav button[aria-current="page"] { background: #e5efda; color: var(--guide-green-dark); }

.guide-footer { position: fixed; z-index: 840; right: 0; bottom: 0; left: 0; display: flex; box-sizing: border-box; height: calc(var(--guide-footer-height) + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; padding: 3px 12px calc(3px + env(safe-area-inset-bottom)); overflow: hidden; border-top: 1px solid var(--guide-line); background: #fff; }
.guide-footer__nie { display: inline-flex; min-width: 0; height: 24px; align-items: center; }
.guide-footer__nie img { display: block; width: auto; max-width: min(150px, 46vw); height: 22px; object-fit: contain; }
.guide-footer .powered-by-onpod { flex: 0 0 auto; min-height: 24px; padding: 0; }
.guide-footer a:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.55); outline-offset: 1px; }

.route-summary:not([hidden]) { position: fixed; z-index: 870; right: 12px; bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + 38px + env(safe-area-inset-bottom)); left: 12px; display: flex; box-sizing: border-box; max-width: 390px; min-height: 54px; margin-inline: auto; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid rgba(138, 60, 8, 0.24); border-radius: 14px; background: rgba(255, 252, 247, 0.97); color: #63310e; box-shadow: 0 8px 26px rgba(46, 24, 8, 0.22); }
.route-summary div { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.route-summary strong { flex: 0 0 auto; font-size: 16px; font-variant-numeric: tabular-nums; }
.route-summary span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.route-summary button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 10px; background: #a94708; color: #fff; font: inherit; font-size: 11px; font-weight: 850; white-space: nowrap; cursor: pointer; }

.guide-help-button { top: calc(12px + env(safe-area-inset-top)) !important; right: auto !important; bottom: auto !important; left: 50% !important; width: 48px !important; height: 48px !important; transform: translateX(-50%); }

.viewport-summary { position: fixed; z-index: 770; top: calc(74px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); min-height: 38px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; background: rgba(248,250,244,.94); color: var(--guide-ink); box-shadow: 0 6px 18px rgba(8,42,31,.14); white-space: nowrap; }
.viewport-summary strong,.viewport-summary span { display: block; }
.viewport-summary strong { font-size: 9px; color: var(--guide-green); text-transform: uppercase; }
.viewport-summary span { font-size: 11px; font-weight: 850; }
.character-guide { position: fixed; z-index: 850; right: 12px; bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + var(--guide-sheet-height) + 12px + env(safe-area-inset-bottom)); display: grid; max-width: min(270px, calc(100vw - 24px)); min-height: 70px; grid-template-columns: 58px 1fr 28px; align-items: center; gap: 8px; padding: 8px; border: 1px solid rgba(255,255,255,.65); border-radius: 19px 19px 5px 19px; background: rgba(255,255,255,.96); color: var(--guide-ink); box-shadow: var(--guide-shadow); }
.character-guide[hidden] { display: none; }
.character-guide img { width: 58px; height: 58px; border-radius: 13px; object-fit: cover; }
.character-guide p { margin: 0; font-size: 12px; font-weight: 750; line-height: 1.45; }
.character-guide button { display: grid; align-self: start; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 9px; background: #eef2ed; color: var(--guide-muted); }

@media (max-width: 860px) {
  .leaflet-control-zoom { margin-bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + var(--guide-sheet-height) + 18px) !important; }
  .plant-card-panel,.flowering-panel,.tree-info-panel,.search-panel,.route-panel,.commentary-panel { z-index: 900 !important; }
  .audio-guide-player { z-index: 920 !important; bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + env(safe-area-inset-bottom) + 8px) !important; }
  .app-shell.guide-sheet-collapsed .leaflet-control-zoom { margin-bottom: calc(var(--guide-footer-height) + var(--guide-nav-height) + 46px) !important; }
}

@media (max-height: 650px) and (max-width: 860px) {
  :root { --guide-sheet-height: 200px; }
  .today-plant img { width: 66px; height: 66px; }
  .today-plant { grid-template-columns: 1fr 66px; }
}

/* v1.5: 관람객 지도와 전문가 식물 분포를 한 지도 엔진에서 전환한다. */
:root {
  --guide-footer-height: 38px;
}

.visitor-only { display: initial; }
.expert-only { display: none; }
.app-shell[data-experience="expert"] .visitor-only,
.app-shell[data-experience="expert"] .visitor-map-tools,
.app-shell[data-experience="expert"] [data-guide-action="browse"],
.app-shell[data-experience="expert"] [data-guide-action="walk"] { display: none !important; }
.app-shell[data-experience="expert"] .expert-only { display: initial; }
.app-shell[data-experience="expert"] .guide-nav { grid-template-columns: 1fr; }
.app-shell[data-experience="visitor"] .map-view-modes,
.app-shell[data-experience="visitor"] .map-stage-indicator,
.app-shell[data-experience="visitor"] .viewport-summary { display: none !important; }
.app-shell[data-experience="visitor"] .botanical-overview-canvas,
.app-shell[data-experience="visitor"] .plant-marker,
.app-shell[data-experience="visitor"] .plant-cluster,
.app-shell[data-experience="visitor"] .plant-name-label { opacity: 0 !important; pointer-events: none !important; }
.app-shell[data-experience="visitor"][data-guide-view="home"] .guide-sheet[data-collapsed="false"][data-expanded="false"] { height: 174px; }
.app-shell[data-experience="visitor"][data-guide-view="home"] .guide-sheet[data-collapsed="true"],
.app-shell[data-experience="expert"] .guide-sheet[data-collapsed="true"] { height: 30px; }

.visitor-map-tools {
  position: fixed;
  z-index: 840;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  display: flex;
  gap: 6px;
}
.visitor-map-tools button {
  position: static !important;
  display: inline-flex;
  box-sizing: border-box;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(248, 250, 244, 0.96);
  color: var(--guide-green-dark);
  box-shadow: 0 8px 24px rgba(7, 40, 30, 0.16);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(14px);
  cursor: pointer;
}
.visitor-map-tools button[aria-pressed="true"] { background: var(--guide-green); color: #fff; }
#visitor-flowering-toggle:not([aria-pressed="true"]) { border-color: rgba(88, 124, 68, 0.62); background: #dce9ca; }
.visitor-map-tools button:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.58); outline-offset: 2px; }
.visitor-map-tools svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visitor-map-tools img { box-sizing: border-box; width: 32px; height: 32px; padding: 3px; border-radius: 9px; background: #c9dcae; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(37, 75, 47, 0.32)); }
.visitor-map-tools strong { min-width: 22px; color: currentColor; font-size: 9px; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .guide-sheet { transition: none; }
}

.visitor-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0 12px;
}
.visitor-welcome h1 { margin: 0 0 7px; color: var(--guide-ink); font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(22px, 6vw, 27px); line-height: 1.1; letter-spacing: -0.035em; }
.visitor-welcome p { max-width: 55ch; margin: 0; color: var(--guide-muted); font-size: 12px; line-height: 1.5; }
.visitor-welcome > strong { flex: 0 0 auto; padding: 7px 9px; border-radius: 9px; background: var(--guide-lime); color: var(--guide-green-dark); font-size: 10px; }
.guide-section-intro { margin: -5px 0 13px; color: var(--guide-muted); font-size: 12px; line-height: 1.5; }

.visitor-zone-marker { background: transparent; border: 0; pointer-events: none !important; }
.visitor-zone-marker__visual {
  position: absolute;
  inset: 0;
  transform: translate(var(--zone-offset-x), var(--zone-offset-y));
  pointer-events: auto;
  cursor: pointer;
}
.visitor-zone-marker img {
  position: absolute;
  top: 0;
  left: 16px;
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(11, 53, 39, 0.24));
  transform-origin: 50% 100%;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}
.visitor-zone-marker strong {
  position: absolute;
  top: 86px;
  left: 50%;
  min-width: max-content;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.95);
  color: #17332a;
  box-shadow: 0 4px 13px rgba(12, 50, 38, 0.18);
  font: 850 11px/1.1 "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  white-space: nowrap;
}
.visitor-zone-marker__leader { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.visitor-zone-marker__leader line { stroke: rgba(23, 100, 71, 0.72); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.visitor-zone-marker i { position: absolute; top: 118px; left: 54px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--guide-green); box-shadow: 0 2px 8px rgba(5, 38, 27, 0.24); pointer-events: none; }
.visitor-zone-marker:hover img,
.visitor-zone-marker:focus img { filter: drop-shadow(0 10px 10px rgba(11, 53, 39, 0.3)); transform: translateY(-4px) scale(1.04); }
.visitor-zone-marker--compact strong { font-size: 10px; }
.visitor-point-marker { background: transparent; border: 0; pointer-events: none !important; }
.visitor-point-marker__visual {
  position: absolute;
  left: 56px;
  top: 82px;
  display: grid;
  justify-items: center;
  transform: translate(calc(var(--point-offset-x) - 50%), calc(var(--point-offset-y) - 100%));
  pointer-events: auto;
  cursor: pointer;
}
.visitor-point-marker__visual img {
  width: 53px;
  height: 53px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(10, 48, 36, .22));
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.visitor-point-marker__visual strong {
  display: none;
  max-width: 112px;
  margin-top: 6px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #17332a;
  box-shadow: 0 4px 12px rgba(10, 48, 36, .16);
  font: 850 9px/1.15 "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-shell.visitor-point-label-stage .visitor-point-marker__visual strong { display: block; }
.app-shell.visitor-point-label-stage .visitor-point-marker__visual strong.visitor-point-label--hidden { display: none; }
.visitor-point-marker__leader { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.visitor-point-marker__leader line { stroke: rgba(23, 100, 71, .58); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.visitor-point-marker > i { position: absolute; top: 78px; left: 52px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--guide-green); box-shadow: 0 2px 7px rgba(5, 38, 27, .25); }
.visitor-point-marker:hover .visitor-point-marker__visual img,
.visitor-point-marker:focus .visitor-point-marker__visual img { transform: translateY(-3px) scale(1.06); }

.zone-list { display: grid; gap: 8px; padding-bottom: 6px; }
.zone-list-item {
  display: grid;
  min-height: 76px;
  grid-template-columns: 76px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--guide-line);
  background: transparent;
  color: var(--guide-ink);
  text-align: left;
  cursor: pointer;
}
.zone-list-item > img { width: 76px; height: 66px; border-radius: 12px; object-fit: cover; }
.zone-list-item span,.zone-list-item strong,.zone-list-item small { display: block; }
.zone-list-item strong { margin-bottom: 4px; font-family: Georgia, "Noto Serif KR", serif; font-size: 17px; letter-spacing: -0.025em; }
.zone-list-item small { color: var(--guide-muted); font-size: 11px; line-height: 1.4; }
.zone-list-item svg { width: 20px; fill: none; stroke: var(--guide-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zone-list-item:focus-visible { outline: 3px solid rgba(23, 100, 71, 0.24); outline-offset: -3px; border-radius: 12px; }

.zone-dialog {
  width: min(660px, calc(100vw - 28px));
  max-height: min(84dvh, 720px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--guide-paper);
  color: var(--guide-ink);
  box-shadow: var(--guide-shadow);
}
.zone-dialog::backdrop { background: rgba(8, 32, 24, 0.58); backdrop-filter: blur(3px); }
.zone-dialog__close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.94); color: var(--guide-ink); box-shadow: 0 5px 16px rgba(10,45,34,.18); }
.zone-dialog__close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zone-dialog__photo { display: block; width: 100%; height: clamp(190px, 36vw, 300px); object-fit: cover; }
.point-dialog__media { margin: 0; border-bottom: 1px solid var(--guide-line); background: #f1f3e9; }
.point-dialog__media figcaption { padding: 8px 14px; color: var(--guide-muted); font-size: 10px; font-weight: 700; line-height: 1.4; }
.zone-dialog__body { padding: 20px 22px 22px; }
.zone-dialog__body h1 { margin: 0 0 9px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(25px, 7vw, 34px); line-height: 1.08; letter-spacing: -0.035em; }
.zone-dialog__body h2 { margin: 24px 0 9px; font-family: Georgia, "Noto Serif KR", serif; font-size: 17px; line-height: 1.25; letter-spacing: -0.025em; }
.zone-dialog__body p { max-width: 68ch; margin: 0; color: var(--guide-muted); font-size: 14px; line-height: 1.65; }
.zone-dialog__body ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.zone-dialog__body li { padding: 5px 8px; border-radius: 8px; background: #e4eddd; color: #315243; font-size: 11px; font-weight: 800; }
.zone-dialog__body > small { display: block; margin-top: 13px; color: var(--guide-muted); font-size: 10px; }
.zone-dialog__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.zone-dialog__actions button,.zone-dialog__actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--guide-line); border-radius: 11px; background: #fff; color: var(--guide-ink); font: 850 11px/1 "Pretendard", "Noto Sans KR", system-ui, sans-serif; text-decoration: none; }
.zone-dialog__actions button:first-child { border-color: var(--guide-green); background: var(--guide-green); color: #fff; }
.zone-point-list { display: grid; gap: 0; border-top: 1px solid var(--guide-line); }
.zone-point-list__item { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--guide-line); }
.zone-point-list__detail { min-width: 0; padding: 13px 0; border: 0; background: transparent; color: var(--guide-ink); text-align: left; cursor: pointer; }
.zone-point-list__detail strong,.zone-point-list__detail span { display: block; overflow-wrap: anywhere; }
.zone-point-list__detail strong { margin-bottom: 4px; font-size: 14px; }
.zone-point-list__detail span { display: -webkit-box; overflow: hidden; color: var(--guide-muted); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zone-point-list__route { min-width: 58px; min-height: 44px; padding: 0 10px; border: 1px solid rgba(23, 100, 71, .24); border-radius: 11px; background: #edf3e8; color: var(--guide-green-dark); font: 850 11px/1 "Pretendard", "Noto Sans KR", system-ui, sans-serif; cursor: pointer; }
.zone-point-list__detail:focus-visible,.zone-point-list__route:focus-visible,.point-dialog__back:focus-visible,.point-dialog__route:focus-visible { outline: 3px solid rgba(217, 165, 76, .55); outline-offset: 2px; }
.point-dialog__back { min-height: 44px; margin: -6px 0 8px; padding: 0; border: 0; background: transparent; color: var(--guide-green); font: 850 11px/1 "Pretendard", "Noto Sans KR", system-ui, sans-serif; cursor: pointer; }
.point-dialog__back::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
.point-dialog__species { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.point-dialog__species section { min-width: 0; }
.point-dialog__species h2 { margin-top: 0; }
.point-dialog__species ul { margin: 0; }
.point-dialog__species p { font-size: 12px; }
.point-dialog__route { width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 13px; background: var(--guide-green); color: #fff; font: 850 14px/1 "Pretendard", "Noto Sans KR", system-ui, sans-serif; box-shadow: 0 7px 18px rgba(14, 82, 58, .22); cursor: pointer; }
.point-dialog__story { margin-top: 22px; padding-top: 2px; border-top: 1px solid var(--guide-line); }
.point-dialog__story h2 { margin-top: 18px; }

.answer-card--zone { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; }
.answer-card--zone > img { width: 88px; height: 100%; min-height: 94px; border-radius: 12px; object-fit: cover; }
.course-durations { margin-top: 8px; }
.course-durations button { padding: 0 5px; font-size: 10px; }
.course-preview { margin-top: 11px; padding: 14px; border-radius: 14px; background: #dfeadd; color: var(--guide-ink); }
.course-preview > strong { font-family: Georgia, "Noto Serif KR", serif; font-size: 19px; letter-spacing: -0.025em; }
.course-preview p { margin: 5px 0 9px; color: var(--guide-muted); font-size: 11px; line-height: 1.45; }
.course-preview ol { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; padding: 0; list-style: none; counter-reset: stops; }
.course-preview li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 7px; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; }
.course-preview li::before { counter-increment: stops; content: counter(stops); display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: var(--guide-green); color: #fff; font-size: 8px; }
.course-preview small { color: #49645a; font-size: 10px; }

.guide-footer__left { display: flex; min-width: 0; align-items: center; gap: 7px; }
#experience-mode-toggle { flex: 0 0 auto; min-height: 25px; padding: 0 7px; border: 1px solid rgba(23,100,71,.22); border-radius: 8px; background: #edf3e8; color: var(--guide-green-dark); font: 850 9px/1 "Pretendard", "Noto Sans KR", system-ui, sans-serif; cursor: pointer; }
#experience-mode-toggle:focus-visible { outline: 3px solid rgba(217, 165, 76, 0.55); outline-offset: 1px; }
.app-shell[data-experience="expert"] #experience-mode-toggle { background: var(--guide-green); color: #fff; }

::selection { background: #cfe2bf; color: #0d3527; }

@media (max-width: 860px) {
  .visitor-map-tools span { display: none; }
  .visitor-map-tools button { width: 48px; padding: 0; }
  .visitor-map-tools strong { position: absolute; right: 2px; bottom: 2px; min-width: 18px; padding: 2px 3px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--guide-green-dark); }
  .visitor-map-tools button[aria-pressed="true"] strong { background: rgba(255,255,255,.2); color: #fff; }
  .zone-dialog { width: 100%; max-width: none; max-height: 82dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .guide-footer__nie img { max-width: 92px; height: 18px; }
  .guide-footer .powered-by-onpod { font-size: 9px; }
}

@media (max-width: 420px) {
  .visitor-map-tools { gap: 4px; }
  .visitor-map-tools button { width: 44px; min-width: 44px; height: 48px; }
  .answer-card--zone { grid-template-columns: 70px minmax(0,1fr); }
  .answer-card--zone > img { width: 70px; }
  .guide-footer { gap: 5px; padding-inline: 8px; }
  #experience-mode-toggle { padding-inline: 5px; font-size: 8px; }
  .guide-footer .powered-by-onpod span { font-size: 8px; }
  .point-dialog__species { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-zone-marker img,.visitor-point-marker__visual img { transition: none; }
}

@media (min-width: 861px) {
  :root { --guide-nav-height: 64px; }
  .guide-brand { left: 18px; }
  .guide-nav { top: 82px; right: auto; bottom: auto; left: 18px; width: 390px; height: var(--guide-nav-height); padding: 4px; border: 1px solid var(--guide-line); border-radius: 18px; box-shadow: var(--guide-shadow); }
  .guide-sheet { top: 154px; right: auto; bottom: auto; left: 18px; width: 390px; height: min(58dvh, 560px); max-height: calc(100dvh - 210px); border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: var(--guide-shadow); }
  .guide-sheet[data-expanded="true"] { height: min(58dvh, 560px); }
  .guide-sheet[data-collapsed="true"] { height: 0; border-width: 0; box-shadow: none; }
  .app-shell[data-experience="visitor"][data-guide-view="home"] .guide-sheet[data-collapsed="false"][data-expanded="false"] { height: 174px; }
  .guide-sheet__handle { display: none; }
  .guide-view { height: 100%; padding: 18px; }
  .app-shell[data-experience="expert"] .guide-help-button { right: 18px !important; left: auto !important; transform: none; }
  .viewport-summary { top: 18px; }
  .character-guide { right: 24px; bottom: calc(var(--guide-footer-height) + 18px); }
}
