/* 상하이 여행 마스터페이지
   구조·수치는 GDWEB 수상작 '카름스테이'를 벤치마크, 색은 야경 톤(딥틸 + 골드 + 오렌지 CTA)으로 교체. */

@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --cream: #fbf8f1;
  --ink: #1f2a2e;
  --sub: #5c6668;
  --mute: #858586;
  --line: #e7e7e7;
  --night: #012d38;
  --teal: #003f53;
  --teal-mid: #3c6d71;
  --teal-soft: #e6f1f1;
  --gold: #c2a14b;
  --gold-soft: #f6efdc;
  --accent: #f05423;
  --accent-deep: #d03d18;
  --green: #174c3c;
  --warn-bg: #fff4e5;
  --warn-ink: #8a5300;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: 20px;
  --tabs-h: 60px;
  --top-h: 56px;
  --display: "Paperlogy", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6875;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[lang="zh-Hans"] { font-family: var(--zh); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 상단 ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; min-height: 44px; align-items: center; }
.brand-zh { font-family: var(--zh); font-weight: 700; font-size: 20px; color: var(--teal); letter-spacing: .04em; }
.brand-ko { font-family: var(--display); font-size: 15px; color: var(--ink); }
.top-nav { display: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who {
  font-size: 13px; font-weight: 600; color: var(--teal);
  background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.who.guest { color: var(--sub); background: #f3f3f3; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* ---------- 하단 탭 ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; padding: 0; min-height: 48px;
  font-size: 11px; font-weight: 600; color: var(--mute); text-decoration: none; position: relative;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--teal); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.tab .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-sizing: content-box; }

/* ---------- 공통 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 40px 0 8px; }
.section.cream { background: var(--cream); padding-bottom: 40px; margin-top: 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.h1 { font-family: var(--display); font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.3; letter-spacing: -.01em; }
.h2 { font-family: var(--display); font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.35; letter-spacing: -.01em; }
.h3 { font-family: var(--display); font-size: 1.125rem; line-height: 1.45; }
.lead { color: var(--sub); margin-top: 8px; }
.small { font-size: 14px; }
.cap { font-size: 13px; color: var(--mute); line-height: 1.55; }
.zh { font-family: var(--zh); color: var(--teal-mid); font-weight: 500; }
.head { margin-bottom: 20px; }
.head .h2 { margin-top: 4px; }
.page-head { padding: 28px 0 4px; }
.page-head .cap { margin-top: 8px; }

.boot { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--sub); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
  background: var(--teal-soft); color: var(--teal);
}
.badge.solid { background: var(--teal); color: #fff; }
.badge.accent { background: var(--accent); color: #fff; }
.badge.gold { background: var(--gold-soft); color: #7a6220; }
.badge.white { background: #fff; color: var(--ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.gray { background: #f1f1f1; color: var(--sub); }
.badge.line { background: #fff; border: 1px solid var(--line); color: var(--sub); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; background: var(--accent); color: #fff;
  transition: background .2s, transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--accent-deep); }
.btn.dark { background: var(--teal); }
.btn.dark:hover { background: var(--night); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f7f7f7; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.busy { pointer-events: none; opacity: .7; }
.btn .arrow { font-size: 18px; line-height: 1; margin-top: -1px; }

.note {
  display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.6;
}
.note.info { background: var(--teal-soft); color: var(--teal); }
.note.done { background: #e9f5ee; color: var(--green); }
.note b { font-weight: 700; }
.note + .note { margin-top: 10px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card-pad { padding: 20px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 사진: 불러오지 못해도 자리를 지킨다 */
.ph { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--teal) 0%, var(--night) 100%); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .ph-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: rgba(255, 255, 255, .9); text-align: center; padding: 16px;
}
.ph .ph-fallback .zh { color: var(--gold); font-size: 22px; font-weight: 700; }
.ph .ph-fallback small { font-size: 12px; opacity: .75; }
.ph .ph-tl, .ph .ph-tr { position: absolute; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ph .ph-tl { left: 12px; } .ph .ph-tr { right: 12px; justify-content: flex-end; }
.ph .credit {
  position: absolute; right: 8px; bottom: 6px; font-size: 10px; line-height: 1.3; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 2px rgba(0,0,0,.6); max-width: 80%; text-align: right; text-decoration: none;
}

/* ---------- 히어로 ---------- */
.hero { position: relative; height: min(560px, 78vh); min-height: 460px; background: var(--night); color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,45,56,.10) 30%, rgba(1,30,38,.86) 100%); }
.hero-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--pad) 28px; max-width: 1080px; margin: 0 auto; }
.hero .eyebrow { color: #f1d98d; }
.hero-zh { font-family: var(--zh); font-size: 15px; letter-spacing: .5em; color: rgba(255,255,255,.85); }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1.25; margin: 8px 0 14px; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-decoration: none; color: #fff;
}
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-chip.live i { background: #5fe39a; box-shadow: 0 0 0 4px rgba(95,227,154,.25); }
.hero-chip.final i { background: var(--accent); }
.hero .credit { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 10px; color: rgba(255,255,255,.7); text-decoration: none; }

/* ---------- 개요 ---------- */
.kv { display: grid; gap: 12px; }
.flight { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 12px; }
.flight .ap { font-family: var(--display); font-size: 26px; line-height: 1.1; color: var(--teal); }
.flight .ap + small { display: block; font-size: 12px; color: var(--mute); }
.flight .tm { font-size: 20px; font-weight: 700; margin-top: 4px; }
.flight .tm.tbd { font-size: 14px; color: var(--warn-ink); font-weight: 600; }
.flight .mid { text-align: center; font-size: 12px; color: var(--mute); }
.flight .mid::before { content: ""; display: block; width: 56px; height: 1px; background: var(--line); margin: 0 auto 4px; }
.flight .to { text-align: right; }

.vote-sum { display: grid; gap: 14px; }
.progress { height: 10px; border-radius: 999px; background: var(--teal-soft); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--teal); transition: width .6s var(--ease); }
.voters { display: flex; flex-wrap: wrap; gap: 6px; }

.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 12px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 72%; max-width: 320px; scroll-snap-align: start; scroll-margin-left: var(--pad); }
.day-card { display: flex; flex-direction: column; text-align: left; padding: 18px; gap: 6px; text-decoration: none; min-height: 168px; }
.day-card .n { font-family: var(--display); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.day-card ul { margin-top: 6px; font-size: 14px; color: var(--sub); display: grid; gap: 2px; }
.day-card ul li::before { content: "· "; color: var(--gold); }
.day-card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--teal); }

.must { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.must button { text-align: left; padding: 16px; display: grid; gap: 4px; background: #fff; }
.must .zh { font-size: 20px; font-weight: 700; color: var(--teal); }
.must b { font-family: var(--display); font-size: 15px; }
.must span { font-size: 13px; color: var(--sub); line-height: 1.5; }

/* ---------- 일정 ---------- */
.daybar { position: sticky; top: var(--top-h); z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.daybar-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad); scrollbar-width: none; max-width: 1080px; margin: 0 auto; }
.daybar-in::-webkit-scrollbar { display: none; }
.daybtn {
  flex: 0 0 auto; min-width: 64px; min-height: 48px; padding: 4px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25;
}
.daybtn b { font-size: 14px; }
.daybtn small { font-size: 11px; color: var(--mute); }
.daybtn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.daybtn[aria-pressed="true"] small { color: rgba(255,255,255,.8); }

.day-head { padding: 24px 0 16px; }
.day-head .h2 { margin-top: 2px; }
.stayline { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--cream); font-size: 14px; margin-top: 14px; }
.stayline b { white-space: nowrap; color: var(--teal); }

.tl { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--teal-soft); }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; left: -22px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.stop.opt::before { border-color: var(--gold); }
.stop.extra::before { border-color: var(--accent); }
.move { position: relative; font-size: 13px; color: var(--sub); padding: 0 0 0 2px; display: flex; gap: 6px; align-items: flex-start; }
.move::before { content: "↓"; color: var(--teal-mid); font-weight: 700; }
.stop-card { padding: 16px; }
.stop-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.stop-time { font-family: var(--display); font-size: 17px; color: var(--teal); }
.stop-name { font-family: var(--display); font-size: 18px; line-height: 1.4; }
.stop-name .zh { font-size: 14px; margin-left: 6px; font-weight: 500; }
.stop-why { font-size: 14.5px; color: var(--sub); margin-top: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.facts dt { color: var(--mute); white-space: nowrap; }
.facts dd { color: var(--ink); min-width: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.act.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.act svg { width: 16px; height: 16px; flex: none; }
.alts { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--cream); }
.alts li { padding: 10px 0; border-top: 1px solid rgba(0,0,0,.06); font-size: 14.5px; }
.alts li:first-child { border-top: 0; }
.alts li b { display: block; }
.alts li span { color: var(--sub); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 숙소 ---------- */
.areas { display: grid; gap: 12px; }
.area h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pm { display: grid; gap: 2px; margin-top: 8px; font-size: 14px; }
.pm li { padding-left: 20px; position: relative; }
.pm li::before { position: absolute; left: 0; font-weight: 700; }
.pm .p::before { content: "＋"; color: var(--green); }
.pm .m::before { content: "－"; color: var(--accent-deep); }

.votebar { position: sticky; top: var(--top-h); z-index: 20; background: var(--night); color: #fff; }
.votebar-in { max-width: 1080px; margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.votebar .st { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.votebar .st i { width: 8px; height: 8px; border-radius: 50%; background: #5fe39a; }
.votebar.closed .st i { background: #ffb199; }
.votebar .mine { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f1d98d; }

.hotels { display: grid; gap: 20px; }
.hotel.mine { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.hotel.final { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.hotel-body { padding: 18px 18px 20px; }
.hotel-name { font-family: var(--display); font-size: 20px; line-height: 1.4; }
.hotel-sub { font-size: 13.5px; color: var(--sub); margin-top: 2px; }
.roomline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.price { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--cream); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-row + .price-row { margin-top: 4px; }
.price-row span { font-size: 13px; color: var(--sub); }
.price-row b { font-size: 20px; font-family: var(--display); white-space: nowrap; }
.price-row b small { font-size: 13px; font-family: var(--body); font-weight: 600; color: var(--sub); margin-left: 6px; }
.price-row.pp b { color: var(--accent-deep); }
.price-row.ref b { font-size: 16px; color: var(--sub); }
.price-row.ref.pp b { color: var(--ink); }
.price .tbd { font-weight: 700; color: var(--warn-ink); }
.price .cap { margin-top: 8px; }
.tally { margin-top: 16px; }
.tally-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 6px; }
.tally-top b { font-size: 15px; }
.vote-row { display: flex; gap: 8px; margin-top: 14px; }
.vote-row .btn { flex: 1; }
.vote-row .btn.picked { background: var(--teal); }
details.more { margin-top: 14px; border-top: 1px solid var(--line); }
details.more > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "＋"; color: var(--teal); font-size: 18px; }
details.more[open] > summary::after { content: "－"; }
.dl { display: grid; gap: 12px; font-size: 14.5px; padding-bottom: 6px; }
.dl dt { font-size: 12.5px; font-weight: 700; color: var(--teal-mid); letter-spacing: .02em; }
.dl dd { color: var(--ink); }
.src { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.src a { color: var(--teal); text-underline-offset: 3px; }

.cmp-wrap { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.cmp thead th { font-size: 12px; color: var(--mute); font-weight: 700; background: #fff; }
.cmp tbody th { position: sticky; left: 0; background: #fff; font-weight: 700; white-space: normal; min-width: 120px; max-width: 150px; box-shadow: 1px 0 0 var(--line); }
.cmp td.r { text-align: right; }
.cmp .wrapcell { white-space: normal; min-width: 150px; }

/* ---------- 가볼 곳 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--pad) 12px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.chip[aria-pressed="true"] i { background: #fff; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.place { display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%; background: #fff; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.place-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.place-name { font-family: var(--display); font-size: 18px; line-height: 1.4; }
.place-name .zh { font-size: 14px; margin-left: 6px; }
.place-why { font-size: 14px; color: var(--sub); }
.place-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.empty { padding: 32px 0; text-align: center; color: var(--sub); }

.vs { display: grid; gap: 16px; }
.vs .card-pad { display: grid; gap: 4px; }

/* ---------- 준비 ---------- */
.prep-list { display: grid; gap: 12px; }
.prep-item h3 { margin-bottom: 6px; }
.prep-item ul { display: grid; gap: 6px; font-size: 14.5px; }
.prep-item ul li { padding-left: 14px; position: relative; }
.prep-item ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.prep-item .src { margin-top: 10px; }
.checks { display: grid; }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c9c9c9; background: #fff; margin: 0; display: grid; place-content: center; cursor: pointer; }
.check input:checked { background: var(--teal); border-color: var(--teal); }
.check input:checked::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:disabled { opacity: .5; cursor: not-allowed; }
.check label { flex: 1; min-width: 0; cursor: pointer; line-height: 1.45; }
.check label small { display: block; font-size: 12px; color: var(--mute); }
.check.done label > span { color: var(--mute); text-decoration: line-through; }
.check .x { border: 0; background: none; color: var(--mute); width: 44px; height: 44px; font-size: 18px; }
.sharebox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.sharebox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: 14px; color: var(--sub); }

.foot { padding: 40px 0 32px; color: var(--mute); font-size: 12.5px; line-height: 1.7; }
.foot details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--sub); }
.foot li { margin-top: 4px; }
.foot a { color: var(--sub); }

/* ---------- 토스트 · 시트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 40px); padding: 12px 18px; border-radius: 999px; background: rgba(1, 30, 38, .94); color: #fff;
  font-size: 14px; font-weight: 600; text-align: center; transition: opacity .25s, transform .35s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #a3281b; }

.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(1, 20, 26, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0;
  animation: up .35s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.sheet-head b { font-family: var(--display); font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f3f3; font-size: 18px; flex: none; }
.sheet-body { padding: 20px; display: grid; gap: 16px; }
.taxi { text-align: center; padding: 28px 12px; }
.taxi .zh { font-size: clamp(28px, 8.5vw, 44px); line-height: 1.35; font-weight: 700; color: var(--ink); }
.taxi .zh.addr { font-size: clamp(22px, 6.5vw, 32px); font-weight: 500; margin-top: 16px; }
.taxi p.cap { margin-top: 18px; }

/* ---------- 관리 ---------- */
.adm { display: grid; gap: 28px; }
.adm h3 { font-family: var(--display); font-size: 17px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.form { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; font-size: 16px; min-width: 0;
}
.fld textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.fld small { font-size: 12px; color: var(--mute); line-height: 1.4; }
.adm-item { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.adm-item:first-child { border-top: 0; }
.adm-item .line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-item .line b { flex: 1; min-width: 120px; }
.adm-item code { display: block; font-size: 12px; color: var(--sub); background: #f6f6f6; padding: 8px 10px; border-radius: 8px; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hotels { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .areas, .vs, .prep-list { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .must { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: 1fr 1fr; }
  .rail > * { flex-basis: 260px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 20px; }
}
@media (min-width: 960px) {
  :root { --top-h: 64px; }
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .top-nav { display: flex; gap: 4px; margin-left: 24px; }
  .top-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--sub); text-decoration: none; }
  .top-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .areas, .vs { grid-template-columns: repeat(3, 1fr); }
  .toast { bottom: 32px; }
  .hero { height: 600px; }
  .place:hover { box-shadow: 0 2px 4px #0000000f, 0 22px 44px -20px #14141433; transform: translateY(-2px); }
}
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .tab { font-size: 10px; }
  .must { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
