*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Noto Sans KR",sans-serif;background:#f4f6f8;color:#202124}
.topbar{height:58px;display:flex;align-items:center;padding:0 18px;background:#fff;border-bottom:1px solid #e2e5e8;position:relative;z-index:1000;gap:22px}
.brand{display:flex;gap:10px;align-items:center;white-space:nowrap}.logo{font-size:26px;color:#19a974;text-decoration:none}.brand h1{margin:0;font-size:16px;color:#202124}.brand p{display:block;margin:2px 0 0;font-size:11px;color:#8b949e}
.top-search{display:flex;align-items:center;width:min(520px,42vw);height:40px;border:2px solid #19a974;border-radius:7px;overflow:hidden;margin-left:12px}.top-search input{border:0;outline:0;flex:1;height:100%;padding:0 14px;font-size:14px}.search-submit{width:48px;height:100%;border:0;background:#19a974;color:#fff;font-size:25px;cursor:pointer}.top-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}.btn{border:0;border-radius:6px;padding:8px 11px;font-size:12px;cursor:pointer;font-weight:700}
.btn.primary{background:#19a974;color:#fff}.btn.ghost{background:#fff;color:#56616b;border:1px solid #d9dee3}
.btn.primary.loc-off{background:#0e6b3a;color:#fff}
.notice{position:absolute;top:70px;left:calc(min(360px, 28vw) + 30px);z-index:500;background:#fffdf0;border:1px solid #f1e5ad;border-radius:5px;padding:7px 11px;font-size:11px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.layout{height:calc(100vh - 58px);margin:0;padding:0}
.controls{background:#fff;padding:13px 14px;border-bottom:1px solid #e5e8eb;box-shadow:none;margin:0}
.controls-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:700}
.controls-body.collapsed{display:none}
.controls-body{margin-top:10px}.search-row{display:none}
.filter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:0}
.filter-grid label{font-size:13px;display:flex;flex-direction:column;gap:6px;font-weight:600}
.filter-grid select{padding:9px;border:1px solid #d4dbe3;border-radius:6px;font-size:13px;background:#fff}
.chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{border:1px solid #cfe3d6;background:#eef7f0;border-radius:999px;padding:7px 12px;font-size:13px;cursor:pointer}
.chip.active{background:#0e6b3a;color:#fff;border-color:#0e6b3a}
.view-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;gap:8px}
.check{font-size:13px;font-weight:600;display:flex;gap:6px;align-items:center;cursor:pointer}
.check input{width:16px;height:16px;accent-color:#0e6b3a}
.btn.small{padding:7px 12px;font-size:13px;background:#eef7f0;color:#0e6b3a;border:1px solid #cfe3d6}
.meta-row{display:flex;justify-content:space-between;margin-top:10px;font-size:13px;color:#556}
.upload-row{display:flex;gap:12px;align-items:center;margin-top:10px;font-size:13px}
.file-btn{background:#eef2ff;border:1px dashed #8aa0ff;padding:8px 12px;border-radius:10px;cursor:pointer}
.link{color:#2456d6;text-decoration:none}
.content{display:grid;grid-template-columns:minmax(320px,360px) 1fr;height:calc(100vh - 58px);max-height:calc(100vh - 58px);min-height:0;overflow:hidden;align-items:stretch}
.sidebar{background:#fff;border-right:1px solid #dfe3e6;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;z-index:5}
#map{height:auto;min-height:0;max-height:100%;z-index:1;position:relative;min-width:0;overflow:hidden}
.results-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 14px;border-bottom:1px solid #e5e8eb;font-size:12px;color:#7a848e}.results-head strong{font-size:14px;color:#202124}
#listPanel{background:#fff;overflow:hidden;display:flex;flex-direction:column;flex:1;min-height:0;position:relative;z-index:0;min-width:0}
#storeList{padding:10px;flex:1;min-height:0;overflow-y:scroll;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-y;scroll-padding-top:10px}
#storeList .card{margin-bottom:10px}
#storeList .card:last-child{margin-bottom:0}
#storeList::-webkit-scrollbar{width:12px}
#storeList::-webkit-scrollbar-track{background:#eef1f4;border-radius:8px}
#storeList::-webkit-scrollbar-thumb{background:#9fb3a8;border-radius:8px;border:3px solid #eef1f4}
#storeList{scrollbar-width:auto;scrollbar-color:#9fb3a8 #eef1f4}
.card{border:1px solid #e4e9ef;border-radius:12px;padding:12px;background:#fff}
.card h3{margin:0 0 4px;font-size:15px}.card .sub{font-size:13px;color:#5b6675;margin:2px 0}
.badge{display:inline-block;font-size:12px;background:#e8f4ec;color:#0e6b3a;border-radius:999px;padding:3px 9px;margin-right:6px;font-weight:700}
.dist{font-weight:800;color:#0e6b3a}
.card .actions{display:flex;gap:8px;margin-top:8px}
.mini{flex:1;text-align:center;text-decoration:none;font-size:13px;padding:8px;border-radius:9px;background:#f1f4f8;color:#1c2333;font-weight:700}
.mini.go{background:#0e6b3a;color:#fff}
footer{display:none}.bottombar{position:fixed;right:18px;bottom:18px;z-index:1500;display:flex;gap:8px;padding:0;background:transparent}.bnav{box-shadow:0 2px 10px rgba(0,0,0,.16)}
.bnav{flex:1;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:10px;padding:10px;font-size:14px;font-weight:700;cursor:pointer}
.modal{position:fixed;inset:0;background:rgba(20,30,25,.55);display:flex;align-items:center;justify-content:center;z-index:2000;padding:16px}
.modal.hidden{display:none}
.modal-box{background:#fff;border-radius:16px;padding:20px;max-width:480px;width:100%;box-shadow:0 8px 30px rgba(0,0,0,.25)}
#pageRail{position:fixed;right:10px;top:50%;transform:translateY(-50%);width:34px;height:38vh;min-height:140px;background:rgba(20,30,25,.35);border-radius:999px;z-index:1600;touch-action:none;cursor:grab}
#pageThumb{position:absolute;left:4px;right:4px;top:0;height:56px;background:#fff;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.3);touch-action:none;cursor:grab}
#pageRail.dragging,#pageThumb.dragging{cursor:grabbing}
.modal-box h2{margin:0 0 12px;font-size:17px}
.info-list{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;font-size:13px;margin:0 0 12px}
.info-list dt{font-weight:700;color:#0e6b3a}
.info-list dd{margin:0;word-break:break-all}
.info-how{font-size:12px;background:#f4f6f9;border-radius:10px;padding:10px;color:#445}
.info-how code{background:#e8edf3;border-radius:6px;padding:1px 6px;font-size:12px}
.route-list{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.route-btn{padding:13px;border-radius:12px;border:1px solid #d4dbe3;background:#f8fafc;font-size:15px;font-weight:700;cursor:pointer}
.route-btn:active{background:#e8edf3}
@media(max-width:900px){
  html,body{height:auto;min-height:100%;overflow:auto}.topbar{height:auto;min-height:58px;flex-wrap:wrap;padding:8px}.top-search{order:3;width:100%;margin:0}.notice{position:static;border-radius:0;box-shadow:none}.layout{height:auto}.content{grid-template-columns:1fr;height:auto;max-height:none;overflow:visible}.sidebar{border-right:0;overflow:visible}.controls{position:relative}.results-head{margin-top:0}#map{height:58vw;min-height:320px;max-height:none;position:static;order:-1}.top-actions{gap:4px}.brand h1{font-size:13px}.bottombar{right:10px;bottom:10px}.bnav{padding:8px 10px;font-size:12px}
}
