/* 스미스 여행 연구소 */
:root { --bg: #0b1026; --ink: #eef2ff; --mut: #a7b0d6; --acc: #ff8c42; --acc2: #ffd166; --card: rgba(17, 24, 54, .92); --line: rgba(255,255,255,.12); --top: 60px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; }
body.noscroll { overflow: hidden; }
a { color: var(--acc2); }
button { font: inherit; }

.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: rgba(11,16,38,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { font-size: 26px; }
.logo b { display: block; font-size: 15px; line-height: 1.1; }
.logo small { color: var(--mut); font-size: 11px; letter-spacing: .08em; }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input { width: 100%; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--ink); outline: none; }
.search input:focus { border-color: var(--acc2); }
.suggest { position: absolute; left: 0; right: 0; top: 44px; margin: 0; padding: 6px; list-style: none; background: #151c40; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); max-height: 60vh; overflow: auto; }
.suggest li { padding: 8px 10px; border-radius: 9px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li:hover { background: rgba(255,255,255,.08); }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { color: var(--mut); text-decoration: none; font-size: 14px; }

.btn { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--acc); color: #1a0d00; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn.ghost { background: rgba(255,255,255,.08); color: var(--ink); font-weight: 600; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; margin: 12px 0 4px; }

.stage { position: relative; height: calc(100vh - var(--top)); height: calc(100svh - var(--top)); min-height: 460px; overflow: hidden; }
#globe { position: absolute; inset: 0; cursor: grab; z-index: 0; } /* 지구본 위 사진이 패널 위로 안 올라오게 */
.hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 14px; pointer-events: none; white-space: nowrap; }
.legend { position: absolute; left: 16px; top: 14px; font-size: 12px; color: var(--mut); pointer-events: none; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--acc2); vertical-align: middle; margin-right: 4px; }
.glabel { padding: 4px 9px; border-radius: 8px; background: rgba(10,14,34,.88); color: #fff; font: 600 13px/1.4 -apple-system, "Apple SD Gothic Neo", sans-serif; }
.glabel small { display: block; font-weight: 400; color: #b9c2e8; font-size: 11px; }

.panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px)); overflow-y: auto; padding: 18px 16px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); backdrop-filter: blur(12px); z-index: 10; overscroll-behavior: contain; }
.panel[hidden] { display: none; }
.close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.p-head { display: flex; gap: 12px; align-items: center; padding-right: 36px; }
.p-flag { font-size: 40px; line-height: 1; }
.p-head h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.p-sub { margin: 2px 0 0; color: var(--mut); font-size: 13px; }
.p-actions { display: flex; gap: 8px; margin: 12px 0 8px; }
.p-note { font-size: 13px; color: var(--acc2); background: rgba(255,209,102,.08); border-radius: 10px; padding: 8px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { border-color: var(--acc2); }
.chip.star { border-color: rgba(255,209,102,.45); }

.photos { columns: 2 150px; column-gap: 8px; }
.ph { position: relative; display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1d2552; cursor: zoom-in; break-inside: avoid; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ph:hover img { transform: scale(1.04); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loading, .empty { column-span: all; padding: 34px 10px; text-align: center; color: var(--mut); }
.loading span { display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--acc2); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.credit { font-size: 11.5px; color: var(--mut); margin: 10px 2px 0; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(3,5,15,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: #dfe4ff; font-size: 14px; margin-top: 10px; }
.lightbox figcaption p { margin: 4px 0; }
.lb-meta { color: var(--mut); font-size: 12.5px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 34px; cursor: pointer; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.intro { padding-top: 42px; }
.intro h1 { font-size: 28px; margin: 0 0 10px; }
.intro p { color: #cfd5f3; }
.how { padding-left: 18px; color: #cfd5f3; }
.how li { margin: 4px 0; }
.places { padding-bottom: 30px; }
.places h2 { font-size: 22px; margin-top: 34px; }
.region h3 { font-size: 16px; color: var(--acc2); margin: 22px 0 8px; }
.region ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.region a { display: block; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.region a:hover { border-color: var(--acc2); }
.region a small { color: var(--mut); margin-left: 4px; }
.foot { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 40px; color: var(--mut); font-size: 13px; }
.foot .small { font-size: 12px; }
.page { padding: 40px 18px 60px; }
.page h1 { font-size: 26px; }
.page p, .page li { color: #cfd5f3; }

@media (max-width: 720px) {
  :root { --top: 56px; }
  .top { gap: 8px; padding: 0 10px; }
  .logo b, .logo small { display: none; }
  .nav-links a[href="/about/"] { display: none; }
  #random { padding: 7px 10px; font-size: 13px; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 62%; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .hint { font-size: 12.5px; white-space: normal; width: 88%; text-align: center; }
  .lb-nav { width: 38px; height: 52px; font-size: 26px; }
}

/* 지구본 위 사진 */
.gph { width: 46px; height: 46px; padding: 0; border: 2px solid #fff; border-radius: 50%; overflow: hidden; background: #1d2552; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.5); transition: transform .2s; display: block; }
.gphw { transition: opacity .25s; }
.gphw:hover { z-index: 5; }
.gph:hover { transform: scale(1.9); z-index: 5; border-color: var(--acc2); }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feedbar { position: absolute; left: 16px; top: 36px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mut); }
.feedbar .btn { pointer-events: auto; }
.recent .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.recent a { position: relative; display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #1d2552; }
.recent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .gph { width: 34px; height: 34px; } .feedbar span { display: none; } }

/* 여행지 페이지·대륙 허브 (2026-11-22) */
.place .crumb { font-size: 13px; color: var(--mut); margin-bottom: 10px; }
.place .crumb a { color: var(--mut); }
.place .sub { color: var(--mut); margin-top: -8px; }
.place h2 { font-size: 20px; margin-top: 34px; }
.place h2 a { color: var(--ink); text-decoration: none; }
.place .lead { font-size: 16px; }
.hero-ph { margin: 14px 0; }
.hero-ph img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; display: block; }
.hero-ph figcaption, .ph figcaption small { color: var(--mut); font-size: 12px; }
.geo-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); margin: 16px 0; }
.geo-box > span { font-size: 22px; }
.geo-box div { flex: 1 1 180px; display: flex; flex-direction: column; }
.geo-box small { color: var(--mut); }
.wikibox { border-left: 4px solid var(--acc2); background: rgba(255,209,102,.06); padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 18px 0; }
.wikibox small { color: var(--mut); }
.phs { columns: 3 220px; column-gap: 12px; }
.ph { break-inside: avoid; margin: 0 0 12px; }
.ph img { width: 100%; height: auto; border-radius: 12px; display: block; }
.ph figcaption { font-size: 13px; color: #cfd5f3; padding: 4px 2px; }
.ph figcaption small { display: block; }
.near { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.nc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nc img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.nc b { padding: 8px 10px 0; font-size: 14px; }
.nc small { padding: 0 10px 10px; color: var(--mut); font-size: 12px; }
.nc:hover { border-color: var(--acc2); }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.tbl { overflow-x: auto; } .tbl table { border-collapse: collapse; width: 100%; } .tbl th, .tbl td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.src { font-size: 13px; }

/* 나라 고르기·나라 패널 탭·미슐랭·현지 소식 — 2026-11-22 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.home { overflow: hidden; }
.mini-links { position: absolute; left: 16px; bottom: 10px; margin: 0; font-size: 11.5px; color: var(--mut); z-index: 1; }
.mini-links a { color: var(--mut); }
.fl { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); vertical-align: middle; background: #1d2552; }
.fl.sm { width: 22px; height: 15px; }
.fl.big { width: 54px; height: 36px; border-radius: 5px; }
.picker { position: absolute; top: 12px; left: 12px; bottom: 12px; width: min(560px, calc(100% - 24px)); z-index: 12; display: flex; flex-direction: column; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); backdrop-filter: blur(12px); overflow: hidden; }
.pk-head { display: flex; align-items: center; gap: 10px; padding: 14px 54px 8px 16px; position: relative; }
.pk-head b { white-space: nowrap; } .pk-head small { color: var(--mut); font-weight: 400; }
.pk-head input { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: var(--ink); outline: none; }
.pk-tabs, .tabs, .seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pk-tabs { padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.pk-tabs button, .tabs button, .seg button { flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.pk-tabs button.on, .tabs button.on, .seg button.on { background: var(--acc2); color: #1a1200; border-color: var(--acc2); font-weight: 700; }
.pk-grid { flex: 1; overflow-y: auto; padding: 12px 14px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; align-content: start; overscroll-behavior: contain; }
.nat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1.25; text-align: center; }
.nat:hover { border-color: var(--acc2); background: rgba(255,209,102,.08); }
.nat .fl { width: 48px; height: 32px; }
.nat i { position: absolute; top: 4px; font-style: normal; font-size: 10.5px; padding: 0 4px; border-radius: 6px; background: rgba(0,0,0,.45); }
.nat .b-m { right: 4px; } .nat .b-p { left: 4px; }
.tabs { margin: 12px 0 2px; }
.tab h3 { font-size: 15px; margin: 18px 0 8px; color: var(--acc2); }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.facts th { width: 96px; text-align: left; color: var(--mut); font-weight: 500; padding: 6px 0; vertical-align: top; }
.facts td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts small, .mut { color: var(--mut); }
.tab .wikibox { margin: 14px 0; font-size: 14px; } .tab .wikibox p { margin: 0 0 6px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.chip.sm { padding: 2px 9px; font-size: 12px; }
.links { padding-left: 18px; font-size: 14px; } .links li { margin: 5px 0; }
.m-sum { margin: 6px 0 10px; } .m-sum small { color: var(--mut); }
.m-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.m-filter select { padding: 6px 10px; border-radius: 999px; background: #151c40; color: var(--ink); border: 1px solid var(--line); max-width: 100%; }
.mlist { list-style: none; padding: 0; margin: 0; }
.mlist li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.mlist .st { flex: none; width: 58px; font-size: 12px; letter-spacing: -2px; }
.mlist li div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mlist small { color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { border: 0; background: none; color: var(--acc2); padding: 0; cursor: pointer; text-decoration: underline; font-size: inherit; }
.post-cta { padding: 12px 14px; border-radius: 14px; background: rgba(255,140,66,.1); border: 1px solid rgba(255,140,66,.35); margin: 6px 0 12px; }
.post-cta p { margin: 0 0 10px; font-size: 14px; }
.pform { display: grid; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.pform label { display: block; }
.pform label > input:not([type=checkbox]), .pform label > select, .pform label > textarea { display: block; margin-top: 4px; } .pform small { color: var(--mut); }
.pform input:not([type=checkbox]):not([type=file]), .pform select, .pform textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; }
.pform .ck { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #cfd5f3; }
.pform .row { display: flex; gap: 8px; }
.pform .hp { position: absolute; left: -9999px; }
.img-prev img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; } .img-prev small { color: var(--mut); }
.posts { display: grid; gap: 12px; }
.post { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.03); }
.post-img { display: block; width: 100%; padding: 0; border: 0; background: #1d2552; cursor: zoom-in; max-height: 360px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-b { padding: 10px 12px; }
.post-b p { margin: 0 0 6px; font-size: 14px; }
.post-t { white-space: pre-line; color: #dfe4ff; }
.post-m { color: var(--mut); font-size: 12px !important; }
.kind { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: rgba(255,209,102,.15); color: var(--acc2); }
.rep { font-size: 12px; color: var(--mut); margin-left: 6px; }
.ph.mine { outline: 2px solid var(--acc); }
@media (max-width: 720px) {
  .picker { top: 0; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; }
  .pk-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .mini-links { display: none; }
  #pickBtn { padding: 7px 11px; font-size: 13px; }
  .panel { max-height: 72%; }
}
.home .feedbar { top: 14px; }
