/* 나라별 여행·출장 방문 기록의 화면 스타일 */
:root { --ink:#203a34; --muted:#78817a; --line:#e4e7df; --paper:#f7f7f2; --accent:#b76a37; --soft:#f4e9dc; --green:#547764; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif; font-size:14px; line-height:1.65; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #b8794c; outline-offset:3px; }
[hidden] { display:none!important; }
.skip { position:fixed; top:-100px; left:20px; z-index:2000; padding:12px; background:white; }
.skip:focus { top:12px; }
.shell { display:grid; grid-template-columns:210px minmax(0,1fr); min-height:100vh; }
.sidebar { background:#fff; border-right:1px solid var(--line); padding:36px 24px; display:flex; flex-direction:column; gap:48px; position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:11px; }
.brand-mark { display:grid; place-items:center; width:37px; height:42px; border-radius:11px 11px 11px 2px; background:var(--accent); color:#fff; font-family:Georgia,serif; font-size:31px; font-style:italic; line-height:1; }
.brand strong { display:block; font-size:14px; letter-spacing:1.4px; }
.brand small { display:block; font-size:10px; color:var(--muted); letter-spacing:1.5px; }
.nav-title,.overline { font-size:10px; font-weight:700; letter-spacing:2px; color:var(--muted); }
.nav-title { margin:0 0 15px 12px; }
nav a { display:flex; align-items:center; gap:11px; padding:12px; margin:4px 0; border-radius:8px; font-size:13px; }
nav a:first-of-type { background:#edf2ec; color:#3d624f; font-weight:700; }
nav a:hover { background:#f3f5f0; }
.nav-icon { font-size:17px; width:20px; text-align:center; }
.trip-card { padding:17px 14px; border:1px solid var(--line); border-radius:10px; }
.trip-card strong { display:block; font-size:13px; margin:8px 0 4px; }
.trip-card p { color:var(--muted); font-size:11px; margin:0; }
.sidebar-footer { margin-top:auto; font-size:10px; color:var(--muted); line-height:1.9; }
main { min-width:0; padding:0 36px 24px; max-width:1700px; width:100%; margin:auto; }
.topbar { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.breadcrumb { color:var(--muted); font-size:12px; }
.breadcrumb b { font-weight:500; color:var(--ink); margin-left:10px; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:9px 14px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); font-size:12px; font-weight:600; line-height:1.4; }
.btn:hover { border-color:#b0bbb0; background:#f7f9f5; }
.btn.primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn.primary:hover { background:#35564b; }
.hero { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:32px 0 27px; }
.hero .overline { color:var(--accent); margin:0 0 10px; }
h1 { font-size:clamp(26px,3vw,37px); line-height:1.4; letter-spacing:-1.8px; margin:0 0 9px; font-weight:700; }
h1 em { font-style:normal; color:var(--accent); }
.hero p { margin:0; color:var(--muted); font-size:12px; word-break:keep-all; }
.stats { display:flex; align-items:center; gap:26px; flex-shrink:0; }
.stat + .stat { border-left:1px solid var(--line); padding-left:26px; }
.stat strong { display:block; font-family:Georgia,serif; font-size:30px; font-weight:400; line-height:1.25; }
.stat small { color:var(--muted); font-size:10px; }
.stat-star { color:var(--accent); font-size:17px; }
.toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:21px; }
.country-bar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:15px 17px; margin-bottom:18px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.country-label { font-size:12px; font-weight:700; }
.country-bar select { border:1px solid #dce2d7; border-radius:6px; padding:8px 12px; background:#f7f9f4; color:var(--ink); min-width:180px; max-width:100%; font-size:12px; }
.country-bar .text-btn { margin-left:auto; white-space:nowrap; }
#page-title { overflow-wrap:anywhere; }
.categories { display:flex; flex-wrap:wrap; gap:6px; }
.chip { border:1px solid transparent; background:transparent; color:var(--muted); padding:7px 12px; border-radius:7px; font-size:12px; white-space:nowrap; }
.chip.active { color:var(--ink); background:#fff; border-color:var(--line); box-shadow:0 2px 3px #22372a05; font-weight:700; }
.chip:hover { background:#eaf0e7; }
.chip span { margin-left:5px; color:#92998c; font-size:10px; }
.search { position:relative; flex:0 1 235px; }
.search span { position:absolute; left:12px; top:8px; color:var(--muted); font-size:17px; }
.search input { width:100%; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:10px 10px 10px 36px; font-size:12px; }
.workspace { display:grid; grid-template-columns:minmax(290px,35%) minmax(0,1fr); gap:22px; align-items:start; }
.places-panel { min-width:0; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 12px; }
.panel-heading h2 { font-size:12px; font-weight:600; margin:0; }
.panel-heading h2 span { color:var(--muted); margin-left:5px; font-weight:400; }
.panel-heading select { border:0; color:var(--muted); background:transparent; font-size:11px; max-width:145px; padding:5px 0; }
.place-list { display:grid; gap:9px; max-height:780px; overflow:auto; padding:1px 6px 10px 1px; scrollbar-width:thin; scrollbar-color:#c9d0c4 transparent; }
.country-tree,.country-places { list-style:none; margin:0; padding:0; }
.country-tree { display:grid; gap:13px; }
.country-branch { min-width:0; }
.country-heading { display:flex; align-items:center; gap:9px; padding:11px 13px; border:1px solid #dce4d8; border-radius:8px; background:#edf2e9; color:var(--ink); font-size:12px; font-weight:700; list-style:none; }
.country-heading::-webkit-details-marker { display:none; }
.country-name { min-width:0; overflow-wrap:anywhere; }
.country-heading::before,.country-place-count { flex-shrink:0; }
.country-heading::before { content:'▸'; width:12px; color:var(--green); }
.country-branch[open] > .country-heading::before { content:'▾'; }
.country-place-count { margin-left:auto; color:#75816f; font-weight:400; font-size:11px; }
.country-places { display:grid; gap:9px; margin:10px 0 0 14px; padding-left:13px; border-left:1px solid #d5dfce; }
.country-places > li { min-width:0; position:relative; }
.country-places > li::before { content:''; width:13px; border-top:1px solid #d5dfce; position:absolute; left:-13px; top:24px; }
.country-empty { padding:14px 9px; font-size:11px; color:var(--muted); }
.place-card { width:100%; text-align:left; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); position:relative; }
.place-select { display:block; width:100%; padding:16px 15px 10px; text-align:left; border:0; background:transparent; color:inherit; border-radius:10px; }
.card-map-link { display:block; width:fit-content; margin:0 15px 13px 66px; color:var(--accent); font-size:10px; text-decoration:underline; text-underline-offset:3px; }
.place-card:hover { border-color:#b9c7b5; }
.place-card.selected { border-color:#c18b61; box-shadow:0 0 0 1px #c18b611f; background:#fffefb; }
.card-top { display:flex; align-items:flex-start; gap:12px; }
.card-top > div,.detail-top > div:first-child,.breadcrumb { min-width:0; }
.place-card h3,.place-location,.detail h2,.detail-meta,.breadcrumb b { overflow-wrap:anywhere; }
.category-icon { display:grid; place-items:center; width:39px; height:42px; border-radius:8px; background:#eff2eb; color:var(--green); flex-shrink:0; font-size:20px; }
.place-card[data-category="food"] .category-icon,.place-card[data-category="drink"] .category-icon { color:#a66e43; background:#f7efe5; }
.place-card[data-category="hotel"] .category-icon { color:#77769b; background:#f1eff6; }
.place-card h3 { font-size:13px; line-height:1.5; margin:0 0 3px; font-weight:700; }
.place-location { color:var(--muted); font-size:10px; }
.card-rating { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:10px 0 0 51px; font-size:10px; color:var(--muted); }
.card-rating strong { font-size:13px; color:var(--ink); }
.stars { color:#b47c35; letter-spacing:1px; }
.tag { display:inline-block; border:1px solid #e1e5d9; border-radius:4px; color:#657559; padding:2px 7px; font-size:10px; background:#f6f8f0; max-width:100%; overflow-wrap:anywhere; }
.card-tags { margin:9px 0 0 51px; display:flex; gap:5px; flex-wrap:wrap; }
.map-column { min-width:0; }
.map-wrap { position:relative; border:1px solid #dce2d7; border-radius:12px; overflow:hidden; background:#e9eee4; }
#map { height:390px; width:100%; background:#e9eee4; }
.map-top { position:absolute; z-index:500; top:13px; left:13px; display:flex; gap:6px; align-items:center; max-width:calc(100% - 70px); }
.map-badge { background:#fffffff2; border:1px solid #dce2d7; border-radius:6px; padding:7px 10px; box-shadow:0 2px 5px #22372a09; font-size:10px; }
.map-top button { font-size:10px; min-height:32px; }
.map-caption { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:7px; padding:10px 14px; background:#fff; color:var(--muted); font-size:10px; }
.map-caption .legend { display:flex; gap:13px; flex-wrap:wrap; }
.legend i { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:4px; }
.legend span:nth-child(2) i { background:var(--green); }
.legend span:nth-child(3) i { background:#827da3; }
.marker-pin { border:0; background:transparent; }
.marker-dot { display:grid; place-items:center; border:3px solid white; width:30px; height:30px; border-radius:50% 50% 50% 5px; box-shadow:0 2px 6px #18382445; background:var(--green); color:white; font:700 11px sans-serif; transform:rotate(-45deg); }
.marker-dot b { transform:rotate(45deg); }
.marker-pin.food .marker-dot,.marker-pin.drink .marker-dot,.marker-pin.cafe .marker-dot { background:var(--accent); }
.marker-pin.hotel .marker-dot { background:#827da3; }
.marker-pin.current .marker-dot { outline:3px solid #b8794c88; }
.map-warning { position:absolute; left:14px; right:14px; bottom:32px; z-index:600; padding:14px; border-radius:8px; background:#fffffff2; color:#72512f; font-size:12px; }
.leaflet-container { font:12px "Malgun Gothic",sans-serif; }
.detail { background:#fff; border:1px solid var(--line); border-radius:12px; padding:23px; margin-top:17px; scroll-margin-top:20px; }
.detail-top { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.detail-kicker { font-size:9px; color:var(--accent); letter-spacing:1.7px; margin:0 0 6px; font-weight:700; }
.detail h2 { font-size:20px; line-height:1.5; letter-spacing:-.5px; margin:0 0 7px; }
.detail-meta { color:var(--muted); font-size:11px; }
.rating-block { flex-shrink:0; text-align:right; }
.rating-block strong { font:32px Georgia,serif; }
.rating-block small { display:block; color:var(--muted); font-size:9px; }
.detail-description { font-size:12px; color:#657368; margin:16px 0; line-height:1.9; }
.detail-address { padding:11px 12px; border-radius:6px; background:#f7f8f4; color:#7b857b; font-size:10px; margin:0 0 14px; overflow-wrap:anywhere; }
    .detail-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.detail-links a { color:#536b52; font-size:11px; text-decoration:underline; text-underline-offset:3px; }
.detail-links a:first-child { padding:9px 13px; background:var(--ink); color:#fff; border-radius:6px; text-decoration:none; }
.detail-links { align-items:center; }
.memo-box { margin-top:20px; padding-top:17px; border-top:1px solid var(--line); }
.memo-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; gap:8px; }
.memo-heading h3 { font-size:11px; font-weight:700; margin:0; }
.text-btn { padding:3px 0; border:0; color:var(--accent); background:transparent; font-size:11px; }
.memo-text { color:var(--muted); font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; margin:7px 0; }
.memo-date { color:#939a8c; font-size:10px; }
.source { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding:17px 0 0; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.source p { margin:0; max-width:660px; }
.source a { text-decoration:underline; text-underline-offset:3px; }
.backup-actions { display:flex; gap:12px; }
.empty { padding:48px 20px; text-align:center; color:var(--muted); border:1px dashed #d5ddce; border-radius:10px; background:#ffffff80; font-size:12px; }
.banner { background:#fbefde; color:#805423; padding:12px 15px; border-radius:7px; margin:15px 0; font-size:12px; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#203a34; color:white; padding:12px 20px; border-radius:9px; box-shadow:0 6px 24px #0002; z-index:3000; font-size:12px; max-width:90vw; }
dialog { width:min(620px,calc(100% - 30px)); max-height:90vh; border:1px solid var(--line); padding:0; border-radius:16px; color:var(--ink); box-shadow:0 24px 80px #14271e38; }
dialog::backdrop { background:#19352a66; backdrop-filter:blur(3px); }
.dialog-head { display:flex; justify-content:space-between; align-items:center; padding:22px 24px; border-bottom:1px solid var(--line); }
.dialog-head h2 { margin:0; font-size:18px; }
.close-btn { border:0; background:#f2f4ef; border-radius:50%; width:30px; height:30px; color:var(--ink); font-size:20px; }
form { padding:22px 24px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:11px; font-weight:600; }
.field.full { grid-column:1 / -1; }
.field input,.field select,.field textarea { width:100%; border:1px solid #dce2d7; background:#fdfefb; color:var(--ink); padding:10px 11px; border-radius:6px; font-size:12px; font-weight:400; min-width:0; }
.field textarea { resize:vertical; min-height:80px; }
.form-help { color:var(--muted); font-size:10px; font-weight:400; margin:4px 0 0; }
.form-help a { text-decoration:underline; }
.form-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }
details { grid-column:1 / -1; }
summary { cursor:pointer; font-size:11px; color:var(--muted); }
details .form-grid { margin-top:13px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.community { margin-top:32px; padding-top:25px; border-top:1px solid var(--line); }
.community-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:15px; }
.community-heading .overline { margin:0 0 6px; color:var(--accent); }
.community-heading h2 { font-size:21px; margin:0; }
.community-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; }
.contact-card { min-width:0; scroll-margin-top:20px; }
#contact-form { padding:0; position:relative; }
.contact-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.contact-status { min-height:20px; font-size:12px; margin:12px 0 0; }
.contact-status.success { color:#416849; }
.contact-status.error { color:#a54434; }
@media(min-width:1600px) { #map { height:450px; } .place-list { max-height:850px; } }
@media(max-width:1150px) { .shell { grid-template-columns:175px minmax(0,1fr); } .sidebar { padding:28px 16px; } main { padding:0 24px 24px; } .stats { gap:16px; } .stat + .stat { padding-left:16px; } .workspace { gap:16px; } .hero { align-items:flex-start; } }
@media(max-width:980px) { .shell { display:block; } .sidebar { display:none; } .topbar { min-height:67px; } .hero { padding-top:26px; } .place-list { max-height:780px; } }
@media(max-width:680px) { main { padding:0 16px 20px; } .topbar { gap:8px; } .breadcrumb { font-size:10px; } .topbar .btn { font-size:10px; padding:9px 10px; } .hero { display:block; } .hero h1 { font-size:29px; } .stats { margin-top:23px; gap:24px; } .stat strong { font-size:26px; } .stat + .stat { padding-left:24px; } .toolbar { gap:13px; } .search { flex-basis:100%; order:-1; } .categories { width:100%; flex-wrap:nowrap; overflow:auto; padding-bottom:3px; } .chip { padding:7px 10px; } .workspace { display:flex; flex-direction:column-reverse; gap:22px; } .places-panel,.map-column { width:100%; } #map { height:300px; } .place-list { max-height:none; grid-template-columns:1fr; overflow:visible; padding-right:0; } .detail { padding:18px; } .detail h2 { font-size:18px; } .map-top { flex-wrap:wrap; } .map-badge { font-size:9px; } .source { align-items:flex-start; } .form-grid { grid-template-columns:1fr; } .field.full { grid-column:auto; } form,.dialog-head { padding:18px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
