:root{--green:#173e34;--muted:#6b766e;--line:#e4e8e2;--paper:#fcfdf9}*{box-sizing:border-box}body{margin:0;color:#243a30;background:var(--paper);font-family:"Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:14px}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--green);border-radius:9px;padding:10px 13px}button:hover{background:#edf2eb}a{color:inherit}header{height:86px;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:white}.brand{text-decoration:none;display:flex;gap:14px;align-items:center;font-size:19px;letter-spacing:-.7px}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.5px;margin-top:5px}.emblem{width:43px;height:48px;background:var(--green);color:#e6d9a6;border-radius:8px 8px 20px 20px;display:grid;place-items:center;font-size:30px}.source-link{text-decoration:none;font-size:13px;color:var(--muted)}main{display:grid;grid-template-columns:390px 1fr;height:calc(100dvh - 86px)}aside{overflow:auto;border-right:1px solid var(--line);background:var(--paper)}.intro{padding:28px 28px 18px}.eyebrow{font-size:11px;letter-spacing:1px;color:#79836b}h1{font-size:28px;line-height:1.4;letter-spacing:-1.4px;margin:12px 0}p{line-height:1.75;color:var(--muted)}.intro p{margin:0;font-size:13px}.filters{padding:6px 28px 20px}.search-label{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}input[type=search]{width:100%;padding:13px 14px;border:1px solid #cfd8cc;border-radius:10px;background:white}.filter-row{display:flex;gap:10px;margin:15px 0}.filter-row label{width:50%;font-size:11px;color:var(--muted)}select{display:block;width:100%;margin-top:6px;padding:10px 6px;border:1px solid var(--line);border-radius:8px;background:white;color:#243a30}fieldset{border:0;padding:0;display:flex;gap:7px;margin:15px 0}legend{font-size:11px;color:var(--muted);margin-bottom:8px}fieldset label{flex:1;text-align:center;position:relative}fieldset input{position:absolute;opacity:0}fieldset span{display:block;border:1px solid var(--line);padding:8px 0;border-radius:20px;font-size:12px;background:white}fieldset input:checked+span{background:var(--green);color:white;border-color:var(--green)}fieldset input:focus-visible+span{outline:2px solid #b59147;outline-offset:2px}.tools{display:flex;justify-content:space-between}.tools button{font-size:12px;padding:8px 11px}.results-heading{padding:18px 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:12px}.results-heading strong{font-size:14px}.results-heading label{color:var(--muted)}.facility{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 28px;background:transparent}.facility:hover,.facility.selected{background:#eef3e9}.facility h3{font-size:15px;margin:9px 0 5px;letter-spacing:-.4px}.facility p{font-size:12px;margin:4px 0;line-height:1.6}.facility .summary{color:#405c48;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted)}.tag{padding:3px 7px;border-radius:4px;background:#e7ede4;color:#2e6549}.tag.discount{background:#fff1d9;color:#866322}.tag.other{background:#e8edf5;color:#546789}.unlocated{font-size:10px;color:#886b3c}.empty{padding:25px 28px;color:var(--muted);line-height:1.8}#more{display:block;margin:16px auto}#more[hidden]{display:none}footer{font-size:10px;color:var(--muted);padding:18px 28px;line-height:1.8}.map-section{position:relative;min-width:0;background:#e7ede3;overflow:hidden}#map{height:100%;width:100%}.map-toolbar{position:absolute;top:20px;left:20px;right:20px;display:flex;gap:8px;align-items:center;z-index:3;pointer-events:none}.map-toolbar>*{pointer-events:auto}.map-toolbar span{padding:11px 14px;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:0 3px 15px #173e3410;font-size:12px;flex:1}.map-toolbar button{font-size:12px;box-shadow:0 3px 15px #173e3410}#map-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:radial-gradient(ellipse at 55% 40%,#f9faf4 0,#e6eddf 70%);padding:70px 25px}#map-placeholder[hidden]{display:none}.map-glyph{color:#7e9278;border:1px solid #bbcbb3;border-radius:50%;width:90px;height:90px;display:grid;place-items:center;font-size:58px;background:#ffffff88}#map-placeholder h2{font-size:24px;letter-spacing:-1px;margin-top:24px}#map-placeholder p{margin-top:0}#map-placeholder small{color:var(--muted);font-size:11px;margin-top:20px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#2e5745}.legend{position:absolute;left:20px;bottom:54px;border-radius:8px;background:white;padding:10px 14px;z-index:3;font-size:11px;display:flex;align-items:center;gap:8px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%}.free{background:#36714d}.discount{background:#c18a31}.other{background:#6b80a8}.visit-note{position:absolute;bottom:16px;left:20px;right:20px;font-size:11px;padding:9px 14px;background:#fffffff0;border-radius:6px;color:#5c685b;z-index:3}#detail{position:absolute;top:82px;right:20px;max-height:calc(100% - 180px);overflow:auto;background:white;width:340px;max-width:calc(100% - 40px);border-radius:14px;padding:22px;z-index:4;box-shadow:0 12px 40px #173e3424;border:1px solid var(--line)}#detail h2{font-size:21px;margin:16px 0 10px;letter-spacing:-.8px}#detail h4{font-size:11px;color:var(--muted);margin-bottom:6px}#detail p{font-size:13px;white-space:pre-line;margin-top:5px;color:#354a3b}.close{float:right;padding:3px 8px}.detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.detail-actions a{font-size:12px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none}.detail-actions .primary{color:white}dialog{border:1px solid var(--line);border-radius:16px;max-width:470px;width:calc(100% - 32px);padding:28px;color:#243a30}dialog::backdrop{background:#112b2188}dialog h2{margin-top:0}dialog code{display:block;padding:12px;background:#f0f3ed;overflow-wrap:anywhere;font-size:12px;margin-bottom:20px}dialog label{display:block;font-size:12px}dialog input{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:8px;padding:12px}.fine{font-size:11px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}@media(min-width:1500px){main{grid-template-columns:420px 1fr}.intro{padding-top:36px}h1{font-size:31px}}@media(max-width:760px){header{height:72px;padding:0 16px}.brand{font-size:16px;gap:9px}.brand small{font-size:9px}.emblem{width:33px;height:39px;font-size:24px}.source-link{font-size:11px}main{height:auto;display:flex;flex-direction:column}.map-section{height:54dvh;min-height:350px;order:0}aside{order:1;border-right:0;overflow:visible}.intro{padding:24px 20px 12px}h1{font-size:24px}h1 br,.intro p br{display:none}.filters{padding:8px 20px 20px}.results-heading,.facility{padding-left:20px;padding-right:20px}.map-toolbar{top:12px;left:12px;right:12px;flex-wrap:wrap;gap:5px}.map-toolbar span{flex-basis:100%;font-size:11px}.map-toolbar button{padding:7px 9px;font-size:11px}#detail{top:100px;right:12px;max-height:calc(100% - 150px);padding:16px}.visit-note{font-size:9px;left:12px;right:12px;bottom:10px}.legend{bottom:47px;left:12px}#map-placeholder h2{font-size:21px}.map-glyph{width:64px;height:64px;font-size:44px}#map-placeholder small{font-size:10px}}
/* Keep facility details below the map on mobile, with one page scroll. */
main { position: relative; }
.category-symbol { display:inline-flex; flex:none; width:20px; height:20px; color:var(--green); }
.category-symbol svg { width:100%; height:100%; }
#detail { overflow-wrap:anywhere; }
@media (max-width:760px) {
  .map-section { order:0; }
  #detail { position:static; order:1; width:auto; max-width:none; max-height:none; overflow:visible; margin:16px 12px 0; padding:20px; box-shadow:none; scroll-margin-top:12px; }
  #detail[hidden] { display:none; }
  aside { order:2; }
  #detail .tags { flex-wrap:wrap; padding-right:30px; }
  #detail .detail-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #detail .detail-actions .primary { grid-column:1 / -1; padding:13px; }
  #detail .detail-actions a { text-align:center; }
  #detail .close { min-width:36px; min-height:36px; }
}
.visit-note { display:flex; flex-direction:column; gap:4px; }
.visit-note strong { font-size:11px; font-weight:600; }
.legend { bottom:76px; }
@media(max-width:760px) { .legend { bottom:72px; } .visit-note strong { font-size:10px; } }
/* Benefit labels use their own contrasting palette, separate from map dots. */
.tags { color:#42564a; font-size:11px; }
.tag { font-weight:700; border:1px solid transparent; }
.tag.free { background:#e8f3ea; color:#14532d; border-color:#b9d5bf; }
.tag.discount { background:#fff1d6; color:#704600; border-color:#e5ce9f; }
.tag.other { background:#eaf0fa; color:#294b7a; border-color:#c1cee4; }
.legend { color:#243a30; font-weight:600; }
.detail-actions .naver-route { background:#0c6b39; border-color:#0c6b39; color:#fff; }
.detail-actions .naver-route:hover { background:#08542c; }
.mart { background:#6d4c96; }
.tag.mart { background:#f0eafa; color:#4b286c; border-color:#d3c2e5; }
fieldset:disabled { opacity:.55; }
#mart-location-note { line-height:1.6; color:#4b286c; margin:8px 0 12px; }
.visit-note strong { overflow-wrap:anywhere; }
@media(max-width:760px) { .legend { bottom:88px; } }
.detail-actions button:disabled { opacity:.45; cursor:not-allowed; }
.source-detail a { color:#315a44; text-decoration:underline; text-underline-offset:2px; }
