/* rambleday.com — 홈(로그인 · 가입 · Posts · My plans · Map) (2026-09-30 · 2026-10-01 개편)
 * 모바일 로그인 화면(Login_firstPage.dart)의 구성을 따른다:
 *   위 = 지도, 아래 = 편지지(찢어진 종이 가장자리 + 우표).
 * 글자는 rem(인앱 브라우저 배율 — s.css 머리말 참고).
 *
 * 2026-10-31 크림 테마 — 앱 core/theme(ramble_colors · feed_tone)와 같은 값.
 *   변수 이름은 그대로 두고 값만 바꿨다(쓰는 곳 수십 군데를 건드리지 않으려고 — 앱 feed_tone.dart 와 같은 방식).
 *   --cream = ivoryCard · --parchment = creamBg(화면 바탕) · --form-beige = ivoryField
 *   --dark-brown = toneInk · --mid-beige = toneEdge · --line = toneLine · --side = ivoryBg · --sheet = ivorySheet
 *   --mocha 는 toneSub(8F8576)가 카드 위 3.4:1 이라 작은 글자용으로 한 단 진하게(756B5D, 4.5:1).
 *   아이콘 · 큰 글자는 --sub-ico(앱 값 그대로). 작은 테라코타 글자는 --terra-text(A9522F).
 */
:root {
  --cream: #faf7f0;
  --parchment: #f2f1ee;
  --form-beige: #f1eadd;
  --dark-brown: #3e3830;
  --mocha: #756b5d;
  --mid-beige: #d6ccba;
  --line: #e9e2d4;
  --side: #f7f3ea;
  --sheet: #f6ecde;
  --sub-ico: #8f8576;
  --terracotta: #b85c38;
  --terra-text: #a9522f;
  --slate: #3f5e7a;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--parchment);
  color: var(--dark-brown);
  font-family: Georgia, 'Times New Roman', serif;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--terracotta); }

/* ── 배경 지도 ── 만질 수 없다. 흐리게 + 양피지 막 한 겹. */
#bgmap {
  position: fixed; inset: -24px; z-index: 0;
  filter: blur(2.5px) saturate(0.9);
  pointer-events: none;
  background: var(--parchment);
}
#bgmap .maplibregl-ctrl-bottom-right, #bgmap .maplibregl-ctrl-bottom-left { display: none; }
.bgveil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(242,241,238,0.10) 0%, rgba(242,241,238,0.35) 55%, rgba(246,236,222,0.85) 100%);
}
body.signed-in .bgveil { background: rgba(242,241,238,0.82); }
/* 지도 저작권 표시 — 흐린 지도 위에 따로 선명하게(약관상 지우지 않는다). */
.attrib {
  position: fixed; right: 8px; bottom: calc(6px + var(--safe-b)); z-index: 3;
  font: 0.62rem system-ui, sans-serif; color: var(--mocha);
}
.attrib a { color: var(--mocha); text-decoration: none; }

#app { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── 로그인 편지지 ── */
.auth-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-top: calc(28px + var(--safe-t)); }
.auth-hero { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 26vh; }
.brand-lg {
  font-family: 'Damion', Georgia, serif; font-weight: 400;
  font-size: 3.6rem; line-height: 1; margin: 0; color: var(--dark-brown);
  text-shadow: 0 1px 0 rgba(250,247,240,0.9), 0 0 18px rgba(250,247,240,0.8);
}
.brand-sub { text-align: center; margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--dark-brown); text-shadow: 0 0 10px rgba(250,247,240,0.9); }
.letter { position: relative; width: 100%; max-width: 460px; }
.letter-edge { position: absolute; top: -14px; left: 0; right: 0; height: 28px; background: url('/img/ripped.png') center/100% 100% no-repeat; }
.letter-stamp { position: absolute; top: -40px; right: 4px; width: 132px; pointer-events: none; }
.letter-body { background: var(--sheet); padding: 44px 28px calc(30px + var(--safe-b)); min-height: 42vh; }
@media (min-width: 720px) {
  .auth-wrap { justify-content: center; }
  .auth-hero { flex: 0 0 auto; min-height: 0; margin-bottom: 64px; }
  .letter-body { min-height: 0; border-radius: 0 0 18px 18px; box-shadow: 0 18px 40px rgba(62,56,48,0.18); padding-bottom: 32px; }
  .auth-wrap { padding-bottom: 8vh; }
}

.auth-btn {
  width: 100%; height: 54px; margin: 0 0 14px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  background: rgba(250,247,240,0.75); border: 1px solid rgba(143,133,118,0.35); color: var(--dark-brown);
}
.auth-btn.primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.auth-btn[disabled] { opacity: 0.55; cursor: default; }
.auth-btn:focus-visible, .field input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; font-size: 0.8rem; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(143,133,118,0.4); }
.linkbtn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--terracotta); font-weight: 700; font-size: 1rem; }
.linkbtn.soft { color: var(--mocha); font-weight: 400; font-size: 0.9rem; }
.center { text-align: center; }
.back { background: none; border: 0; color: var(--mocha); cursor: pointer; padding: 0 0 10px; font-size: 0.9rem; }

.form-title { font-size: 1.35rem; margin: 0 0 16px; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 0.8rem; color: var(--mocha); margin-bottom: 4px; }
.field input {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(143,133,118,0.45); background: var(--cream); font-size: 1rem;
}
.hint { font-size: 0.78rem; color: var(--mocha); margin: -8px 0 12px; }
.hint.ok { color: #6a7d45; }
.hint.bad { color: #a3452b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin: 0 0 10px; }
.check input { margin-top: 2px; accent-color: var(--terracotta); width: 18px; height: 18px; }
.err { color: #a3452b; font-size: 0.88rem; margin: 0 0 12px; min-height: 1.2em; }
.code-input { letter-spacing: 0.5em; text-align: center; font-size: 1.3rem !important; }

/* ══════════════════════════════════════════
   로그인 후 (2026-10-01 개편)
   넓은 화면 : 화면 왼쪽 끝에 붙은 레일 + 오른쪽 본문.
   좁은 화면(≤ 860px) : 위 얇은 머리줄 + 아래 탭 막대(앱과 같은 손 위치).
   ══════════════════════════════════════════ */
:root { --rail-w: 244px; --tab-h: 62px; --top-h: 52px; }
.shell { flex: 1; width: 100%; }
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(22px + var(--safe-t)) 14px calc(18px + var(--safe-b));
  background: var(--side); border-right: 1px solid var(--line);
}
/* 손글씨 Ramble + 점선 궤적 + 비행기 — 앱 feed_brand_header.dart 와 같은 구성. */
.rail-brand, .brand-m { display: flex; align-items: flex-start; color: var(--dark-brown); text-decoration: none; }
.rail-brand { padding: 0 10px 22px; }
.brand-word { font-family: 'Damion', Georgia, serif; font-size: 2.15rem; line-height: 1; padding-top: 6px; }
.brand-trail { width: 60px; height: 30px; margin: 9px 0 0 6px; flex: none; }
.brand-plane { width: 22px; height: 22px; margin: 4px 0 0 -8px; transform: rotate(45deg); flex: none; fill: var(--sub-ico); }
.rail-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 10px;
  text-decoration: none; color: var(--dark-brown); font-size: 1rem;
}
.rail-item svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rail-item:hover { background: rgba(214,204,186,0.28); }
.rail-item.on { background: var(--cream); font-weight: 700; }
.rail-item.on svg { stroke-width: 2; }
.rail-app { margin-top: auto; padding: 14px; border: 1px solid var(--mid-beige); border-radius: 12px; font-size: 0.82rem; line-height: 1.45; color: var(--mocha); }
.rail-app + .rail-foot { margin-top: 14px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 0 10px; }
.who { font-size: 0.9rem; color: var(--mocha); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.topbar-m { display: none; }
.main { margin-left: var(--rail-w); min-width: 0; padding: calc(22px + var(--safe-t)) 28px calc(32px + var(--safe-b)); }
.panel { max-width: 1100px; margin: 0 auto; background: rgba(250,247,240,0.94); border: 1px solid var(--mid-beige); border-radius: 18px; padding: 10px 20px 20px; }
.panel-read { max-width: 760px; }
.page-h { font-size: 1.4rem; margin: 8px 2px 6px; }
.section-h { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--mocha); margin: 16px 2px 6px; }
.empty { text-align: center; color: var(--mocha); padding: 36px 12px; line-height: 1.6; font-size: 0.95rem; }
.empty.small { padding: 18px 8px; font-size: 0.88rem; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--mocha); border-radius: 10px; cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.icon-btn:hover { background: rgba(214,204,186,0.28); color: var(--dark-brown); }

@media (max-width: 860px) {
  .topbar-m {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 5;
    height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 16px;
    background: rgba(250,247,240,0.96); border-bottom: 1px solid var(--mid-beige);
  }
  .brand-m { margin-right: auto; }
  .brand-m .brand-word { font-size: 1.9rem; padding-top: 4px; }
  .brand-m .brand-trail { margin-top: 5px; }
  .brand-m .brand-plane { margin-top: 2px; }
  .rail-app { display: none; }
  .rail {
    top: auto; right: 0; width: auto; height: calc(var(--tab-h) + var(--safe-b));
    flex-direction: row; gap: 0; padding: 4px 6px var(--safe-b);
    border-right: 0; border-top: 1px solid var(--mid-beige);
  }
  .rail-brand, .rail-foot { display: none; }
  .rail-item { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; font-size: 0.72rem; border-radius: 12px; }
  .rail-item.on { background: none; color: var(--dark-brown); }
  .rail-item.on svg { stroke-width: 2.2; }
  .rail-item:not(.on) { color: var(--mocha); }
  .main { margin-left: 0; padding: 12px 10px calc(var(--tab-h) + 18px + var(--safe-b)); }
  .panel { padding: 8px 14px 16px; border-radius: 16px; }
}

/* ── My plans ── */
.plan { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--mid-beige); }
.plan-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 2px; text-decoration: none; color: inherit; }
.plan-del { border: 0; background: none; color: var(--mocha); cursor: pointer; font-size: 0.82rem; padding: 8px; border-radius: 8px; }
.plan-del:hover { color: var(--terracotta); background: rgba(184,92,56,0.08); }
.plan:last-child { border-bottom: 0; }
.plan .ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: var(--parchment); display: grid; place-items: center; color: var(--terracotta); font-size: 1.1rem; }
.plan .t { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .m { font-size: 0.8rem; color: var(--mocha); margin-top: 2px; }
.plan .body { flex: 1; min-width: 0; }

/* ── Posts 목록 ── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-top: 8px; }
.post { display: block; text-decoration: none; color: inherit; background: var(--cream); border: 1px solid var(--mid-beige); border-radius: 14px; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.post:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(62,56,48,0.12); }
.post .cover { aspect-ratio: 4/3; background: var(--parchment) center/cover no-repeat; }
.post .pb { padding: 10px 12px 12px; }
.post .t { font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .m { font-size: 0.78rem; color: var(--mocha); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .by { font-size: 0.8rem; margin-top: 6px; display: flex; justify-content: space-between; gap: 6px; }
.by-n { color: var(--mocha); white-space: nowrap; }
@media (max-width: 520px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post .pb { padding: 8px 9px 10px; }
  .post .by { flex-direction: column; gap: 2px; }
}
.more { display: block; margin: 18px auto 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--mid-beige); border-top-color: var(--terracotta); animation: spin 0.9s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--mid-beige); background: var(--cream); cursor: pointer; font-size: 0.85rem; color: var(--dark-brown); }
.btn-sm:hover { border-color: var(--mocha); }
.btn-sm.primary { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); font-weight: 600; }
.btn-sm[disabled] { opacity: 0.5; cursor: default; }
.linkbtn.danger { color: #a3452b; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 40; background: var(--dark-brown); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-size: 0.9rem; max-width: 90vw; }
@media (max-width: 860px) {
  .toast { bottom: calc(var(--tab-h) + 14px + var(--safe-b)); }
  /* 로그인 뒤 좁은 화면에서는 본문이 화면을 거의 다 덮는다 — 배경 지도를 안 띄운다(타일도 아낀다).
     지도를 안 그리니 저작권 표시도 뺀다. 지도 화면 · 여정 지도는 각자 표시가 있다. */
  body.signed-in #bgmap, body.signed-in .attrib { display: none; }
}
body.no-scroll { overflow: hidden; }

/* ── 포스트 상세 ── */
.back-link { display: inline-block; margin: 8px 2px 10px; color: var(--mocha); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--terracotta); }
.pd-head { margin-bottom: 6px; }
.pd-title { font-size: 1.75rem; line-height: 1.25; margin: 0 0 6px; }
.pd-meta { font-size: 0.9rem; color: var(--mocha); margin: 0 0 12px; }
.pd-author { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark-brown); }
.pd-author b { display: block; font-size: 0.95rem; }
.pd-author small { display: block; font-size: 0.78rem; color: var(--mocha); }
.av-s { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--parchment) center/cover no-repeat; border: 1px solid var(--mid-beige); display: grid; place-items: center; font-weight: 700; color: var(--terracotta); font-size: 0.95rem; }
.pd-text { font-size: 1.02rem; line-height: 1.75; margin: 18px 2px; white-space: pre-wrap; }
.day-h { display: flex; align-items: center; gap: 12px; margin: 26px 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mocha); }
.day-h::before, .day-h::after { content: ''; flex: 1; border-top: 1px dashed var(--mid-beige); }
.pd-entry { padding: 16px 0 20px; border-bottom: 1px dashed var(--mid-beige); }
.pd-entry:last-child { border-bottom: 0; }
.pd-place { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.08rem; color: var(--dark-brown); text-decoration: none; border-radius: 8px; padding: 2px 4px 2px 0; }
a.pd-place:hover span { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.pin-ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--terracotta); stroke-width: 1.9; stroke-linejoin: round; }
/* 모든 사진 같은 틀(4:3) — 앱 FocusedPhoto 와 같은 자르기. */
.ph { margin: 12px 0 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #241c12; }
.ph-btn { display: block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; overflow: hidden; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pd-cap { margin: 12px 2px 0; font-size: 1rem; line-height: 1.75; white-space: pre-wrap; }

/* 여정 지도 */
.pd-map { margin-top: 8px; }
.jm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.jm { height: 400px; border-radius: 14px; overflow: hidden; border: 1px solid var(--mid-beige); background: var(--parchment); }
.jm-hint { font-size: 0.75rem; color: var(--mocha); text-align: center; margin: 6px 0 0; }
@media (max-width: 860px) { .jm { height: 300px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mid-beige); background: var(--cream); color: var(--dark-brown); cursor: pointer; font-size: 0.84rem; white-space: nowrap; }
.chip small { color: var(--mocha); font-size: 0.75rem; }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip.on { background: var(--dark-brown); border-color: var(--dark-brown); color: var(--cream); }
.chip.on small { color: var(--mid-beige); }
.mk {
  width: 1.63rem; height: 1.63rem; border-radius: 50%; display: grid; place-items: center;
  font-family: Georgia, serif; font-size: 0.75rem; font-weight: 700; line-height: 1; color: #faf7f0;
  border: 2px solid rgba(250, 247, 240, 0.92); box-shadow: 0 2px 6px rgba(62, 56, 48, 0.4); cursor: pointer; 
}
.maplibregl-popup-content { font-family: Georgia, serif; color: var(--dark-brown); border-radius: 10px; padding: 10px 26px 10px 12px; }
.pop-a { display: inline-block; margin-top: 6px; color: var(--terracotta); font-weight: 700; text-decoration: none; }

/* 좋아요 · 댓글 */
.pd-bar { display: flex; align-items: center; gap: 10px; margin: 26px 0 6px; padding: 12px 0; border-top: 1px solid var(--mid-beige); border-bottom: 1px solid var(--mid-beige); }
.like-btn, .cm-jump { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mid-beige); background: var(--cream); color: var(--dark-brown); cursor: pointer; font-size: 0.92rem; }
.like-btn .heart { font-size: 1.15rem; line-height: 1; color: var(--terracotta); }
.like-btn.on { background: rgba(184,92,56,0.1); border-color: var(--terracotta); color: var(--terracotta); }
.cm { margin-top: 8px; }
.cm-h { font-size: 1.05rem; margin: 14px 2px 10px; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.cm-form textarea { flex: 1; min-height: 44px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(143,133,118,0.45); background: var(--cream); font: inherit; font-size: 0.95rem; color: var(--dark-brown); }
.cm-form textarea:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.cm-form.small { flex-direction: column; align-items: stretch; margin: 8px 0 4px; }
.cm-form-acts { display: flex; justify-content: flex-end; gap: 6px; }
.cm-item { display: flex; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--mid-beige); }
.cm-item.reply { padding: 10px 0 0; border-top: 0; }
.cm-item.reply .av-s { width: 28px; height: 28px; flex-basis: 28px; font-size: 0.8rem; }
.cm-b { flex: 1; min-width: 0; }
.cm-meta { font-size: 0.82rem; color: var(--mocha); display: flex; flex-wrap: wrap; gap: 0 8px; }
.cm-meta a { color: var(--dark-brown); font-weight: 700; text-decoration: none; }
.cm-meta span + span::before, .cm-meta a + span::before { content: '· '; }
.cm-text { margin-top: 3px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-text.gone { color: var(--mocha); font-style: italic; }
.cm-acts { display: flex; gap: 12px; margin-top: 4px; }
.cm-acts button { border: 0; background: none; padding: 2px 0; color: var(--mocha); cursor: pointer; font-size: 0.8rem; }
.cm-acts button:hover { color: var(--terracotta); }
.cm-replies { padding-left: 2px; }
.pd-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; color: var(--mocha); font-size: 0.82rem; letter-spacing: 0.05em; }
.pd-divider::before, .pd-divider::after { content: ''; flex: 1; border-top: 1px dashed var(--mid-beige); }
.prof { display: flex; gap: 16px; align-items: center; padding: 6px 2px 10px; }
.prof-av { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; background: var(--parchment) center/cover no-repeat; border: 2px solid var(--mid-beige); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--terracotta); }
.prof-h { font-size: 1.15rem; font-weight: 700; }
.prof-lv { font-size: 0.72rem; font-weight: 600; color: var(--terracotta); border: 1px solid var(--terracotta); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.prof-c { font-size: 0.85rem; color: var(--mocha); margin-top: 3px; }
.prof-bio { margin: 8px 0 0; line-height: 1.6; white-space: pre-wrap; }

/* 사진 원본 보기 */
.pv { position: fixed; inset: 0; z-index: 30; background: rgba(20,15,10,0.94); display: grid; place-items: center; }
.pv img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.pv button { position: absolute; border: 0; background: rgba(250,247,240,0.14); color: #faf7f0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; display: grid; place-items: center; }
.pv button:hover { background: rgba(250,247,240,0.26); }
.pv-x { top: calc(14px + var(--safe-t)); right: 14px; font-size: 1.1rem !important; }
.pv-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 14px; top: 50%; transform: translateY(-50%); }
.pv-n { position: absolute; bottom: calc(16px + var(--safe-b)); left: 50%; transform: translateX(-50%); color: #faf7f0; font-size: 0.85rem; }

/* ══════════════════════════════════════════
   Map(계정 북마크)
   넓은 화면 : [목록 패널 | 지도]. 좁은 화면 : 지도 위에 아래 시트.
   ══════════════════════════════════════════ */
body.map-mode .main { padding: 0; height: 100vh; height: 100dvh; }
.panel.panel-map { max-width: none; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; }
.mv { position: relative; height: 100%; display: grid; grid-template-columns: 360px 1fr; grid-template-areas: 'side map'; }
.mv-map { grid-area: map; min-height: 0; background: var(--parchment); }
.mv-panel { grid-area: side; min-height: 0; overflow-y: auto; background: rgba(250,247,240,0.97); border-right: 1px solid var(--mid-beige); padding: 16px 16px 24px; }
.mv-grab { display: none; }
.mv-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.mv-head h2 { font-size: 1.25rem; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mv-fold-acts { display: flex; gap: 14px; margin: 8px 2px 0; }
.mv-fold-acts .linkbtn { font-size: 0.82rem; padding: 2px 0; }
.bm-list { list-style: none; margin: 10px 0 0; padding: 0; }
.bm { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 10px 6px; border-radius: 10px; cursor: pointer; color: var(--dark-brown); }
.bm:hover { background: rgba(214,204,186,0.25); }
.bm-b { min-width: 0; flex: 1; }
.bm-n { display: block; font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-m { display: block; font-size: 0.78rem; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; margin-top: 5px; border: 1px solid rgba(62,56,48,0.5); }
/* 장소 카드 */
.pcard { background: var(--cream); border: 1px solid var(--mid-beige); border-radius: 14px; padding: 14px; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(62,56,48,0.1); }
.pcard.saved { border-color: var(--terracotta); }
.pc-head { display: flex; gap: 10px; align-items: flex-start; }
.pc-t { flex: 1; min-width: 0; }
.pc-name { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.pc-sub { font-size: 0.8rem; color: var(--mocha); margin-top: 2px; }
.pc-x { width: 30px; height: 30px; font-size: 0.9rem; margin: -4px -6px 0 0; }
.pc-saved { font-size: 0.82rem; color: var(--terracotta); font-weight: 700; margin: 10px 0 2px; }
.pc-l { display: block; font-size: 0.78rem; color: var(--mocha); margin-top: 10px; }
.pc-l select, .pc-l textarea { display: block; width: 100%; margin-top: 4px; border-radius: 10px; border: 1px solid rgba(143,133,118,0.45); background: #fff; font: inherit; font-size: 0.92rem; color: var(--dark-brown); }
.pc-l select { height: 38px; padding: 0 8px; }
.pc-l textarea { padding: 8px 10px; resize: vertical; }
.pc-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.pc-note-off { font-size: 0.85rem; color: var(--mocha); margin: 10px 0 0; }
/* 띄운 장소 핀 */
.fpin { width: 34px; height: 44px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'><path d='M17 43S2 27.5 2 16.5a15 15 0 0 1 30 0C32 27.5 17 43 17 43z' fill='%23B85C38' stroke='%23FFF8EE' stroke-width='2.5'/><circle cx='17' cy='16.5' r='5.5' fill='%23FFF8EE'/></svg>") center/contain no-repeat; filter: drop-shadow(0 3px 4px rgba(62,56,48,0.45)); }
@media (max-width: 860px) {
  body.map-mode .main { height: auto; padding: 0; }
  body.map-mode .panel-map { height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); }
  .mv { display: block; }
  .mv-map { position: absolute; inset: 0; }
  .mv-panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 34%;
    border-right: 0; border-top: 1px solid var(--mid-beige); border-radius: 18px 18px 0 0;
    padding: 4px 14px 16px; box-shadow: 0 -8px 24px rgba(62,56,48,0.15); transition: max-height .25s ease;
  }
  .mv-panel.open { max-height: 62%; }
  .mv-grab { display: block; position: sticky; top: 0; width: 100%; height: 22px; border: 0; background: rgba(250,247,240,0.97); cursor: pointer; padding: 0; z-index: 1; }
  .mv-grab span { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--mid-beige); margin: 0 auto; }
}

/* ── 편지 창 : 앱 다이얼로그와 같은 항공우편 테두리 ── */
.dlg-back { position: fixed; inset: 0; z-index: 35; background: rgba(40,30,20,0.45); display: grid; place-items: center; padding: 20px; }
.dlg { width: 100%; max-width: 360px; padding: 7px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #b85c38 0 11px, #faf7f0 11px 17px, #3f5e7a 17px 28px, #faf7f0 28px 34px); box-shadow: 0 16px 40px rgba(40,30,20,0.3); }
.dlg-in { background: var(--cream); padding: 22px 22px 12px; }
.dlg-in h3 { margin: 0 0 10px; font-size: 1.1rem; }
.dlg-in p { margin: 0; line-height: 1.6; font-size: 0.93rem; }
.dlg-field { margin: 4px 0 0; }
.dlg-err { margin: 6px 0 0; min-height: 1em; }
.dlg-rule { border-top: 1px dashed var(--mid-beige); margin: 18px 0 6px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 6px; }
.dlg-actions button { border: 0; background: none; cursor: pointer; padding: 8px 12px; font-size: 0.95rem; }
.dlg-cancel { color: var(--mocha); }
.dlg-ok { color: var(--terracotta); font-weight: 700; }
.dlg-ok.danger { color: #a3452b; }
body.map-mode .attrib { display: none; }

/* ══════════════════════════════════════════
   2026-10-31 — Posts 피드 (Instagram식) · 앱 v3 포스트 카드
   넓은 화면 : [레일 | 피드 470 | 오른쪽 열 300]. 오른쪽 열은 1180px 아래에서 숨긴다.
   카드는 앱 postcard_v3_card.dart 와 같은 순서 — 항공우편 밴드 · 헤더 · 썸네일 · 액션 · retrace · 댓글 · Postcard_Bottom.
   ══════════════════════════════════════════ */
.panel.panel-feed { max-width: 860px; background: none; border: 0; border-radius: 0; padding: 4px 0 0; }
.feed-wrap { display: flex; justify-content: center; align-items: flex-start; gap: 56px; }
.feed { flex: 0 1 470px; min-width: 0; }
.feed-side { flex: 0 0 300px; position: sticky; top: 28px; display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
@media (max-width: 1180px) { .feed-side { display: none; } }

.side-me { display: flex; align-items: center; gap: 12px; }
.side-me .av-s { width: 44px; height: 44px; flex-basis: 44px; }
.side-me b { display: block; font-size: 0.9rem; }
.side-me small { display: block; font-size: 0.75rem; color: var(--mocha); }
.side-me a.go { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--terra-text); text-decoration: none; }
.side-app { position: relative; background: var(--sheet); border-radius: 12px; padding: 18px; }
.side-app img { position: absolute; right: 10px; top: -16px; width: 62px; height: auto; transform: rotate(6deg); pointer-events: none; }
.side-app h3 { margin: 0 0 8px; padding-right: 60px; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.06rem; }
.side-app p { margin: 0; padding-right: 8px; font-size: 0.82rem; line-height: 1.5; color: #5e5549; }
.side-app .store { display: inline-flex; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--dark-brown); color: var(--cream); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.side-foot { font-size: 0.7rem; line-height: 1.8; color: var(--mocha); }

/* 카드 — 폭 기준 단위(cqw)로 썸네일 글자 · 아래 종이 높이를 맞춘다(앱은 FittedBox 로 402×482 판을 통째로 줄인다). */
.pc { position: relative; container-type: inline-size; background: var(--cream); border-radius: 16px 16px 0 0; overflow: hidden; margin: 0 0 28px; }
.pc-band { display: block; width: 100%; height: auto; }
.pc-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 8px 12px; }
.pc-head .av-s { width: 38px; height: 38px; flex-basis: 38px; }
.pc-who { flex: 1; min-width: 0; }
.pc-h { font-size: 0.875rem; font-weight: 700; color: var(--dark-brown); text-decoration: none; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; font-size: 0.66rem; color: var(--mocha); }
.pc-meta .dest { font-size: 0.875rem; font-weight: 700; }
.pc-meta .io { color: var(--terra-text); }
.pc-theme { flex: none; margin-top: 2px; padding: 5px 12px 5px 10px; font-size: 0.69rem; color: var(--terra-text); white-space: nowrap; background: url('/img/theme-sticker.webp') center/100% 100% no-repeat; }
.pc-cover { display: block; color: inherit; text-decoration: none; }
.pc-cover .v3img { display: block; width: 100%; aspect-ratio: 402 / 482; object-fit: cover; background: var(--line); }
.pc-cover .oldimg { display: block; width: calc(100% - 16px); margin: 0 8px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line); }
.pc-nophoto { height: 120px; display: grid; place-items: center; background: rgba(233,226,212,0.35); font-size: 0.8rem; color: var(--mocha); }
/* 포맷 2(editorial) 즉석 배치 — postcard_v3_spec.dart 의 칸 좌표를 402×482 판 비율(%)로 옮겼다. */
.v3 { position: relative; aspect-ratio: 402 / 482; background: var(--cream); container-type: inline-size; }
.v3-s { position: absolute; overflow: hidden; background: var(--line); }
.v3-s img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-s.s0 { left: 4.478%; top: 0; width: 91.045%; height: 42.324%; }
.v3-s.s1 { left: 4.478%; top: 44.606%; width: 41.791%; height: 49.378%; }
.v3-s.s2 { left: 48.756%; top: 53.734%; width: 46.766%; height: 45.643%; }
.v3-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.42); color: #fff; font: 700 11cqw/1 'Playfair Display', Georgia, serif; }
.v3-t { position: absolute; left: 48.756%; top: 44.606%; width: 46.766%; font-family: 'Playfair Display', Georgia, serif; color: var(--dark-brown); line-height: 1.25; }
.v3-t b { display: block; font-weight: 400; font-size: 3.98cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-t i { display: block; font-size: 2.99cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-acts { display: flex; align-items: center; gap: 6px; padding: 4px 10px 0; color: var(--mocha); font-size: 0.8125rem; }
.pc-act { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; border: 0; background: none; cursor: pointer; color: inherit; text-decoration: none; font: inherit; }
.pc-act svg { width: 19px; height: 19px; fill: none; stroke: var(--sub-ico); stroke-width: 1.7; stroke-linejoin: round; }
.pc-act.on svg { fill: var(--terracotta); stroke: var(--terracotta); }
.pc-act.logs { margin-left: auto; }
.pc-act[disabled] { opacity: 0.6; cursor: default; }
.pc-retrace { margin: 2px 12px 0; font-size: 0.75rem; color: var(--terra-text); }
/* 아래 종이(6432×640) 높이 = 폭 ÷ 10.05 — 글이 종이 윗부분에 걸치게 그 55% 만큼 띄운다. */
.pc-cm { position: relative; z-index: 1; display: block; margin: 6px 12px 0; padding-bottom: calc(5.47cqw + 4px); font-size: 0.75rem; color: var(--mocha); text-decoration: none; }
.pc-bottom { position: absolute; z-index: 0; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.pc-head a { text-decoration: none; }
.pc-vj { position: absolute; right: 0; bottom: 0; width: 28%; height: 9.95cqw; }
@media (max-width: 860px) {
  .panel.panel-feed { padding: 0; }
  .pc { margin-bottom: 18px; }
}

/* ══════════════════════════════════════════
   2026-10-31 — 포스트 상세 (2단)
   왼쪽 : 로그 흐름(사진 같은 폭 · 글은 아래 · Day 지도 캡처) → 작성자 프로필.
   오른쪽 : 붙어 따라오는 패널(작성자 · 제목 · 장소 목록 · 좋아요 · 댓글).
   1180px 아래 : 한 줄로 — 머리는 위, 패널은 아래.
   ══════════════════════════════════════════ */
.panel.panel-post { max-width: 1060px; background: none; border: 0; border-radius: 0; padding: 0; }
.pd-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: center; }
.pd-main { flex: 999 1 520px; max-width: 640px; min-width: 0; background: var(--cream); border-radius: 16px 16px 0 0; overflow: hidden; padding-bottom: 8px; }
.pd-side { flex: 1 1 320px; max-width: 380px; min-width: 0; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--cream); border-radius: 16px; padding: 18px; }
.pd-main .pd-headblock { padding: 4px 16px 0; }
.pd-side .pd-headblock { display: block; }
.pd-main .pd-headblock { display: none; }
/* 레일(244) + 여백 + 본문 520 + 패널 320 이 안 들어가면 한 줄로(≈ 1180px). */
@media (max-width: 1180px) {
  .pd-side { position: static; max-height: none; max-width: 640px; flex-basis: 100%; }
  .pd-main .pd-headblock { display: block; }
  .pd-side .pd-headblock { display: none; }
}
.pd-headblock .pc-head { padding: 0 0 10px; }
.pd-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 2px 0 2px; }
.pd-sub { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 0.9rem; margin: 0 0 10px; }
.pd-main .pd-text { margin: 14px 18px; }
.pd-main .day-h { margin: 22px 16px 4px; }
.pd-main .pd-entry { padding: 0 0 18px; border-bottom: 0; }
.pd-main .pd-place { margin: 12px 14px 8px; }
.pd-main .ph { margin: 0; border-radius: 0; }
.pd-main .pd-cap { margin: 12px 18px 0; }
.pd-snap { margin: 6px 0 0; position: relative; }
.pd-snap img { display: block; width: 100%; height: auto; background: var(--line); }
.pd-snap figcaption { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(62,56,48,0.7); color: var(--cream); font-size: 0.7rem; letter-spacing: 0.04em; }
.pd-main .pd-map { padding: 0 14px; }
.pd-main .pd-divider { margin: 26px 16px 10px; }
.pd-main #author { padding: 0 16px 10px; }
.pd-places { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.pd-places h3 { margin: 0 0 2px; font-size: 0.75rem; font-weight: 400; color: var(--mocha); }
.pd-pl { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.88rem; color: var(--dark-brown); text-decoration: none; }
a.pd-pl:hover { border-color: var(--mid-beige); background: rgba(233,226,212,0.3); }
.pd-pl .n { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--terracotta); color: var(--cream); font-size: 0.68rem; display: grid; place-items: center; }
.pd-pl .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-pl svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sub-ico); stroke-width: 1.8; stroke-linejoin: round; }
.pd-app { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: var(--sheet); font-size: 0.8rem; line-height: 1.5; color: #5e5549; text-align: center; }
.pd-side .pd-bar { margin: 4px 0 2px; padding: 10px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.pd-side .pc-retrace { margin: 0 0 6px; }
.pd-side .cm-h { margin: 10px 0 8px; font-size: 0.95rem; }

/* ══════════════════════════════════════════
   2026-11-05 — 탐색(Explore). 디자인 토큰 시안("토큰 · 지도 표식 위계 · 화면 상태")을 따른다.
   넓은 화면 : [목록 400 | 지도]. 860px 아래 : 지도 위 바텀시트(손잡이로 펼침/접음).
   간격 8 · 16 · 24(행 < 묶음 < 구역). 그림자 3단. 목록은 카드가 아니라 hairline 묶음.
   ══════════════════════════════════════════ */
body.explore-mode #bgmap, body.explore-mode .bgveil { display: none; }
body.explore-mode { background: var(--parchment); }
.ex-page { position: fixed; inset: 0; display: flex; flex-direction: column; }
.ex-top { flex: none; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 20px; background: var(--side); border-bottom: 1px solid var(--line); }
.ex-top .brand-m { margin-right: 0; }
.ex-top-sp { flex: 1; }
.ex-top-login { border: 0; background: none; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--terra-text); padding: 10px 12px; cursor: pointer; }
.ex-top-join { border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--cream); background: var(--dark-brown); padding: 10px 16px; border-radius: 12px; cursor: pointer; }
.ex-wrap { flex: 1; min-height: 0; }
.ex { position: relative; height: 100%; display: flex; }
.ex-side { flex: 0 0 400px; min-height: 0; display: flex; flex-direction: column; background: var(--cream); border-right: 1px solid var(--line); z-index: 2; }
.ex-grab { display: none; }
.ex-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px 24px; }
.ex-map { flex: 1; min-width: 0; position: relative; background: #d6e2de; }
.ex-map .maplibregl-map { position: absolute; inset: 0; }

/* v2(11-05) — 앱 destinations_page · city_detail_page 와 같은 모양. 글꼴은 앱처럼 Pretendard(제목 Georgia).
   앱 값 : 바탕 F4ECE1 · 지역 글자 CFAE86 · 구역 제목 8B6A50 · 카드 둥글기 26 · 카드 폭 60% × 1.42. */
.ex-side { background: #f4ece1; min-width: 0; max-width: 100%; }
.ex-body { min-width: 0; }
.ex-body { position: relative; font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif; }
.ex-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--sheet); font-size: 0.82rem; }
.ex-banner span { flex: 1; }
.ex-banner button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--terra-text); padding: 4px; cursor: pointer; }
.ex-disc { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.69rem; line-height: 1.5; color: var(--mocha); }
.ex-note { font-size: 0.72rem; line-height: 1.5; color: var(--mocha); margin: 8px 0 0; }
.ex-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--form-beige); display: grid; place-items: center; color: var(--dark-brown); }

/* Current Location */
.dc-loc { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.dc-loc-t { font-size: 17px; font-weight: 700; color: #a8875f; }
.dc-loc-sel { display: flex; align-items: center; gap: 4px; color: #a8875f; }
.dc-loc-sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m6 9 6 6 6-6' fill='none' stroke='%23A8875F' stroke-width='2'/></svg>") right 0 center/16px no-repeat; padding: 2px 22px 2px 0; font-family: inherit; font-size: 19px; color: #8b6a50; cursor: pointer; max-width: 100%; text-overflow: ellipsis; }

/* 구역 + 사진 카드 가로 넘김 */
.dc-sec { margin-top: 24px; }
.dc-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dc-sec-h h2 { margin: 0; font-family: inherit; font-size: 21px; font-weight: 700; color: #8b6a50; }
.dc-nav { display: flex; gap: 4px; }
.dc-nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e3d5c1; background: var(--cream); color: #8b6a50; display: grid; place-items: center; cursor: pointer; }
.dc-nav button:hover { background: #fff; }
.dc-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px; scrollbar-width: none; }
.dc-row::-webkit-scrollbar { display: none; }
.dc-card { --w: 228px; position: relative; flex: 0 0 var(--w); height: calc(var(--w) * 1.42); border: 0; padding: 0; border-radius: 26px; overflow: hidden; background: #e3cfb2; scroll-snap-align: start; cursor: pointer; text-align: left; font: inherit; color: #fff; }
.dc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.dc-ph { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid rgba(143,133,118,0.5); display: grid; place-items: center; font-family: Georgia, serif; font-size: 40px; color: var(--sub-ico); }
.dc-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 72%, rgba(0,0,0,0.85) 100%); }
.dc-heart { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.dc-heart:hover { background: rgba(255,255,255,0.3); }
.dc-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; line-height: 1.25; }
.dc-txt > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-city, .dc-total { font-size: 21px; font-weight: 800; }
.dc-total { margin-top: 2px; font-variant-numeric: tabular-nums; }
.dc-dates { font-size: 15px; font-variant-numeric: tabular-nums; }
.dc-line { font-size: 13.5px; }
.dc-dates + .dc-line, .dc-total + .dc-line, .dc-city + .dc-line { margin-top: 3px; }
.dc-credit { margin-top: 4px; font-size: 8.5px; color: rgba(255,255,255,0.6); }
.dc-card:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.dc-skel { background: #e6dacb; cursor: default; }
.dc-empty { margin: 0; padding: 24px 0; font-size: 14px; color: var(--mocha); }

/* 도시 상세 — 사진 · 제목/합계 · 사실 줄 · ABOUT · PICKED BY RAMBLE · 비용 카드 · 아래 막대 */
.ex-body.is-city { padding: 0; display: flex; flex-direction: column; }
.cd-hero { position: relative; flex: none; height: 250px; background: #e3cfb2; overflow: hidden; }
.cd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-back { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(250,247,240,0.92); color: var(--dark-brown); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(62,56,48,0.2); }
.cd-credit { position: absolute; left: 12px; right: 12px; bottom: 6px; font-size: 9px; color: rgba(255,255,255,0.8); text-shadow: 0 0 3px rgba(0,0,0,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-body { flex: 1; padding: 22px 20px 24px; }
.cd-head { display: flex; align-items: flex-start; gap: 12px; }
.cd-head-l { flex: 1; min-width: 0; }
.cd-name { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 700; line-height: 1.2; color: var(--dark-brown); }
.cd-ramblers { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: 14px; color: var(--mocha); }
.cd-ramblers svg, .cd-fact svg { color: var(--terracotta); flex: none; }
.cd-total { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.cd-total b { font-size: 26px; font-weight: 800; color: var(--terracotta); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-total small { font-size: 12px; color: var(--mocha); }
.cd-facts { display: flex; gap: 8px; margin-top: 18px; }
.cd-fact { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.cd-fact span { display: flex; flex-direction: column; min-width: 0; }
.cd-fact b { font-size: 16px; font-weight: 700; color: var(--dark-brown); font-variant-numeric: tabular-nums; }
.cd-fact small { font-size: 13px; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-h { margin: 24px 0 8px; font-family: Georgia, serif; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--dark-brown); }
.cd-about { margin: 0; font-size: 14px; line-height: 1.6; color: #5e5549; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cd-about.open { display: block; }
.cd-more { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--terra-text); cursor: pointer; }
.cd-soon { margin: 0; font-size: 14px; color: var(--mocha); }
.cd-box { background: var(--cream); border-radius: 18px; padding: 4px 12px; }
.cd-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; background: none; font: inherit; color: var(--dark-brown); text-align: left; cursor: pointer; margin: 0; }
.cd-pick + .cd-pick { border-top: 1px solid var(--line); }
.cd-pick-t { display: flex; flex-direction: column; min-width: 0; }
.cd-pick-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-pick-t small { font-size: 12.5px; color: var(--mocha); }
.cd-lock { font-size: 13.5px; color: var(--dark-brown); cursor: default; }
button.cd-lock { cursor: pointer; }
.cd-lock svg { color: var(--terra-text); flex: none; margin: 0 7px; }
.cd-cost { background: var(--cream); border: 1px solid var(--mid-beige); border-radius: 16px; padding: 4px 14px; }
.cd-cost-row, .bk-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--sub-ico); }
.cd-cost-row + .cd-cost-row { border-top: 1px solid var(--mid-beige); }
.cd-cost-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cd-cost-t b { font-size: 14px; font-weight: 700; color: var(--dark-brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-cost-t small { font-size: 12.5px; color: var(--mocha); font-variant-numeric: tabular-nums; }
.cd-cost-v { flex: none; font-size: 15px; font-weight: 700; color: var(--dark-brown); font-variant-numeric: tabular-nums; }
.cd-cost-v.est { font-weight: 500; }
.cd-plan { display: block; width: 100%; margin-top: 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--mid-beige); background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--dark-brown); cursor: pointer; }
.cd-plan:hover { background: var(--cream); }
.cd-skel i { display: block; height: 14px; border-radius: 6px; background: #e6dacb; margin-top: 14px; width: 70%; }
.cd-skel i:nth-child(2) { width: 45%; }
.cd-skel i:nth-child(3) { height: 90px; width: 100%; border-radius: 16px; }
.cd-bar { position: sticky; bottom: 0; flex: none; display: flex; gap: 12px; padding: 8px 20px calc(10px + var(--safe-b)); background: linear-gradient(180deg, rgba(244,236,225,0.85), #f4ece1 30%); }
.cd-bar-total { flex: none; height: 54px; padding: 0 22px; display: grid; place-items: center; border-radius: 28px; border: 1.6px solid var(--terracotta); font-size: 18px; font-weight: 700; color: var(--terracotta); font-variant-numeric: tabular-nums; }
.cd-book { flex: 1; height: 54px; border: 0; border-radius: 28px; background: var(--terracotta); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.cd-book:hover { filter: brightness(0.95); }

/* Book now 시트 — 항공 · 숙소 파트너 링크 */
.bk-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(62,56,48,0.35); display: flex; align-items: flex-end; justify-content: center; }
.bk { width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: #f4ece1; border-radius: 20px 20px 0 0; padding: 8px 20px calc(20px + var(--safe-b)); font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 -8px 24px rgba(62,56,48,0.18); }
.bk-grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--mid-beige); margin: 0 auto 8px; }
.bk-h { display: flex; align-items: center; justify-content: space-between; }
.bk-h h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; }
.bk-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--dark-brown); display: grid; place-items: center; cursor: pointer; }
.bk-row { text-decoration: none; background: var(--cream); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.bk-row:hover { background: #fff; }
.bk-row > svg:last-child { color: var(--sub-ico); flex: none; }
@media (min-width: 861px) { .bk-scrim { align-items: center; } .bk { border-radius: 20px; } .bk-grab { display: none; } }


/* 지도 표식 */
/* position 은 주지 않는다 — maplibre 가 표식 요소에 absolute 를 건다(덮으면 폭이 지도 끝까지 늘어난다). */
.ex-pill { padding: 4px 9px; border-radius: 999px; background: var(--terracotta); color: var(--cream); font: 700 13px/1.2 Georgia, serif; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 1px 2px rgba(62,56,48,0.2); cursor: pointer; margin-bottom: 6px; }
.ex-pill::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.ex-pill:hover, .ex-pill:focus-visible { background: var(--dark-brown); outline: none; z-index: 2; }
.ex-pill.ex-group { background: var(--cream); color: var(--terra-text); border: 1.5px solid var(--terracotta); font-size: 12px; padding: 3px 9px; }
.ex-pill.ex-group::after { display: none; }
.ex-pill.ex-group:hover { background: var(--cream); color: var(--dark-brown); }
.ex-pill.ex-stay { background: rgba(250,247,240,0.96); color: #5e5549; border: 1px dashed var(--terracotta); font-weight: 400; font-size: 12px; padding: 3px 9px; cursor: default; }
.ex-pill.ex-stay::after { display: none; }
.ex-pill.ex-stay:hover { background: var(--cream); color: var(--dark-brown); }
.ex-origin-mk { display: flex; align-items: center; gap: 6px; font: 700 12px Georgia, serif; color: var(--dark-brown); text-shadow: 0 0 3px #faf7f0, 0 0 6px #faf7f0; }
.ex-you { width: 12px; height: 12px; border-radius: 50%; background: var(--dark-brown); box-shadow: 0 0 0 5px rgba(62,56,48,0.15); }
.ex-pin { width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box; background: var(--cream); border: 2px solid var(--dark-brown); color: var(--dark-brown); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(62,56,48,0.25); cursor: pointer; }
.ex-clu { width: var(--s, 30px); height: var(--s, 30px); border-radius: 50%; background: rgba(62,56,48,0.82); color: var(--cream); display: grid; place-items: center; font: 700 13px Georgia, serif; box-shadow: 0 0 0 3px rgba(250,247,240,0.9); cursor: pointer; }
.ex-pop .maplibregl-popup-content { padding: 10px 12px; border-radius: 12px; background: var(--cream); box-shadow: 0 4px 12px rgba(62,56,48,0.16); font-family: Georgia, serif; display: flex; flex-direction: column; gap: 2px; }
.ex-pop .maplibregl-popup-content b { font-size: 0.875rem; }
.ex-pop .maplibregl-popup-content span { font-size: 0.75rem; color: var(--mocha); }
.ex-pop .maplibregl-popup-tip { border-top-color: var(--cream); }

/* 로그인 레일 안 — Map 과 같은 꽉 찬 배치 */
.panel.panel-map > .ex { height: 100%; }

@media (max-width: 860px) {
  .ex { display: block; }
  .ex-map { position: absolute; inset: 0; }
  .ex-side {
    position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    border-right: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -4px 12px rgba(62,56,48,0.10);
    transition: height 250ms ease;
  }
  .ex-side.open { height: 86%; }
  .ex-grab { display: block; align-self: center; flex: none; border: 0; background: none; padding: 8px 32px 4px; cursor: grab; touch-action: none; }
  .ex-grab span { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--mid-beige); }
  .ex-body { padding: 4px 16px calc(16px + var(--safe-b)); }
  .dc-row { margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .dc-card { --w: min(60vw, 260px); }
  .ex-body.is-city { padding: 0; }
  .cd-hero { height: 200px; }
  body.explore-mode .ex-top { padding-top: var(--safe-t); height: calc(56px + var(--safe-t)); }
}
@media (prefers-reduced-motion: reduce) { .ex-side { transition: none; } }

/* ══════════════════════════════════════════
   2026-11-05 — 내 프로필 · 설정. 앱 ProfileSettingsList 와 같은 줄(아이콘 21 · Georgia 15 · 꺾쇠 · 가는 선).
   ══════════════════════════════════════════ */
.st-wrap { max-width: 640px; margin: 0 auto; }
.st-me-top, .st-top { display: flex; align-items: center; gap: 8px; }
.st-me-top { justify-content: space-between; }
.st-gear { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--mid-beige); color: var(--dark-brown); text-decoration: none; font-size: 0.9rem; background: var(--cream); }
.st-gear:hover { background: #fff; }
.st-back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--dark-brown); margin-left: -8px; }
.st-back:hover { background: var(--form-beige); }
.st-list { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 12px; }
.st-gap { margin-top: 28px; }
.st-row { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--dark-brown); text-align: left; text-decoration: none; cursor: pointer; }
.st-row + .st-row, #stSanction + .st-row, .st-list > * + * { border-top: 1px solid var(--line); }
#stSanction:empty { display: none; }
a.st-row:hover, button.st-row:hover { background: rgba(241,234,221,0.6); }
.st-row > svg { flex: none; color: var(--sub-ico); }
.st-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-l b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-l small { font-size: 0.8rem; color: var(--mocha); line-height: 1.45; }
.st-chev { color: var(--sub-ico); opacity: 0.6; display: grid; }
.st-terra, .st-terra > svg { color: var(--terracotta); }
.st-danger, .st-danger > svg { color: #b3261e; }
.st-foot { margin: 16px 4px 0; font-size: 0.8rem; color: var(--mocha); line-height: 1.5; }
.st-note { margin: 12px 16px; font-size: 0.82rem; color: var(--mocha); line-height: 1.5; }
.st-body > .st-note:first-child { margin: 8px 4px 0; }
.st-skel { cursor: default; }
.st-skel i { display: block; height: 14px; width: 55%; border-radius: 6px; background: #efe8da; }
.st-act { flex: none; border: 1px solid var(--mid-beige); background: none; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 0.85rem; color: var(--dark-brown); cursor: pointer; }
.st-act:hover { background: #fff; }
.st-act-d { color: #b3261e; }
.st-act:disabled { opacity: 0.5; cursor: default; }
.st-person .av-s { width: 40px; height: 40px; flex: 0 0 40px; }
.st-left { color: var(--terra-text) !important; }
.st-trash { flex-wrap: wrap; gap: 8px 12px; }
/* 동의 스위치 */
.st-sw { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; cursor: pointer; position: relative; }
.st-sw.off { cursor: default; }
.st-sw-t { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.st-sw-t b { font-size: 15px; font-weight: 600; }
.st-sw-t small { font-size: 0.8rem; color: var(--mocha); line-height: 1.45; }
.st-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-knob { flex: none; margin-top: 2px; width: 44px; height: 26px; border-radius: 13px; background: var(--mid-beige); position: relative; transition: background 150ms; }
.st-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(62,56,48,0.3); transition: transform 150ms; }
.st-sw input:checked + .st-knob { background: var(--terracotta); }
.st-sw input:checked + .st-knob::after { transform: translateX(18px); }
.st-sw input:focus-visible + .st-knob { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.st-sw.off .st-knob { opacity: 0.5; }
.st-about { padding: 4px 18px 8px; font-size: 0.92rem; line-height: 1.6; }
.st-about ul { margin: 0 0 12px; padding-left: 18px; }
.st-del { margin: 8px 0; padding-left: 18px; font-size: 0.9rem; line-height: 1.6; }
.dlg-ok:disabled { opacity: 0.4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .st-knob, .st-knob::after { transition: none; } }

/* ══════════════════════════════════════════
   2026-11-06 — 탐색 v3 · 지도 │ 여정 │ Discover 3단(사용자 시안 1·2·3).
   전체가 한 스크롤, 지도 칸만 화면 높이에 붙는다(sticky). 1280 아래 2단, 860 아래 1단.
   ══════════════════════════════════════════ */
.panel.panel-map > .xp, .ex-wrap > .xp { height: 100%; }
.xp { --xp-h: 100%; height: 100%; overflow-y: auto; display: grid; gap: 16px; padding: 16px 20px 24px; align-items: start;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 1fr) minmax(300px, 1.1fr);
  grid-template-areas: "map mid disc" "map rec rec"; grid-template-rows: auto 1fr;
  font-family: 'Pretendard', -apple-system, 'Segoe UI', sans-serif; color: var(--dark-brown); background: var(--parchment); }
.xp.is-city { grid-template-areas: "map mid disc"; grid-template-rows: auto; }
.xp-map { grid-area: map; position: sticky; top: 0; height: calc(var(--xp-h) - 40px); min-height: 420px; border-radius: 18px; overflow: hidden; background: #d6e2de; box-shadow: 0 1px 3px rgba(62,56,48,0.12); }
.xp-map-gl { position: absolute; inset: 0; }
.xp-mid { grid-area: mid; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.xp-disc { grid-area: disc; min-width: 0; }
.xp-rec { grid-area: rec; min-width: 0; }
.xp-card { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 1px 2px rgba(62,56,48,0.05); }

/* 카드 머리 — Fly from / Itineraries */
.xp-from-h { display: flex; align-items: flex-start; gap: 8px; }
.xp-from-t { flex: 1; min-width: 0; }
.xp-from-t > small, .xp-kicker { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mocha); }
.xp-origin { position: relative; display: flex; align-items: baseline; gap: 8px; margin-top: 2px; cursor: pointer; min-width: 0; }
.xp-origin b { font-family: Georgia, serif; font-size: 24px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-origin span { font-size: 12px; color: var(--mocha); white-space: nowrap; }
.xp-origin select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.xp-origin:focus-within b { text-decoration: underline; text-decoration-color: var(--terracotta); }
.xp-fold { flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: none; color: var(--sub-ico); display: grid; place-items: center; cursor: pointer; }
.xp-fold:hover { background: var(--form-beige); color: var(--dark-brown); }
.xp-itin-t { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.xp-from-t > small:last-child:not(:first-child) { margin-top: 2px; }
.xp-search { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--form-beige); color: var(--sub-ico); }
.xp-search { min-width: 0; }
.xp-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--dark-brown); outline: none; }
.xp-search:focus-within { box-shadow: 0 0 0 2px var(--terracotta); }
.xp-search.locked, .xp-search.locked input { cursor: pointer; }
.xp-sub-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 0 6px; }
.xp-sub-h b { font-family: Georgia, serif; font-size: 15px; }
.xp-sub-h small { font-size: 12px; color: var(--mocha); }
.xp-empty { margin: 12px 0 4px; font-size: 14px; line-height: 1.5; color: var(--mocha); }

/* Cheapest round trips 목록 */
.xp-trips { list-style: none; margin: 0; padding: 0; }
.xp-trips li + li { border-top: 1px solid var(--line); }
.xp-trip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; margin: 2px 0; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.xp-trip:hover, .xp-trip.on { background: var(--sheet); }
.xp-trip:focus-visible { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.xp-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #d9c3a5; }
.xp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-trip-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-trip-t b { font-family: Georgia, serif; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-trip-t em { font-style: normal; font-family: 'Pretendard', sans-serif; font-size: 11px; font-weight: 600; color: var(--terra-text); border: 1px solid var(--terracotta); border-radius: 999px; padding: 0 6px; margin-left: 4px; vertical-align: 2px; }
.xp-trip-t small { font-size: 12px; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-price { flex: none; font-family: Georgia, serif; font-size: 15px; font-variant-numeric: tabular-nums; }
.xp-skel { cursor: default; }
.xp-skel i { display: block; background: #ece3d3; border-radius: 6px; }
.xp-trip.xp-skel > i { width: 40px; height: 40px; border-radius: 8px; }
.xp-trip.xp-skel span { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.xp-trip.xp-skel span i { height: 12px; width: 60%; }
.xp-trip.xp-skel span i + i { width: 80%; }

/* Ramble's Recommendation — 사진 카드 가로 넘김 */
.xp-rec-h { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; }
.xp-rec-h h2 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.xp-rec-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.xp-rec-row::-webkit-scrollbar { display: none; }
.xp-rc { position: relative; flex: 0 0 150px; height: 220px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #e3cfb2; scroll-snap-align: start; cursor: pointer; text-align: left; font: inherit; color: #fff; }
.xp-rc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.xp-rc .dc-ph { width: 52px; height: 52px; font-size: 28px; }
.xp-rc-t { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; }
.xp-rc-t b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-rc-t small { font-size: 12.5px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-rc:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.xp-rc.dc-skel { background: #e6dacb; }

/* 지도 표식 — 점이 정확한 좌표, 말풍선은 그 위 */
.xp-pm { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.xp-pill { position: relative; padding: 4px 9px; margin-bottom: 7px; border-radius: 999px; background: var(--terracotta); color: var(--cream); font: 700 13px/1.2 Georgia, serif; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 1px 2px rgba(62,56,48,0.2); }
.xp-pill::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.xp-pill.grp { background: var(--cream); color: var(--terra-text); border: 1.5px solid var(--terracotta); font-size: 12px; padding: 3px 9px; }
.xp-pill.grp::after { background: var(--cream); border-right: 1.5px solid var(--terracotta); border-bottom: 1.5px solid var(--terracotta); bottom: -5px; }
.xp-pm:hover .xp-pill, .xp-pm:focus-visible .xp-pill, .xp-pm.hot .xp-pill { background: var(--dark-brown); color: var(--cream); border-color: var(--dark-brown); }
.xp-pm:hover .xp-pill::after, .xp-pm.hot .xp-pill::after { background: var(--dark-brown); border-color: var(--dark-brown); }
.xp-pm.hot { z-index: 3; }
.xp-pm:focus-visible { outline: none; }
.xp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 2px var(--cream), 0 1px 2px rgba(62,56,48,0.35); cursor: pointer; }
.xp-pm .xp-dot { flex: none; }
.xp-stop-mk { width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--c); border: 2px solid var(--c); display: grid; place-items: center; font: 700 12px Georgia, serif; cursor: pointer; box-shadow: 0 1px 2px rgba(62,56,48,0.3); }
.xp-stop-mk.on { background: var(--c); color: #fff; }
.xp-sel-mk { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.xp-sel-mk span { padding: 4px 10px; border-radius: 999px; background: var(--dark-brown); color: var(--cream); font: 700 12px Georgia, serif; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.xp-sel-mk::after { content: ''; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--dark-brown); box-shadow: 0 0 0 3px var(--cream), 0 0 0 7px rgba(62,56,48,0.2); }

/* 지도 아래 시트 */
.xp-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--sheet); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 18px rgba(62,56,48,0.14); }
.xp-sh-in { position: relative; padding: 16px 18px 16px; overflow-y: auto; max-height: calc((var(--xp-h) - 40px) * 0.62); overscroll-behavior: contain; }
.xp-sticker { position: absolute; top: -30px; right: 92px; z-index: 2; width: 88px; pointer-events: none; transform: rotate(6deg); }
.xp-sh-top { display: flex; align-items: flex-start; gap: 6px; }
.xp-sh-h { flex: 1; min-width: 0; padding-right: 64px; }
.xp-sh-name { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.25; }
.xp-sh-top .xp-sh-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-sh-h .cd-ramblers { flex-wrap: wrap; font-size: 13px; }
.xp-sh-total { margin-left: 8px; font-size: 17px; font-weight: 800; color: var(--terracotta); font-variant-numeric: tabular-nums; }
.xp-est { font-size: 11px; color: var(--mocha); }
.xp-sh-text { margin: 12px 0 0; font-family: Georgia, serif; font-size: 15.5px; line-height: 1.55; color: #5e5549; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.xp-sh-text.open { display: block; }
.xp-sh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--mocha); }
.xp-kind { font-weight: 700; color: var(--k); }
.xp-badge { font-size: 11px; font-weight: 700; color: var(--terra-text); border: 1px solid var(--terracotta); border-radius: 999px; padding: 1px 7px; }
.xp-crumb { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 6px 4px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--terra-text); cursor: pointer; }
.xp-sp { flex: 1; }
.xp-sh-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.xp-sh-picks > span { display: block; font-family: Georgia, serif; font-size: 15px; margin-bottom: 6px; }
.xp-sh-picks > div { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-sh-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.xp-sh-foot .xp-sh-btns { margin-top: 0; }
.xp-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--terracotta); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.xp-btn:hover { filter: brightness(0.95); }
.xp-btn.soft { background: #e0b48f; color: var(--dark-brown); }
.xp-btn.ghost { background: none; border: 1px solid var(--mid-beige); color: var(--dark-brown); }
.xp-added { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #5f7a4a; }
.xp-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--mid-beige); background: var(--cream); font: inherit; font-size: 12px; font-weight: 600; color: var(--dark-brown); white-space: nowrap; }
.xp-chip.dark { background: #4a3c2c; border-color: #4a3c2c; color: #f6ecde; }
button.xp-chip { cursor: pointer; }
.xp-sheet .cd-h { margin-top: 18px; }

/* Itineraries — 날짜 칩 · 정류장 */
.xp-results { list-style: none; margin: 6px 0 0; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(62,56,48,0.1); }
.xp-results button { display: flex; flex-direction: column; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.xp-results button:hover { background: var(--sheet); }
.xp-results b { font-size: 14px; font-weight: 600; }
.xp-results small, .xp-res-note { font-size: 12px; color: var(--mocha); }
.xp-res-note { padding: 8px 10px; }
.xp-days { display: flex; gap: 6px; overflow-x: auto; margin: 14px -14px 4px; padding: 2px 14px 4px; scrollbar-width: none; }
.xp-days::-webkit-scrollbar { display: none; }
.xp-day { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mid-beige); background: var(--cream); font: inherit; font-size: 13px; color: var(--dark-brown); cursor: pointer; font-variant-numeric: tabular-nums; }
.xp-day i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.xp-day.on { background: #4a3c2c; border-color: #4a3c2c; color: #f6ecde; }
.xp-day:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }
.xp-stops { list-style: none; margin: 8px 0 0; padding: 0; }
.xp-stop { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.xp-stop + .xp-stop { border-top: 1px solid var(--line); }
.xp-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 12px Georgia, serif; }
.xp-stop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 0; background: none; padding: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.xp-stop-t b { font-family: Georgia, serif; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-stop-t small { font-size: 12px; font-weight: 600; }
.xp-move { flex: none; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); font: inherit; font-size: 12px; color: var(--mocha); padding: 0 4px; }
.xp-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--sub-ico); display: grid; place-items: center; cursor: pointer; }
.xp-x:hover { background: var(--form-beige); color: var(--dark-brown); }

/* Ramble Discover */
.xp-disc-t { margin: 2px 0 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.xp-disc-sub { margin: 2px 0 0; font-size: 13px; color: var(--mocha); }
.xp-disc-q { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.xp-disc-q .xp-search { flex: 1; margin-top: 0; }
.xp-filter { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--mid-beige); background: var(--cream); color: var(--dark-brown); display: grid; place-items: center; cursor: pointer; }
.xp-filter.on { background: #4a3c2c; color: #f6ecde; border-color: #4a3c2c; }
.xp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.xp-chip.add { border-style: dashed; color: var(--mocha); }
.xp-chip.term { border: 0; color: #fff; text-transform: none; }
.xp-chip.term.t0 { background: #4a3c2c; } .xp-chip.term.t1 { background: var(--terracotta); } .xp-chip.term.t2 { background: #1a3a5c; } .xp-chip.term.t3 { background: #5f7a4a; }
.xp-or { font-size: 11px; color: var(--mocha); }
.xp-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px 10px; margin-top: 14px; }
.xp-ev { display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; min-width: 0; }
.xp-ev-img { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #e6dacb; }
.xp-ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms; }
.xp-ev:hover .xp-ev-img img { transform: scale(1.03); }
.xp-ev b { margin-top: 4px; font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp-ev small.xp-km { color: var(--terra-text); font-weight: 600; }
.xp-ev small { font-size: 12px; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-ev.xp-skel i { aspect-ratio: 2 / 3; border-radius: 12px; }
.xp-disc .ex-banner { margin-top: 12px; }

/* 1280 아래 — 2단(지도 │ 여정 + Discover + 추천) */
@media (max-width: 1279px) {
  .xp { grid-template-columns: minmax(320px, 1fr) minmax(300px, 1.15fr); grid-template-areas: "map mid" "map disc" "map rec"; grid-template-rows: auto auto 1fr; }
  .xp.is-city { grid-template-areas: "map mid" "map disc"; grid-template-rows: auto 1fr; }
}
/* 860 아래 — 1단. 지도는 위에 고정 높이, 나머지는 아래로 */
@media (max-width: 860px) {
  .xp { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 0 24px; }
  .xp-map { position: relative; top: auto; height: 58vh; min-height: 360px; flex: none; border-radius: 0; }
  .xp-mid, .xp-disc, .xp-rec { margin: 0 12px; }
  .xp-sh-in { max-height: calc(58vh * 0.72); }
  .xp-sh-text { font-size: 14.5px; -webkit-line-clamp: 3; }
  .xp-sticker { width: 64px; top: -22px; right: 88px; }
}
@media (prefers-reduced-motion: reduce) { .xp-ev-img img { transition: none; } }

/* 2026-11-06 — 도시 Discover 세 칸(공연 · Rambler 포스트 · 액티비티) */
.xp-sec-h { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 0; font-family: Georgia, serif; font-size: 16px; font-weight: 700; }
.xp-sec-h small { font-family: 'Pretendard', sans-serif; font-size: 12px; font-weight: 600; color: var(--mocha); }
.xp-sec-h + .xp-evs, .xp-sec-h + .xp-posts, .xp-sec-h + .xp-acts { margin-top: 10px; }
.xp-empty.sm { margin: 6px 0 0; font-size: 13px; }
.xp-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px 10px; }
.xp-post { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.xp-post-img { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #e6dacb; }
.xp-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-post b { margin-top: 4px; font-family: Georgia, serif; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-post small { font-size: 12px; color: var(--mocha); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-acts { list-style: none; margin: 0; padding: 0; }
.xp-acts li + li { border-top: 1px solid var(--line); }
.xp-act { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; }
.xp-act:hover .xp-act-t b { text-decoration: underline; }
.xp-act-img { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #e6dacb; }
.xp-act-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-act-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-act-t b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xp-act-t small { font-size: 12px; color: var(--mocha); }
.xp-act-p { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 2026-11-06 — Plan a trip(From · Where · When · 항공) · Things to do(공연 + 상품) */
.xp-k { flex: none; width: 52px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mocha); }
.xp-origin .xp-k { align-self: center; }
.xp-where, .xp-when { display: flex; align-items: center; gap: 0; margin-top: 10px; }
.xp-where .xp-search { flex: 1; margin-top: 0; }
.xp-where-res button { flex-direction: row; align-items: center; gap: 10px; }
.xp-where-res .xp-trip-t { flex: 1; }
.xp-thumb.sm { width: 32px; height: 32px; border-radius: 6px; }
.xp-when { flex-wrap: wrap; row-gap: 8px; }
.xp-dates { display: flex; align-items: center; gap: 6px; flex: 1 1 calc(100% - 52px); min-width: 0; }
.xp-when .xp-link, .xp-when .xp-flex { margin-left: 52px; padding-left: 0; }
.xp-dates input { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; background: var(--form-beige); padding: 0 6px; font: inherit; font-size: 13px; color: var(--dark-brown); font-variant-numeric: tabular-nums; }
.xp-dates input:focus { outline: 2px solid var(--terracotta); }
.xp-dates span { color: var(--mocha); }
.xp-link { border: 0; background: none; padding: 4px 0 4px 8px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--terra-text); cursor: pointer; }
.xp-flex { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; }
.xp-flex button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--mid-beige); background: var(--cream); font: inherit; font-size: 16px; line-height: 1; color: var(--dark-brown); cursor: pointer; }
.xp-flex button:disabled { opacity: 0.4; cursor: default; }
.xp-flex b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.xp-fl { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--sub-ico); }
.xp-fl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-fl-t b { font-size: 14px; color: var(--dark-brown); font-variant-numeric: tabular-nums; }
.xp-fl-t small { font-size: 12px; color: var(--mocha); line-height: 1.4; }
.xp-fl .xp-price { color: var(--dark-brown); }
.xp-fl-go { margin-top: 10px; width: 100%; justify-content: center; text-decoration: none; height: 38px; font-size: 14px; }
.xp-fl-deal { display: block; width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--terracotta); border-radius: 10px; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--terra-text); text-align: left; cursor: pointer; }
.xp-fl-deal:hover { background: var(--sheet); }
.xp-fl-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--mocha); }
.xp-more-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--mocha); }
.xp-ev-img { position: relative; }
.xp-tag { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 7px; border-radius: 999px; background: rgba(62,56,48,0.82); color: #f6ecde; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; }
.xp-tag.tour { background: rgba(184,92,56,0.92); color: #fff; }
.xp-ph-tour { display: grid !important; place-items: center; background: repeating-linear-gradient(135deg, #ead9c3 0 10px, #e3cfb2 10px 20px) !important; }
.xp-ph-tour em { font-style: normal; font-family: Georgia, serif; font-size: 15px; color: #8b6a50; text-transform: capitalize; }

/* 2026-11-06 — 접기 · 픽 → Pool */
.xp-fold-g { display: inline-flex; gap: 2px; flex: none; }
.xp-fold-sum { margin: 8px 0 0 52px; font-size: 12.5px; color: var(--mocha); font-variant-numeric: tabular-nums; }
.xp-disc .xp-from-t { min-width: 0; }
.xp-disc .xp-disc-sub { margin-bottom: 0; }
.cd-pick-row { display: flex; align-items: center; gap: 8px; }
.cd-pick-row + .cd-pick-row, .cd-pick-row + .cd-pick { border-top: 1px solid var(--line); }
.cd-pick-row .cd-pick { flex: 1; min-width: 0; }
.cd-pool { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px; border: 1px solid var(--terracotta); border-radius: 999px; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--terra-text); cursor: pointer; }
.cd-pool:hover { background: var(--terracotta); color: #fff; }
.cd-pool.on { border-color: #5f7a4a; color: #5f7a4a; padding: 0 8px; cursor: default; }
.st-val { font-size: 13px; color: var(--mocha); }
.st-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mid-beige); margin-top: 1px; }
.st-radio input:checked + .st-dot { border-color: var(--terracotta); box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 11px var(--terracotta); }
.st-radio input:focus-visible + .st-dot { outline: 2px solid var(--terracotta); outline-offset: 2px; }
