*{box-sizing:border-box}html{background:#0d1117;color-scheme:dark}body{margin:0;background:#0d1117;color:#e8edf2;font-family:Pretendard,system-ui,sans-serif;font-size:15px;line-height:1.55}
a{color:#7fe8ff}.nbar{position:sticky;top:0;z-index:900;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#0d1117ee;border-bottom:1px solid #222b36;font-size:13px;color:#8fa0b3}.nbar a{font-weight:700;font-size:15px;text-decoration:none}
.nw{max-width:760px;margin:0 auto;padding:16px 16px 60px}h1{font-size:28px;margin:8px 0}h2{font-size:21px;margin:0 0 10px}h3{font-size:16px;margin:16px 0 8px}
.lede{color:#b8c3cf}.jump{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px}.jump a{flex:none;padding:8px 12px;border:1px solid #2a3541;border-radius:999px;text-decoration:none;font-size:14px;color:#e8edf2}
section{background:#151b23;border:1px solid #222b36;border-radius:16px;padding:16px;margin:16px 0;scroll-margin-top:56px}
.big{font-size:32px;font-weight:800;color:#ffb020;font-variant-numeric:tabular-nums}.sub{color:#8fa0b3;font-size:13px}
.src{font-size:12px;color:#8fa0b3}.src a{color:#8fa0b3}
.row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #222b36;align-items:baseline}.row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.bar{height:8px;border-radius:4px;background:#ffb020;margin-top:4px}.bar.b{background:#4da3ff}
.tag{display:inline-block;font-size:12px;padding:1px 7px;border-radius:999px;border:1px solid #3a4652;color:#b8c3cf;margin:0 4px 4px 0;vertical-align:top;max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.45}.tag.y{border-color:#ffd60a66;color:#ffd60a}
.note{background:#0f141b;border-radius:10px;padding:10px 12px;font-size:13px;color:#b8c3cf;margin:10px 0}
table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:7px 4px;border-top:1px solid #222b36;text-align:right}th:first-child,td:first-child{text-align:left}th{font-size:12px;color:#8fa0b3;font-weight:600}
#tmap{height:460px;border-radius:12px;margin:8px 0 10px;background:#0a0e13;overflow:hidden}
input[type=search]{width:100%;box-sizing:border-box;min-height:44px;padding:12px;border-radius:10px;border:1px solid #2a3541;background:#0f141b;color:#fff;font-size:16px}
.mpcard{margin-top:8px;padding:12px;border:1px solid #2a3541;border-radius:12px;background:#0f141b}
.mpcard b{display:block;font-size:18px;line-height:1.3}
.mpcard p{margin:4px 0 0;font-size:14px;line-height:1.4}
.mpnone{margin:8px 0 0;font-size:16px;font-weight:800;color:#ffb020}
.trip{padding:10px 0;border-top:1px solid #222b36;font-size:14px}.trip .p{color:#b8c3cf}
.flow{display:flex;flex-direction:column;gap:6px}.node{background:#0f141b;border:1px solid #2a3541;border-radius:12px;padding:10px 12px}.arr{text-align:center;color:#8fa0b3;font-size:13px}
.foot{font-size:12px;color:#8fa0b3}
@media(min-width:900px){#tmap{height:520px}}
.nflow{stroke-dasharray:9 7;stroke-linecap:round;animation:nfl 1.1s linear infinite}@keyframes nfl{to{stroke-dashoffset:-16}}
@media (prefers-reduced-motion:reduce){.nflow{animation:none}}
#tmap .leaflet-tooltip.ntip,#tmap .leaflet-tooltip.clab{background:#151b23;color:#e8edf2;border:1px solid #3a4652;border-radius:6px;box-shadow:none;font:700 12px/1.35 Pretendard,system-ui,sans-serif;padding:1px 5px;white-space:nowrap}
#tmap .leaflet-tooltip.ntip{border-color:#4da3ff}
#tmap .leaflet-tooltip.clab::before,#tmap .leaflet-tooltip.ntip::before{display:none}
#tmap .leaflet-popup-content-wrapper,#tmap .leaflet-popup-tip{background:#151b23;color:#e8edf2;box-shadow:none}
#tmap .leaflet-control-attribution{background:rgba(13,17,23,.82);color:#8fa0b3;font-size:12px;line-height:1.3;white-space:nowrap;max-width:none}
#tmap .leaflet-control-attribution a{color:#8fa0b3}
#cp:empty{display:none}
#cp{background:#151b23;color:#e8edf2;border:1px solid #222b36;border-radius:12px;padding:4px 12px 12px;margin:8px 0 0;max-height:420px;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;word-break:break-word;scroll-margin-top:64px;scrollbar-color:#3a4652 #151b23}
#cp .trip,#cp .p,#cp .sub,#cp h3,#cp .note,#cp .src{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
#cp .tag{font-size:12px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
#cp .note{background:#0f141b}
.crow{cursor:pointer}.crow:hover{background:#1b232d}
.k{display:inline-block;min-width:5.6em;color:#8fa0b3;font-size:13px;font-weight:700}
@media(max-width:767px){.tm-map.tm-person{height:calc(100dvh - 390px);min-height:200px;max-height:280px}}
#topmap .tm-map{scroll-margin-top:8px}
@media(min-width:768px){#topmap .tm-map{scroll-margin-top:68px}}
html,body,.nw,#topmap,#mcards,.tm-map,.tm-line,.maplg{overflow-anchor:none}
#mcards{position:relative;z-index:1;clear:both;margin:12px 0 0}
#mcards:empty{display:none}
.mhead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 4px}
.mcard{margin-top:8px;padding:12px;border:1px solid #2a3541;border-radius:12px;background:#0f141b;font-size:15px;line-height:1.5}
.mcard b{display:block;font-size:18px;line-height:1.3}
.mcard p{margin:4px 0 0;font-size:15px;line-height:1.45}
.allmap{min-height:44px;padding:0 12px;border-radius:999px;border:1px solid #ffb020;background:transparent;color:#ffb020;font:700 14px Pretendard,system-ui,sans-serif;cursor:pointer}
.qsug{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:320px;overflow:auto}
.qsug:empty{display:none}
.qsug button{text-align:left;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid #2a3541;background:#0f141b;color:#e8edf2;font:600 15px/1.4 Pretendard,system-ui,sans-serif;cursor:pointer}
.qsug button:hover,.qsug button:focus{border-color:#ffb020}
.tm-map path.nmove{animation:tmfly 1.05s linear infinite}
@keyframes tmfly{to{stroke-dashoffset:-20}}
@media(prefers-reduced-motion:reduce){.nflow,.tm-map path.nmove{animation:none}}

.rglist{display:flex;flex-direction:column;gap:6px;margin:8px 0;max-height:420px;overflow:auto}
.rgrow{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;align-items:center;text-align:left;min-height:48px;padding:8px 12px;border-radius:10px;border:1px solid #2a3541;background:#0f141b;color:#e8edf2;font:600 15px/1.4 Pretendard,system-ui,sans-serif;cursor:pointer}
.rgrow .sub{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rgrow em{font-style:normal;color:#ffb020;font-size:13px;white-space:nowrap}
.rgrow:hover,.rgrow:focus{border-color:#ffb020}

#topmap .map-home{min-height:40px;padding:0 12px;font-size:14px}

#trflag .tfb{border:1px solid #2a3541;border-radius:12px;background:#0f141b;margin:8px 0}
#trflag .tfb>summary{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:12px;cursor:pointer;list-style:none}
#trflag .tfb>summary::-webkit-details-marker{display:none}
#trflag .tfk{font-weight:800;font-size:15px}#trflag .tfb>summary b{color:#ffb020;font-size:18px;grid-row:span 2;align-self:center}
#trflag .tfl{list-style:none;margin:0;padding:0 12px 12px;display:grid;gap:10px;max-height:480px;overflow:auto}
#trflag .tfl li{border-top:1px solid #222b36;padding-top:8px;font-size:14px;overflow-wrap:anywhere}
#trflag .tfp{all:unset;cursor:pointer;color:#e8edf2;font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#4b5866}

/* 해외순방 지도 목적지 라벨: 날짜·도시·방문 목적을 한눈에 표시 */
#pg .leaflet-tooltip.tripclab{white-space:normal!important;min-width:155px;max-width:230px;padding:7px 9px!important;background:rgba(5,15,25,.96)!important;border:1px solid #5dff9e!important;border-radius:8px!important;box-shadow:0 0 16px #36a9ff44!important;text-align:left!important;line-height:1.35!important}
#pg .tripclab-title{font-size:11px;font-weight:800;color:#8be8ff;margin-bottom:3px}
#pg .tripclab-reason{font-size:12px;font-weight:700;color:#fff;white-space:normal;overflow-wrap:anywhere}

/* Mobile: make the panel expand/collapse control obvious and easy to tap. */
#pg .pg-file .fh .mn{min-width:42px;min-height:38px;padding:0 12px;border:1px solid #5dff9e;border-radius:9px;background:#145c35;color:#fff;font-size:22px;font-weight:900;line-height:1;box-shadow:0 0 0 2px rgba(0,0,0,.55),0 2px 12px rgba(0,0,0,.55);}
#pg .pg-file .fh .mn:active{background:#1e8149;transform:scale(.96)}
@media(max-width:899px){#pg .pg-file.min{bottom:calc(88px + env(safe-area-inset-bottom,0px));}#pg .pg-file.min .fh{min-height:40px}#pg .pg-file.min .fh .mn{background:#168044;border-color:#8dffb9;box-shadow:0 0 0 2px #06150c,0 0 14px rgba(93,255,158,.28)}}
