:root {
  --ink: #111827; --sub: #4b5563; --mute: #9ca3af; --line: #e5e7eb; --bg: #f8fafc;
  --brand: #e03131; --panel-w: 380px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* 상단 바 */
.topbar { height: 56px; display: flex; align-items: center; gap: 28px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
.logo { font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo-pin { color: var(--brand); font-size: 22px; }
.logo-tag { font-size: 10px; color: var(--brand); border: 1px solid var(--brand); border-radius: 4px; padding: 1px 5px; letter-spacing: .08em; }
.topnav { display: flex; gap: 22px; font-size: 14px; color: var(--sub); overflow-x: auto; }
.topnav a { padding: 18px 0; cursor: pointer; white-space: nowrap; }
.topnav a.active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px var(--brand); }
.lang-select { margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; background: #fff; color: var(--sub); cursor: pointer; }

/* 레이아웃 */
.layout { display: flex; height: calc(100% - 56px); }
.panel { width: var(--panel-w); flex: none; overflow-y: auto; border-right: 1px solid var(--line); padding: 28px 22px; background: #fff; }
.mapwrap { flex: 1; position: relative; }
#map { position: absolute; inset: 0; }

.city-tabs { display: flex; gap: 6px; margin: 0 -16px 14px 0; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }  /* 도시가 많으면 옆으로 밀어서 */
.city-tabs::-webkit-scrollbar { display: none; }
.city-tabs[hidden] { display: none; }
.city { flex: none; white-space: nowrap; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--mute); }
.city small { font-weight: 400; margin-left: 2px; }
.city.on { background: #212529; border-color: #212529; color: #fff; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0 0 10px; }
h1, .h1 { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.02em; }
.lead { font-size: 13.5px; line-height: 1.65; color: var(--sub); margin: 0 0 10px; }
.count { font-size: 13.5px; color: var(--sub); margin: 0 0 18px; }
.count b { color: var(--brand); }
.search, .select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 14px; background: var(--bg); margin-bottom: 10px; font-family: inherit; }
.sort { border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; padding: 4px 0; text-align: right; }
.list-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.pill { font-size: 12px; background: #f1f5f9; color: var(--sub); padding: 2px 9px; border-radius: 999px; font-weight: 600; }

/* 목록 카드 */
.list { list-style: none; margin: 0; padding: 0; }
.card { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.card:hover { background: var(--bg); }
.thumb { width: 112px; height: 84px; border-radius: 8px; flex: none; background: #e5e7eb center/cover; position: relative; display: grid; place-items: center; font-size: 26px; }
.thumb .play { position: absolute; right: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.7); color: #fff; padding: 1px 5px; border-radius: 4px; }
.card-body { min-width: 0; }
.cat { font-size: 11.5px; font-weight: 700; }
.card-body { flex: 1; }
.card-name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.card-rate { font-size: 13px; color: var(--sub); margin: 2px 0 1px; }
.card-rate b { color: #e8590c; }
.card-rate small { color: var(--mute); }
.card .cat { font-size: 11.5px; margin: 0; }
.card-why { font-size: 12.5px; line-height: 1.45; color: var(--sub); margin: 3px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; margin-top: 4px; }
.badge.pending { background: #fff4e6; color: #d9480f; }
.badge.ok { background: #ebfbee; color: #2b8a3e; }
.badge.visited { background: #e7f5ff; color: #1864ab; margin-left: 4px; }
.rating { font-size: 12px; color: var(--mute); margin-left: 6px; }
.rating b { color: #e8590c; font-weight: 700; }
.d-rating { display: inline-block; margin: -6px 0 12px; text-decoration: none; }
.d-rating .rating { margin: 0; font-size: 14px; }
.empty { color: var(--mute); font-size: 13px; padding: 24px 0; text-align: center; }

/* 카테고리 칩 */
.chips { position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.06); font-family: inherit; display: flex; align-items: center; gap: 6px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.legend { position: absolute; z-index: 2; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); border-radius: 8px; padding: 6px 10px; font-size: 11.5px; color: var(--sub); display: flex; gap: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.map-toggle { display: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: -1px; }

/* 상세 */
.back { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px 0 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.d-name, h1.d-name { font-size: 24px; margin: 6px 0 2px; letter-spacing: -.02em; }
.d-alt { color: var(--mute); font-size: 13px; margin-bottom: 12px; }
.status { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; margin: 12px 0; }
.status.pending { background: #fff4e6; color: #a63c06; }
.status.ok { background: #ebfbee; color: #2b8a3e; }
.status.visited { background: #e7f5ff; color: #1864ab; font-weight: 600; margin-bottom: -6px; }
.d-summary { font-size: 14px; line-height: 1.7; color: #1f2937; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tag { font-size: 12px; background: #f1f5f9; color: var(--sub); padding: 3px 8px; border-radius: 6px; }
.d-sec { font-size: 13px; font-weight: 700; margin: 22px 0 8px; }
.hl { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.info { width: 100%; font-size: 13px; border-collapse: collapse; }
.info th { text-align: left; color: var(--mute); font-weight: 500; width: 76px; padding: 6px 0; vertical-align: top; }
.info td { padding: 6px 0; line-height: 1.5; }
.btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { flex: 1; text-align: center; padding: 11px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; }
.btn.save { cursor: pointer; background: #fff; font-family: inherit; color: var(--ink); }
.btn.save.on { color: #e8590c; border-color: #ffc078; background: #fff4e6; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.video { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-meta { font-size: 12px; color: var(--sub); margin: 6px 0 14px; }
.v-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.v-tab { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.v-tab.on { background: var(--ink); color: #fff; }
.novideo { font-size: 13px; color: var(--mute); background: var(--bg); border-radius: 10px; padding: 18px; text-align: center; }
.sources { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.sources li { padding: 5px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 6px; }
.sources a { color: #1c7ed6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { flex: none; font-size: 10px; font-weight: 700; background: #e7f5ff; color: #1864ab; padding: 1px 5px; border-radius: 4px; height: fit-content; margin-top: 1px; }
.note { font-size: 11.5px; color: var(--mute); margin-top: 18px; line-height: 1.6; }

/* 푸터 · 안내 페이지 · 가이드 글 */
.site-foot { font-size: 12px; color: var(--mute); padding: 22px 0 6px; margin-top: 18px; border-top: 1px solid var(--line); line-height: 1.9; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
body.doc { height: auto; }
body.doc .site-foot { max-width: 760px; margin: 0 auto; padding: 22px 20px 40px; }
.article-wrap { padding: 36px 20px 10px; }
.article { max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.8; color: #1f2937; }
.article h1 { font-size: 30px; margin: 0 0 16px; }
.article h2 { font-size: 19px; margin: 32px 0 8px; }
.article p { margin: 0 0 12px; }
.article a { color: #1c7ed6; }
.article .lead { font-size: 16px; color: var(--sub); }
.crumb { font-size: 13px; color: var(--mute); }
.g-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.g-item img, .g-ph { width: 220px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; background: #e5e7eb; }
.g-ph { display: grid; place-items: center; font-size: 42px; }
.g-item h2 { margin: 0 0 4px; font-size: 18px; }
.g-item h2 a { color: var(--ink); }
.g-item .cat { color: var(--brand); margin-bottom: 8px; }
.g-meta { font-size: 13px; color: var(--mute); margin: 0 0 4px !important; }
.g-more { font-size: 13.5px; font-weight: 600; }
.g-list { list-style: none; padding: 0; margin: 0; }
.g-list a { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit !important; }
.g-list img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.g-list b { display: block; font-size: 17px; color: var(--ink); }
.g-list span { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.g-list p { margin: 4px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
/* 도시별 여행 가이드 */
.article h3 { font-size: 16.5px; margin: 24px 0 6px; }
.ttabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.ttabs a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--sub) !important; }
.ttabs a.on { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.opnote { background: #e7f5ff; border-left: 4px solid #1c7ed6; border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.opnote b { display: block; color: #1864ab; font-size: 13.5px; margin-bottom: 4px; }
.opnote p { margin: 0 0 6px; }
.steps { padding-left: 22px; margin: 6px 0 12px; }
.steps li { margin-bottom: 10px; }
.steps li b { display: block; }
.steps li p { margin: 2px 0 0; color: var(--sub); }
.tbl { overflow-x: auto; margin: 6px 0 14px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.55; }
.tbl th { background: var(--bg); font-weight: 700; white-space: nowrap; }
.near { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; font-size: 13px; }
.near span { color: var(--mute); font-weight: 600; }
.near a { background: #fff4e6; color: #d9480f !important; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.src { font-size: 12px; color: var(--mute); }
.src a, .srclist a { color: var(--sub) !important; }
.srclist { font-size: 13px; padding-left: 18px; }
.updated { font-size: 12.5px; color: var(--mute); margin-top: 26px !important; }
.city-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.city-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.cc-main { color: inherit !important; display: block; }
.cc-main b { font-size: 19px; }
.cc-main p { font-size: 14px; color: var(--sub); margin: 6px 0 8px; line-height: 1.6; }
.cc-main span { font-size: 13.5px; font-weight: 700; color: #1c7ed6; }
.cc-links { font-size: 13px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.criteria { background: var(--bg); border-radius: 14px; padding: 4px 20px 10px; margin: 26px 0; }
.criteria h2 { font-size: 17px; }
.theme-h { margin-top: 40px !important; }
@media (max-width: 820px) {
  .g-item { flex-direction: column; gap: 10px; }
  .g-item img, .g-ph { width: 100%; }
  .g-ph { font-size: 56px; }
  .g-list img { width: 110px; }
  .article h1 { font-size: 24px; }
}

/* 지도 팝업 */
.maplibregl-popup-content { border-radius: 10px; padding: 8px 12px; font-family: inherit; font-size: 13px; font-weight: 700; }

/* 모바일: 지도 위, 목록 아래 */
@media (max-width: 820px) {
  .topbar { height: 96px; flex-wrap: wrap; gap: 0 12px; padding: 0 14px; align-content: flex-start; }
  .logo { height: 52px; }
  .topnav { order: 3; width: 100%; height: 44px; gap: 18px; font-size: 13.5px; scrollbar-width: none; }
  .topnav a { padding: 12px 0; }
  .layout { height: calc(100% - 96px); }
  .lang-select { flex: none; max-width: 112px; }
  .topnav::-webkit-scrollbar { display: none; }
  .layout { flex-direction: column-reverse; }
  .mapwrap { flex: none; height: 44vh; }
  .map-min .mapwrap { height: 24vh; }  /* 장소를 열면 지도는 작게, 정보는 크게 */
  .map-min .chips, .map-min .maplibregl-ctrl-bottom-right { display: none; }
  .map-toggle { display: block; position: absolute; z-index: 2; left: 10px; bottom: 10px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer; }
  .panel { width: 100%; flex: 1; border-right: none; border-top: 1px solid var(--line); padding: 18px 16px; }
  h1, .h1 { font-size: 22px; } .panel .lead { display: none; }  /* 지도 화면만 — 가이드·공연표 글의 도입문은 보인다 */
  .legend { display: none; }
  .back { position: sticky; top: -6px; z-index: 5; min-height: 46px; padding: 0 20px 0 14px; font-size: 15.5px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }  /* 내려 읽어도 늘 보이게 */
}

/* 지금 갈 곳 · 오늘 밤 공연 */
.chip.now { font-weight: 700; color: #1864ab; border-color: #a5d8ff; background: #e7f5ff; }
.chip.now.on { background: #1864ab; color: #fff; border-color: #1864ab; }
.now-head { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #e7f5ff; color: #1864ab; font-size: 13px; font-weight: 600; line-height: 1.5; }
.card-live { font-size: 12px; color: var(--sub); margin-top: 3px; }
.live-open { color: #2b8a3e; font-weight: 600; }
.live-show { color: #7048e8; font-weight: 600; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #1c7ed6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(28,126,214,.25); }
.d-shows { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.6; }
.d-shows li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.d-shows li b { display: inline-block; min-width: 64px; }
.d-shows li.tonight { color: #7048e8; font-weight: 600; }
.note-sm { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.note-sm a { color: #1c7ed6; }
.btn.thai { cursor: pointer; background: #fff; font-family: inherit; color: var(--ink); flex-basis: 100%; }

/* 태국어 카드 */
.thai-ov { position: fixed; inset: 0; z-index: 50; background: rgba(17,24,39,.55); display: flex; align-items: flex-end; justify-content: center; }
.thai-box { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 14px 16px 28px; }
.thai-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--sub); }
.thai-x { border: none; background: #f1f5f9; border-radius: 50%; width: 32px; height: 32px; font-size: 15px; cursor: pointer; }
.thai-dest { text-align: center; background: #fff9db; border-radius: 14px; padding: 18px 12px; margin: 10px 0 4px; }
.thai-dest b { display: block; font-size: 30px; line-height: 1.35; }
.thai-dest span { display: block; font-size: 14px; color: var(--sub); margin-top: 4px; }
.thai-dest small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.thai-box h4 { font-size: 13px; color: var(--mute); margin: 16px 0 6px; }
.ph { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-family: inherit; cursor: pointer; }
.ph b { display: block; font-size: 20px; color: var(--ink); }
.ph span { display: block; font-size: 13px; color: var(--sub); margin-top: 2px; }
.ph small { font-size: 12px; color: var(--mute); }
.thai-big { position: fixed; inset: 0; z-index: 51; background: #fff; display: grid; place-items: center; padding: 24px; text-align: center; }
.thai-big b { font-size: 44px; line-height: 1.4; }

/* 영상으로 넘겨 보기 */
.feed-btn { width: 100%; margin: 14px 0 0; cursor: pointer; background: var(--ink); color: #fff; border-color: var(--ink); font-family: inherit; }
body.noscroll { overflow: hidden; }
.feed { position: fixed; inset: 0; z-index: 40; background: #000; overflow-y: auto; scroll-snap-type: y mandatory; }
.feed-x { position: fixed; z-index: 41; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); font-size: 16px; cursor: pointer; }
.feed-item { height: 100vh; height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 640px; margin: 0 auto; }
.feed-v { position: relative; aspect-ratio: 16/9; background: #111 center/cover; display: grid; place-items: center; }
.feed-v iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.feed-play { border: none; border-radius: 999px; padding: 12px 22px; font-size: 16px; font-weight: 700; background: rgba(224,49,49,.92); color: #fff; cursor: pointer; font-family: inherit; }
.feed-info { padding: 16px 18px; }
.feed-info > b { font-size: 22px; display: block; margin: 4px 0; }
.feed-info p { font-size: 14px; line-height: 1.65; color: #d1d5db; margin: 8px 0 14px; }
.feed-info .rating { margin: 0; }
.feed-info .card-live { color: #d1d5db; }
.feed-btns { display: flex; gap: 8px; }
.feed-btns .btn { cursor: pointer; font-family: inherit; }

/* 홈 화면에 추가 */
.install { position: relative; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--bg); }
.install .btn { width: 100%; cursor: pointer; font-family: inherit; }
.install-x { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 12px; }
.install p { font-size: 13px; line-height: 1.6; color: var(--sub); margin: 10px 0 0; }

/* 공연표 페이지 */
.sh-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; position: sticky; top: 0; background: #fff; padding: 8px 0; z-index: 2; }
.sh-bar .city-tabs { margin: 0; }
.sh-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.sh-tabs button { border: none; background: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sub); cursor: pointer; }
.sh-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sh-city h2 { display: none; }
.sh-day h3 { font-size: 15px; margin: 22px 0 6px; color: var(--ink); }
.sh-list { list-style: none; padding: 0; margin: 0; }
.sh-list li { display: grid; grid-template-columns: 54px auto 1fr; grid-template-areas: "t g n" "t s s"; gap: 0 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sh-t { grid-area: t; font-size: 16px; }
.sh-g { grid-area: g; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: #f3f0ff; color: #7048e8; white-space: nowrap; }
.sh-g.g-jazz, .sh-g.g-piano { background: #e7f5ff; color: #1864ab; }
.sh-g.g-blues, .sh-g.g-soul { background: #edf2ff; color: #364fc7; }
.sh-g.g-rock { background: #fff5f5; color: #c92a2a; }
.sh-g.g-acoustic, .sh-g.g-thai { background: #ebfbee; color: #2b8a3e; }
.sh-g.g-dj, .sh-g.g-latin { background: #fff4e6; color: #d9480f; }
.sh-list a { grid-area: n; font-weight: 700; color: var(--ink) !important; }
.sh-list small { grid-area: s; font-size: 12.5px; color: var(--mute); }
.muted { color: var(--mute); font-size: 13.5px; }
.sh-g.g-fusion { background: #fff0f6; color: #c2255c; }
.sh-g.g-show { background: #fff9db; color: #e67700; }
.sh-g.g-folk { background: #f4fce3; color: #5c940d; }

/* 내 여행 (trip.js) — 「저장한 장소」 메뉴 */
.trip-view { display: none; }
.trip-mode .trip-view { display: block; }
.trip-mode #cityTabs, .trip-mode #eyebrow, .trip-mode #h1, .trip-mode #listView > .lead, .trip-mode #count, .trip-mode #search, .trip-mode #area,
.trip-mode #nowHead, .trip-mode #feedBtn, .trip-mode .list-head, .trip-mode #list, .trip-mode .chips { display: none !important; }
.t-lead { font-size: 13px; color: var(--sub); margin: 6px 0 12px; line-height: 1.5; }
.t-sum { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.t-start input { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; background: #fff; margin-left: 6px; }
.t-total b { color: var(--brand); font-size: 17px; }
.t-krw { color: var(--mute); }
.t-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px -16px 12px 0; padding-bottom: 4px; scrollbar-width: none; }
.t-tabs::-webkit-scrollbar { display: none; }
.t-tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.t-tabs button small { font-weight: 500; color: var(--mute); margin-left: 2px; }
.t-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-tabs button.on small { color: #cbd5e1; }
.t-tabs .t-add { border-style: dashed; color: var(--sub); }
.t-day { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin-bottom: 8px; }
.t-day select, .t-list select { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; }
.t-del { margin-left: auto; border: none; background: none; color: var(--mute); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.t-hint { font-size: 12.5px; color: #1864ab; background: #e7f5ff; border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; }
.t-list { list-style: none; padding: 0; margin: 0; }
.t-list > li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.t-list > li.t-leg { border: none; padding: 2px 0 2px 34px; font-size: 12px; color: var(--sub); }
.t-thumb { width: 64px; height: 48px; flex: none; border-radius: 8px; background: #e5e7eb center/cover; display: grid; place-items: center; font-size: 20px; }
.t-n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.t-body { flex: 1; min-width: 0; }
.t-body a { font-weight: 700; font-size: 15px; cursor: pointer; }
.t-sub { font-size: 12px; color: var(--mute); margin: 2px 0 4px; }
.t-note { font-size: 12.5px; margin-top: 2px; }
.warn { color: #c92a2a; font-weight: 600; }
.t-btns { display: flex; gap: 4px; flex: none; }
.t-btns button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 15px; cursor: pointer; color: var(--ink); }
.t-btns button:disabled { opacity: .3; cursor: default; }
.t-daysum { font-size: 13px; color: var(--sub); text-align: right; margin: 8px 0; }
.t-route, .t-share { display: block; width: 100%; text-align: center; margin: 8px 0; box-sizing: border-box; cursor: pointer; font-family: inherit; }
.t-budget { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.t-budget summary { font-weight: 700; cursor: pointer; }
.t-budget table { width: 100%; font-size: 13.5px; border-collapse: collapse; margin-top: 8px; }
.t-budget th { text-align: left; font-weight: 500; color: var(--sub); padding: 6px 0; }
.t-budget td { text-align: right; padding: 6px 0; }
.t-budget input { width: 84px; font: inherit; text-align: right; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.t-tot th, .t-tot td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; color: var(--ink); }
.t-tot b { color: var(--brand); }
.t-rate { font-size: 12px; color: var(--mute); margin: 6px 0 0; }
.t-rate input { width: 56px; }

/* 아주 좁은 화면 (갤럭시 폴드 바깥 화면 등): 로고와 언어 선택이 한 줄에 들어가야 메뉴 줄이 밀려 가려지지 않는다 */
@media (max-width: 400px) {
  .logo-tag { display: none; }
  .logo { font-size: 17px; min-width: 0; }
  .lang-select { max-width: 92px; padding: 5px 6px; font-size: 12.5px; }
  .topnav { gap: 14px; font-size: 13px; }
}

/* PC: 마우스로는 옆으로 밀 수 없으니 도시 탭을 두 줄로 */
@media (min-width: 821px) {
  .city-tabs { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
}
