/* =========================================================
   漫游 WANDER — travel planner
   ========================================================= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --paper: #F7F3EB;
  --paper-2: #EFE8DA;
  --card: #FFFDF8;
  --ink: #1D1B18;
  --ink-2: #3B3730;
  --muted: #8B8375;
  --line: rgba(29, 27, 24, .10);
  --line-2: rgba(29, 27, 24, .16);
  --accent: #C4572F;
  --green: #4E6B51;
  --gold: #B98A2E;
  --font-display: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", ui-serif, Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 10px 30px -18px rgba(45, 38, 27, .5);
}
html { background: #E8E1D3; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-ui);
  background: #E8E1D3; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 15px; line-height: 1.5;
}
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app {
  position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: 0 20px calc(118px + env(safe-area-inset-bottom));
  background: var(--paper);
  background-image:
    radial-gradient(120% 60% at 100% 0%, rgba(196, 87, 47, .05), transparent 60%),
    radial-gradient(100% 50% at 0% 30%, rgba(78, 107, 81, .05), transparent 60%);
  overflow-x: hidden;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 34px; box-shadow: 0 30px 80px -40px rgba(40, 33, 22, .55); }
  .tabbar { border-radius: 26px; }
}

/* ---------- views ---------- */
.view { display: none; }
.view.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.kicker { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.greet { display: flex; align-items: flex-end; justify-content: space-between; padding-top: calc(26px + env(safe-area-inset-top)); }
.greet h1 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 8px; line-height: 1.15; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #F4ECDC; font-family: var(--font-display); font-size: 18px;
  box-shadow: 0 0 0 4px rgba(29, 27, 24, .06); flex: none;
}
.avatar.big { width: 64px; height: 64px; font-size: 24px; }

/* ---------- city strip ---------- */
.city-strip { display: flex; gap: 8px; overflow-x: auto; margin: 22px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
.city-strip::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.city-pill {
  flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2); background: transparent; transition: .22s;
  display: flex; align-items: center; gap: 6px;
}
.city-pill span { font-size: 9px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.city-pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.city-pill.is-active span { color: rgba(247, 243, 235, .55); }

/* ---------- hero ---------- */
.hero { position: relative; height: 292px; margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #C9C0AE; }
.hero img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 14s ease-out both; }
@keyframes slowZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, .18) 0%, rgba(12, 10, 8, 0) 34%, rgba(12, 10, 8, .68) 100%);
}
.hero-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.hero-badge, .hero-season {
  font-size: 10px; letter-spacing: .12em; color: #fff; padding: 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .22);
}
.hero-body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; }
.hero-en { font-size: 9.5px; letter-spacing: .34em; opacity: .72; margin-bottom: 6px; }
.hero-name { font-family: var(--font-display); font-size: 42px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 10px; }
.hero-name em { font-family: var(--font-ui); font-size: 12px; font-style: normal; letter-spacing: .1em; opacity: .8; font-weight: 400; }
.hero-tag { font-size: 13px; opacity: .9; margin-top: 7px; letter-spacing: .04em; }
.hero-meta { display: flex; gap: 14px; margin-top: 13px; font-size: 10.5px; color: rgba(255, 255, 255, .82); }
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-meta .ic { width: 13px; height: 13px; opacity: .8; }
.hero-cta {
  position: absolute; right: 16px; bottom: 18px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #FBF6EA; color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.hero-cta:active { transform: scale(.94); }
.hero-cta .ic { width: 20px; height: 20px; }

/* ---------- section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.count { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; padding-bottom: 3px; }
.text-btn { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.text-btn .ic { width: 13px; height: 13px; }
.text-btn.danger { color: #A1452F; }

/* ---------- horizontal route cards ---------- */
.hscroll { display: flex; gap: 13px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.route-card {
  flex: 0 0 258px; scroll-snap-align: start; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 26px -22px rgba(45, 38, 27, .6);
  transition: transform .2s;
}
.route-card:active { transform: scale(.985); }
.route-card .rc-img { position: relative; height: 142px; overflow: hidden; background: var(--paper-2); }
.route-card .rc-img img { width: 100%; height: 100%; object-fit: cover; }
.route-card .rc-days { position: absolute; top: 10px; left: 10px; font-size: 9.5px; letter-spacing: .1em; background: rgba(255, 253, 248, .9); padding: 5px 9px; border-radius: 999px; color: var(--ink); }
.rc-body { padding: 13px 15px 15px; }
.rc-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.rc-body p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-top: 5px; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; }
.rc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 10px; color: var(--ink-2); background: rgba(29, 27, 24, .05); padding: 4px 8px; border-radius: 6px; }
.rc-arrow { width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.rc-arrow .ic { width: 13px; height: 13px; }

/* ---------- poi cards ---------- */
.poi-list { display: flex; flex-direction: column; gap: 11px; }
.poi-card {
  display: grid; grid-template-columns: 98px minmax(0, 1fr) 34px; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px;
  transition: transform .18s, border-color .18s; text-align: left; width: 100%;
}
.poi-card:active { transform: scale(.99); }
.poi-card .pc-img { width: 98px; height: 98px; border-radius: 14px; object-fit: cover; background: var(--paper-2); }
.pc-main { min-width: 0; }
.pc-top { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }
.type-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.pc-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 10.5px; color: var(--muted); }
.pc-meta .star { color: var(--gold); display: flex; align-items: center; gap: 2px; }
.pc-meta .star .ic { width: 10px; height: 10px; fill: currentColor; stroke: none; }
.pc-price { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pc-tags { display: flex; gap: 5px; margin-top: 7px; overflow: hidden; }
.pc-tags span { font-size: 9.5px; color: var(--muted); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.pc-add {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ink-2); transition: .2s; align-self: center;
}
.pc-add .ic { width: 15px; height: 15px; }
.pc-add.is-in { background: var(--green); border-color: var(--green); color: #fff; }
.pc-add.is-fav { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- note ---------- */
.note-card { display: flex; gap: 10px; align-items: flex-start; background: var(--paper-2); border-radius: 16px; padding: 14px 15px; margin-top: 24px; }
.note-card .ic { width: 15px; height: 15px; color: var(--accent); margin-top: 2px; }
.note-card p { font-size: 11px; color: #6F6657; line-height: 1.7; }
.note-card b { color: var(--ink-2); }

/* ---------- explore ---------- */
.page-head { padding-top: calc(30px + env(safe-area-inset-top)); }
.page-head h1 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 7px; display: flex; align-items: center; gap: 9px; }
.page-head .sub { margin-top: 6px; }
.searchbar {
  display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line);
  border-radius: 15px; padding: 12px 13px; margin-top: 20px; box-shadow: 0 4px 16px -14px rgba(45, 38, 27, .5);
}
.searchbar .ic { color: var(--muted); width: 17px; height: 17px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input::placeholder { color: #A9A093; }
.clear-btn { display: none; color: var(--muted); padding: 2px; }
.clear-btn.show { display: block; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.chip { flex: none; font-size: 12px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent; transition: .2s; }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.result-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin: 16px 0 10px; }
.empty { text-align: center; padding: 46px 20px; }
.empty p { font-family: var(--font-display); font-size: 19px; }
.empty span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ---------- trip ---------- */
.city-tag { font-family: var(--font-ui); font-size: 10px; letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 9px; border-radius: 6px; font-weight: 500; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: none; min-width: 70px; text-align: left; padding: 8px 13px 9px; border-radius: 13px; border: 1px solid var(--line-2); background: transparent; }
.day-tab b { display: block; font-size: 12.5px; font-weight: 600; }
.day-tab span { font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }
.day-tab.is-active { background: var(--card); border-color: var(--ink); box-shadow: 0 4px 14px -12px rgba(0, 0, 0, .6); }
.trip-summary {
  background: #23201C; color: #F4ECDC; border-radius: 22px; padding: 18px 18px 15px; margin-top: 12px;
  background-image: radial-gradient(120% 120% at 100% 0%, rgba(196, 87, 47, .3), transparent 55%);
  box-shadow: 0 16px 36px -26px rgba(30, 25, 18, .9); position: relative; overflow: hidden;
}
.trip-summary::after {
  content: ""; position: absolute; right: -20px; bottom: -40px; width: 150px; height: 150px;
  border: 1px solid rgba(247, 243, 235, .1); border-radius: 50%;
}
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.ts-num { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ts-num small { font-size: 11px; font-family: var(--font-ui); opacity: .55; margin-left: 2px; letter-spacing: 0; }
.ts-label { font-size: 9px; letter-spacing: .16em; opacity: .5; margin-top: 6px; text-transform: uppercase; }
.ts-foot { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(247, 243, 235, .12); font-size: 10.5px; opacity: .6; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.trip-actions { display: flex; gap: 8px; margin: 13px 0 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 15px; border-radius: 13px; font-size: 12.5px; font-weight: 500; border: 1px solid transparent; transition: transform .18s, opacity .18s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 15px; height: 15px; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.ghost { background: var(--card); border-color: var(--line-2); color: var(--ink-2); }
.btn.full { width: 100%; margin-top: 12px; }
.btn.icon-only { width: 42px; padding: 0; flex: none; }
.btn.tiny { height: 30px; padding: 0 11px; font-size: 11px; border-radius: 9px; }
.btn.danger-outline { border-color: rgba(161, 69, 47, .35); color: #A1452F; background: transparent; }

.timeline { margin-top: 16px; }
.tl-item { display: grid; grid-template-columns: 42px 22px minmax(0, 1fr); column-gap: 8px; }
.tl-clock { padding-top: 12px; text-align: right; }
.tl-clock b { display: block; font-size: 11.5px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.02em; }
.tl-clock span { display: block; font-size: 8.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item:first-child .tl-rail::before { top: 18px; }
.tl-item:last-child .tl-rail::before { bottom: calc(100% - 18px); }
.tl-dot { position: relative; z-index: 1; margin-top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); font-size: 9.5px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tl-item.is-hotel .tl-dot { border-color: var(--gold); color: var(--gold); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 8px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; margin-bottom: 3px; }
.tl-card img { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; }
.tl-info { min-width: 0; padding-top: 2px; }
.tl-info h4 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.tl-info h4 .type-dot { width: 4px; height: 4px; }
.tl-info p { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.tl-btns { position: absolute; right: 8px; }
.tl-card { position: relative; }
.tl-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.icon-mini { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); background: transparent; }
.icon-mini:active { background: var(--paper-2); }
.icon-mini .ic { width: 13px; height: 13px; }
.tl-leg { grid-column: 2 / 4; display: flex; align-items: center; gap: 7px; padding: 5px 2px 9px 0; font-size: 9.5px; color: var(--muted); letter-spacing: .02em; }
.tl-leg::before { content: ""; width: 13px; height: 1px; background: var(--line-2); }
.tl-leg .walk { color: var(--green); }
.tl-leg .ride { color: var(--accent); }
.trip-empty { padding: 44px 20px 30px; }
.trip-empty .empty-ring { width: 66px; height: 66px; border: 1px dashed var(--line-2); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.trip-empty .empty-ring .ic { width: 24px; height: 24px; }
.trip-empty .btn { margin-top: 16px; }
.trip-empty p { font-family: var(--font-display); font-size: 19px; }
.day-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; }

.budget-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 17px 17px 15px; margin-top: 22px; }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; }
.bc-head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.bc-total { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bc-total small { font-family: var(--font-ui); font-size: 9px; color: var(--muted); margin-left: 2px; }
.bc-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--paper-2); margin: 14px 0 12px; gap: 2px; }
.bc-bar i { display: block; height: 100%; border-radius: 99px; }
.bc-rows { display: grid; gap: 7px; }
.bc-row { display: flex; align-items: center; font-size: 10.5px; color: var(--muted); }
.bc-row .type-dot { margin-right: 7px; }
.bc-row b { margin-left: auto; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.bc-note { font-size: 9.5px; color: var(--muted); margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- map ---------- */
.map-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: #EFE9DC; box-shadow: var(--shadow); margin-top: 6px;
}
#cityMap { display: block; width: 100%; height: auto; }
.m-water { fill: #DCE4DD; }
.m-park { fill: #E4E7D8; }
.m-road { stroke: #E2DACB; stroke-width: 2; fill: none; }
.m-road.thin { stroke-width: 1; opacity: .8; }
.m-wall { fill: none; stroke: #D6CBB8; stroke-width: 6; stroke-linejoin: round; }
.m-grid { stroke: #E6DFD1; stroke-width: 1; }
.m-label { font-family: var(--font-ui); font-size: 8px; fill: #A79D8C; letter-spacing: .18em; }
.m-island { fill: #E7E4D5; }
.pin { cursor: pointer; }
.pin .pin-ring { fill: rgba(255, 253, 248, .9); }
.pin text { font-family: var(--font-ui); font-size: 9px; font-weight: 600; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin .pin-body { transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.pin.is-dim { opacity: .3; }
.pin.is-active .pin-body { transform: scale(1.2); }
.route-line { fill: none; stroke: #C4572F; stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; opacity: .8; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.map-compass {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 253, 248, .82); backdrop-filter: blur(8px); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 8px; letter-spacing: .1em; color: var(--ink-2);
}
.map-compass span { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 7px solid var(--accent); margin-top: 1px; }
.map-legend {
  position: absolute; left: 12px; bottom: 12px; background: rgba(255, 253, 248, .86); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 11px; padding: 7px 9px; display: grid; gap: 4px;
}
.map-legend span { display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: var(--ink-2); }
.map-legend i { width: 6px; height: 6px; border-radius: 50%; }
.map-card {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 11px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 9px; margin-top: 13px;
  min-height: 84px; box-shadow: 0 8px 22px -20px rgba(45, 38, 27, .7);
}
.map-card img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; }
.map-card h4 { font-size: 14px; font-weight: 600; }
.map-card p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.map-card .mc-actions { display: flex; flex-direction: column; gap: 5px; }
.mc-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.mc-btn .ic { width: 13px; height: 13px; }
.map-hint { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.map-hint .ic { width: 15px; height: 15px; }
.mini-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-poi { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 7px; text-align: left; min-width: 0; }
.mini-poi img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.mini-poi b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-poi span { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 15px; padding-top: calc(34px + env(safe-area-inset-top)); }
.profile-head h1 { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin-top: 3px; letter-spacing: -.02em; }
.profile-head .sub { margin-top: 3px; font-size: 11.5px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 9px; color: var(--muted); letter-spacing: .12em; margin-top: 6px; text-transform: uppercase; }
.progress-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-top: 12px; display: flex; align-items: center; gap: 16px; }
.ring { width: 74px; height: 74px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--paper-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.progress-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.progress-card p { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.progress-card b { color: var(--ink); font-weight: 600; }
.checkin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkin { position: relative; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--paper-2); text-align: left; }
.checkin img { width: 100%; height: 100%; object-fit: cover; }
.checkin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .62)); }
.checkin b { position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 1; color: #fff; font-size: 9.5px; font-weight: 500; line-height: 1.3; }
.checkin .ck { position: absolute; top: 6px; right: 6px; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: rgba(255, 253, 248, .9); display: grid; place-items: center; }
.checkin .ck .ic { width: 9px; height: 9px; color: var(--green); stroke-width: 2.4; }
.empty.small { padding: 26px 16px 10px; }
.settings-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 4px 16px; margin-top: 24px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: block; font-size: 13px; font-weight: 600; }
.setting-row span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.setting-row > div:first-child { flex: 1; min-width: 0; }
.seg { display: flex; background: var(--paper-2); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.seg button { font-size: 10px; padding: 5px 9px; border-radius: 7px; color: var(--muted); }
.seg button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .07); font-weight: 600; }
input[type="range"] { -webkit-appearance: none; width: 96px; height: 3px; background: var(--line-2); border-radius: 9px; outline: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.colophon { text-align: center; font-size: 9px; color: #A79D8D; line-height: 1.9; letter-spacing: .04em; margin-top: 26px; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 28px));
  height: 62px; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 248, .9); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(29, 27, 24, .1); border-radius: 24px;
  box-shadow: 0 12px 36px -16px rgba(40, 32, 20, .45);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom) * .2);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #9C9384; position: relative; border-radius: 17px; transition: color .2s; }
.tab .ic { width: 19px; height: 19px; stroke-width: 1.6; }
.tab span { font-size: 8.5px; letter-spacing: .06em; }
.tab.is-active { color: var(--ink); }
.tab.is-active .ic { stroke-width: 1.9; }
.tab .dot { position: absolute; top: 7px; right: calc(50% - 13px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: none; }
.tab .dot.show { display: block; }

/* ---------- sheets ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(24, 20, 15, .46);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 480px; background: var(--paper); border-radius: 28px 28px 0 0;
  max-height: 93dvh; position: relative; overflow: hidden;
  box-shadow: 0 -20px 60px rgba(20, 16, 10, .3);
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(24, 22, 18, .42); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center;
}
.sheet-close .ic { width: 15px; height: 15px; }
.detail-sheet { height: 93dvh; }
.detail-scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.detail-hero { position: relative; height: 286px; background: var(--paper-2); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 12, 9, .25), transparent 32%, rgba(15, 12, 9, .1)); }
.detail-hero .hero-badges { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.detail-hero .pill { font-size: 9.5px; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); padding: 5px 9px; border-radius: 99px; letter-spacing: .06em; }
.detail-body { padding: 20px 20px 0; }
.dt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dt-name { font-family: var(--font-display); font-size: 29px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.dt-en { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.dt-rating { text-align: right; flex: none; }
.dt-rating b { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--accent); display: block; line-height: 1; }
.dt-rating span { font-size: 8.5px; color: var(--muted); letter-spacing: .06em; }
.dt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.dt-tags span { font-size: 10px; color: var(--ink-2); background: var(--paper-2); padding: 5px 9px; border-radius: 7px; }
.dt-desc { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); margin-top: 16px; }
.dt-info { margin-top: 18px; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 20px 58px 1fr; gap: 8px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { width: 15px; height: 15px; color: var(--muted); margin-top: 2px; }
.info-row .k { font-size: 10.5px; color: var(--muted); }
.info-row .v { font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
.dt-tip { display: flex; gap: 10px; background: rgba(196, 87, 47, .06); border-left: 2px solid var(--accent); border-radius: 4px 12px 12px 4px; padding: 12px 13px; margin-top: 16px; }
.dt-tip .ic { width: 14px; height: 14px; color: var(--accent); margin-top: 2px; flex: none; }
.dt-tip p { font-size: 11px; line-height: 1.75; color: #6B4A3B; }
.dt-near { margin-top: 22px; }
.dt-near h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 9px; }
.near-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.near-item { flex: 0 0 92px; text-align: left; }
.near-item img { width: 92px; height: 66px; border-radius: 10px; object-fit: cover; }
.near-item b { display: block; font-size: 10px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-item span { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.detail-actions {
  position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 243, 235, 0), var(--paper) 26%);
}
.detail-actions .btn { flex: 1; }
.detail-actions .btn.icon-only { flex: none; width: 46px; height: 46px; }
.detail-actions .btn.dark { height: 46px; }
.detail-actions .btn.is-fav { background: rgba(196, 87, 47, .1); border-color: rgba(196, 87, 47, .35); color: var(--accent); }

.mini-sheet { padding: 8px 20px calc(26px + env(safe-area-inset-bottom)); }
.handle { width: 38px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 8px auto 20px; }
.mini-sheet h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.share-hint { font-size: 10.5px; color: var(--muted); margin-top: 5px; margin-bottom: 12px; }
.day-pick-list { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; }
.day-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; text-align: left;
}
.day-pick b { font-size: 13px; font-weight: 600; }
.day-pick span { font-size: 9.5px; color: var(--muted); }
.day-pick .ic { width: 15px; height: 15px; color: var(--muted); }
#shareText {
  width: 100%; height: 210px; resize: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px; font-size: 11px; line-height: 1.8; color: var(--ink-2); outline: 0;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  background: rgba(29, 27, 24, .94); color: #F7F3EB; font-size: 11.5px; padding: 10px 16px; border-radius: 999px;
  z-index: 80; opacity: 0; pointer-events: none; transition: .28s; white-space: nowrap; max-width: 88vw;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* layout fixes */
.sheet-mask[hidden] { display: none !important; }
.detail-sheet { display: flex; flex-direction: column; }
.detail-scroll { flex: 1; overflow-y: auto; height: auto; }
.detail-actions { position: static; flex: none; padding: 11px 20px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.detail-actions .btn { height: 44px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: 60px; top: 24px; bottom: -6px; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-rail::before { display: none; }
.tl-info h4 { padding-right: 48px; }
.icon-mini .ic.up { transform: rotate(-90deg); }

/* map extras */
.m-river { fill: none; stroke: #DCE4DD; stroke-width: 9; stroke-linecap: round; opacity: .9; }
.map-route-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .06em; color: var(--ink-2);
  background: rgba(255, 253, 248, .86); backdrop-filter: blur(8px); border: 1px solid var(--line);
  padding: 6px 9px; border-radius: 8px; min-height: 0;
}
.map-route-badge:empty { display: none; }
.dotpulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(196,87,47,.16); }
.pin.is-edge .pin-ring { stroke: var(--muted); stroke-dasharray: 3 3; stroke-width: 1.2; fill: rgba(255,253,248,.95); }
.map-compass { top: auto; bottom: 14px; right: 14px; }
.map-card p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-leg { width: 100%; text-align: left; font-family: inherit; color: var(--muted); background: none; border: 0; display: flex; align-items: center; gap: 7px; }
.tl-leg em { margin-left: auto; font-style: normal; font-size: 8.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 1px; opacity: .8; }
.tl-leg em .ic { width: 10px; height: 10px; }
.app { padding-bottom: calc(138px + env(safe-area-inset-bottom)); }
.fav-scroll { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.fav-scroll::-webkit-scrollbar { display: none; }
.fav-card { flex: 0 0 108px; text-align: left; }
.fav-card img { width: 108px; height: 76px; border-radius: 11px; object-fit: cover; background: var(--paper-2); }
.fav-card b { display: block; font-size: 11px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card span { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.hero-body { text-shadow: 0 2px 16px rgba(0, 0, 0, .38); }
.hero-name { text-shadow: 0 3px 22px rgba(0, 0, 0, .45); }
.city-strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
.tl-wait { margin: 2px 0 10px 80px; padding: 8px 11px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 9.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.tl-wait .ic { width: 12px; height: 12px; flex: none; color: var(--gold); }
.pin .pin-dist { font-size: 7px; font-weight: 500; fill: #A19785; text-anchor: middle; dominant-baseline: hanging; letter-spacing: .02em; }
.city-strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }

/* ---------- city picker ---------- */
.city-all { color: var(--muted); gap: 5px; }
.city-all .ic { width: 13px; height: 13px; }
.city-sheet { max-height: 90dvh; overflow-y: auto; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.city-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.cg-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 9px; letter-spacing: .18em; color: var(--muted); margin-bottom: 7px; }
.cg-title span:last-child { letter-spacing: .04em; opacity: .7; }
.cg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.city-card { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 7px; text-align: left; min-width: 0; transition: border-color .2s; }
.city-card:active { border-color: var(--ink); }
.city-card.is-active { border-color: var(--ink); }
.city-card img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper-2); }
.city-card b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.city-card small { display: block; font-size: 7.5px; color: var(--muted); letter-spacing: .08em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-card em { display: block; font-style: normal; font-size: 8.5px; color: var(--muted); margin-top: 2px; }

/* ---------- hotel comparison ---------- */
.stay-compare { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.sc-head h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.sc-head span { font-size: 8px; color: var(--muted); letter-spacing: .04em; }
.stay-row { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.stay-row:last-child { border-bottom: 0; }
.stay-row img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: var(--paper-2); }
.sr-main { min-width: 0; }
.sr-main b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-main span { display: block; font-size: 8.5px; color: var(--muted); margin-top: 3px; }
.sr-price { text-align: right; flex: none; }
.sr-price b { display: block; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sr-price span { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.sr-price em { font-style: normal; color: var(--green); }
.sr-price em.up { color: #A1452F; }
.greet-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.city-jump { display: flex; align-items: center; gap: 4px; height: 31px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.city-jump .ic { width: 13px; height: 13px; }
.city-tag { border: 0; font-family: var(--font-ui); cursor: pointer; }

/* ---------- hotel filters ---------- */
.hotel-tools { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px 10px; margin-top: 12px; }
.hotel-tools[hidden] { display: none; }
.ht-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ht-head b { display: block; font-size: 12.5px; font-weight: 600; }
.ht-head span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ht-reset { font-size: 9px; color: var(--accent); border: 1px solid rgba(196, 87, 47, .25); border-radius: 6px; padding: 4px 7px; flex: none; }
.ht-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; }
.ht-label { width: 26px; flex: none; font-size: 9px; color: var(--muted); padding-top: 5px; }
.ht-chips { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.ht-chip { font-size: 9.5px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); }
.ht-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ht-note { font-size: 8.5px; color: var(--muted); margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- stay entry ---------- */
.stay-entry { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px; margin-top: 11px; box-shadow: 0 8px 24px -22px rgba(45, 38, 27, .55); }
.se-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(196, 87, 47, .08); color: var(--accent); display: grid; place-items: center; flex: none; }
.se-icon .ic { width: 17px; height: 17px; }
.se-main { flex: 1; min-width: 0; }
.se-main .kicker { display: block; font-size: 8px; }
.se-main b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; }
.se-main > span:last-child { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.se-arrow { color: var(--muted); flex: none; }
.detail-hero::after { pointer-events: none; }
.detail-hero.has-gallery { overflow: hidden; }
.gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 4px; z-index: 4; }
.gallery-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: .2s; }
.gallery-dot.is-active { width: 12px; border-radius: 2px; background: #fff; }
.gallery-count { position: absolute; right: 16px; bottom: 27px; z-index: 4; font-size: 8.5px; color: rgba(255, 255, 255, .9); letter-spacing: .08em; }
.hero::after { background: linear-gradient(180deg, rgba(12,10,8,.42) 0%, rgba(12,10,8,.04) 32%, rgba(12,10,8,.72) 100%); }
.hero-badge, .hero-season { background: rgba(20,18,15,.28); border-color: rgba(255,255,255,.28); text-shadow: 0 1px 4px rgba(0,0,0,.35); }
