:root{--ink:#203b32;--green:#164f43;--paper:#faf5e8;--line:#d7d9c9;--orange:#e6a651;--muted:#51665a;font:16px/1.55 "Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button,select{cursor:pointer}button,a{color:inherit}a{text-decoration:none}button,select,input,textarea{border:1px solid var(--line);border-radius:8px;padding:.55rem .85rem;background:#fffefa;color:var(--ink)}button:hover,a:hover{color:#a44919}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd742e;outline-offset:2px}[hidden]{display:none!important}.wrap{width:min(1176px,calc(100% - 64px));margin:auto}header{border-bottom:1px solid var(--line)}.bar,nav,.brand,.heading,.tools,.filters,footer,.actions,.stophead{display:flex;align-items:center}.bar{justify-content:space-between;min-height:80px;gap:20px}.brand{gap:10px;font-weight:900;font-size:1.65rem;letter-spacing:-.09em}.brand img{width:39px}nav{gap:1.8rem}nav a{padding:.55rem 0;font-weight:650;color:var(--muted)}nav a[aria-current]{color:var(--green);box-shadow:inset 0 -2px var(--green)}#count{background:#e5eadc;color:var(--green);padding:1px 7px;border-radius:1rem;font-size:.8rem}
#hero{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;margin:26px 0 36px;background:#164f43;min-height:320px;display:flex;align-items:center;color:white}#hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#102923ee,#10292383 35%,transparent 74%);z-index:-1}.hero-copy{padding:34px 5%}.hero-copy small{font-size:.95rem;font-weight:650;letter-spacing:.04em}.hero-copy h1{font:700 clamp(2.6rem,4.8vw,4.25rem)/1.13 "Noto Serif KR","Batang",serif;letter-spacing:-.065em;margin:14px 0 25px}.hero-copy button{background:#ffefcf;border:0;font-weight:750;color:#294337}
.heading{justify-content:space-between;gap:12px}.heading h1,.heading h2{font:700 2.25rem/1.25 "Noto Serif KR","Batang",serif;letter-spacing:-.065em;margin:0}.heading span,.by,p,.meta{color:var(--muted)}#browse,#planner{padding:8px 0 40px}#planner{padding-top:40px}.tools{gap:8px;margin:18px 0 14px}.search{display:flex;align-items:center;gap:.4rem;flex:1;background:white;border:1px solid var(--line);border-radius:8px;padding:0 12px}.search span{font:1.7rem Georgia;color:var(--green)}.search input{flex:1;min-width:0;border:0;background:transparent}.filters{flex-wrap:wrap;gap:7px;margin-bottom:20px}.filters button{border-radius:20px;font-size:.88rem}.filters [aria-pressed=true],.primary{color:white;background:var(--green);border-color:var(--green)}.primary:hover{color:#ffdbab}.tools select{height:43px}
#cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card,.stop{background:#fffefa;border:1px solid var(--line);border-radius:10px;padding:20px}.card{display:flex;flex-direction:column;min-height:190px;border-top:3px solid var(--green)}.card:nth-child(3n+2){border-top-color:#ba793d}.card:nth-child(3n){border-top-color:#59838a}.by,.meta{font-size:.85rem}.card h3{margin:8px 0 5px;font-size:1.3rem;line-height:1.35}.card h3 button{background:none;border:none;padding:0;text-align:left;font-weight:750;letter-spacing:-.05em}.card p{margin:0 0 12px;font-size:.93rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card .actions{margin-top:auto;justify-content:space-between;gap:10px}.actions{flex-wrap:wrap;gap:8px}.actions button,.actions a,#print{font-size:.9rem}.actions a{border-bottom:1px solid var(--line)}button:disabled{opacity:.4;cursor:default}#more{display:block;margin:22px auto 0}.empty{grid-column:1/-1;text-align:center;padding:40px;border:1px dashed var(--line);border-radius:10px}footer{border-top:1px solid var(--line);padding:24px 0;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:.85rem}footer b{color:var(--ink);font-size:1rem}
dialog{width:min(570px,94vw);max-height:85vh;overflow:auto;color:var(--ink);border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:28px}dialog::backdrop{background:#102c25aa}#close{float:right;font-size:.85rem}#detail-title{clear:both;font-size:1.8rem;line-height:1.3;margin:16px 0}dl{margin:18px 0;display:grid;grid-template-columns:80px 1fr;gap:9px 12px}dt{font-weight:700}dd{margin:0;overflow-wrap:anywhere}.stop{margin:12px 0}.stophead{justify-content:space-between;gap:12px}.stophead strong{font-size:1.14rem}.stop label{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 12px 8px 0}.stop textarea{vertical-align:middle;width:min(380px,100%);height:2.8rem}.warn{color:#974311}.stop h3{margin:0}#notice:not(:empty){position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183f34;color:white;padding:10px 18px;border-radius:9px;z-index:5}
@media(max-width:760px){.wrap{width:calc(100% - 32px)}.bar{flex-wrap:wrap;justify-content:flex-start;padding:14px 0 7px;gap:4px 20px}nav{gap:1.15rem}nav a{font-size:.91rem}#cards{grid-template-columns:repeat(2,minmax(0,1fr))}#hero{min-height:265px;margin:16px 0 25px;background-position:60% center}.heading h2,.heading h1{font-size:1.8rem}.tools{flex-wrap:wrap}.search{min-width:180px}.card{padding:15px}}@media(max-width:520px){nav{width:100%}#cards{grid-template-columns:1fr}.card{min-height:155px}.hero-copy{padding:25px}.tools .search{flex-basis:100%}.tools select{flex:1}.stophead{align-items:flex-start}.stop label{display:flex}.stop textarea{flex:1}.brand{font-size:1.5rem}}
@media print{header nav,footer,#browse,#hero,#notice,#detail,#print,.stop .actions{display:none!important}.wrap{width:100%}.stop{break-inside:avoid}.stop label{display:block}.stop textarea{width:100%;height:auto}body{background:white}}

@media print{#export{display:none}}

#hero{background-color:#254b3d;background-size:cover;background-position:center;margin-bottom:8px;min-height:340px}
#hero:before{background:linear-gradient(0deg,#102f2550,transparent 40%)}
.hero-copy{max-width:83%;padding-bottom:70px}.hero-copy h1{margin-bottom:8px;text-wrap:balance;overflow-wrap:anywhere}.hero-copy p{color:#fffae9;margin:0 0 20px}.hero-controls{display:flex;align-items:center;gap:8px;position:absolute;left:5%;bottom:16px;font-size:.83rem;font-variant-numeric:tabular-nums}.hero-controls button{line-height:1.1;border-radius:50px;background:#17352ecc;color:white;border-color:#ffffff66;padding:7px 10px}
 .browse-switch,.atlas-heading,.rank-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#rank-panel{margin:0 0 30px;border-radius:14px;border:1px solid var(--line);background:#fffdf6;overflow:hidden}
#atlas:not([hidden])+#rank-panel{margin-top:22px}
.rank-head{padding:14px 18px;background:#edf1e6}.rank-head h3{margin:0;font-size:1.1rem}.rank-head a{color:var(--muted);font-size:.82rem;text-decoration:underline}
#rank-panel table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}#rank-panel th,#rank-panel td{padding:.42rem .75rem;border-top:1px solid #dfe3d6;text-align:left}#rank-panel thead{font-size:.79rem;color:#486252}#rank-panel th:first-child{width:3.7em;text-align:center}#rank-panel td:last-child,#rank-panel th:last-child{text-align:right;white-space:nowrap}#rank-panel td:nth-child(3){font-size:.84rem;white-space:nowrap}#rank-list td>button{display:inline;border:none;background:transparent;padding:0;font-size:.94rem;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:#a9b9aa;text-underline-offset:3px}#rank-list small{display:inline-block;margin-left:.6em;color:var(--muted);font-size:.78rem}#rank-list td>span{font-size:.75em}
.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}
@media(max-width:540px){#rank-list small{display:block;margin:2px 0 0}#rank-panel th,#rank-panel td{padding:.38rem .35rem}#rank-panel td:last-child{font-size:.82rem}.rank-head{padding:12px 9px}.rank-head h3{font-size:1rem}.rank-head a{font-size:.75rem}}
.browse-switch a,.text-link{color:var(--green);font-size:.9rem;font-weight:700;text-decoration:underline;text-underline-offset:.24em}
.atlas-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden}.atlas-map{position:relative;background:#e8f0eb}.atlas-map svg{display:block;width:100%;height:clamp(395px,54vw,580px)}.province{fill:#fbf9ec;stroke:#9db4a8;stroke-width:1;vector-effect:non-scaling-stroke;cursor:pointer}.province:hover,.province.selected{fill:#c8dbc1}.geo-pin{cursor:pointer;color:white}.geo-pin circle{fill:#195947;stroke:#fffbed;stroke-width:2;vector-effect:non-scaling-stroke}.geo-pin text{fill:white;font-weight:800;pointer-events:none}.geo-pin:hover circle,.geo-pin:focus-visible circle{fill:#9b5225;stroke-width:3}.atlas-credit{position:absolute;bottom:4px;left:8px;font-size:.68rem;color:#456257;background:#edf3efdc}.atlas-side{background:#fffdf6;padding:18px;min-width:0}.atlas-heading h3{font-size:1.2rem;margin:0}.atlas-heading button{font-size:.78rem}.atlas-side p{font-size:.87rem;margin:.45rem 0 1rem}#atlas-list{overflow:auto;max-height:440px}.map-row{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 5px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}.map-row b,.map-row small{display:block}.map-row small{font-size:.74rem;color:#52695f}
dialog{width:min(780px,94vw);padding:clamp(16px,3vw,30px)}dialog h3{margin:20px 0 8px}dialog h4{margin:6px 0}.course-card{padding:13px 16px;margin:8px 0;border-left:3px solid var(--green);background:#edf1e6;border-radius:6px}.course-card ol{display:flex;flex-wrap:wrap;list-style:none;gap:4px;padding:0;margin:.5rem 0;font-size:.93rem}.course-card li:not(:last-child):after{content:" →";color:#6d8779}.course-card p,.course-card button{font-size:.85rem}.wetland{margin-top:6px}.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.photos figure{margin:0;min-width:0}.photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:#e0e9db}.photos figcaption{font-size:.83rem;margin:5px 0;overflow-wrap:anywhere}.plan-course{border-left:3px solid #88a38b;padding-left:10px}
@media(max-width:700px){nav{gap:clamp(7px,2.6vw,16px);flex-wrap:wrap}.atlas-layout{grid-template-columns:1fr}.atlas-map svg{height:390px}.atlas-side{padding:14px}#atlas-list{max-height:290px}.hero-copy{max-width:100%;padding-bottom:70px}.hero-copy h1{font-size:clamp(2rem,8vw,3rem)}#hero{min-height:295px}.hero-copy p{font-size:.9rem}.photos{grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))}.heading{flex-wrap:wrap}.browse-switch{gap:9px}#browse:has(#atlas:not([hidden])){padding-top:22px}}
@media print{#rank-foot,#rank-list,#atlas{display:none!important}}
.detail-maps{display:flex;gap:8px;margin:8px 0}.locator{display:flex;flex-direction:column;flex:0 1 32%;min-width:105px;margin:0;border-radius:10px;background:#e8f0eb;overflow:hidden}.locator svg{width:100%;height:210px;flex:1}.locator .province{cursor:default}.locator figcaption{padding:5px 8px;color:#4c665a;font-size:.68rem}
@media(max-width:440px){.detail-maps{display:grid}.locator{display:grid;grid-template-columns:100px 1fr;align-items:center}.locator svg{height:76px}.locator figcaption{font-size:.75rem}}

/* Masil.zip wordmark and outing guide */
header { background: #fffdf6; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; }
.brand { font-size: 1.84rem; line-height: 1; color: var(--green); white-space: nowrap; }
.brand span { letter-spacing: -.105em; }
.brand em, .footer-brand i { color: #90501c; font-family: Georgia, "Times New Roman", serif; }
.brand em { letter-spacing: -.055em; font-size: 1.06em; margin-left: 2px; }
.brand img { width: 37px; height: 37px; }
.brand-line { margin: 0; font-size: .77rem; color: #4e6054; }
.bar { min-height: 85px; }
nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; white-space: nowrap; transition: color .14s ease; }
nav a[aria-current] { box-shadow: inset 0 -3px var(--orange); }
header nav { gap: clamp(12px, 2vw, 28px); }
#hero { --hero-inset: clamp(22px, 3vw, 42px); display: grid; grid-template-columns: 44% 56%; grid-template-rows: 1fr auto; align-items: stretch; min-height: 376px; margin: 24px 0 30px; background: var(--green); border-radius: 12px; }
#hero:before { content: none; }
#hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; height: 100%; object-fit: cover; }
.hero-copy { grid-area: 1 / 1; position: relative; max-width: 100%; min-width: 0; padding: 28px var(--hero-inset) 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-copy small { font-size: .8rem; color: #f1c078; letter-spacing: .015em; padding-bottom: 10px; border-bottom: 1px solid #86a696; }
.hero-copy h1 { font-size: clamp(2.2rem,4vw,3.6rem); color: #fff9e9; word-break: keep-all; line-height: 1.15; }
.hero-copy p { color: #e5eddf; font-size: .92rem; word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.hero-actions :is(button, a) { min-height: 44px; border-radius: 24px; padding: 6px 14px; background: #faf5e8; color: #203b32; font-weight: 650; }
#hero-open { display: inline-flex; align-items: center; text-decoration: none; }
#hero-open:after { content: " →"; margin-left: 4px; }
#hero-search { color: #fffbed; background: transparent; border: 1px solid #bacbc1; }
#hero-search:hover, .hero-controls button:hover { background: #304f43; color: #fff; }
.hero-controls { position: relative; inset: auto; grid-area: 2 / 1; align-self: end; margin: 0 var(--hero-inset) 18px; gap: 6px; }
.hero-controls button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px 12px; background: transparent; color:#fffbed; }
#hero-prev, #hero-next { font: 1.35rem/1 Arial,sans-serif; padding: 0; }
#hero-position { min-width: 2.9em; text-align: center; }

#browse, #planner { padding-top: 20px; }
.filters button { border-radius: 8px; background: #e9eddf; border-color: #d7d9c9; font-weight: 650; }
.filters button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.atlas-map { background-color: #e6ede1; }
.province:hover, .province.selected { fill: #d8bd87; }
.rank-head { background: var(--green); color: #fffaf0; }
.rank-head a { color: #f5dfb8; }
#rank-panel thead { background: #e6ecdf; }
#rank-list th { color: var(--green); font-weight: 750; text-align: center; }
#rank-list small { display: block; margin: 2px 0 0; color: #53685c; font-size: .78rem; }
#rank-list tr:first-child { background: #eef1e4; }
#rank-list tr:first-child th { color: var(--green); }
.rank-foot { margin: 0; padding: 10px 18px; border-top: 1px solid #dfe3d6; background: #faf8f0; color: var(--muted); font-size: .78rem; }
#export, #print { border-radius: 23px; background: #e8ecdf; color: var(--green); border-color: #d2dac6; font-weight: 650; padding: .55rem 1.1rem; }
#stops > h2 { color: var(--green); font-size: 1.2rem; margin: 22px 0 10px; }
.stop { border-left: 7px solid var(--orange); border-radius: 12px; background: #fffdf6; padding: 20px 22px; }
.stop .plan-course { margin: 10px 0; border-left: 3px solid var(--green); padding-left: 10px; }
.stop .plan-course-title { display: block; color: var(--green); font-size: 1.08rem; font-weight: 700; margin-bottom: 3px; }
.stop .plan-course-stops { display: block; color: var(--ink); font-size: .95rem; font-weight: 500; }
.stop .actions button { border-radius: 20px; background: #faf5e8; color: var(--green); border-color: #dcd6c4; font-weight: 650; padding: .45rem .95rem; }
.footer-brand i { font-weight: 400; font-size: .95rem; }
footer a { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 760px) {
 .brand-lockup { padding: 0; }
 .bar { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; padding: 10px 0 2px; }
 header nav { width: 100%; justify-content: space-between; gap: 3px; flex-wrap: nowrap; }
 header nav a { font-size: clamp(.76rem,3.6vw,.94rem); }
 #hero { grid-template-columns: 48% 52%; } #hero-photo { width: 52%; }
}
@media (max-width: 820px) {
 #hero { --hero-inset: clamp(15px, 4vw, 25px); grid-template-columns: minmax(0,1fr); min-height: 350px; margin: 14px 0 22px; }
 #hero-photo { width: 100%; object-position: center 38%; z-index: -2; }
 #hero:before { content: ""; background: linear-gradient(to bottom, transparent 0%, #102d2270 28%, #102d22ed 65%, #102d22 100%); }
 .hero-copy { justify-content: flex-end; padding-top: 54px; }
 .hero-copy small { border: 0; padding: 3px 8px; border-radius: 4px; background: #17372dfa; color: #ffe4b9; }
 .hero-copy h1 { font-size: clamp(1.85rem, 7.6vw, 2.65rem); margin: 7px 0 4px; text-shadow: 0 1px 5px #102d22; }
 .hero-copy p { margin: 0 0 12px; }
 .hero-actions :is(button, a) { font-size: .86rem; padding-inline: 12px; }
 .hero-controls { margin-bottom: 12px; }
 .brand-line { font-size: .71rem; }
}
@media print {
 header { background: white; } .brand-line { display: none; } .bar { min-height: 58px; }
 .brand { font-size: 1.4rem; } .brand:after { content:"마실집"; font-size: .78rem; color: #324f42; letter-spacing: normal; }
}

.atlas-layer { display:flex; justify-content:flex-end; margin:0 0 8px; }
#camera-toggle { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:.85rem; font-weight:700; border-radius:16px; background:#fae3bd; color:#71431c; border-color:#e2c596; }
#camera-toggle[aria-pressed="true"] { background:#70451e; color:#fffaf0; border-color:#70451e; }
.camera-symbol { display:inline-block; position:relative; flex:none; width:.86em; height:.64em; border-radius:.14em; margin-right:.32em; background:#99612e; color:#99612e; }
.camera-symbol:after { content:""; position:absolute; left:100%; top:0; border:solid transparent; border-width:.32em .36em .32em 0; border-right-color:currentColor; }
#camera-toggle[aria-pressed="true"] .camera-symbol { color:#ffebbf; background:#ffebbf; }
.camera-pin circle { fill:#925725; }
.camera-pin:hover circle,.camera-pin:focus-visible circle { fill:#703c14; }
#camera-results { margin:4px 0 12px; padding:10px 12px; border:1px solid #e5d3b3; border-radius:12px; background:#f8efde; }
#camera-heading { margin:0; color:#76451d; font-size:.94rem; }
.camera-help { margin:4px 0 8px; color:#536153; font-size:.81rem; }
#camera-list { max-height:210px; overflow:auto; }
.camera-row { gap:9px; }
.camera-row span:nth-child(2) { flex:1; }
.camera-actions .primary { border:0; padding:9px 15px; border-radius:8px; color:white; }
.place-cameras { margin:14px 0 5px; padding:9px 14px; border:1px solid #dac9aa; border-radius:8px; background:#fff8e8; }
.place-cameras h3 { margin:0; font-size:1rem; }
.place-cameras .camera-destination:last-child { border-bottom:0; }
@media print { .atlas-layer,.place-cameras { display:none; } }

.place-cover { position:relative; overflow:hidden; margin:0 0 12px; border-radius:6px; background:#e5ebdd; }
.place-cover img { display:block; width:100%; aspect-ratio:16 / 9; object-fit:cover; }
.place-cover figcaption { position:absolute; bottom:5px; right:5px; max-width:95%; padding:2px 6px; border-radius:3px; background:#15271edf; color:#fff; font-size:.68rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }


.vicinity { display:flex; flex:1; min-width:0; flex-direction:column; margin:0; border:1px solid #c6d0bf; border-radius:10px; background:#eff3e8; overflow:hidden; }
.vicinity svg,.vicinity .trail-map { display:block; width:100%; height:auto; margin:auto; }
.vicinity svg { background:#d9e9e5; }
.vicinity figcaption { padding:7px 10px; background:#faf8ed; color:#405b4e; font-size:.75rem; }
.vicinity figcaption strong { display:block; color:var(--green); }
.vicinity figcaption a,.locator figcaption a { text-decoration:underline; }
.vicinity [id$="vicinity-key"] { display:flex; flex-wrap:wrap; gap:3px 10px; }
.vicinity [id$="vicinity-key"] :is(button,a) { border:0; border-radius:0; background:transparent; padding:2px 0; color:var(--green); text-align:left; text-decoration:underline; font:inherit; }
.map-links { display:flex; flex-wrap:wrap; gap:4px 15px; }
[data-provider-canvas]:not([hidden]) {width:100%;height:clamp(245px,38vw,390px);min-width:0;margin:.75rem 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
[data-provider-canvas] > iframe {display:block;width:100%;height:100%;border:0}
[data-provider-canvas].is-unavailable:not([hidden]) {height:auto;padding:.75rem 1rem;background:#f7f8f1}
.provider-map-unavailable {margin:0;line-height:1.5}
@media print { [data-provider-canvas]:not([hidden]) {display:none} }
.map-links {align-items:center}
.provider-map-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:8px;background:var(--green);color:white;font-weight:650}
.provider-map-link:hover,.provider-map-link:focus-visible {background:#103c33;color:white}
.atlas-layer {flex-wrap:wrap;gap:8px}
.map-address-note { align-self:center; margin:8px; }
.trail-frame { width:100%; aspect-ratio:552 / 352; overflow:auto; background:#e3ebd9; }
.trail-frame .trail-map { max-width:none; margin:0; }
.trail-controls { display:inline-flex; align-items:center; gap:5px; margin-right:9px; }
.trail-controls button { border:1px solid #bbcabe; border-radius:5px; background:#fffdf5; width:32px; height:32px; padding:0; color:var(--green); font:600 1rem/1 sans-serif; }
.trail-controls button:disabled { opacity:.4; }
.trail-controls output { min-width:32px; text-align:center; }
@media(max-width:440px){.detail-maps { grid-template-columns:minmax(0,1fr); }.vicinity { width:100%; }}

#camera-player {margin:1rem 0;overflow-wrap:anywhere}
#camera-player h3 {margin:.6rem 0}
.camera-stage:not(:empty) {display:grid;background:#132823;border-radius:10px;overflow:hidden}
.camera-stage iframe,.camera-stage video,.camera-stage img {display:block;width:100%;aspect-ratio:16/9;object-fit:contain;border:0}
.camera-sources {margin-top:1.25rem;color:var(--muted);font-size:.88rem}
.camera-sources summary {cursor:pointer}
.camera-sources p {margin:.5rem 0}
.footer-link{background:none;border:0;border-radius:0;color:inherit;font:inherit;padding:0;text-decoration:underline;text-underline-offset:.22em;cursor:pointer}
.credits-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.credits-head h2{margin:0}
#photo-credits-list details{border-top:1px solid var(--line);padding:10px 0}
#photo-credits-list summary{cursor:pointer;color:var(--green);font-weight:700}
#photo-credits-list li{margin-bottom:8px;overflow-wrap:anywhere}
#photo-credits-list small{font-weight:400;color:var(--muted)}
#photo-credits-list li small{display:block}
#photo-credits-list a{text-decoration:underline;text-underline-offset:.2em}

.camera-stage .camera-reference {position:relative;margin:0}
.camera-reference figcaption {position:absolute;left:12px;bottom:10px;padding:4px 9px;border-radius:4px;background:#18372ee8;color:white;font-size:.82rem}
.camera-channels {margin:.4rem 0 .75rem}
.camera-channels button[aria-pressed="true"] {background:var(--green,#164f43);color:white}

.camera-destination {position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:7px 2px;border-bottom:1px solid var(--line)}
.camera-destination .camera-row {flex:1 1 11rem;min-width:0;padding:2px 3px;border:0;overflow-wrap:anywhere}
.camera-options {display:flex;gap:6px;margin-left:auto}
.camera-media-option {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:#fffefa;color:var(--green);font-family:inherit;font-size:.8rem;font-weight:600;line-height:1.25;white-space:nowrap}
.camera-video-option {background:var(--green);border-color:var(--green);color:white}
.camera-media-option:focus-visible {outline:3px solid #b96528;outline-offset:2px}
.camera-video-option:hover {background:#103c33;color:white}
.camera-options > :first-child::before {content:"";position:absolute;inset:0}
.camera-options > :nth-child(2) {position:relative}
@media (pointer:coarse) { .camera-media-option {min-height:44px} }
.camera-channels a.primary {display:inline-flex;align-items:center;padding:7px 12px;border-radius:8px}
.nearby-places {border-top:1px solid var(--line);margin-top:24px;padding-top:4px}
.nearby-places > p {font-size:.87rem;margin:0 0 12px}
.nearby-places ul {list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nearby-link {display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;text-align:left;color:var(--ink);background:#fffdf7;border:1px solid var(--line);border-radius:9px}
.nearby-link:hover,.nearby-link:focus-visible {border-color:var(--green)}
.nearby-link > span:first-child {flex:1;min-width:0}
.nearby-link small,.nearby-link strong {display:block;overflow-wrap:anywhere}
.nearby-link small {color:var(--muted);font-size:.77rem}
.nearby-link strong {margin-top:2px;font-size:1rem}
.nearby-distance {white-space:nowrap;color:var(--green);font-size:.82rem;font-weight:650}
#previous-place {display:block;margin:0 0 12px;font-size:.87rem}

/* Travel place pages */
#place-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) 0 clamp(40px, 6vw, 76px);
  overflow-wrap: anywhere;
}
.place-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 38px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.place-navigation :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: .9rem;
  font-weight: 650;
}
.place-navigation :is(a,button):hover { text-decoration: underline; text-underline-offset: .25em; }
.card h3 a[data-place-id] { font-weight: 750; letter-spacing: -.05em; }
#rank-list td > a[data-place-id] { font-size: .94rem; font-weight: 700; text-decoration: underline; text-decoration-color: #a9b9aa; text-underline-offset: 3px; }
:is(.card,.stop) .actions a[data-place-id] { display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.stop .actions a[data-place-id] { padding: .45rem .95rem; border-radius: 20px; background: #faf5e8; color: var(--green); font-weight: 650; }
#place-body > .by { color: var(--green); font-weight: 650; }
#place-title {
  margin: .22em 0 .32em;
  font: 700 clamp(2.05rem, 4.5vw, 3.65rem)/1.2 "Noto Serif KR","Batang",serif;
  letter-spacing: -.065em;
  word-break: keep-all;
}
#place-title + p { max-width: 58ch; margin: 0; font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.75; word-break: keep-all; }
#place-body > .actions { margin: 18px 0 clamp(26px, 3vw, 38px); }
#place-body > .actions > :is(a,button), #place-body [data-save-course] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
#place-body > .actions > a { border: 0; padding: 5px; text-decoration: underline; text-underline-offset: .25em; }
#place-body > section, #place-body #detail-map { scroll-margin-top: 16px; }
#place-body :is(h2,h3) { margin: 1.4em 0 .5em; font-size: clamp(1.24rem, 2.3vw, 1.55rem); line-height: 1.35; letter-spacing: -.045em; }
#place-body h4 { margin: 0 0 .4em; }
#place-body > h4 { margin-top: 20px; }
#place-body > h4 + p { margin: .3em 0; line-height: 1.7; }
#place-body .course-card { padding: clamp(14px, 2.4vw, 23px); background: #eef1e4; }
#place-body .course-card p { margin: .55em 0 1em; font-size: .92rem; }
#place-body .course-card ol { color: #254d40; }
#place-body .place-cameras { margin-top: 20px; }
#place-body .place-cameras > :is(h2,h3) { margin: 0; font-size: 1.05rem; }
#place-body dl {
  grid-template-columns: minmax(5.8rem, max-content) minmax(0, 1fr);
  margin: clamp(24px, 4vw, 38px) 0;
  padding: clamp(16px, 2.5vw, 24px) 0;
  border-block: 1px solid var(--line);
  gap: .55rem clamp(1rem, 3vw, 2.5rem);
}
#place-body .photos { gap: clamp(9px, 1.7vw, 18px); }
#place-body .visit-facts {
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf6;
}
#place-body .visit-facts h2 { margin: 0 0 .7em; }
#place-body .visit-facts dl { margin: 0; padding: 0; border: 0; }
#place-body .visit-facts dd, #place-body .outing-reason p { line-height: 1.7; overflow-wrap: anywhere; }
#place-body .visit-sources { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .86rem; }
#place-body .visit-facts .visit-sources { margin: 1em 0 0; padding-top: .8em; border-top: 1px solid var(--line); }
#place-body .visit-sources a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
#place-body .gallery .place-cover { max-width: 640px; }
#place-body .place-location { margin: 24px 0; padding: 0 clamp(12px, 2.5vw, 22px); border: 1px solid var(--line); border-radius: 10px; background: #fffdf6; }
#place-body .place-location summary {
  display: list-item;
  padding: 13px 2px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
#place-body .place-location summary:focus-visible { outline: 3px solid #bd742e; outline-offset: 2px; border-radius: 4px; }
#place-body .place-location #detail-map { margin-bottom: 16px; }
#place-body .place-location #detail-map > h3 { display: none; }
#place-body .place-location #detail-map > p { margin: 0 0 .75rem; }
#place-body .map-links { gap: 4px 18px; flex-wrap: wrap; }
#place-body .map-links a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
#place-body .nearby-places { margin-top: clamp(24px, 4vw, 40px); }
#place-body .nearby-places > :is(h2,h3) { margin-top: 1em; }
@media (min-width: 760px) {
  #place-body #detail-course {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #place-body #detail-course > :is(h2,h3), #place-body #detail-course > .wetland, #place-body .course-card:only-of-type { grid-column: 1 / -1; }
  #place-body #detail-course > :is(h2,h3) { margin-bottom: 0; }
  #place-body .course-card { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
  #place-body .course-card [data-save-course] { margin-top: auto; }
  #place-body #detail-course > .wetland { justify-self: start; }
}
@media (max-width: 600px) {
  #place-page { padding-top: 4px; }
  #place-body .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #place-body .photos figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  #place-body .photos figure:first-child:nth-last-child(odd) img { aspect-ratio: 16 / 9; }
  #place-body .detail-maps { display: grid; grid-template-columns: minmax(0, 1fr); }
  #place-body .locator { display: grid; grid-template-columns: minmax(80px, 32%) 1fr; align-items: center; }
  #place-body .locator svg { height: 80px; }
}
@media print {
  #place-page { max-width: none; padding: 0; }
  #place-page .place-navigation, #place-body > .actions, #place-body button:not(.nearby-link),
  #place-body #course-status, #place-body .trail-controls { display: none; }
  #place-title { font-size: 25pt; }
  #place-body :is(h2,h3,h4) { break-after: avoid; }
  #place-body :is(.course-card,.photos figure,.nearby-link,dl) { break-inside: avoid; }
  #place-body .photos { grid-template-columns: repeat(3, minmax(0,1fr)); }
  #place-body .photos figure:first-child:nth-last-child(odd) { grid-column: auto; }
}
body :is(a, button, select, input, [tabindex]):focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
  box-shadow: 0 0 0 6px #172621;
}

header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

#atlas-help, .camera-help, #rank-panel .rank-foot {
  color: #40584e;
  font-size: .9375rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  header .bar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  header nav a { justify-content: center; }
}
.map-explainer { display: grid; gap: .3rem; padding: .8rem 1rem; color: #284d42; background: #f7f8f1; font-size: .9rem; line-height: 1.5; }

@media screen and (max-width: 1050px) {
  html:not([lang="ko"]) header .bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
  }
  html:not([lang="ko"]) header .brand-lockup { flex: 1 1 14rem; min-width: 0; }
  html:not([lang="ko"]) header .bar nav {
    order: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    gap: .25rem;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }
  html:not([lang="ko"]) header .bar nav a {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    justify-content: center;
    text-align: center;
  }
}

@media screen and (max-width: 520px) {
  html:not([lang="ko"]) #place-body .visit-facts dl {
    display: block;
  }
  html:not([lang="ko"]) #place-body .visit-facts dt {
    margin: .75rem 0 .15rem;
  }
  html:not([lang="ko"]) #place-body .visit-facts dd {
    margin: 0;
    overflow-wrap: break-word;
  }
}

.arrival-guide { align-self: center; padding: 0.75rem; line-height: 1.6; }
.arrival-guide h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.arrival-guide p { margin: 0 0 0.75rem; }
.arrival-guide .arrival-sources { margin-bottom: 0; }
.arrival-sources a { text-decoration: underline; }
/* Keep the full regional map and its boundary credit visible on small screens. */
.place-cover img[src^="assets/maps/locations/"] { aspect-ratio: auto; object-fit: contain; }
.gallery .place-cover:has(img[src^="assets/maps/locations/"]) figcaption {
  position: static;
  max-width: none;
  padding: .45rem .65rem;
  background: #edf2e9;
  color: #304638;
  font-size: .875rem;
  white-space: normal;
}
.gallery .place-cover:has(img[src^="assets/maps/locations/"]) figcaption a { color: inherit; }

.vicinity .vicinity-credit {display:inline-block;margin-top:.4rem}
.vicinity svg > text {paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round}
