*{box-sizing:border-box}body{margin:0;background:#f4f7fb;color:#172a42;font:15px/1.6 system-ui,'Malgun Gothic',sans-serif}header{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid #dce5f0;display:flex;align-items:center;justify-content:space-between;padding:12px max(16px,calc((100vw - 1100px)/2));gap:8px}a{color:#1755b5;text-decoration:none}.brand{font-weight:900;letter-spacing:-.5px;color:#174d9d}.brand small{color:#728399;font-weight:500}.home{background:#1859bd;color:white;padding:9px 12px;border-radius:9px;font-weight:700;font-size:13px;white-space:nowrap}main{max-width:1100px;margin:auto;padding:20px 16px 60px}.hero{background:linear-gradient(120deg,#123d84,#2676ce);color:white;border-radius:22px;padding:30px 26px}.hero span{font-size:13px;color:#dceaff}.hero h1{font-size:clamp(28px,5vw,44px);margin:4px 0}.hero p{margin:0 0 20px}.search{display:flex;gap:8px;max-width:700px}.search input{flex:1;min-width:0}input,select,button{font:inherit;border:1px solid #cfdaea;border-radius:10px;padding:11px;background:white;color:inherit}button{cursor:pointer;font-weight:650}button:hover{border-color:#2665c5}button:focus-visible,a:focus-visible{outline:3px solid #79b3ff;outline-offset:2px}.search button,.active,#more{background:#1859bd;color:white;border-color:#1859bd}.search button{background:#fff;color:#1859bd}nav{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:16px 0}.panel,.market{background:#fff;border:1px solid #e0e7f0;border-radius:16px;padding:18px}.sectiontitle{display:flex;justify-content:space-between;align-items:center;gap:8px}.sectiontitle h2{font-size:18px;margin:8px 0}.plain{border:0;color:#1755b5}.filters{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.filters select{min-width:0;width:100%}.results{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.market{display:flex;flex-direction:column;gap:8px;min-width:0}.market h3{margin:0;font-size:19px;line-height:1.4;overflow-wrap:anywhere}.market p{margin:0;color:#52647c;overflow-wrap:anywhere}.tag{display:inline-block;background:#eaf2ff;color:#174d9d;padding:3px 8px;border-radius:6px;font-size:12px}.actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.actions button,.actions a{flex:1;text-align:center;font-size:13px;padding:9px;border:1px solid #d4e0ef;border-radius:8px}.primary{background:#1859bd;color:white}.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.days button{padding:8px 0}.days span{text-align:center;font-size:12px}.foot{margin-top:24px;color:#52647c;font-size:13px}#more{display:block;margin:18px auto} [hidden]{display:none!important}dialog{border:0;border-radius:18px;width:min(720px,96vw);max-height:90vh;padding:0;box-shadow:0 10px 50px #0004}dialog::backdrop{background:#15263d99}.dialoghead{position:sticky;top:0;background:white;padding:12px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd}#detailbody{padding:18px;overflow-wrap:anywhere}#detailbody h3{margin:20px 0 8px}.entry{padding:12px 0;border-bottom:1px solid #e4eaf2}.entry p{margin:4px 0}.muted{color:#62748b;font-size:13px}@media(max-width:740px){nav{grid-template-columns:repeat(3,1fr)}.results{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){main{padding:12px 10px 40px}.hero{padding:22px 16px}.results{grid-template-columns:1fr}.brand small{display:none}nav button{font-size:12px;padding:10px 3px}.panel{padding:13px}}
nav{grid-template-columns:repeat(4,1fr)}#recommend{margin-bottom:14px}.market-art{height:68px;border-radius:10px;background:linear-gradient(115deg,#e4f0ff,#f1f8f6);display:flex;align-items:center;justify-content:center;font-size:38px}.nextday{font-size:13px;color:#1755b5;font-weight:700}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:12px}.week button{font-size:12px;padding:8px 0}#memo{margin-top:24px}.memoRow{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e1e8f0;padding:6px 0;gap:10px}.memoRow label{overflow-wrap:anywhere}.memoRow input:checked+span{text-decoration:line-through;color:#64748b}.bottomnav{display:none}#filterpanel{scroll-margin-top:80px}.links{margin-top:12px}.hero{box-shadow:0 8px 24px #164a8b22}.market{box-shadow:0 3px 10px #213e6810}.home:hover{background:#104697}@media(max-width:740px){nav{grid-template-columns:repeat(4,1fr)}.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:6;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #dae3ef;padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:4px}.bottomnav button{font-size:12px;padding:9px 2px}main{padding-bottom:100px}}@media(max-width:480px){#picks{grid-template-columns:repeat(2,1fr)}#picks .market:nth-child(n+3){display:none}#picks .market{padding:10px}#picks .market h3{font-size:16px}#picks .actions a{font-size:11px;padding:5px}nav button{font-size:11px}}@media print{body:has(dialog[open]) header,body:has(dialog[open]) main,.bottomnav,.dialoghead,dialog .actions{display:none!important}dialog[open]{position:static;width:100%;max-height:none;box-shadow:none;overflow:visible}dialog::backdrop{background:none}}

.market-photo{margin:8px 0 12px;position:relative;border-radius:10px;overflow:hidden;background:#e8f1fa;aspect-ratio:16/10;display:grid;place-items:center}.market-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}.market-photo.has-photo img{opacity:1}.market-photo.has-photo .market-placeholder{visibility:hidden}.market-placeholder{display:grid;gap:6px;text-align:center;color:#536781}.market-placeholder span{font-size:36px}.market-placeholder small{font-size:12px}.market-photo figcaption{display:none;position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.68);padding:4px 7px;font-size:11px}.market-photo.has-photo figcaption{display:block}.market-photo figcaption a{color:white;text-decoration:none}#detailbody .market-photo{max-height:340px;max-width:640px;margin-inline:auto}

.extra-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}.extra-filters label{background:#f4f7fb;border-radius:8px;padding:7px 9px;font-size:13px}.extra-filters input{accent-color:#1859bd}.viewtools{display:flex;align-items:center;gap:8px}.viewtools button{font-size:12px;padding:7px}.market-placeholder{width:100%;height:100%;position:relative}.market-photo .reference-image{opacity:1;object-fit:contain}.market-placeholder small{position:absolute;bottom:0;left:0;right:0;background:#fffE;color:#384f68;padding:4px;font-size:10px}.photo-expand{display:none;position:absolute;right:6px;top:6px;font-size:11px;padding:5px 8px}.has-photo .photo-expand{display:block}.list-view{grid-template-columns:1fr}.list-view .market{display:grid;grid-template-columns:minmax(100px,190px) 1fr;align-items:center}.list-view .market-photo{grid-column:1;grid-row:1/span 6;margin:0}.list-view .market> :not(.market-photo){grid-column:2}.list-view .actions{margin:0}#topButton{position:fixed;bottom:85px;right:16px;z-index:4;border-radius:50%;background:#1859bd;color:#fff;width:44px;height:44px;padding:0}#photoZoom img{display:block;width:100%;max-height:75vh;object-fit:contain}#photoZoom p{padding:0 16px;font-size:12px}@media(max-width:480px){#results:not(.list-view){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#results:not(.list-view) .market{padding:10px;gap:5px}#results:not(.list-view) .market h3{font-size:15px}#results:not(.list-view) .market p{font-size:12px}#results:not(.list-view) .actions button,#results:not(.list-view) .actions a{font-size:11px;padding:7px 3px}.extra-filters{gap:5px}.extra-filters label{font-size:12px}.list-view .market{grid-template-columns:95px 1fr}.home{font-size:12px}}

.market-photo svg.reference-image{display:block;width:100%;height:auto;aspect-ratio:600/340;max-height:100%;}

/* v2.5 detail */
body.detail-open{overflow:hidden}#detail{box-sizing:border-box;width:min(760px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:90dvh;overflow-x:hidden;overflow-y:auto;margin:auto;color:#172a42}#detail .dialoghead{z-index:10;gap:12px;padding:10px 16px}#close{min-width:44px;min-height:44px}#detailbody{min-width:0;padding:18px}#detailbody .market-photo{width:100%;max-width:100%;margin-inline:0}#detailbody .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0;gap:8px}#detailbody .actions>*{min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:42px;display:flex;align-items:center;justify-content:center}#detailbody .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.parking-card{background:#f8faff;border:1px solid #dce5f0;border-radius:12px;margin:10px 0;padding:14px}.parking-title{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.parking-title span{color:#1859bd;white-space:nowrap;font-weight:700}.fee-pill{display:inline-block;background:#e7edf4;padding:2px 8px;border-radius:6px;font-weight:700}.fee-pill.free{background:#e5f5e9;color:#17683b}.fee-pill.paid{background:#fff1db;color:#92520a}.fee-line{font-weight:600}.parking-hours{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px;margin:8px 0;color:#52647c;font-size:13px}.parking-hours dd{margin:0}.detail-shops{display:grid;grid-template-columns:1fr;gap:8px}#shoplist>button,#parkinglist>button{margin:8px 0;width:100%}@media(max-width:480px){#detail{width:100%;max-width:100%;max-height:100dvh;height:100dvh;border-radius:0}#detailbody{padding:12px 12px calc(20px + env(safe-area-inset-bottom))}#detailbody h2{font-size:20px}.parking-card{padding:12px}#detailbody .actions>*{font-size:13px}#detail .dialoghead{padding-top:calc(8px + env(safe-area-inset-top))}}

.market-photo .reference-photo{opacity:0;object-fit:cover;z-index:1}.market-photo .reference-photo.loaded{opacity:1}.market-placeholder small{z-index:2}.market-photo.has-photo .market-placeholder{visibility:hidden}.market-photo .real-image{z-index:3}.market-photo figcaption,.market-photo .photo-expand{z-index:4}
/* v2.8 */
#marketMap{height:clamp(320px,55vh,600px);border-radius:14px;background:#e9eff6;z-index:0}#mapPanel{scroll-margin-top:90px}.market-cluster{background:transparent;border:0;box-shadow:none;color:white;font-weight:bold}.market-cluster:before{display:none}.directory-link{display:flex;align-items:center;justify-content:center;background:white;border:1px solid #cfdaec;border-radius:10px;padding:10px;color:#1859bd;text-decoration:none;font-weight:600;text-align:center}.seo-page{max-width:850px;margin:auto;padding:16px}.seo-page .panel{overflow-wrap:anywhere}.seo-page dl{display:grid;grid-template-columns:minmax(90px,1fr) 3fr;gap:12px}.seo-page dd{margin:0}.seo-page ul{padding-left:20px}.seo-page li{margin:8px 0}.seo-page img{max-width:100%;height:auto;border-radius:10px}.seo-page a{color:#1859bd}.seo-page .home{color:white}
