/* 그때와 지금 위성사진 뷰어 — tokens only (light/dark from style.css) */
.tn { margin: 0 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.tn-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
.tn-search { display: flex; gap: 6px; flex: 1 1 260px; min-width: 0; }
.tn-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunk); color: var(--text); }
.tn-search button, .tn-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; }
.tn-search button { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tn-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tn-results { position: absolute; z-index: 5; left: 14px; right: 14px; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-2); max-height: 320px; overflow: auto; }
.tn-results button { display: block; width: 100%; text-align: left; font: inherit; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.tn-results button:hover, .tn-results button:focus-visible { background: var(--sunk); }
.tn-results small { display: block; color: var(--sub); font-size: 12px; }
.tn-msg { padding: 8px 10px; color: var(--sub); font-size: 14px; }
.tn-stage { position: relative; height: clamp(360px, 62vh, 640px); background: #202326; touch-action: pan-y; }
.tn[data-mode="embed"] .tn-stage { height: clamp(300px, 52vh, 460px); }
.tn .tn-map { position: absolute; inset: 0; }
.tn .tn-map-b { z-index: 1; }
.tn-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; color: #e8e8ee; font-size: 14px; text-align: center; }
.tn.is-ready .tn-fallback { display: none; }
.tn.is-loading .tn-fallback::after { content: " 지도를 불러오는 중이에요."; }
.tn-cross { position: absolute; left: 50%; top: 50%; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.tn-cross::before, .tn-cross::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.tn-cross::before { left: 10px; top: 0; width: 2px; height: 22px; }
.tn-cross::after { top: 10px; left: 0; height: 2px; width: 22px; }
.tn:not(.is-ready) .tn-cross { display: none; }
.tn-swipe { position: absolute; top: 0; bottom: 0; z-index: 3; width: 0; }
.tn-swipe::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.tn-swipe { cursor: ew-resize; touch-action: none; }
.tn-swipe::after { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 32px; }
.tn-knob { position: absolute; top: 50%; left: -22px; z-index: 1; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 2px solid #fff; background: var(--brand); color: #fff; font-size: 18px; font-weight: 800; cursor: ew-resize; box-shadow: var(--sh-2); }
.tn-tag { position: absolute; top: 10px; max-width: 42vw; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20, 20, 28, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-tag.l { right: 10px; } .tn-tag.r { left: 10px; }
.tn-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 4; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: var(--sh-2); }
.tn-zoom button { width: 40px; height: 40px; border: 0; background: var(--card); color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; }
.tn-zoom button + button { border-top: 1px solid var(--line); }
.tn:not(.is-ready) .tn-zoom { display: none; }
.tn-dock { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.tn-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tn-sel { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.tn-sel strong { font-size: 17px; }
.tn-sel span { color: var(--sub); font-size: 13px; }
.tn-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tn-right { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sub); }
.tn-right select { font: inherit; font-size: 14px; max-width: 46vw; padding: 7px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--text); }
.tn-rail { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.tn-chip { flex: none; min-width: 64px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.tn-chip b { display: block; font-size: 15px; }
.tn-chip small { display: block; min-height: 15px; font-size: 11px; color: var(--sub); }
.tn-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tn-chip[aria-pressed="true"] small { color: inherit; opacity: .85; }
.tn-chip.is-right { box-shadow: inset 0 0 0 2px var(--sun); }
.tn-note { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.tn-note button { font: inherit; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.tn-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: tn-rot .8s linear infinite; }
@keyframes tn-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tn-spin { animation: none; } }
.tn-hint { margin: 0; font-size: 13px; color: var(--sub); }
.tn-src { margin: 0; font-size: 12px; color: var(--weak); line-height: 1.5; }
.tn-src a { color: inherit; }
.tn-keys { margin: 0; font-size: 12px; color: var(--weak); }
@media (max-width: 600px) { .tn-keys { display: none; } .tn-tag { font-size: 11px; } }
.tn-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tn-places a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); text-decoration: none; }
.tn-places a:hover { border-color: var(--brand); }
.tn-places b { display: block; }
.tn-places span { display: block; font-size: 13px; color: var(--sub); }
.tn-group { margin: 14px 0 8px; font-size: 15px; }
