/* 너머 — 디자인 시스템 & 메인 스타일시트 */
:root {
  /* [배리어프리 맵 토큰] */
  --map-land: #ECEEE8;
  --map-wood: #DCE6D3;
  --map-wood-2: #CFDCC3;
  --map-lawn: #D6E4CB;
  --map-water: #C9DCEC;
  --map-water-ink: #6E93B5;
  --map-casing: #DADDD5;
  --map-road: #FFFFFF;
  --map-lot: #DFE1DC;
  --map-stall: #2F6FD0;
  --map-label: #6B7380;
  --map-shadow: rgba(25, 31, 40, 0.10);
  --brand: #2343C4;
  --brand-ink: #FFFFFF;
  --brand-soft: #E6EBFB;
  --no: #D2342B;
  --no-soft: #FCE9E7;

  /* [브랜드 컬러 팔레트 — 6단계 통일 규격] */
  --forest: #1F4D3A;          /* 메인 그린 (버튼·제목·링크) */
  --on-forest: #FFFFFF;
  --sage: #8FB19A;            /* Sage Green */
  --soft-sage: #E4ECE5;       /* 연초록 (배지/배경 보조) */
  --clear-blue: #4779B8;      /* Clear Blue (지도/경로 보조) */
  --paper: #F7F1E8;           /* 배경 크림 */
  --surface: #FFFFFF;         /* 카드 표면 */
  --surface-2: #EDE2D3;       /* 연베이지 보조 표면 */
  --ink: #2E2926;             /* 본문 텍스트 (대비 11.6:1) */
  --muted: #5A524D;           /* 보조 글자 (대비 6.1:1) */
  --line: #E6DCCF;            /* 테두리 */
  --border: #E6DCCF;
  --amber: #B85C1E;           /* 최단 경로 경고 주황 */

  /* [상태별 색상 (접근성 대비 확보)] */
  --ok: #1E7E48;       --ok-bg: #E3F3EA;
  --warn: #B85C1E;     --warn-bg: #FDF1DB;
  --bad: #B32E35;      --bad-bg: #FBE6E7;
  --unk: #5A524D;      --unk-bg: #EDE2D3;

  /* [그림자 및 테두리 반경 — 카드 24px, 입력창·버튼 14~16px, 칩 999px] */
  --shadow-sm: 0 2px 8px rgba(31, 77, 58, 0.08);
  --shadow-md: 0 10px 28px rgba(31, 77, 58, 0.12);
  --radius-sm: 14px;          /* 입력창·선택창 (14px) */
  --radius-md: 16px;          /* 버튼·입력창 (16px) */
  --radius-lg: 24px;          /* 카드 24px */
  --radius-pill: 999px;       /* 칩 999px */

  /* [타이포그래피 — IBM Plex Sans KR 단일 폰트 통일] */
  --font-display: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono: "IBM Plex Sans KR", monospace;

  /* [레이아웃 규격 & 섹션 간격 88px] */
  --header-h: 70px;
  --chrome-h: 70px;
  --section-gap: 88px;
}

/* 시스템 다크 모드 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --map-land: #1C1F25;
    --map-wood: #1E2A22;
    --map-wood-2: #23302A;
    --map-lawn: #22302A;
    --map-water: #1E3247;
    --map-water-ink: #7E97B8;
    --map-casing: #15181D;
    --map-road: #2C313A;
    --map-lot: #262A31;
    --map-stall: #5B93EA;
    --map-label: #9AA2AF;
    --map-shadow: rgba(0, 0, 0, 0.35);
    --brand: #7F97FF;
    --brand-ink: #0E1430;
    --brand-soft: #232C4D;
    --no: #FF7A70;
    --no-soft: #3A2220;

    --paper: #121A16;
    --surface: #1B2621;
    --surface-2: #24332D;
    --ink: #EAF0EC;
    --muted: #A1B2A7;
    --line: #2D3E36;
    --border: #2D3E36;
    --forest: #6EC49A;
    --on-forest: #121A16;
    --soft-sage: #203129;
    --clear-blue: #6FA4E5;
    --amber: #E8843C;
    --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"]) .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.92) saturate(0.65);
  }
}


/* ---------- 기본 리셋 및 접근성 ---------- */
html { font-size: 100%; box-sizing: border-box; }
*, *::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;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 포커스 링 (키보드 내비게이션 접근성) */
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: 44px; 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: 10px; }

/* 헤더 음성 토글 버튼 */
.tool-btn-voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--forest);
  color: var(--forest);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-btn-voice.active, .tool-btn-voice[aria-pressed="true"] {
  background: var(--forest);
  color: #fff;
}
.tool-btn-voice .icon { width: 18px; height: 18px; }

/* 모바일 햄버거 버튼 */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  cursor: pointer;
}
.btn-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.btn-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.btn-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .btn-hamburger { display: flex; }
  .mainnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--forest);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
  }
  .mainnav.is-open { display: block; }
  .mainnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .mainnav a {
    width: 100%;
    padding: 12px 18px;
    font-size: 1.05rem;
  }
}
/* 공지 바 */
.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 .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;
  background: #1F4D3A !important; /* 브랜드 초록 단일 중립 핀 */
  position: relative;
}
.pin-icon-inner {
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  color: #fff;
}
.pin-cluster-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #D2342B;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transform: rotate(45deg);
  z-index: 10;
}
.pin.ok, .pin.warn, .pin.bad, .pin.unknown { background: #1F4D3A !important; }

.place-type-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #E4ECE5;
  color: #1F4D3A;
  display: grid;
  place-items: center;
  flex: none;
}

.zoom-low .pin-label.sub-label {
  display: none !important;
}

/* 클러스터 팝업 */
.neomeo-cluster-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.cluster-popup-wrap {
  padding: 8px;
}
.cluster-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EBEDF0;
  margin-bottom: 8px;
}
.cluster-popup-head strong {
  font-size: 0.95rem;
  color: #191F28;
}
.cluster-count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: #E4ECE5;
  color: #1F4D3A;
  padding: 2px 8px;
  border-radius: 999px;
}
.cluster-popup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cluster-popup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #2E2926;
  background: #F4F5F7;
  transition: all 0.15s ease;
}
.cluster-popup-btn:hover {
  background: #E4ECE5;
  color: #1F4D3A;
}
.cluster-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #1F4D3A;
  display: grid;
  place-items: center;
  flex: none;
}
.cluster-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  flex: 1;
}
.cluster-item-kind {
  font-size: 0.75rem;
  color: #5A524D;
}

.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-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  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-lg);
  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;
}

/* 하단 푸터 */
.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; }

  /* 히어로 캐릭터 비주얼: 반응형 */
  .hero-visual {
    justify-content: center;
    margin-top: 10px;
  }
  .char-guide-img,
  .guide-char-img {
    width: 200px;
    max-height: 220px;
  }
  .speech-bubble { max-width: 220px; font-size: 0.92rem; }
}

@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: 44px 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: 88px 20px 44px; }
.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-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.univ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.univ-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
  width: 100%;
}
.univ-card-badge {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.75rem;
  background: var(--soft-sage);
  color: var(--forest);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.univ-card h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 6px 0;
  width: 100%;
  line-height: 1.35;
  word-break: keep-all;
}
.univ-card-loc {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  width: 100%;
  line-height: 1.4;
  word-break: keep-all;
}
.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;
  font-weight: 700;
  word-break: keep-all;
}
.univ-card-dorm p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  word-break: keep-all;
}
.univ-card-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  width: 100%;
}
.univ-card-foot .btn {
  white-space: nowrap;
  height: 48px;
  min-height: 48px;
  font-size: 15px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 이용 방법 3단계 */
.home-how-section { padding: 44px 20px 88px; }
.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-lg);
  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 {
  min-height: 44px;
  padding: 8px 14px;
  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. 모바일 네이티브 앱 및 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));
  }
}

/* ---------- 16. 캐릭터 비주얼 & 말풍선 개선 ---------- */

/* ---------- 16. 너머 3D 안내자 캐릭터 비주얼 & 말풍선 시스템 ---------- */

/* 메인 히어로: 정면 안내자 캐릭터 씬 */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.neomeo-hero-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 14px 28px rgba(41, 76, 61, 0.16));
  animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 정면 3D 안내자 캐릭터 이미지 */
.char-guide-img,
.guide-char-img {
  width: 250px;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
}
.char-guide-img:hover,
.guide-char-img:hover {
  transform: scale(1.03);
}

/* 말풍선 공통 — 사용자 스펙: 16px 600 / padding 14 16 / radius 18px(꼬리쪽 4px) / shadow */
.speech-bubble {
  background: #ffffff;
  border-radius: 18px 18px 18px 4px;   /* 기본: 왼쪽 하단(꼬리쪽) 4px */
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.45;
  position: relative;
  box-shadow: 0 6px 18px rgba(46, 41, 38, 0.10);
  max-width: 260px;
  word-break: keep-all;
  animation: guideFadeIn 0.4s ease both;
}
/* 흰 카드 위: 배경 #E4ECE5 */
.speech-bubble.on-white-card {
  background: #E4ECE5;
}

.speech-bubble.bubble-sm {
  padding: 10px 14px;
  font-size: 14px;
  max-width: 220px;
}

/* 말풍선 꼬리: 하단 중앙 (캐릭터 머리 위 말풍선) */
.speech-bubble.bubble-top {
  border-radius: 18px 18px 4px 18px;
  margin-bottom: 12px;
}
.speech-bubble.bubble-top::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid currentColor;
  color: inherit;
  /* 흰 배경 꼬리 */
  border-top-color: #ffffff;
}
.speech-bubble.bubble-top.on-white-card::after { border-top-color: #E4ECE5; }

/* 말풍선 꼬리: 왼쪽 (캐릭터 오른쪽에 말풍선) */
.speech-bubble.bubble-left {
  border-radius: 18px 18px 18px 4px;
  margin-left: 12px;
}

/* 말풍선 꼬리: 오른쪽 (캐릭터 왼쪽에 말풍선) */
.speech-bubble.bubble-right {
  border-radius: 18px 18px 4px 18px;
  margin-right: 12px;
}


/* 푸터 뒷면 캐릭터 */
.foot-guide-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  overflow: visible;
}
.char-foot-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}
.char-foot-img:hover {
  transform: translateY(-4px);
}

@keyframes guideFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes haloFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* 3D 캐릭터 CSS 바닥 타원 그림자 컴포넌트 */
.char-stage {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  overflow: visible;
}

/* 헤일로(핀 위 아이콘) 느린 위아래 움직임 — 그림자는 외부에 있어 움직이지 않고 고정됨 */
.char-halo-wrapper {
  position: relative;
  animation: haloFloat 3.2s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* 바닥 타원 그림자 (너비 약 70%, 높이 14px, 발과 2~4px 겹침) */
.char-ground-shadow {
  width: 70%;
  height: 14px;
  margin-top: -3px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46, 41, 38, 0.18), rgba(46, 41, 38, 0) 70%);
  pointer-events: none;
  flex: none;
}

/* prefers-reduced-motion: 모든 캐릭터 애니메이션 OFF */
@media (prefers-reduced-motion: reduce) {
  .speech-bubble,
  .char-halo-wrapper,
  .guide-char-img,
  .guide-tip-card,
  .first-visit-banner {
    animation: none !important;
    transition: none !important;
  }
}


/* ---------- 가이드 팁 카드 (아바타 + 한 줄 도움말) ---------- */
.guide-tip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(46, 41, 38, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  animation: guideFadeIn 0.4s ease both;
  max-width: fit-content;
  word-break: keep-all;
}
.guide-tip-card.on-white-card {
  background: #E4ECE5;
}
.guide-avatar-img {
  object-fit: contain;
  object-position: center;
  flex: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}
.guide-tip-text {
  flex: 1;
  line-height: 1.45;
}
.btn-guide-tip-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-guide-tip-close:hover { color: var(--ink); }

/* ---------- 첫 방문 배너 ---------- */
.first-visit-banner {
  background: #E4ECE5;
  border-bottom: 1px solid rgba(41, 76, 61, 0.12);
  animation: guideFadeIn 0.4s ease both;
}
.first-visit-banner[hidden] { display: none; }
.first-visit-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  min-height: 48px;
}
.first-visit-icon {
  flex: none;
  color: var(--forest);
  opacity: 0.75;
}
.first-visit-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.5;
  margin: 0;
}
.btn-first-visit-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--forest);
  opacity: 0.6;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: none;
}
.btn-first-visit-close:hover { opacity: 1; }

/* ---------- 지도 화면 아바타 도움말 바 ---------- */
.map-guide-tip-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(46, 41, 38, 0.10);
  margin-bottom: 10px;
  width: fit-content;
  max-width: 100%;
  animation: guideFadeIn 0.4s ease both;
}
.map-tip-avatar {
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.10));
}
.map-speech-bubble {
  /* 지도 바 위 말풍선은 border 없이 투명 배경으로 인라인 처리 */
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  animation: none;
  max-width: none;
}

/* ---------- 경로 안내 step 래퍼 ---------- */
.nav-step-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-step-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

/* ---------- 목적지 도착 래퍼 ---------- */
.nav-arrival-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: guideFadeIn 0.4s ease both;
}
.nav-arrival-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* ---------- 캐릭터 공통 래퍼 ---------- */
.guide-character-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: visible;
}
.guide-character-wrap.guide-char-side  { align-items: center; }
.guide-character-wrap.guide-char-back  { align-items: center; }
.guide-char-img {
  object-fit: contain;
  animation: guideFadeIn 0.4s ease both;
  display: block;
}

/* 홈 히어로 정면 강아지 캐릭터 전용 (기존 160px 대비 1.35배 확대 및 선명화 처리) */
.hero-dog-img {
  width: 216px !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.3s ease;
  display: block;
}

.hero-dog-img:hover {
  transform: translateZ(0) scale(1.03);
}

@media (max-width: 768px) {
  .hero-dog-img {
    width: 180px !important;
  }
}

@media (max-width: 480px) {
  .hero-dog-img {
    width: 165px !important;
  }
}

.char-avatar-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
}
.char-avatar-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 4px 8px rgba(41,76,61,0.15));
}
.avatar-bubble {
  background: var(--soft-sage);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
  position: relative;
}
.avatar-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--sage);
}

/* ---------- 17. 접근성 정보 소개 섹션 ---------- */
.accessibility-info-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.access-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 24px;
}

.access-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.access-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.access-info-icon {
  width: 44px;
  height: 44px;
  background: var(--soft-sage);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--forest);
}
.access-info-icon .icon { width: 22px; height: 22px; }
.access-info-emoji { font-size: 1.3rem; line-height: 1; }

.access-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.access-info-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: keep-all;
}

.access-data-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--soft-sage);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border-left: 3px solid var(--sage);
}

/* ---------- 반응형 (모바일) ---------- */
@media (max-width: 768px) {
  /* 히어로 캐릭터 비주얼 */
  .hero-visual {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-top: 8px;
  }
  .char-hero-img { width: 110px; height: 110px; }
  .char-walking  { width: 100px; height: 100px; }
  .speech-bubble { font-size: 0.85rem; padding: 10px 14px; max-width: 180px; }

  /* 퀵 경로 아바타 힌트 모바일에서 숨김 (공간 확보) */
  .char-avatar-hint { display: none; }
  .quick-route-head { flex-direction: column; }

  /* 접근성 정보 그리드: 2열 */
  .access-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  /* 접근성 정보 그리드: 1열 */
  .access-info-grid { grid-template-columns: 1fr; }
  .hero-visual { gap: 8px; }
  .char-hero-img { width: 90px; height: 90px; }
}

/* ================================================= */
/* 2단계 & 3단계 UI 단순화 및 메인 홈 개편 스타일 */
/* ================================================= */

/* 메인 히어로 검색창 (높이 56px 이상) */
.hero-search-wrap {
  min-height: 56px !important;
  height: 56px !important;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--forest);
}
.hero-search-wrap input {
  height: 100% !important;
  font-size: 1.05rem !important;
  padding-left: 14px;
}
.hero-search-wrap .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 1rem;
  border-radius: var(--radius-pill);
}

/* 2) 경로 찾기 카드: 가장 큰 흰 카드 */
.main-hero-route-card {
  background: #ffffff !important;
  border: 2.5px solid var(--forest) !important;
  box-shadow: 0 14px 40px rgba(41, 76, 61, 0.14) !important;
  border-radius: var(--radius-md) !important;
  padding: 34px 40px !important;
  margin-top: 10px;
}
.main-route-row {
  display: grid !important;
  grid-template-columns: 1.2fr 1.2fr 1.2fr auto !important;
  gap: 18px !important;
  align-items: flex-end !important;
}
.btn-route-submit {
  height: 48px;
  padding: 0 26px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(41, 76, 61, 0.3);
}
@media (max-width: 900px) {
  .main-route-row { grid-template-columns: 1fr 1fr !important; }
  .btn-route-submit { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 600px) {
  .main-route-row { grid-template-columns: 1fr !important; }
}

/* 3) 음성 안내 소개 배너: 초록 배경 띠 */
.voice-banner-band {
  background: var(--forest);
  color: #ffffff;
  padding: 24px 0;
  margin: 40px 0 30px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}
.voice-banner-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.voice-banner-lead h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 6px 0 0;
  font-weight: 700;
}
.vbanner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.voice-banner-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.vfeat-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: #f0f7f3;
}
.vbanner-btn {
  background: #ffffff !important;
  color: var(--forest) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vbanner-btn:hover {
  background: var(--soft-sage) !important;
  transform: translateY(-2px);
}

/* 지도 내부 장소 탭 ("캠퍼스" / "캠퍼스 밖 생활시설") */
.map-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}
.map-tab-btn {
  flex: 1;
  padding: 11px 10px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.map-tab-btn:hover {
  background: var(--soft-sage);
  color: var(--forest);
}
.map-tab-btn.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
  background: var(--soft-sage);
}

/* 캠퍼스 밖 생활시설 서브 칩 */
.outside-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.of-chip {
  padding: 4px 11px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}
.of-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.of-chip.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* 푸터 서비스 소개 링크 */
.foot-links {
  margin-top: 8px;
}
.foot-link {
  display: inline-block;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-link:hover {
  color: var(--ink);
}

/* ================================================= */
/* 4단계. 경로 찾기: 3가지 경로 및 스왑 버튼 스타일 */
/* ================================================= */

/* 출발지 ⇄ 도착지 스왑 버튼 */
.form-group-swap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}
.btn-swap-locations {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  background: var(--surface);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.btn-swap-locations:hover {
  background: var(--forest);
  color: #fff;
  transform: rotate(180deg);
}
.btn-swap-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-weight: 600;
  color: var(--forest);
  border: 1px dashed var(--forest);
  background: var(--soft-sage);
  cursor: pointer;
}
.btn-swap-inline:hover {
  background: var(--forest);
  color: #fff;
}

/* 3가지 경로 세그먼트 탭 */
.route-segment-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.route-seg-btn {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.route-seg-btn strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.route-seg-btn span {
  font-size: 0.78rem;
  color: var(--muted);
}
.route-seg-btn:hover {
  border-color: var(--forest);
  background: var(--soft-sage);
}
.route-seg-btn.active {
  border-color: var(--forest);
  background: var(--soft-sage);
  box-shadow: 0 4px 12px rgba(41, 76, 61, 0.15);
}
.route-seg-btn.active strong {
  color: var(--forest);
}

/* 경로 카드 종류별 배지 & 강조 */
.route-card-badge.balance {
  background: #1D4ED8 !important;
  color: #fff !important;
}
.route-card-badge.warn {
  background: #D97706 !important;
  color: #fff !important;
}
.route-card.active-route {
  border: 2.5px solid var(--forest) !important;
  box-shadow: 0 8px 24px rgba(41, 76, 61, 0.16) !important;
  transform: translateY(-2px);
}
.route-card.shortest.active-route {
  border-color: #D97706 !important;
}

@media (max-width: 680px) {
  .route-segment-nav {
    grid-template-columns: 1fr;
  }
}





/* ==========================================================================
   17. 캠퍼스 배리어프리 지도 & 건물 상세 뷰 (#campus / #building)
   ========================================================================== */

/* ---------- 캠퍼스 상세 지도 화면 (#campus/hufs-global) ---------- */
.campus-screen-wrap {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  background: var(--paper);
}

.campus-screen-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.campus-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.campus-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.2s;
}
.campus-back-link:hover {
  background: var(--soft-sage);
}

.campus-screen-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-align: center;
  flex: 1;
}

.campus-map-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  flex: 1;
  min-height: 600px;
  position: relative;
}

@media (max-width: 900px) {
  .campus-map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - 130px);
  }
}

/* SVG 지도 캔버스 영역 */
.campus-svg-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: #F4EFE6;
  overflow: hidden;
}

#campusSvgMap, #map-baeknyeon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
#campusSvgMap.is-dragging, #map-baeknyeon.is-dragging {
  cursor: grabbing;
}

.campus-map-floating-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 520px;
}
.campus-map-floating-bar > * {
  pointer-events: auto;
}

.campus-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.12);
  padding: 4px 14px;
  height: 50px;
  border: 1px solid var(--line);
}
.campus-brand-badge {
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest);
  padding-right: 10px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.campus-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.campus-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(46, 41, 38, 0.15);
  border: 1px solid var(--line);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.search-hit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.search-hit-item:hover:not(.is-disabled) {
  background: var(--soft-sage);
}
.search-hit-item.is-disabled {
  opacity: 0.5;
  cursor: default;
}
.search-hit-item small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.search-empty-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.search-empty-item strong {
  font-size: 0.92rem;
  color: var(--forest);
}
.search-empty-item p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 0;
}

/* 필터 칩들 */
.campus-layer-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.campus-layer-chips::-webkit-scrollbar {
  display: none;
}
.campus-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(46, 41, 38, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.campus-chip[aria-pressed="false"] {
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}
.chip-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

/* 줌 컨트롤러 */
.campus-map-zoom-controls {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.12);
  border: 1px solid var(--line);
  overflow: hidden;
}
.campus-map-zoom-controls button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.campus-map-zoom-controls button + button {
  border-top: 1px solid var(--line);
}
.campus-map-zoom-controls button:hover {
  background: var(--soft-sage);
}

/* 지도 범례 */
.campus-map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.10);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink);
  display: grid;
  gap: 6px;
}
.campus-map-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.campus-map-legend i {
  display: inline-block;
  width: 18px;
  height: 5px;
  border-radius: 3px;
}
@media (max-width: 800px) {
  .campus-map-legend { display: none; }
}

/* SVG 마커 스타일 */
.svg-map-marker {
  cursor: pointer;
  outline: none;
}
.marker-pulse-ring {
  transition: transform 0.2s, r 0.2s;
}
.svg-map-marker:hover .marker-pulse-ring,
.svg-map-marker:focus-visible .marker-pulse-ring {
  stroke: var(--forest);
  stroke-width: 4px;
}
.svg-bldg-interactive:hover {
  filter: brightness(1.05);
}

/* 캠퍼스 우측/하단 시트 패널 */
.campus-preview-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.campus-panel-handle {
  display: none;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.campus-panel-handle span {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 0 auto;
}
.campus-sheet-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 24px;
}
@media (max-width: 900px) {
  .campus-preview-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 220px;
    transition: max-height 0.3s ease;
  }
  .campus-preview-panel.is-expanded {
    max-height: 70vh;
  }
  .campus-panel-handle {
    display: block;
  }
  .campus-sheet-scroll {
    padding: 16px 20px 28px;
  }
}

.sheet-head-row,
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
}
.btn-sheet-back {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.btn-sheet-back:hover {
  background: var(--soft-sage);
}
.btn-sheet-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.btn-sheet-close:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.sheet-title-wrap {
  display: flex;
  flex-direction: column;
}
.sheet-cat {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.sheet-bldg-title,
.sheet-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin: 2px 0 0;
}
.sheet-campus-name {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2px 0 0;
}
.sheet-door-list,
.sheet-doors-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sheet-door-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all 0.2s;
}
.sheet-door-row:hover {
  background: var(--soft-sage);
  border-color: var(--forest);
}

/* 썸네일 사진 버튼 (64×64px, 모서리 12px) */
.sheet-door-thumb-btn {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #F4F5F7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sheet-door-thumb-btn:focus-visible {
  outline: 3px solid #1F4D3A !important;
  outline-offset: 2px !important;
}
.sheet-door-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.sheet-door-thumb-btn:hover .sheet-door-thumb-img {
  transform: scale(1.08);
}
.sheet-door-thumb-btn.no-photo {
  cursor: default;
  background: #EBEDF0;
}
.sheet-door-fallback-icon {
  display: grid;
  place-items: center;
  color: #8B95A1;
}

/* 20px 작게 겹치는 글자 배지 */
.sheet-door-mini-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.sheet-door-mini-badge.ok {
  background: #11845B;
  color: #FFFFFF;
}
.sheet-door-mini-badge.warn {
  background: #B26B00;
  color: #FFFFFF;
}
.sheet-door-mini-badge.no {
  background: #D2342B;
  color: #FFFFFF;
}

.sheet-door-badge-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.sheet-door-badge-overlay.door-badge-ok {
  background: #11845B;
  color: #FFFFFF;
}
.sheet-door-badge-overlay.door-badge-bad {
  background: #D2342B;
  color: #FFFFFF;
}
.sheet-door-badge-overlay.door-badge-unknown,
.sheet-door-badge-overlay.door-badge-gray {
  background: #8B95A1;
  color: #FFFFFF;
}


/* 줄의 나머지 이동 링크 */
.sheet-door-link,
.sheet-door-info-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  text-decoration: none !important;
  color: var(--ink) !important;
  padding: 4px 0;
}
.sheet-door-info-link:hover .sheet-door-name,
.sheet-door-link:hover .sheet-door-name {
  color: var(--forest);
}
.sheet-door-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none !important;
  margin-bottom: 2px;
}
.sheet-door-desc {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none !important;
}
.sheet-door-link:focus-visible,
.sheet-door-info-link:focus-visible {
  outline: 3px solid #1F4D3A !important;
  outline-offset: 2px !important;
  border-radius: 8px;
}
.door-link-arrow {
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
}

.sheet-door-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}
.sheet-door-item:hover {
  background: var(--soft-sage);
  border-color: var(--forest);
}
.door-ltr {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
  background: var(--line);
  color: var(--ink);
}
.door-ltr.ok {
  background: var(--forest);
  color: #FFFFFF;
}
.door-ltr.no {
  background: #FCE9E7;
  color: #D2342B;
}
.door-item-text {
  flex: 1;
  min-width: 0;
}
.door-item-text strong {
  display: block;
  font-size: 0.92rem;
}
.door-item-text small {
  color: var(--muted);
  font-size: 0.8rem;
}
.door-status {
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.door-status.ok { color: var(--ok); }
.door-status.no { color: var(--no); }


/* ---------- 18. 건물 상세 화면 (#building/inmun) ---------- */
.bldg-view-wrap {
  padding-top: 24px;
  padding-bottom: 60px;
  max-width: 900px;
}

.bldg-sticky-top-wrap {
  position: sticky;
  top: 60px;
  background: var(--bg);
  z-index: 30;
  padding-top: 10px;
}

.bldg-view-header {
  margin-bottom: 12px;
}
.bldg-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bldg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.bldg-back-link:hover {
  background: var(--soft-sage);
}
.bldg-campus-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}

.bldg-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bldg-main-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  outline: none;
}

/* 4대 탭 바 */
.bldg-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bldg-tabs-nav::-webkit-scrollbar {
  display: none;
}
.bldg-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.bldg-tab-link:hover {
  color: var(--forest);
}
.bldg-tab-link.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
  font-weight: 700;
}

/* 히어로 카드 & 핵심 지표 */
.bldg-hero-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 41, 38, 0.06);
  margin-bottom: 20px;
}
.bldg-hero-info {
  padding: 20px 24px;
}
.bldg-name-sub {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}
.bldg-campus-tag {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 10px;
}
.bldg-summary-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* 4대 지표 그리드 */
.bldg-keys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .bldg-keys-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
.key-item {
  text-align: center;
}
.key-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.key-val {
  font-size: 1.15rem;
  font-weight: 700;
}
.key-val.ok { color: var(--ok); }
.key-val.no { color: var(--no); }
.key-val.warn { color: var(--warn); }

/* 건물 섹션 블록 공통 */
.bldg-section-block {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.05);
}
.bldg-sec-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 8px;
}
.bldg-sec-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

/* 건물 안 이동 리스트 */
.bldg-inside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bldg-inside-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bldg-inside-list li:last-child {
  border-bottom: 0;
}
.bldg-inside-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft-sage);
  display: grid;
  place-items: center;
  color: var(--forest);
  flex: none;
}
.bldg-inside-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}
.bldg-inside-status {
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bldg-inside-status.ok { color: var(--ok); }
.bldg-inside-status.no { color: var(--no); }

/* 편의시설 메뉴 리스트 */
.bldg-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bldg-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
  border-bottom: 1px solid var(--line);
}
.bldg-menu-list li:last-child .bldg-menu-item {
  border-bottom: 0;
}
.bldg-menu-item:hover {
  background: var(--soft-sage);
}
.bldg-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  flex: none;
}
.bldg-menu-text {
  flex: 1;
  min-width: 0;
}
.bldg-menu-text strong {
  display: block;
  font-size: 0.98rem;
}
.bldg-menu-text small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.bldg-menu-arrow {
  color: var(--muted);
}

/* 사진 버튼 갤러리 */
.bldg-photo-btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--surface-2);
}
.bldg-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.bldg-photo-btn:hover img {
  transform: scale(1.02);
}
.bldg-photo-btn.big {
  aspect-ratio: 16 / 9;
}
.photo-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(46, 41, 38, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* 횡스크롤 사진 행 */
.bldg-row-photos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.bldg-row-photos::-webkit-scrollbar {
  display: none;
}
.bldg-row-photos .bldg-photo-btn {
  flex: none;
  width: 140px;
  aspect-ratio: 1 / 1;
}

/* 팩트 리스트 */
.bldg-facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bldg-facts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.bldg-facts-list li:last-child {
  border-bottom: 0;
}
.fact-label {
  color: var(--muted);
}
.fact-val {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fact-val.ok { color: var(--ok); }
.fact-val.no { color: var(--no); }
.fact-val.warn { color: var(--warn); }

/* 가는 길 (Route) 단계별 리스트 */
.bldg-steps-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.bldg-step-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 24px;
}
.bldg-step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.step-num-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex: none;
}
.bldg-step-item:last-child .step-num-dot {
  background: var(--ok);
}
.step-content strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  line-height: 28px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 2px 0 10px;
  line-height: 1.5;
}
.step-photo-wrap {
  max-width: 480px;
}
.step-photo-wrap .bldg-photo-btn {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.step-photo-wrap .bldg-photo-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 피해야 할 길 배너 */
.bldg-avoid-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FCE9E7;
  border: 1px solid #F7C8C5;
  cursor: pointer;
  margin-top: 10px;
}
.avoid-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.avoid-title {
  display: block;
  color: var(--no);
  font-size: 0.98rem;
  font-weight: 700;
}
.avoid-desc {
  color: var(--ink);
  font-size: 0.88rem;
  margin: 2px 0 0;
}

/* 출입문 카드 */
.bldg-doors-list {
  display: grid;
  gap: 20px;
}
.bldg-door-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.05);
}
.bldg-door-card.ok {
  border-left: 5px solid var(--forest);
}
.bldg-door-card.no {
  border-left: 5px solid var(--no);
}
.bldg-door-card.unknown {
  border-left: 5px solid #8B95A1;
}
.door-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.door-badge-letter {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
  background: var(--surface-2);
  color: var(--ink);
}
.door-badge-letter.ok {
  background: var(--forest);
  color: #FFFFFF;
}
.door-badge-letter.no {
  background: #FCE9E7;
  color: #D2342B;
}
.door-badge-letter.unknown {
  background: #FFFFFF;
  border: 2px solid #8B95A1;
  color: #8B95A1;
}
.door-title-box {
  flex: 1;
  min-width: 0;
}
.door-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.door-tag-desc {
  font-size: 0.82rem;
  color: var(--muted);
}
.door-status-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.door-status-pill.ok {
  background: var(--soft-sage);
  color: var(--forest);
}
.door-status-pill.no {
  background: #FCE9E7;
  color: var(--no);
}
.door-status-pill.unknown {
  background: #F0F2F5;
  color: #4E5968;
}
.door-details-body {
  margin-top: 14px;
}
.door-memo-box {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.5;
}

/* 편의시설 탭 & 갤러리 */
.bldg-fac-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.bldg-fac-chips::-webkit-scrollbar {
  display: none;
}
.bldg-fac-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.bldg-fac-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.bldg-fac-chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #FFFFFF;
}

.bldg-fac-detail-card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(46, 41, 38, 0.05);
}
.fac-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.fac-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft-sage);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex: none;
}
.fac-detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}
.fac-detail-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}
.bldg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bldg-gallery-grid .bldg-photo-btn {
  aspect-ratio: 4 / 3;
}
.bldg-gallery-grid .bldg-photo-btn.big {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* 조사 일자 푸터 */
.bldg-survey-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 32px;
}

/* 서브 앵커 하이라이트 애니메이션 */
.highlight-target {
  animation: targetPulse 1.8s ease-out;
}
@keyframes targetPulse {
  0% { box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.4); transform: scale(1.01); }
  50% { box-shadow: 0 0 0 8px rgba(31, 77, 58, 0.15); }
  100% { box-shadow: none; transform: scale(1); }
}

/* ---------- 19. 사진 라이트박스 모달 ---------- */
.inmun-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inmun-lightbox-modal[hidden] {
  display: none !important;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(8px);
}
.lb-container {
  position: relative;
  z-index: 2;
  width: 94%;
  max-width: 960px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.lb-title-box strong {
  font-size: 1.05rem;
}
.lb-count-pill {
  margin-left: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}
.lb-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lb-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 10px 48px;
}
.lb-image-wrapper {
  max-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-image-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lb-nav-btn.prev { left: 0; }
.lb-nav-btn.next { right: 0; }
.lb-footer {
  text-align: center;
  padding: 12px 16px;
}
.lb-caption-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

@media (max-width: 600px) {
  .lb-stage {
    padding: 10px 0;
  }
  .lb-nav-btn.prev { left: 6px; }
  .lb-nav-btn.next { right: 6px; }
}


/* ========================================================
   20. 새 화면 디자인 통일 (8·9단계: 앱 스타일 흰 배경 & 회색 단계 & 글자 3단계)
   ======================================================== */
#view-campus,
#view-building {
  background-color: #FFFFFF !important;
  color: #191F28;
  font-family: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100vw;
}

#view-campus *,
#view-building * {
  box-sizing: border-box;
}

/* 글자 크기 3단계 (rem 단위): 제목 22px / 본문 15px / 보조 13px */
#view-campus h1, #view-campus h2, #view-campus h3,
#view-building h1, #view-building h2, #view-building h3,
.bldg-main-title, .bldg-sec-title, .sheet-bldg-title, .unverified-modal-title {
  font-size: 1.375rem !important; /* 22px */
  font-weight: 700;
  color: #191F28;
  line-height: 1.35;
}

#view-campus p, #view-campus li,
#view-building p, #view-building li,
.bldg-summary-lead, .bldg-step-item p, .door-details-body p, .fac-detail-desc, .unverified-modal-desc {
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 400;
  color: #191F28;
  line-height: 1.5;
}

#view-campus small, #view-building small,
.bldg-campus-tag, .bldg-sec-sub-note, .door-tag-desc, .key-label, .sheet-campus-name {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400;
  color: #4E5968;
}

/* 상태 3색: 가능 #11845B / 주의 #B26B00 / 불가 #D2342B */
#view-campus .ok, #view-building .ok,
#view-campus .key-val.ok, #view-building .key-val.ok,
#view-campus .door-status.ok, #view-building .door-status.ok,
#view-campus .door-status-pill.ok, #view-building .door-status-pill.ok,
#view-campus .bldg-inside-status.ok, #view-building .bldg-inside-status.ok,
#view-campus .fact-val.ok, #view-building .fact-val.ok,
.door-badge-letter.ok, .door-ltr.ok {
  color: #11845B !important;
}
.door-badge-letter.ok, .door-ltr.ok {
  border-color: #11845B !important;
}

#view-campus .warn, #view-building .warn,
#view-campus .key-val.warn, #view-building .key-val.warn,
#view-campus .door-status.warn, #view-building .door-status.warn,
#view-campus .door-status-pill.warn, #view-building .door-status-pill.warn,
#view-campus .bldg-inside-status.warn, #view-building .bldg-inside-status.warn,
#view-campus .fact-val.warn, #view-building .fact-val.warn {
  color: #B26B00 !important;
}

#view-campus .no, #view-building .no,
#view-campus .key-val.no, #view-building .key-val.no,
#view-campus .door-status.no, #view-building .door-status.no,
#view-campus .door-status-pill.no, #view-building .door-status-pill.no,
#view-campus .bldg-inside-status.no, #view-building .bldg-inside-status.no,
#view-campus .fact-val.no, #view-building .fact-val.no,
.door-badge-letter.no, .door-ltr.no {
  color: #D2342B !important;
}
.door-badge-letter.no, .door-ltr.no {
  border-color: #D2342B !important;
}

/* 테두리/그림자 최소화: 여백 + 얇은 구분선 + 8px 회색 띠 */
.bldg-hero-card,
.bldg-keys-grid,
.bldg-section-block,
.bldg-door-card,
.bldg-fac-detail-card,
.campus-preview-panel {
  background-color: #FFFFFF !important;
  border: 1px solid #EBEDF0 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.bldg-grey-gap {
  height: 8px;
  background-color: #F4F5F7;
  border-top: 1px solid #EBEDF0;
  border-bottom: 1px solid #EBEDF0;
  margin: 20px -20px;
}

/* 지도 위 플로팅 팁 (닫기 가능) */
.campus-floating-tip-wrap {
  width: fit-content;
  max-width: 320px;
  margin-top: 8px;
  pointer-events: auto;
}
.campus-floating-tip-wrap .guide-tip-card {
  margin: 0;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid #EBEDF0;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(25, 31, 40, 0.08);
}
.campus-floating-tip-wrap .speech-bubble {
  background: transparent;
  border: none;
  padding: 0 4px;
  font-size: 0.8125rem;
  color: #191F28;
}

/* 360px 모바일 및 브라우저 확대 200% 대응 */
@media (max-width: 480px) {
  .univ-card {
    padding: 20px 16px;
  }
  .bldg-view-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
  .bldg-grey-gap {
    margin: 16px -14px;
  }
  .bldg-keys-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }
  .bldg-tab-link {
    padding: 10px 14px !important;
    font-size: 0.9375rem !important;
    min-height: 44px !important;
  }
  .campus-map-floating-bar {
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
  }
  .campus-search-box {
    max-width: 100% !important;
  }
  .campus-layer-chips {
    gap: 6px !important;
  }
  .campus-chip {
    padding: 8px 10px !important;
    font-size: 0.8125rem !important;
    min-height: 44px !important;
  }
}

/* 10. 접근성 (포커스 표시, 터치 타깃 44px 이상, prefers-reduced-motion) */
.svg-map-marker,
.svg-bldg-interactive,
.svg-unverified-bldg {
  cursor: pointer;
  outline: none;
}

.svg-map-marker:focus-visible,
.svg-bldg-interactive:focus-visible,
.svg-unverified-bldg:focus-visible {
  outline: 3px solid #1F4D3A !important;
  outline-offset: 4px !important;
}

#view-campus button:focus-visible,
#view-campus a:focus-visible,
#view-campus input:focus-visible,
#view-building button:focus-visible,
#view-building a:focus-visible {
  outline: 3px solid #1F4D3A !important;
  outline-offset: 2px !important;
}

.campus-back-link,
.bldg-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.unverified-modal-close,
.lb-btn,
.campus-panel-handle {
  min-width: 44px;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marker-pulse-ring,
  .highlight-target {
    animation: none !important;
  }
}

/* ========================================================
   20. 교내 셔틀버스 정보 화면 (#view-shuttle)
   ======================================================== */
#view-shuttle {
  background-color: #FFFFFF !important;
  color: #191F28;
  font-family: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
  min-height: 80vh;
}
#view-shuttle * {
  box-sizing: border-box;
}

#view-shuttle button:focus-visible,
#view-shuttle a:focus-visible,
#view-shuttle summary:focus-visible {
  outline: 3px solid #1F4D3A !important;
  outline-offset: 2px !important;
}

.shuttle-direction-tabs {
  display: flex;
  gap: 8px;
  background: #F4F5F7;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.shuttle-dir-tab {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #5A524D;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.shuttle-dir-tab:hover {
  color: #1F4D3A;
}
.shuttle-dir-tab.active {
  background: #FFFFFF;
  color: #1F4D3A;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.shuttle-departures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .shuttle-departures-grid {
    grid-template-columns: 1fr;
  }
}
.shuttle-dep-item {
  background: #F4F5F7;
  border: 1px solid #EBEDF0;
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s;
}
.shuttle-dep-item.is-first {
  background: #E4ECE5;
  border-color: #1F4D3A;
}
.dep-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dep-order-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5A524D;
}
.dep-time-large {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1F4D3A;
  font-family: monospace, sans-serif;
}
.dep-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dep-diff-badge {
  font-size: 0.95rem;
  color: #191F28;
}
.dep-meta-badge {
  display: flex;
  gap: 4px;
}
.dep-bus-count {
  background: #FFFFFF;
  color: #1F4D3A;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #C4D7C8;
}
.dep-last-badge {
  background: #FCE9E7;
  color: #D2342B;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 세로 노선도 */
.shuttle-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.shuttle-stop-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  min-height: 52px;
}
.stop-node-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex: none;
}
.stop-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3.5px solid #1F4D3A;
  box-shadow: 0 0 0 2px #E4ECE5;
  z-index: 2;
}
.shuttle-stop-node.is-start .stop-node-dot {
  background: #1F4D3A;
  border-color: #1F4D3A;
}
.shuttle-stop-node.is-end .stop-node-dot {
  background: #D2342B;
  border-color: #D2342B;
}
.stop-node-line {
  width: 3px;
  flex: 1;
  background: #C4D7C8;
  margin-top: -2px;
  min-height: 38px;
}
.shuttle-stop-node:last-child .stop-node-line {
  display: none;
}
.stop-node-content {
  flex: 1;
  padding-bottom: 20px;
}
.stop-node-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stop-node-name {
  font-size: 1rem;
  font-weight: 600;
  color: #191F28;
}
.stop-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.stop-tag.start {
  background: #E4ECE5;
  color: #1F4D3A;
}
.stop-tag.end {
  background: #EDE2D3;
  color: #5A524D;
}
.stop-link-hint a {
  color: #1F4D3A;
  text-decoration: underline;
  font-size: 0.8125rem;
}

/* ========================================================
   21. 하단 고정 음성 재생 바 & 멈추기 버튼 상태
   ======================================================== */
.voice-floating-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 580px;
  background: #191F28;
  color: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  z-index: 9999;
  padding: 10px 14px;
  box-sizing: border-box;
  animation: vbarSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.voice-floating-bar[hidden],
.voice-floating-bar:not(.is-active) {
  display: none !important;
}
.voice-floating-bar.is-active:not([hidden]) {
  display: block !important;
}

@keyframes vbarSpin {
  to { transform: rotate(360deg); }
}

@keyframes vbarSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.vbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vbar-indicator {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex: none;
}
.vbar-wave {
  width: 3px;
  height: 14px;
  background: #11845B;
  border-radius: 2px;
  animation: vwave 0.8s ease-in-out infinite alternate;
}
.vbar-wave:nth-child(2) {
  height: 18px;
  animation-delay: 0.2s;
}
.vbar-wave:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}
@keyframes vwave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.vbar-content {
  flex: 1;
  min-width: 0;
}
.vbar-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #11845B;
  letter-spacing: -0.2px;
}
.vbar-text {
  margin: 2px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.vbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.vbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.vbar-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.vbar-btn:focus-visible {
  outline: 3px solid #11845B !important;
  outline-offset: 2px !important;
}
.vbar-btn-stop {
  background: #D2342B;
  color: #FFFFFF;
}
.vbar-btn-stop:hover {
  background: #B82820;
}

/* 재생 중인 버튼의 "멈추기" 시각 스타일 */
.is-tts-playing {
  background: #D2342B !important;
  color: #FFFFFF !important;
  border-color: #D2342B !important;
}
.is-tts-playing svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

@media (max-width: 480px) {
  .voice-floating-bar {
    bottom: 16px;
    width: calc(100% - 20px);
    padding: 8px 10px;
  }
  .vbar-btn-text {
    display: none;
  }
  .vbar-btn {
    padding: 8px 10px;
  }
}

/* ========================================================= */
/* 배리어프리 캠퍼스 일러스트 지도 전용 컴포넌트 스타일 */
/* ========================================================= */

/* 지도 우상단 타이틀 워터마크 */
.campus-map-corner-title {
  position: absolute;
  top: 16px;
  right: 76px;
  z-index: 5;
  font-size: 16px;
  font-weight: 700;
  color: #191F28;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
@media (max-width: 900px) {
  .campus-map-corner-title {
    display: none;
  }
}

/* 지도 하단 출처 표기 */
.campus-map-attribution {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: auto;
}
.campus-map-attribution a {
  color: var(--forest);
  text-decoration: underline;
}

/* 건물 외곽선 강조 애니메이션 (1.5초 펄스) */
@keyframes bldgOutlinePulse {
  0%, 100% { stroke: #1F4D3A; stroke-width: 3px; }
  50% { stroke: #11845B; stroke-width: 4px; }
}
.bldg-highlight-pulse {
  animation: bldgOutlinePulse 0.75s ease infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  .bldg-highlight-pulse {
    animation: none !important;
    stroke: #1F4D3A !important;
    stroke-width: 3px !important;
  }
}

/* 축소 상태에서 이름표 숨기기 */
#campusSvgMap.hide-nameplates .svg-nameplate-pill,
#campusSvgMap.hide-nameplates line[stroke-dasharray="2 2"] {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.svg-nameplate-pill, line[stroke-dasharray="2 2"] {
  transition: opacity 0.2s ease;
}

/* 캠퍼스 전체 보기에서는 건물 번호 핀 + 빗금만 보이고,
   건물을 누르거나 확대(show-building-details)할 때만 출입문, P, 경로, 계단 번호가 나타남 */
#campusSvgMap:not(.show-building-details) .svg-route-item,
#campusSvgMap:not(.show-building-details) .svg-parking-pin,
#campusSvgMap:not(.show-building-details) .svg-door-pin {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#campusSvgMap.show-building-details .svg-route-item,
#campusSvgMap.show-building-details .svg-parking-pin,
#campusSvgMap.show-building-details .svg-door-pin {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

/* 건물을 눌러 확대된 상태에서 큰 번호 핀(5 등) 축소 및 출입문 핀 최적화 */
#campusSvgMap.show-building-details .svg-num-badge circle {
  r: 8px;
  transform: scale(0.68);
  transform-box: fill-box;
  transform-origin: center;
}
#campusSvgMap.show-building-details .svg-num-badge text {
  font-size: 8.5px;
  transform: scale(0.72);
  transform-box: fill-box;
  transform-origin: center;
}
#campusSvgMap.show-building-details .svg-door-pin circle {
  r: 6.5px;
  transform: scale(0.82);
  transform-box: fill-box;
  transform-origin: center;
}
#campusSvgMap.show-building-details .svg-door-pin text {
  font-size: 8px;
  transform: scale(0.85);
  transform-box: fill-box;
  transform-origin: center;
}

/* 건물 표면 포커스 및 호버 */
.svg-bldg-surface {
  cursor: pointer;
  outline: none;
  transition: filter 0.15s ease;
}
.svg-bldg-surface:hover, .svg-bldg-surface:focus-visible {
  filter: brightness(0.95);
  stroke: #1F4D3A;
  stroke-width: 2px;
}
.svg-nameplate-pill {
  cursor: pointer;
  outline: none;
}
.svg-nameplate-pill:hover rect, .svg-nameplate-pill:focus-visible rect {
  stroke: #1F4D3A;
  stroke-width: 2px;
}

/* 고대비 모드 지원 */
@media (forced-colors: active) {
  .svg-bldg-surface {
    stroke: #000000 !important;
    stroke-width: 2px !important;
  }
}

/* 지도 범례 */
.campus-legend-container {
  position: absolute;
  left: 16px;
  bottom: 24px;
  z-index: 10;
}
.btn-legend-mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.campus-legend-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(46, 41, 38, 0.12);
  width: 290px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}
.legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.btn-legend-close {
  display: none;
  background: none;
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--muted);
}
.legend-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
}
.legend-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--ink);
}
.legend-chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}
.legend-chip-swatch.pat-ok {
  background-color: #E2F0E7;
  background-image: repeating-linear-gradient(45deg, #11845B 0, #11845B 2px, transparent 2px, transparent 6px);
  border: 1px solid #11845B;
}
.legend-chip-swatch.pat-partial {
  background: repeating-linear-gradient(45deg, #F6E3C8, #F6E3C8 2px, #B26B00 2px, #B26B00 4px);
  border: 1px solid #B26B00;
}
.legend-chip-swatch.pat-bad {
  background: repeating-linear-gradient(45deg, #F6D3CF, #F6D3CF 1px, #D2342B 1px, #D2342B 2px);
  border: 1px solid #D2342B;
}
.legend-line {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
}
.line-shuttle-up { background: #1F4D3A; }
.line-shuttle-down { background: #4E5968; border-top: 2px dashed #4E5968; height: 0; }
.line-safe { background: #11845B; }
.line-warning { background: #D48806; }
.line-walk { background: #2F65CB; }
.line-stairs { background: #D2342B; }
.legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}
.dot-ok { background: #11845B; color: #fff; }
.dot-bad { background: #fff; color: #D2342B; border: 1.5px solid #D2342B; }
.legend-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
}
.legend-icons-grid span {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 900px) {
  .btn-legend-mobile-toggle {
    display: inline-block;
  }
  .campus-legend-card {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 100;
    display: none;
  }
  .campus-legend-card.is-open {
    display: block;
  }
  .btn-legend-close {
    display: block;
  }
}

/* 오른쪽 데스크톱 번호 순 건물 목록 */
.campus-bldg-list-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
}
.bldg-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.bldg-list-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.bldg-count-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--soft-sage);
  padding: 3px 8px;
  border-radius: 999px;
}
.bldg-number-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.bldg-number-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.bldg-number-item:hover, .bldg-number-item:focus-visible {
  background: var(--paper);
  outline: none;
}
.bldg-item-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1F4D3A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.bldg-item-info {
  flex: 1;
  min-width: 0;
}
.bldg-item-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bldg-item-facs {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.fac-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
  background: var(--muted);
  line-height: 1.2;
}
.fac-p { background: #1F4D3A; }
.fac-wc { background: #4779B8; }
.fac-ev { background: #6A977A; }
.fac-st { background: #E8843C; }
.fac-cf { background: #8C6239; }
.fac-rs { background: #D2342B; }
.fac-atm { background: #2E7D32; }

.status-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill.ok { background: #E3F3EA; color: #11845B; }
.status-pill.warn { background: #FDF1DB; color: #B26B00; }
.status-pill.unk { background: #ECEFF2; color: #5A524D; }

/* 텍스트 목록 접근성 모달 */
.campus-text-list-card {
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.campus-accessible-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.campus-accessible-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.campus-accessible-table th, .campus-accessible-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.campus-accessible-table th {
  background: var(--soft-sage);
  color: var(--forest);
  font-weight: 700;
}

/* 백년관 범례 및 맵 상호작용 스타일 */
.bgh-legend-card {
  background: var(--surface, #FFFFFF);
  border-radius: 14px;
  border: 1px solid var(--line, #EBEDF0);
  box-shadow: 0 4px 16px rgba(25, 31, 40, 0.10);
  overflow: hidden;
}
.bgh-legend-card .legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line, #EBEDF0);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink, #191F28);
}
.bgh-legend-body {
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bgh-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
