/* ───────── 색·글꼴 ───────── */
:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --ink: #1c1a17;
  --ink-2: #514c44;
  --ink-3: #8a8378;
  --line: #e4ded1;
  --line-2: #d3cbbb;
  --brand: #1f4d46;
  --brand-ink: #f6f3ec;
  --accent: #e0592e;
  --soft: #efe9dd;
  --c-sight: #2a78d6;
  --c-food: #eb6834;
  --c-stay: #4a3aa7;
  --c-air: #3b3a36;
  --c-me: #1a73e8;
  --temp: #eb6834;
  --temp-soft: #f6c2ad;
  --rain: #2a78d6;
  --rain-soft: #b7d3f6;
  --shadow: 0 1px 2px rgba(30, 25, 15, .06), 0 6px 20px rgba(30, 25, 15, .07);
  --radius: 16px;
  --sans: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", Georgia, serif;
  --navh: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151412; --paper: #1e1d1a; --ink: #f3efe6; --ink-2: #c9c2b5; --ink-3: #8f887c;
    --line: #2e2c28; --line-2: #3d3a35; --brand: #7fc4b6; --brand-ink: #10201d; --accent: #f07a50; --soft: #26241f;
    --c-sight: #3987e5; --c-food: #e46a35; --c-stay: #9085e9; --c-air: #c9c2b5;
    --temp: #e46a35; --temp-soft: #6b3a26; --rain: #3987e5; --rain-soft: #1f3f66;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151412; --paper: #1e1d1a; --ink: #f3efe6; --ink-2: #c9c2b5; --ink-3: #8f887c;
  --line: #2e2c28; --line-2: #3d3a35; --brand: #7fc4b6; --brand-ink: #10201d; --accent: #f07a50; --soft: #26241f;
  --c-sight: #3987e5; --c-food: #e46a35; --c-stay: #9085e9; --c-air: #c9c2b5;
  --temp: #e46a35; --temp-soft: #6b3a26; --rain: #3987e5; --rain-soft: #1f3f66;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--navh) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }

/* ───────── 상단 바 ───────── */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--navh);
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar.over { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.topbar.over .iconbtn:hover { background: rgba(255,255,255,.15); }
.topbar.over .lang { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.35); }
.topbar.over .lang button { color: rgba(255,255,255,.8); }
.topbar.over .lang button[aria-pressed="true"] { background: #fff; color: #111; }
.topbar .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; text-decoration: none; font-size: 17px; letter-spacing: -0.03em; }
.topbar .logo img { width: 26px; height: 26px; }
.topbar .title { font-weight: 700; font-size: 16px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.scrolled .title, .topbar:not(.over) .title { opacity: 1; }
.topbar .spacer { flex: 1; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent;
  display: grid; place-items: center; text-decoration: none;
}
.iconbtn:hover { background: var(--soft); }
.lang {
  display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--paper);
}
.lang button { border: 0; background: transparent; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ───────── 홈 ───────── */
.home-banner { position: relative; margin-top: calc(var(--navh) * -1); height: min(46vh, 380px); overflow: hidden; background: #1f3b45; color: #fff; }
.home-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.home-banner .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,28,.55) 0%, rgba(8,20,28,.05) 45%, rgba(8,20,28,.45) 100%); }
.home-banner .wrap { position: relative; padding-top: calc(var(--navh) + 22px); }
.home-banner h1 { font-family: var(--serif); font-size: clamp(34px, 9vw, 56px); font-weight: 800; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.home-banner p { margin: 8px 0 0; max-width: 26em; font-size: 16px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.home-banner .credit { position: absolute; right: 10px; bottom: 44px; font-size: 11px; opacity: .8; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 6px; }
.home-main { position: relative; margin-top: -34px; }
.home-main .search { margin-top: 0; box-shadow: var(--shadow); }
.home-hero { padding: 28px 0 8px; }
.home-hero h1 { font-family: var(--serif); font-size: clamp(30px, 7vw, 46px); font-weight: 800; }
.home-hero p { color: var(--ink-2); margin: 8px 0 0; max-width: 34em; }
.search {
  margin: 20px 0 12px; display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px; height: 50px;
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 0 40px; }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
.city-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--soft); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end;
}
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); }
.city-card .txt { position: relative; padding: 14px; color: #fff; }
.city-card .txt b { display: block; font-size: 20px; letter-spacing: -0.03em; }
.city-card .txt span { font-size: 13px; opacity: .9; }
.city-card.soon { box-shadow: none; border: 1px dashed var(--line-2); }
.city-card.soon .txt { color: var(--ink); }
.city-card.soon .badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; color: var(--ink-3); background: var(--paper); border-radius: 999px; padding: 2px 8px; }
.city-card.soon .glyph { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 54px; font-weight: 800; color: var(--line-2); }
.city-card.ready .badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; z-index: 1; }

/* ───────── 도시 히어로 ───────── */
.hero { position: relative; margin-top: calc(var(--navh) * -1); min-height: min(52vh, 440px); display: flex; align-items: flex-end; color: #fff; background: #222; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,5,.82) 0%, rgba(10,8,5,.25) 45%, rgba(10,8,5,.35) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 26px; }
.hero .country { font-size: 14px; font-weight: 600; opacity: .9; letter-spacing: .02em; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 12vw, 76px); font-weight: 800; line-height: 1.05; margin: 2px 0 2px; }
.hero h1 small { font-family: var(--sans); font-size: .32em; font-weight: 500; opacity: .8; margin-left: 8px; letter-spacing: 0; }
.hero .tagline { font-size: 18px; margin: 6px 0 16px; max-width: 30em; }
.hero .now { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,.22); }
.hero .credit { position: absolute; right: 10px; top: calc(var(--navh) + 8px); font-size: 11px; opacity: .75; color: #fff; text-decoration: none; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 6px; }

/* ───────── 섹션 이동 바 ───────── */
.secnav {
  position: sticky; top: var(--navh); z-index: 25; background: var(--bg); border-bottom: 1px solid var(--line);
}
.secnav .chips { padding: 10px 16px; max-width: 880px; margin: 0 auto; }
.secnav .chip { padding: 5px 12px; font-size: 13.5px; }
.secnav .chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ───────── 섹션 공통 ───────── */
section.sec { padding: 40px 0 8px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.sec-head .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.lead { font-size: 17px; color: var(--ink-2); }
.intro p { margin: 0 0 14px; font-size: 17px; }
.intro p:first-child::first-letter { font-family: var(--serif); font-weight: 800; font-size: 3.1em; float: left; line-height: .9; margin: 6px 8px 0 0; color: var(--brand); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }

/* 한눈에 */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.fact { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.fact .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); flex: none; }
.fact .ic svg { width: 20px; height: 20px; }
.fact b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.fact div > span { font-size: 15px; white-space: pre-line; }

/* 날씨 */
.forecast { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.day { flex: none; width: 84px; padding: 12px 8px; text-align: center; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.day .d { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.day .w { font-size: 26px; line-height: 1.3; }
.day .t { font-weight: 800; font-size: 15px; }
.day .t span { color: var(--ink-3); font-weight: 600; }
.day .p { font-size: 12px; color: var(--rain); font-weight: 700; }
.day.today { border-color: var(--ink); }
.charts { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart { padding: 14px 14px 8px; position: relative; }
.chart h3 { font-size: 15px; font-weight: 800; }
.chart .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .now-lbl { fill: var(--ink); font-size: 10.5px; font-weight: 800; }
.tip-pop {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; z-index: 2;
}
.tip-pop.on { opacity: 1; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
table.clim { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 8px; }
table.clim th, table.clim td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); }
table.clim th:first-child, table.clim td:first-child { text-align: left; }
.seasons { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .seasons { grid-template-columns: 1fr 1fr; } }
.season { padding: 14px 16px; }
.season h4 { font-size: 15px; margin-bottom: 4px; }
.season h4 small { color: var(--ink-3); font-weight: 600; margin-left: 6px; }
.season p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.season.cur { border-color: var(--ink); }

/* 공항 */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { flex: 1; border: 1px solid var(--line-2); background: var(--paper); border-radius: 12px; padding: 10px 8px; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.3; }
.tab small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab[aria-selected="true"] small { color: var(--bg); opacity: .75; }
.opts { display: grid; gap: 10px; }
.opt { padding: 14px 16px; }
.opt-top { display: flex; align-items: center; gap: 10px; }
.opt-top .mode { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); flex: none; }
.opt-top .mode svg { width: 20px; height: 20px; }
.opt-top h4 { font-size: 16px; flex: 1; }
.opt .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 4px; font-size: 14px; }
.opt .meta span { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.opt p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.opt .tip { margin-top: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--ink-2); }
.note { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }

/* 장소 카드 */
.cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.pcard { overflow: hidden; display: flex; flex-direction: column; }
.pcard .ph { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .num { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.pcard .ph .cr { position: absolute; right: 6px; bottom: 6px; font-size: 10.5px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 5px; text-decoration: none; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .area { font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.pcard h3 { font-size: 19px; }
.pcard h3 .loc { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.pcard p { margin: 0; font-size: 15px; color: var(--ink-2); }
.pcard .kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13.5px; margin-top: 4px; }
.pcard .kv dt { color: var(--ink-3); font-weight: 700; }
.pcard .kv dd { margin: 0; }
.pcard .tip { font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--soft); color: var(--ink-2); }
.pcard .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.tier { font-weight: 800; letter-spacing: 1px; color: var(--ink); }
.tier i { font-style: normal; color: var(--line-2); }

/* 숙소 지역 */
.areas { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.areacard { flex: none; width: min(78vw, 300px); padding: 14px 16px; scroll-snap-align: start; }
.areacard h4 { font-size: 16px; }
.areacard .g { font-size: 12.5px; font-weight: 700; color: var(--c-stay); margin: 2px 0 6px; }
.areacard p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.areacard .pc { font-size: 13px; }
.areacard .pc b { color: var(--ink); }

/* 음식 */
.dishes { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.dish { flex: none; width: min(70vw, 260px); overflow: hidden; scroll-snap-align: start; }
.dish .ph { aspect-ratio: 4 / 3; background: var(--soft); position: relative; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; }
.dish .ph .cr { position: absolute; right: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 5px; text-decoration: none; }
.dish .bd { padding: 12px 14px 14px; }
.dish h4 { font-size: 16px; }
.dish h4 small { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.dish p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.dish .pr { font-size: 13px; font-weight: 700; margin-top: 6px; }
h3.subhead { font-size: 18px; margin: 22px 0 12px; }

/* 일정 */
.itin-sum { color: var(--ink-2); margin: 0 0 14px; }
.daybox { margin-bottom: 18px; }
.daybox h4 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.daybox h4 .n { background: var(--accent); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.stop { position: relative; padding: 0 0 4px 64px; }
.stop .tm { position: absolute; left: 0; top: 10px; width: 48px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.stop .box { padding: 10px 14px; }
.stop .box b { font-size: 15.5px; }
.stop .box b button { all: unset; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.stop .box p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.stop::before { content: ""; position: absolute; left: 55px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--dotc, var(--ink-3)); transform: translateX(-50%); box-shadow: 0 0 0 3px var(--bg); }
.timeline::before { content: ""; position: absolute; left: 55px; top: 16px; bottom: 16px; width: 2px; background: var(--line-2); transform: translateX(-50%); }
.move { position: relative; padding: 2px 0 6px 64px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* 교통·팁 */
.list2 { display: grid; gap: 10px; }
.item2 { padding: 14px 16px; }
.item2 h4 { font-size: 16px; margin-bottom: 4px; }
.item2 p { margin: 0; font-size: 14.5px; color: var(--ink-2); white-space: pre-line; }
.tips { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 8px; }
.tips li { counter-increment: t; position: relative; padding: 12px 14px 12px 50px; font-size: 15px; }
.tips li::before { content: counter(t); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.sources { font-size: 13px; color: var(--ink-3); padding: 0 0 0 18px; }
.sources a { color: var(--ink-2); }
footer.foot { padding: 30px 0 120px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 40px; }

/* 지도 열기 버튼 */
.fab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px;
  border: 0; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fab svg { width: 20px; height: 20px; }

/* ───────── 지도 화면 ───────── */
.mapview { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; }
.mapview.on { display: block; }
#map { position: absolute; inset: 0; background: #e8e4da; }
.map-top { position: absolute; z-index: 500; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 10px 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-row { display: flex; gap: 8px; align-items: center; }
.map-row .iconbtn, .mapbtn { background: var(--paper); box-shadow: var(--shadow); border-radius: 12px; }
.map-row .ttl { flex: 1; background: var(--paper); box-shadow: var(--shadow); border-radius: 12px; height: 40px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; }
.map-top .chips { padding: 0 0 4px; }
.map-top .chip { box-shadow: var(--shadow); border-color: transparent; }
.map-side { position: absolute; z-index: 500; right: 10px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; transition: bottom .25s; }
.mapbtn { width: 44px; height: 44px; border: 0; display: grid; place-items: center; }
.mapbtn.on { color: var(--c-me); }
.mapbtn[hidden] { display: none; }
.sheet {
  position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; max-height: 62vh; overflow-y: auto;
  background: var(--paper); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .25s ease;
}
@media (min-width: 720px) { .sheet { left: 12px; right: auto; width: 400px; bottom: 12px; border-radius: 20px; max-height: calc(100vh - 140px); } }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 10px; }
.sheet .x { position: absolute; right: 8px; top: 8px; }
.sheet .cat { font-size: 12.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sheet h3 { font-size: 21px; margin: 2px 40px 2px 0; }
.sheet h3 small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.sheet .ph { margin: 10px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.sheet .ph img { width: 100%; height: 100%; object-fit: cover; }
.sheet p { margin: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.sheet .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.route .from { font-size: 13px; color: var(--ink-3); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.route .from select { font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 6px; max-width: 60%; }
.route .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.route .r { background: var(--paper); border-radius: 10px; padding: 8px 6px; text-align: center; }
.route .r svg { width: 18px; height: 18px; color: var(--ink-2); }
.route .r b { display: block; font-size: 16px; }
.route .r span { font-size: 11.5px; color: var(--ink-3); }
.route .dist { font-size: 13px; margin-top: 6px; color: var(--ink-2); }
.route .warn { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.apps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.itin-legend { position: absolute; z-index: 500; left: 10px; bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: var(--shadow); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; display: none; gap: 8px; align-items: center; }
.itin-legend.on { display: flex; }

/* 지도 핀 */
.mk { width: 30px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; }
.mk-in { display: block; position: relative; width: 30px; height: 38px; transform-origin: 50% 100%; transition: transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.mk.sel .mk-in { transform: scale(1.35); }
.mk-shape { position: absolute; inset: 0; width: 30px; height: 38px; }
.mk-ic { position: absolute; left: 0; right: 0; top: 7px; display: grid; place-items: center; color: #fff; }
.mk-ic svg { width: 15px; height: 15px; }
.pinnum { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 13px var(--sans); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); background: var(--accent); padding: 0; cursor: pointer; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c-me); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.25); }
.maplibregl-map { font-family: var(--sans); }
.maplibregl-ctrl-top-right { top: calc(104px + env(safe-area-inset-top)); }
.sheet .kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13.5px; margin: 8px 0 0; }
.sheet .kv dt { color: var(--ink-3); font-weight: 700; }
.sheet .kv dd { margin: 0; }

.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ═════════ v2: 단순한 구조 (아래 메뉴·짧은 카드·상세 화면) ═════════ */
:root { --bnavh: 62px; }
body.has-bnav { padding-bottom: calc(var(--bnavh) + env(safe-area-inset-bottom)); }
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex;
  height: calc(var(--bnavh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.05);
}
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.bnav a svg { width: 23px; height: 23px; }
.bnav a.on { color: var(--brand); }
.bnav a.on svg { stroke-width: 2.4; }
.mapview { bottom: calc(var(--bnavh) + env(safe-area-inset-bottom)); }

/* 홈 */
.ready-list { display: grid; gap: 12px; margin-top: 8px; }
.city-card.ready { aspect-ratio: 16 / 9; }
.city-card.ready .txt b { font-size: 26px; }
.city-card .go { position: absolute; right: 14px; bottom: 16px; color: #fff; }
.city-card .go svg { width: 26px; height: 26px; }
.soon-list { display: flex; flex-wrap: wrap; gap: 6px; }
.soon-chip { font-size: 13.5px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 11px; }

/* 가이드 첫 화면 바로가기 */
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.sc { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 800; font-size: 15px; box-shadow: var(--shadow); }
.sc svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.sc.wide { grid-column: 1 / -1; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.sc.wide svg { color: var(--brand-ink); }

/* 가이드 블록 */
.block { padding: 26px 0 4px; }
.bh { font-family: var(--serif); font-size: 22px; font-weight: 800; margin-bottom: 12px; scroll-margin-top: calc(var(--navh) + 12px); }
.block.intro { padding-top: 14px; }
.block.intro .lead { font-size: 17px; color: var(--ink); margin: 0; }
.prose p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
details.more { margin-top: 10px; }
details.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--brand); padding: 6px 0; }
details.more > summary::-webkit-details-marker, details.row-x > summary::-webkit-details-marker { display: none; }
details.more[open] > summary svg, details.row-x[open] > summary > svg { transform: rotate(180deg); }
details.more > summary svg { width: 16px; height: 16px; transition: transform .2s; }
details.more.boxed { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin: 14px 0 10px; }
details.more[open] > .prose { margin-top: 8px; }

.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 3px; margin-bottom: 12px; }
.seg > * { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-align: center; text-decoration: none; line-height: 1.25; }
.seg > * small { color: var(--ink-3); font-weight: 600; }
.seg > [aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg-bar { position: sticky; top: var(--navh); z-index: 20; background: var(--bg); padding: 8px 16px 0; border-bottom: 1px solid var(--line); }
.seg-bar .seg { max-width: 848px; margin: 0 auto 8px; }

.rows { display: grid; gap: 8px; }
details.row-x, .row-s { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
details.row-x > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
details.row-x > summary > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform .2s; }
.row-x .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--brand); flex: none; }
.row-x .ic svg { width: 19px; height: 19px; }
.row-x .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-x .main b { font-size: 15.5px; line-height: 1.4; }
.row-x .main .lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.row-x .main .sub { font-size: 14px; color: var(--ink-2); }
.row-x .main .meta { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.row-x .main .meta svg { width: 14px; height: 14px; color: var(--ink-3); }
.row-x .tag, .row-s .tag { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 1px 8px; border-radius: 999px; margin: 2px 0; }
.row-x .x { padding: 0 14px 14px 62px; }
.row-x .x p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); }
.row-s { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.row-s p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.tipbox { font-size: 14px; padding: 9px 12px; border-radius: 10px; background: var(--soft); color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.checks li svg { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.tiplist { margin: 6px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 6px; }
.season.cur { margin-top: 12px; padding: 12px 14px; }

/* 장소 목록 */
.plist { list-style: none; margin: 10px 0 20px; padding: 0; display: grid; gap: 10px; }
.prow { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.prow > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.prow .th { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--soft); flex: none; display: grid; place-items: center; }
.prow .th img { width: 100%; height: 100%; object-fit: cover; }
.prow .th .ph-ic svg { width: 30px; height: 30px; }
.prow .th .n { position: absolute; left: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.prow .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow .bd b { font-size: 16px; line-height: 1.35; }
.prow .sum { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .meta { font-size: 12.5px; color: var(--ink-3); font-weight: 700; display: flex; flex-wrap: wrap; gap: 0 6px; }
.prow .meta i { font-style: normal; opacity: .6; }
.alert { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #b5461f; margin: 2px 0 0; }
.alert svg { width: 14px; height: 14px; flex: none; }
.alert.big { font-size: 14px; background: color-mix(in srgb, #e0592e 10%, transparent); padding: 6px 10px; border-radius: 10px; }
:root[data-theme="dark"] .alert { color: #f39a76; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert { color: #f39a76; } }

/* 상세 화면 */
.dphoto { position: relative; aspect-ratio: 16 / 10; max-height: 420px; width: 100%; background: var(--soft); overflow: hidden; }
.dphoto img { width: 100%; height: 100%; object-fit: cover; }
.dphoto .cr { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 6px; text-decoration: none; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail { padding-top: 16px; padding-bottom: 30px; }
.detail .cat { font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.detail .cat svg { width: 15px; height: 15px; }
.detail h1 { font-family: var(--serif); font-size: 28px; font-weight: 800; margin-top: 4px; }
.detail .local { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.detail .lead { font-size: 17px; margin: 12px 0; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.detail .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0 0 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.detail .kv dt { color: var(--ink-3); font-weight: 700; }
.detail .kv dd { margin: 0; }
.detail .tipbox { margin: 0 0 16px; }

/* 일정 */
.itin-title { font-family: var(--serif); font-size: 22px; font-weight: 800; margin: 16px 0 4px; }
.daybox.card { padding: 14px 12px 14px 4px; margin-bottom: 14px; }
.daybox .dh { display: flex; align-items: center; gap: 8px; padding-left: 12px; margin-bottom: 10px; }
.daybox .dh .n { background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; flex: none; }
.daybox .btn { margin-left: 64px; margin-top: 4px; }
.stop .box { padding: 4px 0 8px; }
.stop .box a { text-decoration: none; }
.stop .box a b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* 지도 v2 */
.map-top { padding-top: calc(10px + env(safe-area-inset-top)); }
.map-top[hidden] { display: none; }
.chip.sm { padding: 4px 10px; font-size: 13px; }
.chip.sm svg { width: 14px; height: 14px; }
.mk { position: relative; }
.mk-lbl { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%); white-space: nowrap; background: var(--paper); color: var(--ink); font: 800 12.5px var(--sans); padding: 3px 9px; border-radius: 8px; box-shadow: var(--shadow); }
.sheet { max-height: 46vh; padding-top: 14px; }
.sheet .cat { font-size: 12.5px; font-weight: 800; }
.sheet h3 { font-size: 19px; margin: 2px 40px 4px 0; }
.sheet .sum { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-2); }
.route { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.route .from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.route .rt { font-size: 14px; font-weight: 700; margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; color: var(--ink); }
.route .rt svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); flex: none; }
.route .rt:empty { display: none; }
.sheet .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.itin-bar { position: absolute; z-index: 500; left: 10px; right: 10px; bottom: 12px; background: var(--paper); box-shadow: var(--shadow); border-radius: 16px; padding: 10px 12px 8px; display: none; }
.itin-bar.on { display: block; }
.itin-bar .ib-top { display: flex; align-items: center; justify-content: space-between; }
.itin-bar .iconbtn { width: 32px; height: 32px; }
.itin-bar .chips { padding: 6px 0 2px; }
.itin-bar p { margin: 4px 0 0; line-height: 1.5; }
@media (min-width: 720px) { .itin-bar { right: auto; width: 420px; } }

/* ═════════ v3: 명소·맛집·숙소 중심 ═════════ */
.infobtn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.infobtn svg { width: 16px; height: 16px; color: var(--brand); }
.map-top { flex-direction: row; align-items: center; gap: 8px; padding-left: 10px; padding-right: 10px; }
.map-top .chips { flex: 1; min-width: 0; }
.infobtn.solid { border-color: transparent; box-shadow: var(--shadow); height: 34px; flex: none; margin-bottom: 4px; }

.cbanner { position: relative; height: 150px; overflow: hidden; background: #1f3b45; color: #fff; }
.cbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cbanner .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,26,.78) 0%, rgba(8,18,26,.35) 60%, rgba(8,18,26,.1) 100%); }
.cbanner .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 14px; }
.cbanner h1 { font-family: var(--serif); font-size: 32px; font-weight: 800; line-height: 1.1; }
.cbanner p { margin: 4px 0 0; font-size: 14px; opacity: .92; max-width: 24em; }
.cbanner .mini { font-size: 12.5px; font-weight: 700; margin-top: 6px; opacity: .95; }
.cbanner .mini:empty { display: none; }

.lhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.lhead h2 { font-family: var(--serif); font-size: 22px; font-weight: 800; }
.search.sm { height: 44px; margin: 10px 0 6px; }
.chips[data-areas], .chips[data-tiers] { padding: 4px 0 2px; }
.sortrow { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.seg.mini { margin: 0; flex: none; padding: 2px; }
.seg.mini > * { padding: 5px 12px; font-size: 13px; }

.prow .th { width: 96px; height: 96px; }
.prow .th .ph-ic { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; text-align: center; }
.prow .th .ph-ic em { font-style: normal; font-size: 11px; font-weight: 800; line-height: 1.25; color: var(--ink-2); }
.prow .meta b.dish { color: var(--c-food); }
.prow .meta b.dist { color: var(--brand); }
.prow > svg { display: none; }

.cluster { width: 38px; height: 38px; border-radius: 50%; color: #fff; font: 800 14px var(--sans); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; padding: 0; }
.route .rt span { display: flex; flex-direction: column; }
.route .rt small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

.nowline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 16px 0 4px; }
.nowline svg { width: 15px; height: 15px; vertical-align: -2px; }
.chips.jump { padding: 6px 0 0; }
.plist { grid-template-columns: minmax(0, 1fr); }
.prow { min-width: 0; }
.prow .meta b { font-size: inherit; line-height: inherit; }
.seg.mini > * { white-space: nowrap; }
.prow .meta > span + span::before { content: "·"; margin-right: 6px; opacity: .6; }

/* ═════════ v4: 풍부한 상세·일러스트 ═════════ */
.dsec { margin-top: 26px; }
.dsec h2 { font-family: var(--serif); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.dsec h3 { font-size: 14px; font-weight: 800; margin: 12px 0 6px; }
.dsec h3.good { color: #2f7d32; }
.dsec h3.bad { color: #b5461f; }
.pros, .cons { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pros li, .cons li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.pros li::before { content: "+"; position: absolute; left: 4px; top: -1px; font-weight: 900; color: #2f7d32; }
.cons li::before { content: "−"; position: absolute; left: 4px; top: -1px; font-weight: 900; color: #b5461f; }
.rating { font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; gap: 6px; align-items: center; margin: 0 0 4px; }
.rating svg { width: 16px; height: 16px; color: var(--brand); }
.detail .kv.soft { background: transparent; border: 0; padding: 10px 0 0; }
.menu { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.menu button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.menu .zh { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.menu .nm { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.menu .nt { font-size: 13px; color: var(--ink-3); }
.addr-zh { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.addr-zh b { font-size: 18px; }
.addr-zh span { font-size: 17px; letter-spacing: .02em; }
.dsec .acts { margin: 10px 0 6px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: none; width: min(78vw, 320px); scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--soft); }
.gallery figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.gallery figcaption a { color: inherit; }
.bigshow { position: fixed; inset: 0; z-index: 1000; background: #fffdf8; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px 20px; text-align: center; }
.bigshow .x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.bigshow .line { font-size: 22px; font-weight: 700; color: #555; }
.bigshow .big { font-size: clamp(34px, 11vw, 64px); font-weight: 900; line-height: 1.2; word-break: break-all; }
.bigshow .sub { font-size: clamp(22px, 7vw, 36px); font-weight: 700; line-height: 1.35; word-break: break-all; }
.bigshow .note { font-size: 15px; color: #777; margin-top: 10px; }
.sh-head { display: flex; gap: 12px; align-items: flex-start; }
.sh-head > div { flex: 1; min-width: 0; }
.sh-th { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: var(--soft); }
.topbar .lang, .topbar .infobtn, .topbar .iconbtn { flex: none; }
.topbar .title { flex: 1 1 auto; min-width: 0; }
.topbar .title + .spacer { display: none; }
.krb { align-self: flex-start; font-size: 11px; font-weight: 800; color: #c2410c; background: color-mix(in srgb, #ea580c 12%, transparent); padding: 1px 7px; border-radius: 999px; margin-bottom: 2px; }
.chip.kr { color: #c2410c; border-color: color-mix(in srgb, #ea580c 40%, transparent); }
.chip.kr[aria-pressed="true"] { background: #c2410c; color: #fff; border-color: #c2410c; }
.chip small { font-weight: 600; opacity: .65; }
.prow .meta b.stars { color: #b7791f; letter-spacing: 0; }
.prow .meta b.price { color: var(--ink-2); }

/* v5 지도: 숫자 묶음 대신, 큰 핀과 겹치는 장소는 같은 색 작은 점으로 */
.mk.mini { width: 14px; height: 14px; }
.mk.mini .mk-in, .mk.mini .mk-lbl { display: none; }
.mk.mini::after { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mk.mini::before { content: ''; position: absolute; left: -8px; top: -1px; width: 30px; height: 30px; border-radius: 50%; }

/* v6 지도 길찾기 상자 */
.route2 { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--soft); }
.route2 .rt-head { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.route2 .rt-head svg { width: 17px; height: 17px; color: #1f6f5c; }
.route2 .rt-line { display: grid; grid-template-columns: 12px 34px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 40px; }
.route2 .rt-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.route2 .rt-dot.from { background: #1f6f5c; }
.route2 .rt-lb { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.route2 select { width: 100%; min-width: 0; font: 700 15px var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 9px 10px; appearance: auto; }
.route2 .rt-to { font-size: 15px; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route2 .rt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.route2 .rt-t { background: var(--paper); border-radius: 12px; padding: 9px 4px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.route2 .rt-t svg { width: 20px; height: 20px; color: var(--ink-2); }
.route2 .rt-t span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.route2 .rt-t b { font-size: 15.5px; color: var(--ink); }
.route2 .rt-t.off b { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.route2 .rt-note { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; }
.route2 .rt-note.big { font-size: 13.5px; color: var(--ink-2); }
.sheet { max-height: 62vh; overflow-y: auto; }
.mk.dim .mk-in, .mk.dim::after { opacity: .3; }
.mk-lbl.from { background: #1f6f5c; color: #fff; }
.sheet .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.route2 .rt-t { padding: 7px 4px 6px; }
.route2 .rt-air { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 9px 10px; border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.route2 .rt-air svg { width: 16px; height: 16px; flex: none; }
.route2 .rt-air svg:last-child { margin-left: auto; color: var(--ink-3); }
/* v7 바깥 지도 앱 길찾기 버튼 */
.btn.ext { color: #fff; border-color: transparent; }
.btn.ext.google { background: #1a73e8; }
.btn.ext.naver { background: #03a94d; }
.btn.ext.amap { background: #0f6fff; }
.route2 .btn.ext { display: flex; justify-content: center; width: 100%; margin-top: 10px; padding: 11px 12px; font-size: 15px; font-weight: 800; border-radius: 12px; }
.btn.ext svg { color: #fff; }
/* v8 확대하면 핀 아래 장소 이름 */
.mk-name { display: none; position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 800 12px/1.35 var(--sans); color: #1d1b17; padding: 0 3px;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.mk.named:not(.mini) .mk-name { display: block; }
/* v9 스크랩 */
.plist li { position: relative; }
.plist .scrap { position: absolute; z-index: 2; left: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #6b6559; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; padding: 0; }
.plist .scrap svg { width: 18px; height: 18px; }
.plist .scrap.on { color: #c98a00; }
.plist .scrap.on svg, .scrapbtn.on svg, .mk-saved svg, .scrapchip[aria-pressed="true"] svg { fill: currentColor; }
.plist li.saved .prow { box-shadow: inset 0 0 0 2px #e3b23c; }
.scrapbtn.on { background: #fff6dd; border-color: #e3b23c; color: #8a5d00; }
.scrapchip svg { width: 15px; height: 15px; color: #c98a00; margin-right: 2px; }
.scrapchip small { font-weight: 800; color: #8a5d00; }
.mk-saved { position: absolute; z-index: 3; right: -7px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #c98a00; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mk-saved svg { width: 12px; height: 12px; stroke-width: 2.4; }
.mk.mini .mk-saved { display: none; }
.map-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-2); }
.map-top .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.map-top .chips::-webkit-scrollbar { display: none; }
.map-top .chip { flex: none; }
.map-top { flex-wrap: wrap; }
.map-top .map-note { flex-basis: 100%; }
.plist .scrap { left: 77px; top: 15px; width: 30px; height: 30px; }
.plist .scrap svg { width: 16px; height: 16px; }
.plist .scrap { left: auto; right: 8px; top: 8px; box-shadow: none; background: transparent; }
.plist .prow .bd > b { padding-right: 30px; }
.routebtn svg { color: #1f6f5c; }

/* v10 목록 위쪽 줄이기(코덱스 검토 1·6) */
.cbanner.slim { height: 96px; }
.cbanner.slim .wrap { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 12px; }
.cbanner.slim h1 { font-size: 28px; }
.cbanner.slim .mini { margin: 0 0 4px; white-space: nowrap; flex: none; }
/* 긴 도시 이름(Ho Chi Minh City 등)은 날씨와 겹치지 않게 두 줄로 */
.cbanner.slim .wrap { gap: 10px; }
.cbanner.slim h1 { flex: 1; min-width: 0; line-height: 1.05; }
.lhead { margin: 12px 0 8px; }
.search.sm { margin: 8px 0 8px; }
.frow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 2px; margin: 0 -4px; padding-left: 4px; }
.frow::-webkit-scrollbar { display: none; }
.fsel { position: relative; flex: none; display: inline-flex; align-items: center; height: 38px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 13.5px var(--sans); }
.fsel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; height: 100%; padding: 0 30px 0 14px; max-width: 190px; text-overflow: ellipsis; cursor: pointer; }
.fsel > svg { position: absolute; right: 10px; width: 15px; height: 15px; pointer-events: none; color: var(--ink-3); }
.fsel.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fsel.on > svg { color: var(--paper); }
button.fsel.more { padding: 0 30px 0 14px; cursor: pointer; color: #1f6f5c; border-color: #b9d3cb; }
button.fsel.more[aria-expanded="true"] > svg { transform: rotate(180deg); }
.morepanel { margin-top: 8px; }
.morepanel summary { display: none; }
.morepanel details.more { margin: 0; }
.sortnote { margin: 6px 0 0; min-height: 0; }
.sortnote:empty { display: none; }
.plist { margin-top: 10px; }
.plist .grp { display: flex; align-items: center; gap: 6px; font: 800 14px var(--sans); color: var(--ink-2); padding: 8px 2px 2px; }
.plist .grp svg { width: 15px; height: 15px; color: #c98a00; fill: currentColor; }
.plist .grp small { color: var(--ink-3); font-weight: 700; }
.plist .scrap { right: 0; top: 0; width: 44px; height: 44px; }
.plist .prow .bd > b { padding-right: 26px; }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: #1d1b17; color: #fff; font: 700 14px var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast button { border: 0; background: none; color: #f2c75c; font: 800 14px var(--sans); padding: 0; cursor: pointer; white-space: nowrap; }
[data-subs] { margin-bottom: 0; }
[data-subs] button { white-space: nowrap; font-size: 13.5px; padding-left: 4px; padding-right: 4px; min-height: 38px; }
[data-subs] button small { margin-left: 2px; }

/* v11 상세 첫 화면(코덱스 검토 4) */
.dphoto.slim { height: 180px; aspect-ratio: auto; }
.dphoto.slim img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.facts { margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.facts > dl { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.facts > dl dt, .facts > dl dd { padding: 10px 14px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; }
.facts > dl dt { color: var(--ink-3); font-weight: 700; padding-right: 4px; white-space: nowrap; }
.facts > dl dd { font-weight: 700; color: var(--ink); }
.facts .kvmore summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 11px 14px; font: 700 13.5px var(--sans); color: #1f6f5c; cursor: pointer; }
.facts .kvmore summary::-webkit-details-marker { display: none; }
.facts .kvmore summary svg { width: 15px; height: 15px; transition: transform .15s; }
.facts .kvmore[open] summary svg { transform: rotate(180deg); }
.facts .kvmore .kv { margin: 0; padding: 0 14px 12px; }
.facts > dl:last-child dt:nth-last-of-type(1), .facts > dl:last-child dd:last-child { border-bottom: 0; }
.detail .lead { margin: 12px 0; }
.addrcard { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 16px; padding: 14px; border: 1px solid #b9d3cb; border-radius: 14px; background: color-mix(in srgb, var(--paper) 88%, #1f6f5c 12%); }
.addrcard .h { display: flex; align-items: center; gap: 6px; font: 800 13px var(--sans); color: #1f6f5c; }
.addrcard .h svg { width: 15px; height: 15px; }
.addrcard .nm { font-size: 22px; line-height: 1.25; }
.addrcard .ad { font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.addrcard .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dbar { position: fixed; z-index: 900; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.dbar .btn { flex: 1; justify-content: center; min-height: 46px; }
.dbar .btn[data-hotel] { flex: none; }
.detail { padding-bottom: 80px; }
@media (max-width: 420px) { .dbar .hide-sm { display: none; } }
@media (min-width: 720px) { .dbar { max-width: 640px; margin: 0 auto; border-radius: 14px 14px 0 0; } }
html[lang="en"] .detail .kv { grid-template-columns: 1fr; }
html[lang="en"] .detail .kv dt { margin-top: 8px; }
.toast span { white-space: nowrap; }

/* v12 지도 길찾기 모드(코덱스 검토 5) */
.sheet.routing h3 { margin-top: 2px; }
.sheet.routing .cat svg { width: 15px; height: 15px; }
.route2 .rt-lb2 { font: 800 13px var(--sans); color: var(--ink-3); margin-bottom: 6px; }
.route2 .rt-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.route2 .rt-opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--paper); font: 700 14px var(--sans); color: var(--ink); cursor: pointer; padding: 0 8px; }
.route2 .rt-opt svg { width: 17px; height: 17px; color: #1f6f5c; flex: none; }
.route2 .rt-opt.on { border-color: #1f6f5c; background: #e3f0ec; }
.route2 .rt-opt:disabled { opacity: .5; cursor: default; }
.route2 select.rt-sel { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.route2 select.rt-sel.on { border-color: #1f6f5c; color: var(--ink); font-weight: 800; }

/* v13 오프라인(코덱스 검토 3) */
.netstrip { position: sticky; top: 0; z-index: 1500; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #dcebe6; color: #16473b; font: 700 13.5px var(--sans); }
.netstrip svg { width: 17px; height: 17px; flex: none; }
.netstrip span { flex: 1; }
.netstrip button { border: 0; background: none; color: #16473b; font: 800 13.5px var(--sans); text-decoration: underline; cursor: pointer; padding: 0; }
.offcard { margin: 6px 0 18px; padding: 14px; border: 1px solid #b9d3cb; border-radius: 14px; background: color-mix(in srgb, var(--paper) 88%, #1f6f5c 12%); }
.offcard .t { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.offcard .t svg { width: 18px; height: 18px; color: #1f6f5c; }
.offcard p { margin: 6px 0 10px; font-size: 13.5px; color: var(--ink-2); }
.offcard .prog { margin-left: 10px; }
.map-offline { position: absolute; z-index: 600; left: 16px; right: 16px; top: 40%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink-2); font-size: 14px; }
.map-offline svg { width: 28px; height: 28px; color: #1f6f5c; }
.map-offline b { font-size: 16px; color: var(--ink); }

/* v14 첫 화면: 그림 띠 + 내 여행 + 지역별 가로 줄(넷플릭스식) */
.home2 { padding-top: 6px; }
.hband { position: relative; height: 140px; border-radius: 18px; overflow: hidden; background: #1f3b45; margin-top: 4px; }
.hband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hband .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,28,0) 35%, rgba(8,20,28,.55) 100%); }
.hband h1 { position: absolute; left: 18px; bottom: 12px; color: #fff; font-family: var(--serif); font-size: 30px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.home2 > .search { margin: 12px 0 4px; box-shadow: var(--shadow); }
.home2 h2 { font-family: var(--serif); font-size: 21px; font-weight: 800; }
.home2 h2 small { font-family: var(--sans); font-size: 14px; color: var(--ink-3); font-weight: 700; margin-left: 2px; }
.mytrip { margin-top: 18px; }
.mytrip h2 { margin-bottom: 8px; }
.mytrip .hint { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 13.5px; color: var(--ink-3); }
.mytrip .hint svg { width: 16px; height: 16px; color: #c98a00; flex: none; }
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.mt { display: flex; align-items: center; gap: 10px; width: 188px; padding: 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.mt img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.mt b { display: block; font-size: 15.5px; }
.mt small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.mt small svg { width: 13px; height: 13px; }
.mt small.sv svg, .mt small.st svg { color: #c98a00; fill: currentColor; }
.shelf { margin-top: 20px; }
.sh-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.sh-h .more { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; font: 700 13.5px var(--sans); color: #1f6f5c; cursor: pointer; padding: 4px 0; }
.sh-h .more svg { width: 15px; height: 15px; }
.pc { position: relative; width: 138px; aspect-ratio: 3 / 4.2; border-radius: 14px; overflow: hidden; background: #1f3b45; box-shadow: var(--shadow); }
.pc > a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.pc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 50%); }
.pc .tx { position: absolute; left: 10px; right: 10px; bottom: 9px; }
.pc .tx b { display: block; font-size: 18px; line-height: 1.15; letter-spacing: -0.02em; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pc .tx small { font-size: 11.5px; opacity: .9; }
.pc .star { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; padding: 0; }
.pc .star svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.pc .star.on { color: #f2b632; }
.pc .star.on svg { fill: currentColor; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pgrid .pc { width: auto; aspect-ratio: 4 / 3.4; }
@media (min-width: 720px) { .pc { width: 168px; } .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail { scroll-padding-left: 16px; scroll-padding-right: 16px; }

/* v15 코덱스 점검 2차 반영 */
/* 길찾기: 지어낸 '몇 분' 대신 거리·방향 + 확인된 공항 교통편 */
.route2 .rt-dist { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.route2 .rt-dist > svg { width: 22px; height: 22px; color: #1f6f5c; flex: none; }
.route2 .rt-dist b { display: block; font-size: 17px; }
.route2 .rt-dist span { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.route2 .rt-ap { margin-top: 10px; }
.route2 .rt-ap ul { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.route2 .rt-ap li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.route2 .rt-ap li > svg { width: 18px; height: 18px; color: #1f6f5c; flex: none; margin-top: 2px; }
.route2 .rt-ap li b { display: block; font-size: 14px; }
.route2 .rt-ap li small { display: block; font-size: 12.5px; color: var(--ink-3); }
/* 목록 필터 줄: 좁은 화면에서 정렬이 밖으로 밀리지 않게 두 줄로 */
.frow { flex-wrap: wrap; overflow: visible; }
.frow .fsel { flex: 1 1 auto; min-width: 0; }
.frow .fsel select { width: 100%; max-width: none; }
.frow, .frow > span[data-catwrap] { margin: 0; padding: 0; }
.frow > span[data-catwrap] { display: contents; }
/* 거른 결과 줄: '숙소 1곳 · 전체 10곳' + 조건 + 초기화 */
.fsum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.fsum b { color: var(--ink); }
.fsum .reset { border: 0; background: none; padding: 6px 2px; font: 700 13.5px var(--sans); color: #1f6f5c; text-decoration: underline; cursor: pointer; min-height: 32px; }
.plist .empty { padding: 22px 4px; color: var(--ink-3); }
.plist .empty .btn { margin-top: 10px; }
/* 스크랩 바로가기 */
.lhead .svlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: #8a6200; text-decoration: none; margin-right: auto; margin-left: 10px; }
.lhead .svlink svg { width: 15px; height: 15px; fill: currentColor; }
.svgrp { margin: 16px 0 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.svgrp small { color: var(--ink-3); font-weight: 700; }
/* 공식 예약 버튼 */
.bookbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 4px; min-height: 48px; border-radius: 12px; background: #1f6f5c; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; }
.bookbtn svg { width: 18px; height: 18px; }
.bookbtn small { font-weight: 600; opacity: .85; font-size: 12.5px; }
.linkish { color: #1f6f5c; text-decoration: underline; word-break: break-all; }

/* v16 목록 위쪽 간소화(검색 → 지역 + '필터' 버튼, 종류·정렬은 접기) · PC 넓게 */
.cbanner.slim { height: 76px; }
.cbanner.slim h1 { font-size: 24px; }
.cbanner.slim .wrap { padding-bottom: 10px; }
.lhead { margin: 10px 0 6px; }
.lhead h2 { font-size: 20px; }
.search.sm { margin: 6px 0 8px; }
.fwrap { display: flex; flex-direction: column; gap: 8px; }
.frow { display: flex; gap: 8px; flex-wrap: nowrap; margin: 0; padding: 0; overflow: visible; }
.frow .fsel { flex: 1 1 auto; }
.fbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 13.5px var(--sans); cursor: pointer; }
.fbtn svg { width: 17px; height: 17px; }
.fbtn[aria-expanded="true"] { border-color: var(--ink); }
.fbtn.on { border-color: #1f6f5c; color: #1f6f5c; }
.fbtn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #1f6f5c; color: #fff; font-size: 12px; }
.fpanel { display: flex; flex-wrap: wrap; gap: 8px; }
.fpanel[hidden] { display: none; }
.fpanel > span[data-catwrap] { display: contents; }
.fpanel .fsel { flex: 1 1 150px; min-width: 0; }
.fsel .fl { flex: none; padding-left: 14px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.fsel .fl + select { padding-left: 6px; width: 100%; }
.fsel.on .fl { color: var(--paper); opacity: .8; }
@media (min-width: 900px) {
  .wrap.lw { max-width: 1120px; }
  .fwrap { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .frow { flex: 0 1 260px; }
  .fbtn { display: none; }
  .fpanel, .fpanel[hidden] { display: flex; flex: 1 1 auto; }
  .fpanel .fsel { flex: 0 1 220px; }
  .lw .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw .plist .grp, .lw .plist .empty { grid-column: 1 / -1; }
  .cbanner.slim { height: 96px; }
  .cbanner.slim h1 { font-size: 28px; }
}

/* v17 홈: 내 여행(가고 싶은·스크랩) / 최근 본 도시 분리 */
.mtchips { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.mytrip.recent { margin-top: 14px; }
.mytrip.recent h2 { font-size: 17px; }
.mytrip.recent .mt { min-width: 0; }
.mytrip.recent .mt b { font-size: 14.5px; }
@media (min-width: 900px) { .cbanner.slim .wrap { max-width: 1120px; } }

/* v18 상세: 첫 화면 요약(추천 이유·비용·시간·평가 + 근거), 꼭 보일 안내, 실제 사진 보기, 후기 접기 */
.dphoto { position: relative; }
.photobtn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(20, 20, 18, .78); color: #fff; font: 700 14px var(--sans); cursor: pointer; backdrop-filter: blur(4px); }
.photobtn svg { width: 18px; height: 18px; }
.photobtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.warns { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.warns li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: #fbe7df; color: #9a3412; font-weight: 800; font-size: 14px; }
.warns svg { width: 16px; height: 16px; flex: none; }
.glance { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.glance > dl { margin: 0; }
.glance > dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.glance dt { font-size: 13px; font-weight: 700; color: var(--ink-3); padding-top: 1px; }
.glance dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.45; }
.glance dd small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.glance dd small.warnish { color: #8a5a00; }
.glance .g-why dd { font-weight: 600; }
.glance .kvmore { border-top: 0; }
.evw { display: block; margin-top: 3px; }
.ev { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ev svg { width: 13px; height: 13px; }
.ev a { color: #1f6f5c; text-decoration: underline; }
.ev.none { font-style: normal; opacity: .85; }
details.reviews > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; }
details.reviews > summary::-webkit-details-marker { display: none; }
details.reviews > summary h2 { margin: 0; font-size: 18px; }
details.reviews > summary small { color: var(--ink-3); font-weight: 700; }
details.reviews > summary svg { width: 18px; height: 18px; margin-left: auto; transition: transform .2s; }
details.reviews[open] > summary svg { transform: rotate(180deg); }
.gallery .gthumb { border: 0; padding: 0; background: var(--soft); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.gallery .gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery.ref figure { opacity: .92; }
.subhead.small { font-size: 14px; margin: 14px 0 6px; color: var(--ink-3); }
/* 사진 보기 */
.pviewer { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 10, 9, .96); color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pv-top { display: flex; align-items: center; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) 10px 6px 16px; }
.pv-n { font-weight: 700; font-size: 14px; opacity: .85; }
.pv-x { color: #fff; width: 48px; height: 48px; }
.pv-x svg { width: 26px; height: 26px; }
.pv-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.pv-err { color: #eee; text-align: center; padding: 24px; }
.pv-err a { color: #9fe0cd; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pv-nav svg { width: 26px; height: 26px; }
.pv-nav.prev { left: 8px; } .pv-nav.next { right: 8px; }
.pv-nav:disabled { opacity: .25; cursor: default; }
.pv-cap { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); font-size: 14px; max-height: 30vh; overflow: auto; }
.pv-cap p { margin: 0 0 4px; }
.pv-cap .cr { font-size: 12.5px; opacity: .8; }
.pv-cap a { color: #9fe0cd; }
@media (max-width: 560px) { .pv-nav { display: none; } }
.gallery .gthumb { flex: none; width: min(42vw, 220px); scroll-snap-align: start; }

/* v19 내려받기 상태 */
.offcard.saving { border-color: #b9d3cb; }
.offcard.partial { border-color: #e9c46a; background: color-mix(in srgb, #e9c46a 10%, var(--paper)); }
.offcard.failed { border-color: #e4a08a; background: color-mix(in srgb, #e4a08a 12%, var(--paper)); }
.offcard.partial .t svg, .offcard.failed .t svg { color: #b4531a; }
.obar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin: 8px 0 4px; }
.obar span { display: block; height: 100%; background: #1f6f5c; transition: width .3s; }
/* hidden 속성이 display 지정보다 이기게 */
.fbtn b[hidden], .fsum[hidden], .fpanel[hidden] { display: none !important; }
@media (min-width: 900px) { .fpanel[hidden] { display: flex !important; } }
.pviewer { background: #0d0d0c; }
.glance .kvmore summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 11px 14px; font: 700 13.5px var(--sans); color: #1f6f5c; cursor: pointer; min-height: 44px; }
.glance .kvmore summary::-webkit-details-marker { display: none; }
.glance .kvmore summary svg { width: 15px; height: 15px; transition: transform .15s; }
.glance .kvmore[open] summary svg { transform: rotate(180deg); }
.glance .kvmore .kv { margin: 0; padding: 0 14px 12px; }
/* 목록 그림 위 '실제 사진 N' 표시 */
.prow .th { position: relative; }
.camb { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(20,20,18,.72); color: #fff; font: 700 11.5px var(--sans); }
.camb svg { width: 13px; height: 13px; }
/* 서버가 먼저 보낸 내용(앱이 뜨기 전 잠깐) */
.ssr { padding: 24px 16px; } .ssr h1 { font-size: 24px; margin: 8px 0; } .ssr-list { padding-left: 18px; line-height: 1.7; }

/* v20 '꼭 먹어 볼 음식'·'어느 동네에 묵을까' 버튼은 필터 밖에 늘 보이게 (폰: 둘째 줄 전체 폭) */
.frow { flex-wrap: wrap; }
.frow .fsel.more { flex: 1 1 100%; justify-content: space-between; }
@media (min-width: 900px) {
  .frow { flex: 0 1 auto; flex-wrap: nowrap; }
  .frow .fsel.more { flex: 0 0 auto; }
}

/* 한국 가이드: 현지 시각은 국내라 보여 주지 않는다 */
[data-clock] { display: none !important; }

/* 홈: 권역별로 한 줄에 3개씩 */
.pgrid.kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pgrid.kgrid .pc { aspect-ratio: 3 / 3.6; border-radius: 12px; }
.kgrid .pc .tx { left: 8px; right: 8px; bottom: 7px; }
.kgrid .pc .tx b { font-size: 15px; }
.kgrid .pc .tx small { font-size: 10.5px; }
.kgrid .pc .star { top: 1px; right: 1px; width: 34px; height: 34px; }
.kgrid .pc .star svg { width: 18px; height: 18px; }
@media (min-width: 720px) { .pgrid.kgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .pgrid.kgrid .pc { width: auto; } }

/* ───────── 플랜(추천 일정·달력·기념품) */
.plancard { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.plancard .pc-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.plancard .pc-ic svg { width: 20px; height: 20px; }
.plancard .pc-t { flex: 1; display: grid; gap: 1px; }
.plancard .pc-t b { font-size: 15px; }
.plancard .pc-t small { color: var(--ink-3); font-size: 12.5px; }
.plancard > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.plan .bh { margin-top: 26px; }
.pl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; box-shadow: var(--shadow); }
.pl-card h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; }
.pl-pitch { margin: 0 0 10px; color: var(--ink-2); }
.pl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pl-meta span { background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pl-note { background: var(--soft); border-radius: 10px; padding: 9px 11px; font-size: 14px; margin: 8px 0; color: var(--ink-2); }
.pl-note b { color: var(--brand); margin-right: 6px; }
.pl-note.rain b { color: var(--rain); }
.pl-note.tip b { color: var(--accent); }
.pl-day { margin: 16px 0 4px; font-size: 15px; color: var(--brand); }
.pl-steps { list-style: none; margin: 8px 0; padding: 0; }
.pl-steps li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px dashed var(--line-2); }
.pl-steps li:first-child { border-top: 0; }
.pl-time { min-width: 46px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.pl-body { flex: 1; min-width: 0; }
.pl-body p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; }
.pl-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pl-name small { color: var(--ink-3); font-size: 12.5px; }
.pl-link { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); text-decoration: none; }
.pl-link svg { width: 14px; height: 14px; color: var(--ink-3); }
.pl-link b { border-bottom: 1.5px solid var(--line-2); }
.pl-move { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.pl-move span { display: inline-block; background: var(--soft); border-radius: 6px; padding: 1px 7px; margin-right: 5px; color: var(--ink-2); font-weight: 700; }
.pl-month { margin: 10px 0; padding: 4px 14px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.pl-month.now { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pl-month h4 { margin: 10px 0 2px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pl-month h4 small { font-size: 11.5px; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 1px 8px; }
.pl-ev { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line-2); }
.pl-ev:first-of-type { border-top: 0; }
.pl-ev p, .pl-item p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.55; }
.pl-kind { flex: none; min-width: 52px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.pl-sub { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.pl-shop { display: grid; gap: 10px; }
.pl-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pl-price { margin-left: 8px; background: var(--soft); border-radius: 6px; padding: 1px 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pl-foot { margin-top: 24px; color: var(--ink-3); }

/* 일정 지도: 번호 핀 */
.plpin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--c, #e0592e); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: grid; place-items: center; padding: 0; cursor: pointer; }
.plpin b { font-size: 14px; font-weight: 800; line-height: 1; }
.plnum { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 12px; }
.chip.plan-title { pointer-events: none; font-weight: 800; }
.pl-mapbtn { margin: 10px 0 2px; }

/* 상세: 가는 길은 접지 않고 항상 보이게, 주소 카드가 바로 아래 */
.glance .gothere { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.glance .gothere h3 { margin: 0 0 4px; font-size: 13.5px; font-weight: 800; color: var(--brand); }
.glance .gothere p { margin: 0; font-size: 15px; line-height: 1.55; }
.glance + .addrcard { margin-top: 10px; }

/* 플랜 화면: 위쪽 메뉴는 고정, 아래 내용만 바뀐다 */
.plantabs .seg > * { font-size: 13px; padding: 9px 2px; }
.plantabs { padding-bottom: 0; }

.infobtn span { white-space: nowrap; }
@media (max-width: 400px) { .topbar .infobtn { padding: 0 9px; font-size: 12.5px; gap: 4px; } .topbar .infobtn svg { width: 14px; height: 14px; } .topbar .title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* 동네 설명을 누르면 그 동네 숙소만 */
button.row-s { text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
button.row-s:active { background: var(--soft); }
.row-s .go { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }
.row-s .go svg { width: 14px; height: 14px; }
[data-morepanel] > details > summary { display: none; }

/* ───────── 정보 신고 ───────── */
.rp-wrap { margin: 28px 0 8px; text-align: center; }
.rp-link { border: 0; background: none; color: var(--ink-3); font: 600 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; padding: 8px 12px; cursor: pointer; }
.rp-ov { position: fixed; inset: 0; z-index: 1900; background: rgba(20,18,14,.5); display: flex; align-items: flex-end; justify-content: center; }
.rp-box { width: 100%; max-width: 520px; background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
@media (min-width: 640px) { .rp-ov { align-items: center; } .rp-box { border-radius: 20px; } }
.rp-h { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.rp-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 6px; }
.rp-sub { margin: 4px 0 12px; color: var(--ink-2); font-size: 14px; }
.rp-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rp-kinds label span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.rp-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.rp-kinds input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.rp-kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-box textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); resize: vertical; }
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rp-note { margin: 8px 0 12px; font-size: 12.5px; color: var(--ink-3); }
.rp-act { display: flex; gap: 8px; justify-content: flex-end; }

/* ───────── 공지 띠 ───────── */
.noticebar { position: sticky; top: 0; z-index: 1450; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff1c9; color: #4a3600; font: 700 13.5px/1.4 var(--sans); }
.noticebar span { flex: 1; }
.noticebar button { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .noticebar { background: #4a3a10; color: #ffe9a8; } }
:root[data-theme="dark"] .noticebar { background: #4a3a10; color: #ffe9a8; }
