/* 너머(NEOMEO) — 디자인 시스템 & 메인 스타일시트 */
:root {
  /* [브랜드 컬러 팔레트] */
  --forest: #294C3D;          /* Deep Forest (메인) */
  --on-forest: #FFFFFF;
  --sage: #8FB19A;            /* Sage Green */
  --soft-sage: #E8EFE5;       /* Soft Sage (배경 보조) */
  --clear-blue: #4779B8;      /* Clear Blue (지도/경로 보조) */
  --paper: #F5F3EC;           /* Warm Ivory (기본 배경) */
  --surface: #FFFFFF;         /* 카드/패널 표면 */
  --surface-2: #EEF2EB;       /* 보조 표면 */
  --ink: #292D2A;             /* Charcoal (기본 본문 텍스트) */
  --muted: #5B665F;           /* 서브 텍스트 */
  --line: #DCE3D8;            /* 경계선 */
  --amber: #E8B86B;           /* Soft Amber (강조/주의) */

  /* [상태별 색상 (접근성 대비 확보)] */
  --ok: #1E7E48;       --ok-bg: #E3F3EA;
  --warn: #9C5704;     --warn-bg: #FDF1DB;
  --bad: #B32E35;      --bad-bg: #FBE6E7;
  --unk: #68726B;      --unk-bg: #ECEEE8;

  /* [그림자 및 테두리 반경] */
  --shadow-sm: 0 2px 8px rgba(41, 76, 61, 0.08);
  --shadow-md: 0 10px 28px rgba(41, 76, 61, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* [타이포그래피] */
  --font-display: "Gowun Batang", "Nanum Myeongjo", serif;
  --font-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  /* [레이아웃 규격] */
  --header-h: 70px;
  --chrome-h: 70px;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-contrast="high"]) {
    --paper: #121A16;
    --surface: #1B2621;
    --surface-2: #24332D;
    --ink: #EAF0EC;
    --muted: #A1B2A7;
    --line: #2D3E36;
    --forest: #8CC2A2;
    --on-forest: #121A16;
    --soft-sage: #203129;
    --clear-blue: #6FA4E5;
    --ok: #5EC489;       --ok-bg: #143623;
    --warn: #F2AC53;     --warn-bg: #382A12;
    --bad: #F3767C;      --bad-bg: #3F1B1E;
    --unk: #A5B2A9;      --unk-bg: #222F27;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]):not([data-contrast="high"]) .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.92) saturate(0.65);
  }
}

/* 고대비(High Contrast) 모드 */
:root[data-contrast="high"] {
  --paper: #FFFFFF !important;
  --surface: #FFFFFF !important;
  --surface-2: #F0F0F0 !important;
  --ink: #000000 !important;
  --muted: #222222 !important;
  --line: #000000 !important;
  --forest: #000000 !important;
  --on-forest: #FFFFFF !important;
  --clear-blue: #003399 !important;
  --soft-sage: #E8E8E8 !important;
  --ok: #006622 !important;   --ok-bg: #E6FFE6 !important;
  --warn: #994400 !important; --warn-bg: #FFF3E6 !important;
  --bad: #CC0000 !important;  --bad-bg: #FFE6E6 !important;
  --unk: #444444 !important;  --unk-bg: #EEEEEE !important;
  font-weight: 500;
}
:root[data-contrast="high"] a, 
:root[data-contrast="high"] button, 
:root[data-contrast="high"] .card, 
:root[data-contrast="high"] .ftile, 
:root[data-contrast="high"] .preset-btn {
  border: 2px solid #000000 !important;
}

/* ---------- 기본 리셋 및 접근성 ---------- */
html { font-size: 100%; box-sizing: border-box; }
html.large { font-size: 118.75%; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 포커스 링 (키보드 내비게이션 접근성) */
a:focus-visible, button:focus-visible, input:focus-visible, .leaflet-marker-icon:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1:focus, h2:focus, h3:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.35; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--forest);
  text-transform: uppercase;
}

.meta { color: var(--muted); font-size: 0.9rem; }
.mini-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

/* ---------- 버튼 & 배지 & 기호 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--forest); color: var(--on-forest); box-shadow: var(--shadow-sm); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: var(--shadow-md); }
.btn.ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn.ghost:hover { background: var(--soft-sage); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.unknown { color: var(--unk); background: var(--unk-bg); }
.pill.na { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }

.dot {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--unk);
  color: var(--unk);
  background: var(--surface);
  font: 700 12px/1 var(--font-body);
  flex: none;
}
.dot.ok { border-color: var(--ok); color: var(--ok); }
.dot.warn { border-color: var(--warn); color: var(--warn); }
.dot.bad { border-color: var(--bad); color: var(--bad); }
.dot.unknown { border-style: dashed; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--unk); }
.badge.done::before { background: var(--ok); }
.badge.doing::before { background: var(--warn); }

/* ---------- 상단 앱바(헤더) ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.appbar-in {
  max-width: 76rem;
  margin-inline: auto;
  height: var(--header-h);
  padding: 0 max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-img { height: 38px; width: auto; }

.mainnav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.mainnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.mainnav a:hover { background: var(--soft-sage); color: var(--forest); }
.mainnav a[aria-current="page"] {
  background: var(--forest);
  color: var(--on-forest);
}

.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tool-toggle[aria-pressed="true"] {
  background: var(--forest);
  color: var(--on-forest);
  border-color: var(--forest);
}

/* 공지 바 */
.notice {
  background: var(--soft-sage);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--forest);
}
.notice p { display: flex; align-items: center; gap: 8px; }
.notice strong { background: var(--forest); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }

/* ---------- 1. 메인(홈) 화면 ---------- */
.hero {
  padding: 60px 0 70px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}
.hero-copy h1 .highlight {
  color: var(--forest);
  background: linear-gradient(120deg, transparent 60%, rgba(143, 177, 154, 0.3) 60%);
}
.hero-copy .lede {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
  word-break: keep-all;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-schools ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.hero-schools a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.hero-schools a:hover {
  border-color: var(--forest);
  color: var(--forest);
  transform: translateY(-2px);
}
.hero-schools .count {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--soft-sage);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* 캐릭터 비주얼 카드 */
.hero-characters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.character-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}
.character-card:hover { transform: translateY(-4px); }
.char-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.char-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--soft-sage);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

/* 3대 핵심 가치 카드 */
.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 70px 20px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pillar-n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--sage); }
.pillar-badge { font-size: 0.82rem; font-weight: 700; color: var(--forest); background: var(--soft-sage); padding: 3px 10px; border-radius: var(--radius-pill); }
.pillar h2 { font-size: 1.35rem; color: var(--ink); margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; word-break: keep-all; }

/* ---------- 2. 지도 서비스 화면 ---------- */
.map-view { padding: 0; }
body.is-map { overflow: hidden; }
.map-app {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  height: calc(100vh - var(--header-h));
  position: relative;
}

/* 좌측 컨트롤 사이드바 */
.side {
  background: var(--surface);
  border-inline: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-block {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.side-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.school-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.school-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.school-list a:hover { background: var(--soft-sage); }
.school-list a[aria-current="true"] {
  background: var(--forest);
  color: var(--on-forest);
}
.school-list a[aria-current="true"] .count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.school-list .count {
  font-size: 0.8rem;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* 검색창 */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search .icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
}
.search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search input:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(41, 76, 61, 0.12);
}

/* 이동 조건 맞춤 프리셋 */
.preset-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.preset-btn {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.preset-btn:hover { background: var(--soft-sage); }
.preset-btn.active {
  background: var(--forest);
  color: var(--on-forest);
  border-color: var(--forest);
}

/* 세부 시설 필터 */
.filter-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ftile:hover { background: var(--soft-sage); }
.ftile[aria-pressed="true"] {
  background: var(--soft-sage);
  border-color: var(--forest);
  color: var(--forest);
  font-weight: 700;
}
.ftile .icon { color: var(--forest); }

/* 중앙 지도 영역 */
.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.map {
  width: 100%;
  height: 100%;
  background: var(--paper);
}

/* 범례 */
.legend {
  position: absolute;
  left: 20px;
  bottom: 24px;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
}
.legend li { display: flex; align-items: center; gap: 6px; }

/* 커스텀 핀 마커 */
.pin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}
.pin span {
  transform: rotate(45deg);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.pin.ok { background: var(--ok); }
.pin.warn { background: var(--warn); }
.pin.bad { background: var(--bad); }
.pin.unknown { background: var(--unk); }

.pin-label {
  margin-top: 4px;
  background: rgba(41, 76, 61, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.pin-wrap.is-selected .pin {
  transform: rotate(-45deg) scale(1.2);
  border-color: #ffd700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.pin-wrap.is-selected .pin-label {
  background: var(--forest);
  transform: scale(1.1);
}

/* 장소 상세 카드 (오버레이 모달/사이드) */
.detail-card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 380px;
  max-height: calc(100% - 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 600;
  overflow-y: auto;
  padding: 24px;
}
.dc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dc-back { font-size: 0.9rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.dc-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface-2);
}
.dc-close:hover { background: var(--soft-sage); color: var(--forest); }

.dc-photo { margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; }
.dc-photo img { width: 100%; height: 200px; object-fit: cover; }
.dc-photo.placeholder {
  height: 140px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
}

.dc-head { margin-bottom: 20px; }
.dc-head .over { font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.dc-head h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.dc-head p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

.dc-section-title { font-size: 1rem; color: var(--forest); margin: 20px 0 10px; font-weight: 700; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.facts li {
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}
.fact-icon { color: var(--forest); display: flex; align-items: center; }
.fact-name { font-weight: 700; flex: 1; }
.fact-note { width: 100%; color: var(--muted); font-size: 0.85rem; margin-top: 4px; padding-left: 28px; }

.route {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.7;
}
.route li { margin-bottom: 6px; }

.help-box {
  background: var(--soft-sage);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0 16px;
}
.help-box h3 { font-size: 0.95rem; color: var(--forest); margin-bottom: 10px; }
.help-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.help-row .phone { color: var(--forest); font-weight: 700; text-decoration: none; }
.copy {
  background: var(--forest);
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.actions .btn { width: 100%; text-align: center; }
.btn-tts {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--forest);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.btn-tts:hover { background: var(--soft-sage); }

/* 우측 장소 목록 사이드바 */
.side-list {
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.list-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.place-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.place-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.place-list a:hover { background: var(--soft-sage); border-color: var(--line); }
.place-list a[aria-current="true"] {
  background: var(--soft-sage);
  border-color: var(--forest);
  font-weight: 700;
}
.place-list .pname { flex: 1; font-weight: 600; }
.place-list .kind { font-size: 0.82rem; color: var(--muted); }

.side-cta {
  display: block;
  margin: 16px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--forest);
  border-radius: var(--radius-md);
  text-decoration: none;
  text-align: center;
}
.side-cta strong { display: block; color: var(--forest); font-size: 0.95rem; margin-bottom: 4px; }
.side-cta span { font-size: 0.82rem; color: var(--muted); }

/* ---------- 3. 학교별 요약 및 소개 공통 레이아웃 ---------- */
.page { padding: 50px 20px 80px; max-width: 64rem; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); margin: 12px 0 14px; }
.page-head p { color: var(--muted); font-size: 1.05rem; }

/* 탭 네비게이션 */
.seg {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}
.seg a {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.15s ease;
}
.seg a:hover { background: var(--soft-sage); color: var(--forest); }
.seg a[aria-current="true"] { background: var(--forest); color: #fff; }

.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.sum-grid .wide { grid-column: 1 / -1; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 16px; }

/* 진행 상태 바 */
.progress {
  height: 12px;
  background: var(--unk-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
  margin: 16px 0 10px;
}
.p-done { background: var(--ok); }
.p-doing { background: var(--warn); }
.big-num { font-size: 2.2rem; font-weight: 800; color: var(--forest); font-family: var(--font-mono); }

/* 표 스타일 */
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 700; color: var(--forest); }

/* 캐릭터 이야기 그리드 */
.char-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.char-story-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.story-char-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.intro-replay-box {
  background: var(--soft-sage);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.intro-replay-box p { font-weight: 600; color: var(--forest); }

/* 하단 푸터 */
.site-foot {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 60px;
}
.foot-in { display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-logo-img { height: 30px; }
.replay {
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- 반응형 (모바일 & 태블릿) ---------- */
@media (max-width: 68rem) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .home-sections { grid-template-columns: 1fr; }
  .sum-grid { grid-template-columns: 1fr; }
  .char-story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 56rem) {
  .appbar-in { height: auto; padding-block: 12px; flex-wrap: wrap; }
  .mainnav { order: 3; width: 100%; overflow-x: auto; }
  .mainnav ul { padding-top: 8px; }
  
  .map-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 55vh auto;
    height: auto;
  }
  body.is-map { overflow: auto; }
  .side-controls { max-height: none; }
  .detail-card {
    position: static;
    width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border-inline: 0;
  }
}

/* ---------- 신규 섹션 스타일 ---------- */
/* 메인 통합 검색창 */
.main-search-box {
  margin: 24px 0 28px;
  max-width: 38rem;
  position: relative;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--forest);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-md);
}
.search-input-wrap .icon { color: var(--forest); margin-right: 10px; width: 22px; height: 22px; }
.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 800;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.search-suggestions li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.search-suggestions li a:hover { background: var(--soft-sage); color: var(--forest); }

/* 빠른 경로 탐색 위젯 */
.quick-route-section { padding: 40px 20px 20px; }
.quick-route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.quick-route-head { margin-bottom: 20px; }
.quick-route-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; color: var(--forest); }
.quick-route-head p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.quick-route-form .form-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr auto;
  gap: 16px;
  align-items: flex-end;
}
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--forest); margin-bottom: 6px; }
.form-group select, .form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
  border-color: var(--forest);
  background: var(--surface);
}

/* 음성 안내 소개 섹션 */
.voice-intro-section { padding: 30px 20px; }
.voice-card {
  background: linear-gradient(135deg, var(--forest) 0%, #1a3328 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-md);
}
.voice-copy .eyebrow { color: var(--amber); }
.voice-copy h2 { font-size: 1.6rem; color: #fff; margin: 10px 0 14px; }
.voice-copy p { color: #d8e6dc; font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.voice-card .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.voice-card .btn.ghost:hover { background: rgba(255,255,255,0.15); }
.voice-badge-box { display: flex; flex-direction: column; gap: 12px; }
.v-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* 대학 선택 카드 그리드 (6개 대학) */
.campus-select-section { padding: 60px 20px 40px; }
.section-title-wrap { text-align: center; margin-bottom: 40px; }
.section-title-wrap h2 { font-size: 2rem; color: var(--ink); margin: 8px 0 10px; }
.section-title-wrap p { color: var(--muted); font-size: 1.05rem; }

.school-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.univ-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.univ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.univ-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.univ-card h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; }
.univ-card-loc { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.univ-card-dorm {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 12px 0 18px;
  font-size: 0.88rem;
}
.univ-card-dorm strong { display: block; color: var(--forest); margin-bottom: 4px; }
.univ-card-dorm p { color: var(--muted); margin: 0; line-height: 1.5; }
.univ-card-foot { margin-top: auto; display: flex; gap: 8px; }
.univ-card-foot .btn { flex: 1; }

/* 이용 방법 3단계 */
.home-how-section { padding: 40px 20px 80px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}
.how-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 12px;
}
.how-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.how-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* 어디든 너머 및 생활 편의시설 카드 그리드 */
.public-facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.facility-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.facility-card h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 8px; }
.facility-facts { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.facility-facts li { display: flex; align-items: center; gap: 8px; background: var(--surface-2); padding: 8px 12px; border-radius: var(--radius-sm); }

/* 경로 탐색 레이아웃 */
.route-search-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}
.route-result-area ol { padding-left: 20px; line-height: 1.9; }

/* 반응형 모바일 */
@media (max-width: 60rem) {
  .quick-route-form .form-row { grid-template-columns: 1fr; }
  .voice-card { grid-template-columns: 1fr; }
  .school-card-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .public-facilities-grid { grid-template-columns: 1fr; }
  .route-search-layout { grid-template-columns: 1fr; }
}

/* 내 위치 플로팅 버튼 */
.btn-geo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--forest);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.btn-geo:hover { background: var(--soft-sage); }
.btn-geo:active { transform: scale(0.97); }

/* 10개 지도 필터 칩 그리드 */
.filter-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fchip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.fchip:hover { background: var(--soft-sage); }
.fchip[aria-pressed="true"] {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.fchip .icon { width: 16px; height: 16px; }

/* 어디든 너머 — 장소 분류 탭 */
.place-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.pcat-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.pcat-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.pcat-btn.disabled {
  opacity: 0.6;
  background: var(--surface-2);
  cursor: not-allowed;
  border-style: dashed;
}
.pcat-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.pcat-badge.on { background: rgba(255,255,255,0.25); color: #fff; }
.pcat-badge.off { background: var(--unk-bg); color: var(--muted); }

/* 어디든 너머 — 확인된 주요 시설 카드 그리드 */
.verified-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vfacility-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vfacility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vfacility-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vfacility-title { font-size: 1.3rem; color: var(--ink); margin: 0; }
.vfacility-loc { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.vfacility-summary {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.vfact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.vfact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.vfact-name { font-weight: 700; color: var(--forest); display: flex; align-items: center; gap: 6px; }
.vfact-desc { text-align: right; color: var(--muted); flex: 1; }

.vfacility-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}
.vfacility-foot .btn { font-size: 0.85rem; }

@media (max-width: 58rem) {
  .verified-cards-grid { grid-template-columns: 1fr; }
}

/* ---------- 8. 배리어프리 경로 추천 화면 스타일 ---------- */
.route-planner-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.route-input-card {
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cond-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2);
  padding: 14px;
  border-radius: var(--radius-sm);
}
.cond-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.cond-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
  cursor: pointer;
}

.route-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.route-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.route-card:hover { border-color: var(--forest); box-shadow: var(--shadow-md); }
.route-card.is-best { border-color: var(--forest); background: linear-gradient(180deg, var(--surface) 0%, #f4f8f5 100%); }

.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.route-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}
.route-card-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.route-card-badge.best { background: var(--forest); color: #fff; }
.route-card-badge.alt { background: var(--clear-blue); color: #fff; }

.route-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--surface-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  text-align: center;
}
.metric-item strong { display: block; font-size: 1.15rem; color: var(--forest); font-family: var(--font-mono); }
.metric-item span { font-size: 0.8rem; color: var(--muted); }

.route-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.r-feat {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft-sage);
  color: var(--forest);
}

.route-hazards {
  background: #fdf5e8;
  border-left: 4px solid var(--amber);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #7a4a00;
  margin-bottom: 16px;
}

/* ---------- 9. 실시간 길 안내(NAVIGATION) 화면 스타일 ---------- */
.nav-screen-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.nav-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.nav-dest-info { display: flex; align-items: center; gap: 12px; }
.nav-dest-badge { font-size: 0.8rem; font-weight: 700; background: var(--forest); color: #fff; padding: 4px 10px; border-radius: var(--radius-pill); }
.nav-dest-info h2 { font-size: 1.35rem; color: var(--ink); margin: 0; }
.nav-top-actions { display: flex; gap: 8px; }

.nav-notice-banner {
  background: var(--soft-sage);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--forest);
  margin-bottom: 16px;
}

/* 턴바이턴 대형 지시 카드 */
.nav-turn-card {
  background: linear-gradient(135deg, var(--forest) 0%, #173b2a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.turn-icon-wrap {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.turn-desc-wrap { flex: 1; }
.turn-step-num { font-size: 0.9rem; font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.turn-instruction { font-size: 1.6rem; color: #fff; margin: 0 0 6px; font-weight: 700; }
.turn-sub-guide { font-size: 1.05rem; color: #d6e8dc; margin: 0; }
.turn-dist-box {
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 28px;
}
.dist-num { display: block; font-family: var(--font-mono); font-size: 2.2rem; font-weight: 800; color: #fff; }
.dist-unit { font-size: 0.85rem; color: #d6e8dc; }

/* 길안내 본문 그리드 */
.nav-body-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}
.nav-map-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-map { width: 100%; height: 100%; }
.nav-summary-pill {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}

/* 타임라인 및 제어 패널 */
.nav-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav-panel-head h3 { font-size: 1.15rem; color: var(--forest); margin: 0; }

.nav-steps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.nav-timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-timeline-item.active {
  background: var(--soft-sage);
  border: 1px solid var(--forest);
  font-weight: 700;
}
.nav-step-idx {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}

.nav-accessibility-settings {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.nav-accessibility-settings h4 { font-size: 0.95rem; color: var(--forest); margin: 0 0 12px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.setting-row input[type="range"] {
  width: 140px;
  accent-color: var(--forest);
}

@media (max-width: 64rem) {
  .route-planner-grid { grid-template-columns: 1fr; }
  .nav-body-grid { grid-template-columns: 1fr; }
  .nav-turn-card { flex-direction: column; text-align: center; }
  .turn-dist-box { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 16px 0 0; width: 100%; text-align: center; }
}

/* ---------- 10. 건물 및 시설 상세 화면 (FACILITY) 스타일 ---------- */
.facility-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.facility-section-block {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
}
.facility-section-block h3 {
  font-size: 0.95rem;
  color: var(--forest);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 층별 정보 */
.floor-info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.6;
}

/* 시설 존재 여부와 실제 이용 가능 여부 구분 박스 */
.usability-warning {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  border-left: 4px solid var(--bad);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #9b1c1c;
  line-height: 1.5;
  margin-top: 10px;
}
.usability-warning strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bad);
  margin-bottom: 4px;
}

/* 촉지도 및 내부 이동 지원 시설 그리드 */
.support-facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.support-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--ink);
}
.support-item strong { display: block; color: var(--forest); margin-bottom: 2px; }

/* 주의사항 경고 박스 */
.precautions-box {
  background: #fff8e6;
  border: 1px solid #ffe082;
  border-left: 4px solid var(--amber);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #8c5d00;
  line-height: 1.6;
}

/* 시설 미니맵 */
.detail-minimap {
  height: 150px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 10px;
}

/* ---------- 11. 캠퍼스 생활 편의시설 스타일 ---------- */
.facility-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.fcat-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fcat-chip:hover { background: var(--soft-sage); }
.fcat-chip.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.living-facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.lfacility-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lfacility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.lfac-row {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.lfac-row strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  margin-bottom: 2px;
}
.lfac-row p { margin: 0; color: var(--ink); }

.lfac-precautions {
  background: #fff9e6;
  border-left: 3px solid var(--amber);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #8c5d00;
  margin-top: 10px;
}

/* ---------- 12. 접근성 이용 안내 탭 스타일 ---------- */
.guide-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}
.gtab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gtab-btn:hover { background: var(--soft-sage); color: var(--forest); }
.gtab-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.guide-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.guide-card h2 { font-size: 1.5rem; color: var(--forest); margin: 0 0 6px; }

.g-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.g-info-item {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--line);
}
.g-info-item h4 {
  font-size: 1rem;
  color: var(--forest);
  margin: 0 0 8px;
}
.g-info-item p {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 60rem) {
  .living-facilities-grid { grid-template-columns: 1fr; }
  .g-info-grid { grid-template-columns: 1fr; }
}

/* ---------- 13. 정보 제보 & 상태 추적 스타일 ---------- */
.report-feed-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.report-feed-item:hover {
  border-color: var(--forest);
}
.report-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.report-feed-type {
  font-weight: 700;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 6px;
}
.report-feed-loc {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.report-feed-content {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.report-feed-admin-note {
  background: var(--surface-2);
  border-left: 3px solid var(--forest);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  color: var(--ink);
}
.badge.pending {
  background: #FFF3D6;
  color: #8C6D1F;
}

/* ---------- 14. 관리자 시스템 스타일 ---------- */
.admin-tab-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.admin-tab-btn:hover {
  background: var(--soft-sage);
  color: var(--forest);
}
.admin-tab-btn.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.admin-action-btn {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}
.admin-action-btn.approve {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok);
}
.admin-action-btn.reject {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad);
}
.admin-action-btn.review {
  background: #E8F0FE;
  color: #1A73E8;
  border-color: #1A73E8;
}

/* ---------- 15. 모바일 네이티브 앱 및 Safe Area 대응 ---------- */
@supports (padding-top: env(safe-area-inset-top)) {
  .appbar {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .site-foot {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

