:root{--navy:#23395b;--paper:#fffdfa;--cream:#f8f5ef;--clay:#a74725;--sage:#425c44;--muted:#59635f;--line:#d8d0c4;color:var(--navy);background:var(--cream);font-family:'Noto Sans JP',sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button,select{min-height:44px;border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:9px 13px}button:disabled{opacity:.5;cursor:default}a{color:var(--clay);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--clay);outline-offset:3px}[hidden]{display:none!important}header{height:76px;display:flex;align-items:center;gap:30px;padding:0 28px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:8px;align-items:center;text-decoration:none;font:500 29px 'Noto Serif JP',serif;color:var(--navy)}.brand small{font-size:14px}.tagline{font-size:12px;color:var(--muted)}nav{margin-left:auto;display:flex;gap:24px;align-items:center}nav a{font-size:12px;color:var(--navy);text-decoration:none}#path-toggle{background:var(--navy);color:var(--paper);border:0}#path-count{display:inline-block;margin-left:8px}main{height:calc(100dvh - 76px);position:relative;min-height:580px}.map-stage{position:absolute;inset:0;background:#e9eee5}#map{position:absolute;inset:0}.map-top{position:absolute;top:20px;left:410px;right:20px;display:flex;align-items:start;justify-content:space-between;gap:12px;pointer-events:none}.map-top button{pointer-events:auto;box-shadow:0 4px 18px #23395b12}.map-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:end}#base-toggle{max-width:310px;text-align:left}#base-label{font-size:12px}.categories{position:absolute;bottom:42px;left:410px;right:65px;display:flex;gap:7px;overflow:auto;padding:5px;scrollbar-width:thin}.categories button{flex:none;border-radius:24px;font-size:12px;box-shadow:0 3px 15px #23395b14}.categories button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}#map-note{position:absolute;top:82px;left:415px;max-width:450px;border-radius:12px;background:#fffdfae8;font-size:11px;padding:8px 12px;pointer-events:none}.browse{position:absolute;top:20px;bottom:20px;left:20px;width:365px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 35px #23395b18;display:flex;flex-direction:column;overflow:hidden}.browse-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:19px 20px 10px}h1{font:400 24px/1.4 'Noto Serif JP',serif;margin:0}h2{font:400 28px/1.4 'Noto Serif JP',serif;margin:8px 0 12px}.quiet{border:0;background:transparent;color:var(--clay);font-size:12px;padding:8px}.search-box{display:flex;align-items:center;gap:8px;margin:0 20px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--cream)}.search-box input{width:100%;min-width:0;border:0;background:transparent;padding:13px 0;outline:none;font-size:12px}.search-box span{font-size:25px}.filter-row{display:flex;gap:8px;margin:12px 20px 0}.filter-row select{flex:1;min-width:0;font-size:12px}.filter-row button{font-size:12px}#results-status{font-size:11px;color:var(--muted);padding:0 20px;line-height:1.7;margin:12px 0}#place-list{overflow:auto;flex:1;padding:0 10px 12px}.place-row{display:flex;align-items:center;gap:8px;border-top:1px solid #e8e2d8;padding:8px 3px}.place-open{flex:1;text-align:left;border:0;background:transparent;padding:8px 7px;min-width:0}.place-open strong{display:block;font-size:13px;font-weight:500;line-height:1.6}.place-open small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:4px}.place-add{width:39px;min-height:39px;padding:5px;flex:none;font-size:20px}.place-add[aria-pressed=true]{background:var(--sage);color:white}.pin-state{font-size:10px;color:var(--sage)}.pin-state.pending{color:var(--muted)}.path-panel{position:absolute;right:20px;top:20px;bottom:20px;width:340px;max-width:calc(100% - 40px);background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 35px #23395b25;padding:20px;overflow:auto;z-index:4}.panel-heading{display:flex;justify-content:space-between;align-items:center}.panel-heading h2{margin:0}.panel-heading button{border:0;font-size:24px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.primary{display:block;background:var(--navy);color:var(--paper);border:0;text-align:center;text-decoration:none;padding:13px 15px;border-radius:12px;min-height:46px}#make-route{width:100%;background:var(--clay);margin-top:16px}#route-status{font-size:11px;line-height:1.8;color:var(--muted)}.path-stop{border-bottom:1px solid var(--line);padding:12px 0}.path-stop strong{font-size:12px;font-weight:500}.path-controls{display:flex;align-items:center;gap:6px;margin-top:7px}.path-controls button{padding:6px 10px;min-height:36px;font-size:12px}.path-controls a{font-size:12px;margin-left:auto}.provider-label{font-size:11px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}dialog{border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--navy);width:min(500px,calc(100% - 28px));padding:26px;max-height:85dvh;overflow:auto}dialog::backdrop{background:#172a4666;backdrop-filter:blur(3px)}.close-dialog{float:right;border:0;font-size:25px;padding:4px 10px}dialog p{font-size:13px;line-height:1.85}.detail-meta{font-size:11px;color:var(--sage);margin-top:18px}.detail-address{padding:15px 0;border-block:1px solid var(--line);margin:18px 0}.detail-address p{margin:0}.detail-address button{font-size:11px;margin-top:8px}.detail-actions{display:flex;gap:8px;margin-top:18px}.detail-actions>*{flex:1}.sources a{display:block;overflow-wrap:anywhere;font-size:11px;padding:7px 0}.sources summary{font-size:12px;cursor:pointer;padding:12px 0}.hotel-search{display:flex;gap:8px;margin-top:8px}.hotel-search input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:10px;font-size:13px}#hotel-results button{display:block;width:100%;text-align:left;margin-bottom:8px;font-size:12px}#hotel-results small{display:block;margin-top:4px}#use-map-center{margin-top:15px;font-size:12px}#toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;border-radius:12px;padding:11px 18px;font-size:12px;z-index:20;max-width:90%;box-shadow:0 3px 15px #23395b30}#toast:empty{display:none}.region-pin{border:2px solid var(--paper);background:var(--navy);color:white;border-radius:30px;min-height:36px;padding:6px 10px;font-size:11px;box-shadow:0 3px 12px #23395b35}.region-pin small{display:block;font-size:9px;opacity:.8}.home-marker{width:30px;height:30px;background:var(--sage);border:3px solid white;border-radius:50%;color:white;text-align:center;line-height:24px}.maplibregl-ctrl-attrib{font-size:10px!important}.maplibregl-ctrl-group button{min-height:29px}.skip{position:absolute;top:-60px;z-index:30;background:white;padding:10px}.skip:focus{top:0}.sheet-handle{display:none}
@media(max-width:1000px) and (min-width:761px){.tagline{display:none}.browse{width:320px}.map-top{left:360px}.categories{left:360px}#map-note{left:365px}.map-actions button{font-size:11px}}
@media(max-width:760px){header{height:64px;padding:0 16px;gap:10px}.brand{font-size:25px}.brand img{width:30px;height:30px}.tagline{display:none}nav{gap:12px}nav a{font-size:11px}nav button{font-size:12px;padding:8px 12px}main{height:calc(100dvh - 64px);min-height:600px}.map-stage{bottom:43%}.map-top{left:12px;right:12px;top:12px;gap:8px}.map-actions{gap:5px;max-width:160px}.map-actions button{min-height:36px;padding:7px 9px;font-size:10px}#base-toggle{max-width:calc(100% - 170px);padding:8px 10px;font-size:12px}#base-label{font-size:10px}#map-note{top:100px;left:12px;right:12px;max-width:max-content;font-size:10px;padding:6px 9px}.categories{left:8px;right:8px;bottom:28px;gap:6px}.categories button{min-height:38px;padding:8px 12px;font-size:11px}.browse{top:auto;bottom:0;left:0;width:100%;height:43%;border-radius:22px 22px 0 0;box-shadow:0 -6px 28px #23395b14;border-bottom:0}.sheet-handle{display:block;width:32px;height:4px;border-radius:4px;background:var(--line);margin:8px auto 0;flex:none}.browse-heading{padding:3px 18px 5px}h1{font-size:20px}.search-box{margin:0 18px}.search-box input{padding:10px 0}.filter-row{margin:8px 18px 0}.filter-row button,.filter-row select{min-height:36px;padding:6px 10px}#results-status{padding:0 18px;margin:7px 0;font-size:10px}.path-panel{top:auto;bottom:0;left:0;right:0;width:100%;max-width:100%;height:70%;border-radius:22px 22px 0 0;padding:18px 20px calc(18px + env(safe-area-inset-bottom))}#place-list{padding-bottom:env(safe-area-inset-bottom)}.place-open{padding:5px 8px}.place-row{padding:5px 3px}dialog{padding:22px}.maplibregl-ctrl-bottom-right{bottom:76px!important}#toast{bottom:9px}}
.pin-filter{display:flex;align-items:center;gap:6px;font-size:11px;margin:7px 20px 0;min-height:28px;color:var(--muted)}.pin-filter input{accent-color:var(--clay);width:16px;height:16px}
/* Exact-coordinate place markers: one marker per place, never clusters or region guesses. */
.map-place-root{width:28px;height:28px;pointer-events:none;transition:none!important}.map-place-root.kind-gem,.map-place-root.kind-photo{width:48px;height:48px}.map-place-root.is-saved{z-index:4}.map-place-marker{display:grid;place-items:center;width:100%;height:100%;min-height:0;padding:0;border:0;background:transparent;border-radius:50%;box-shadow:none;pointer-events:auto;cursor:pointer;position:relative}.map-place-marker:focus-visible{outline:3px solid var(--navy);outline-offset:3px}.map-marker-visual{display:grid;place-items:center;position:relative;border-radius:50%}.dot-visual{width:10px;height:10px;border-radius:50%;background:var(--navy);border:2px solid #fff;box-shadow:0 1px 5px #23395b66}.map-place-marker.dot.is-saved .dot-visual{width:15px;height:15px;background:var(--sage);box-shadow:0 0 0 4px #425c4452,0 2px 7px #23395b55}.photo-visual{width:48px;height:48px;overflow:hidden;border:2px solid #fff;background:#f8f5ef;box-shadow:0 4px 13px #1d344e55}.photo-visual img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;transition:transform .18s ease,opacity .18s ease}.photo-visual:hover img{transform:scale(1.06)}.map-place-marker.is-saved .photo-visual{border-color:#d4ecdd;box-shadow:0 0 0 4px #425c4480,0 4px 13px #1d344e55}.gem-visual{width:48px;height:48px;border:2px solid #fff;background:radial-gradient(circle at 35% 25%,#fffdf8,#eee6d7 68%,#ded4c3);box-shadow:0 4px 13px #1d344e55}.gem-visual img{width:44px;height:44px;object-fit:contain;display:block;filter:drop-shadow(0 2px 3px #23395b33);transition:transform .18s ease,opacity .18s ease}.gem-visual:hover img{transform:scale(1.06)}.map-place-marker.is-saved .gem-visual{box-shadow:0 0 0 4px #425c4480,0 4px 13px #1d344e55}.map-marker-fallback{display:none;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--sage);border:2px solid #fff;color:#fff;font-size:10px;line-height:1}.map-marker-visual.is-fallback{width:20px;height:20px;background:transparent;border:0;box-shadow:none}.map-marker-visual.is-fallback .map-marker-fallback{display:grid}.map-marker-visual.is-fallback img{display:none}#route-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden}#route-overlay line{stroke:var(--clay);stroke-width:3;stroke-dasharray:7 6}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Michi visual discovery card */
#detail{padding:0;width:min(535px,calc(100% - 28px));overflow:auto}#detail-body{padding:0 28px 25px}#detail .close-dialog{position:absolute;right:16px;top:16px;z-index:2;background:#fffdfbe8;border-radius:50%;width:42px;height:42px;float:none}#detail .michi-detail-top{margin:0 -28px 22px;padding:25px 27px;display:flex;align-items:center;gap:17px;min-height:145px;background:linear-gradient(130deg,#efe6de,#e6efea)}.michi-detail-symbol{display:grid;place-items:center;flex:none;width:78px;height:78px;background:#fff9eead;border:1px solid #ffffffa6;border-radius:22px;font-size:43px;box-shadow:0 9px 23px #24395b12}.michi-detail-kicker{display:block;font-weight:700;letter-spacing:.13em;font-size:10px;margin-bottom:14px}.michi-detail-chips{display:flex;flex-wrap:wrap;gap:6px}.michi-detail-chips span{border:1px solid #ffffffba;background:#fffdfac7;border-radius:24px;padding:7px 10px;font-weight:600;font-size:10px}.michi-detail-top.tone-food{background:linear-gradient(120deg,#f3d4c1,#f7e8cf)}.michi-detail-top.tone-night{background:linear-gradient(120deg,#d9d1ee,#ead6e5)}.michi-detail-top.tone-culture{background:linear-gradient(120deg,#d5dcf0,#e6e2f2)}.michi-detail-top.tone-nature{background:linear-gradient(120deg,#cee3d2,#e7eee0)}.michi-detail-top.tone-shopping{background:linear-gradient(120deg,#f1dfab,#faead0)}.michi-detail-top.tone-play{background:linear-gradient(120deg,#eddbe8,#f3e2cf)}.michi-detail-top.tone-hotel{background:linear-gradient(120deg,#d9e2ed,#e7e6f0)}#detail .michi-detail-title{font:500 31px/1.27 'Noto Serif JP',serif;margin:0 0 10px;letter-spacing:-.02em}.michi-japanese{margin:0;color:var(--muted)}.michi-detail-lead{font-size:15px;font-weight:700;margin:14px 0 4px}.michi-detail-summary{margin:0 0 18px;font-size:13px;line-height:1.75;color:#374d61}.michi-detail-note{display:flex;gap:12px;background:#f2f4ef;border-radius:13px;padding:11px 14px}.michi-detail-note>span{font-size:20px;color:#657e61}.michi-detail-note p{font-size:11px;margin:0}.michi-detail-field{font-size:10px;letter-spacing:.13em;font-weight:700;margin-bottom:8px}.detail-actions #detail-add{font-weight:700;background:#f5f0e7}.detail-actions #detail-add.detail-added{background:#315a45;color:white;border-color:#315a45}.detail-actions #detail-add.detail-pulse{animation:detail-pulse .35s ease-out}@keyframes detail-pulse{50%{transform:scale(1.04)}}@media(max-width:760px){#detail-body{padding:0 20px 18px}#detail .michi-detail-top{margin:0 -20px 20px;padding:22px 18px;gap:10px}#detail .michi-detail-symbol{width:60px;height:60px;font-size:34px}#detail .michi-detail-title{font-size:27px}}
/* Mobile scroll containment: the discovery sheet is the scrollable surface, not the map. */
@media(max-width:760px){
 html,body{height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}
 body{position:fixed;inset:0;width:100%}
 main{height:calc(100dvh - 64px);min-height:0;overflow:hidden}
 .map-stage{bottom:43%;touch-action:pan-x pan-y}
 .browse{height:43%;min-height:0;display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}
 #place-list{min-height:0;flex:1 1 0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
 .browse-heading,.search-box,.filter-row,.pin-filter,#results-status{flex-shrink:0}
 .path-panel{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}
 dialog{max-height:calc(100dvh - 70px);-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
}

.michi-venue-photo{margin:0 -28px;background:#e7eae2}.michi-venue-photo img{width:100%;height:210px;display:block;object-fit:cover}.michi-venue-photo figcaption{font-size:10px;line-height:1.5;color:#465a51;padding:6px 14px;background:#f3f4ef}.michi-venue-photo a{color:inherit}@media(max-width:760px){.michi-venue-photo{margin:0 -20px}.michi-venue-photo img{height:175px}}
/* Compact mobile card actions */
#detail .detail-actions{gap:9px;align-items:stretch}#detail .detail-actions>*{min-height:43px;padding:10px 12px;font-size:12px;line-height:1.25;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;border-radius:11px}#detail .detail-actions #detail-add{flex:0 0 34%;background:#f3eee6}#detail .detail-actions .primary{flex:1}@media(max-width:760px){#detail .detail-actions{margin-top:14px}#detail .detail-actions>*{min-height:40px;padding:9px 10px;font-size:12px}}
/* Accessible mobile place dialog: one scroll surface, visible close and actions. */
@media(max-width:760px){
 #detail{position:fixed;inset:0;margin:auto;width:calc(100vw - 20px);max-width:520px;max-height:min(85dvh,740px);height:auto;padding:0;display:none;flex-direction:column;overflow:hidden;overscroll-behavior:contain;border-radius:20px}
 #detail[open]{display:flex}
 #detail-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;padding:0 20px calc(26px + env(safe-area-inset-bottom))}
 #detail .close-dialog{position:absolute;top:12px;right:12px;z-index:5;float:none;background:#fffefa;color:#23395b;box-shadow:0 2px 12px #1a263b22}
 #detail .michi-venue-photo{margin:0 -20px}
 #detail .michi-detail-top{margin:0 -20px 18px;padding:22px 18px}
 #detail .detail-actions{position:sticky;bottom:0;background:#fffdfa;padding:8px 0;z-index:2}
 #detail .detail-actions>*{min-height:44px}
}
/* Mobile discovery-first layout. Desktop split map remains unchanged. */
@media(max-width:760px){
 html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;position:static!important;overscroll-behavior-y:auto!important}
 body{width:100%!important}header{position:sticky;top:0;z-index:8;background:#f8f5efee;backdrop-filter:blur(12px)}
 main{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
 .map-stage{position:relative!important;inset:auto!important;order:0;height:235px!important;min-height:235px;flex:none;border-bottom:1px solid var(--line);overflow:hidden}
 #map{inset:0!important}.map-top{top:10px;left:10px;right:10px}.map-actions{max-width:none;gap:5px}
 #near-me,#map-theme,#map-expand{width:42px;min-width:42px;height:42px;padding:7px;font-size:19px;border-radius:50%}
 #all-japan,#map-note{display:none!important}.categories{position:relative!important;inset:auto!important;display:none!important}
 #base-toggle{max-width:calc(100% - 155px);min-height:42px}.maplibregl-ctrl-bottom-right{bottom:4px!important}.maplibregl-ctrl-group{display:none!important}
 .browse{position:relative!important;inset:auto!important;order:1;height:auto!important;min-height:0!important;width:100%!important;overflow:visible!important;display:block!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:14px 0 40px;background:#f8f5ef}
 .sheet-handle{display:none!important}.browse-heading{padding:9px 20px 12px}.browse-heading h1{font-size:25px}.search-box{margin:0 20px}.filter-row{margin:12px 20px}
 #categories-mobile{display:flex;gap:8px;overflow-x:auto;padding:10px 20px 5px;scrollbar-width:none;overscroll-behavior-x:contain}
 #categories-mobile button{flex:none;min-height:40px;border-radius:23px;padding:9px 15px;font-size:12px}
 #categories-mobile button[aria-pressed=true]{background:#23395b;color:white;border-color:#23395b}
 .pin-filter{display:none!important}#results-status{padding:0 20px;margin:15px 0 8px;font-size:11px}
 #place-list{display:grid;grid-template-columns:1fr 1fr;gap:11px;max-height:none!important;height:auto!important;min-height:0!important;overflow:visible!important;touch-action:auto!important;padding:9px 16px 35px!important}
 .place-row{display:flex;flex-direction:column;position:relative;border:1px solid #e2ddd5;border-radius:17px;padding:0 0 12px;overflow:hidden;background:white;box-shadow:0 5px 14px #23395b0a;min-height:174px;align-items:stretch}
 .place-open{padding:12px 11px 4px;flex:1;text-align:left}.place-open strong{font-size:13px;line-height:1.5}.place-open small{font-size:11px}.place-add{align-self:flex-end;margin-right:10px;border-radius:50%;min-height:36px;width:36px;font-size:18px}
 .place-card-photo{display:block!important;width:100%;height:100px;object-fit:cover}.place-row:has(.place-card-photo){min-height:230px}.pin-state{display:none}
 .path-panel{position:fixed!important;top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:none!important;height:min(76dvh,680px)!important;z-index:15;overflow-y:auto!important;border-radius:23px 23px 0 0}
 main.map-fullscreen .map-stage{position:fixed!important;inset:64px 0 0!important;width:100%;height:auto!important;z-index:11;overflow:visible}
 main.map-fullscreen .maplibregl-ctrl-group{display:block!important}main.map-fullscreen .browse{visibility:hidden}main.map-fullscreen #map-expand{background:#23395b;color:white}main.map-fullscreen #base-toggle{max-width:210px}
}
@media(min-width:761px){#categories-mobile,#map-expand{display:none!important}.place-card-photo{display:none}}

@media(max-width:760px){.load-more-places{grid-column:1/-1;background:#e8ede4;color:#23395b;border-radius:14px;font-weight:650;margin-top:10px;min-height:46px}}
/* Michi translucent glass visual language: focused, accessible layers */
:root{--glass-bg:rgba(255,253,250,.83);--glass-border:rgba(255,255,255,.78);--glass-shadow:0 13px 38px rgba(30,51,77,.16),inset 0 1px rgba(255,255,255,.88)}
header{background:rgba(248,246,240,.85);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);border-bottom-color:rgba(255,255,255,.7)}
#path-toggle{background:linear-gradient(145deg,#355c76,#23395b 72%);border:1px solid rgba(255,255,255,.34);box-shadow:0 5px 14px #23395b24,inset 0 1px #ffffff55}
.browse,.path-panel{background:var(--glass-bg);border-color:var(--glass-border);backdrop-filter:blur(24px) saturate(1.25);-webkit-backdrop-filter:blur(24px) saturate(1.25)}
.place-row{transition:transform .18s ease,box-shadow .18s ease}.place-row:focus-within{box-shadow:0 0 0 3px #b77b5b55} .place-row .place-add{background:linear-gradient(150deg,#fff,#eee9e0);box-shadow:inset 0 1px #fff,0 3px 8px #23395b11}
#detail{background:rgba(255,253,249,.98);box-shadow:0 28px 80px #172a4650}#detail .michi-detail-top{backdrop-filter:blur(18px)}
.map-top button,#map-expand,#near-me,#map-theme,#base-toggle{background:rgba(255,253,250,.86);border:1px solid rgba(255,255,255,.78);box-shadow:var(--glass-shadow);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
@media(max-width:760px){
 body,.browse{background:linear-gradient(165deg,#f4f4ed 0%,#edf1ee 40%,#f9f3eb 100%)}
 .browse{backdrop-filter:none;-webkit-backdrop-filter:none}
 .place-row{background:rgba(255,255,255,.78);border:1px solid #ffffffea;box-shadow:0 8px 27px #24395b12,inset 0 1px #fff;backdrop-filter:blur(15px)}
 .search-box{background:rgba(255,255,255,.78);border:1px solid #ffffff;box-shadow:0 4px 17px #24395b0b,inset 0 1px #fff}
 #categories-mobile button{background:rgba(255,255,255,.75);border:1px solid rgba(255,255,255,.9);box-shadow:0 3px 10px #23395b0b}
 #categories-mobile button[aria-pressed=true]{background:linear-gradient(140deg,#315a71,#23395b);color:#fff;box-shadow:0 6px 13px #23395b35}
 .place-card-photo{height:117px;filter:saturate(1.08)}
 .place-row:has(.place-card-photo){min-height:250px}
}
@media(prefers-reduced-motion:reduce){.place-row{transition:none}}
/* MICHI SPACING CONTRACT v1 — 4px base; optical rhythm across phone layouts. */
:root{--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;--sp-10:40px;--sp-12:48px;--page-gutter:16px;--card-radius:18px}
@media(max-width:760px){
 .browse{padding:var(--sp-5) 0 var(--sp-8)!important}
 .browse-heading{padding:0 var(--page-gutter) var(--sp-4)!important;align-items:center!important;min-height:48px}
 .browse-heading h1{font-size:clamp(22px,6vw,26px);line-height:1.25;margin:0}
 #categories-mobile{padding:0 var(--page-gutter) var(--sp-4)!important;gap:var(--sp-2)!important}
 #categories-mobile button{min-height:40px;padding:8px 14px;white-space:nowrap;line-height:1.3}
 .search-box{margin:0 var(--page-gutter)!important;min-height:52px;border-radius:14px}
 .search-box input{padding:12px 0;min-height:50px}
 .filter-row{margin:var(--sp-3) var(--page-gutter) 0!important;gap:var(--sp-2)!important;align-items:stretch}
 .filter-row select,.filter-row button{height:46px;min-height:46px;border-radius:13px;padding:8px 12px}
 #results-status{padding:0 var(--page-gutter)!important;margin:var(--sp-4) 0 var(--sp-3)!important;line-height:1.45!important;font-size:11px}
 #place-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-3)!important;padding:0 var(--page-gutter) var(--sp-8)!important;align-items:stretch}
 .place-row{min-height:0!important;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0!important;border-radius:var(--card-radius);overflow:hidden}
 .place-card-photo{height:110px!important;flex:none;object-fit:cover}
 .place-open{flex:1 1 auto;min-width:0;display:block;padding:var(--sp-4) var(--sp-3) var(--sp-2)!important}
 .place-open strong{font-size:13px;line-height:1.42;font-weight:650;overflow-wrap:anywhere}
 .place-open small{margin-top:var(--sp-2)!important;line-height:1.4;font-size:11px}
 .place-add{width:36px;min-height:36px;max-height:36px;flex:none;align-self:flex-end;margin:0 var(--sp-3) var(--sp-3) 0!important;padding:4px}
 .map-stage{height:220px!important;min-height:220px!important}
 .load-more-places{margin-top:var(--sp-2)}
}
@media(max-width:350px){:root{--page-gutter:12px}#place-list{gap:8px!important}.place-open{padding:12px 10px 8px!important}}

#nightlife-types{display:flex;gap:8px;overflow:auto;padding:0 20px 12px}#nightlife-types[hidden]{display:none!important}#nightlife-types button{border-radius:22px;flex:none;font-size:12px;padding:8px 12px;min-height:38px}#nightlife-types button[aria-pressed=true]{background:#3c365f;color:#fff;border-color:#3c365f}@media(max-width:760px){#nightlife-types{padding:0 var(--page-gutter) var(--sp-3)}}

/* Ready-made path discovery: concise editable choices, not alleged routes. */
.path-discover{padding:16px 18px 8px}.path-discover-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.mini-kicker{font-size:9px;font-weight:750;letter-spacing:.12em;color:#75656c}.path-discover-head h2{font:500 21px/1.3 'Noto Serif JP',serif;margin:3px 0 11px}.path-suggestions{display:grid;gap:9px}.path-idea{display:flex;gap:11px;align-items:center;border-radius:16px;background:rgba(255,255,255,.82);padding:12px;border:1px solid #fff;box-shadow:0 5px 18px #23395b0a}.path-idea-emoji{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eee9e1;font-size:22px}.path-idea-main{flex:1;min-width:0}.path-idea-main strong{display:block;font-size:12px;line-height:1.35;margin:3px 0}.path-idea-main p{font-size:10px;line-height:1.45;color:#57616a;margin:0}.path-idea-add{flex:none;font-weight:700;font-size:10px;border-radius:12px;padding:9px;min-height:38px;background:#315a45;color:#fff;border:0}.path-discover-note{font-size:10px;color:#617069;margin:9px 3px}.path-discover .quiet{white-space:nowrap}@media(max-width:760px){.path-discover{padding:0 var(--page-gutter) var(--sp-5)}.path-discover-head h2{font-size:23px}.path-idea{padding:12px}.path-idea-add{max-width:110px;white-space:normal}}@media(max-width:350px){.path-idea-emoji{width:35px;height:35px}.path-idea-add{max-width:82px}}
/* LOCKED CONCEPT 1: premium editorial mobile discovery; no phantom scores or venue images. */
@media(max-width:760px){
 header{min-height:68px;height:68px;padding:0 17px}.brand{font-size:27px}nav a{display:none}#path-toggle{padding:11px 14px;border-radius:24px;font-size:12px}
 main{padding-bottom:30px}.map-stage{height:203px!important;min-height:203px!important;margin:12px 14px 0;border-radius:22px;box-shadow:0 10px 28px #1b35531b;border:1px solid #ffffffd9}.map-top{top:10px;left:10px;right:10px}
 .browse{padding:22px 0 48px!important}.browse-heading{padding:0 var(--page-gutter) 13px!important}.browse-heading h1{font-size:30px;letter-spacing:-.025em}.explore-subtitle{font-size:12px;color:#78838d;margin:6px 0 0;line-height:1.4}
 .search-box{order:0;background:rgba(255,255,255,.83)!important;border:1px solid #fff;box-shadow:0 6px 21px #24395b14;border-radius:17px}
 #categories-mobile{margin-top:13px;padding-bottom:22px!important}
 .path-discover{margin:4px 0 12px;padding:0 var(--page-gutter) 12px}.path-discover-head h2{font-size:22px}.path-suggestions{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding:2px 2px 12px}.path-idea{min-width:245px;max-width:265px;scroll-snap-align:start;min-height:145px;position:relative;align-items:flex-start;flex-wrap:wrap;background:linear-gradient(145deg,#fffaf2,#e4eaf1);box-shadow:0 9px 24px #24395b15;border-radius:19px}.path-idea-emoji{background:#ffffffc9}.path-idea-main{min-width:140px}.path-idea-add{width:100%;min-height:36px;border-radius:12px}.path-discover-note{margin:0 3px 7px}
 #results-status{font-size:11px;color:#849097!important}
 .place-row{border-radius:20px;box-shadow:0 13px 32px #24395b17!important;background:#ffffffdf!important}.place-card-copy{flex:1}.place-open strong{font:600 15px/1.35 'Noto Serif JP',serif;letter-spacing:-.01em}.place-open small{font-size:11px}.place-add{background:linear-gradient(145deg,#335e6b,#23395b)!important;color:white!important;border:1px solid #ffffffaa!important;box-shadow:0 6px 16px #23395b25!important}.place-card-photo{height:135px!important}
 .base-companion{display:flex;align-items:center;gap:11px;background:#fffefaed;border:1px solid #fff;padding:13px;margin:7px var(--page-gutter) 0;border-radius:20px;box-shadow:0 12px 28px #24395b14}.base-visual{width:47px;height:47px;display:grid;place-items:center;background:linear-gradient(145deg,#cbd8de,#efe5d9);font-size:25px;border-radius:13px}.base-companion>div:nth-child(2){min-width:0;flex:1}.base-companion strong,.base-companion small{display:block}.base-companion strong{font-size:12px;line-height:1.35}.base-companion small{font-size:10px;line-height:1.4;color:#6b7680}.base-companion button{background:#f4f7f6;border:1px solid #fff;border-radius:12px;font-size:10px;padding:10px;max-width:95px;font-weight:700}
}
@media(min-width:761px){.base-companion{display:none}.explore-subtitle{display:none}}

@media(max-width:760px){
.browse{display:flex!important;flex-direction:column!important}
.browse-heading{order:1}.city-picker{order:2}#gems-row{order:3}.search-box{order:4}.dining-filter-row{order:5}#categories-mobile{order:6}.path-discover{order:7}#nightlife-types{order:8}#results-status{order:9}#place-list{order:10}.base-companion{order:11}.sheet-handle,.pin-filter{display:none!important}
#categories-mobile{margin-top:14px!important;padding-bottom:12px!important}.path-discover{margin:4px 0 8px;padding-bottom:6px}.browse-heading{padding-bottom:16px!important}.filter-row{margin-top:12px!important}
}

@media(max-width:760px){.place-row{position:relative;isolation:isolate}.place-card-copy{position:relative;z-index:2;min-height:80px}.place-open{position:relative;z-index:3;width:100%;cursor:pointer}.place-media--card{pointer-events:none}.place-add{position:relative;z-index:4}}
@media(max-width:760px){#place-list .place-row{min-height:245px!important;height:auto!important;align-self:stretch!important}#place-list .place-card-copy{flex:1 1 auto!important;min-height:90px!important}#place-list .place-media--card{display:block;flex:0 0 132px;min-height:132px}#place-list .place-add{flex:none}}
/* Mobile card clipping regression fix: action and credits stay in normal flow. */
@media(max-width:760px){
 #place-list{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;align-items:stretch}
 #place-list .place-row{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;align-self:stretch!important;padding:0!important}
 #place-list .place-media--card{display:block;flex:0 0 132px;min-height:132px;max-height:132px;margin:0}
 #place-list .place-card-copy{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;padding:12px 12px 4px!important}
 #place-list .place-open{display:block;width:100%;flex:0 0 auto!important;padding:0!important;margin:0!important;text-align:left}
 #place-list .place-open strong{display:block;font-size:14px;line-height:1.3;margin-bottom:6px;overflow-wrap:anywhere}
 #place-list .place-open small{display:block;font-size:11px;line-height:1.4;margin:0!important;overflow-wrap:anywhere}
 #place-list .place-credit-details{position:relative!important;inset:auto!important;display:block;margin:8px 0 4px!important;padding:0!important;font-size:10px;line-height:1.35;max-width:100%}
 #place-list .place-add{position:relative!important;inset:auto!important;display:grid;place-items:center;flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:8px 12px 12px auto!important;padding:0!important;border-radius:50%}
}
@media(max-width:760px){#place-list{grid-auto-rows:auto!important;align-content:start!important}#place-list .place-row{min-height:245px!important;max-height:none!important;contain:none!important}#place-list .place-card-copy{min-height:90px!important}}
@media(max-width:760px){#place-list .place-row{min-height:310px!important}#place-list .place-card-copy{flex:1 0 auto!important}#place-list .place-credit-details{flex:none!important}#place-list .place-add{flex-shrink:0!important}}
@media(max-width:760px){#place-list .place-row{height:max-content!important;min-height:0!important;align-self:start!important}#place-list .place-card-copy{flex:0 0 auto!important}}
/* MICHI SPACING CONTRACT v2: map controls, path panel and image disclosure */
:root{--michi-gap:8px;--michi-gutter:16px;--michi-control:42px}
.place-image-chip{display:none!important}
@media(max-width:760px){
 .map-top{position:absolute!important;top:12px!important;left:12px!important;right:12px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;pointer-events:none}
 .map-top>*{pointer-events:auto}
 #base-toggle{flex:0 1 auto!important;max-width:calc(100% - 162px)!important;min-width:0!important;min-height:42px!important;padding:8px 10px!important;border-radius:16px!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #base-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .map-actions{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;max-width:none!important;min-width:0!important}
 .map-actions #near-me,.map-actions #map-expand,.map-actions #map-theme{display:grid!important;place-items:center!important;position:static!important;inset:auto!important;margin:0!important;flex:0 0 var(--michi-control)!important;width:var(--michi-control)!important;min-width:var(--michi-control)!important;max-width:var(--michi-control)!important;height:var(--michi-control)!important;min-height:var(--michi-control)!important;max-height:var(--michi-control)!important;padding:0!important;border-radius:50%!important;font-size:19px!important;line-height:1!important}
 .map-actions #all-japan{display:none!important}
 .path-panel{height:min(80dvh,700px)!important;max-height:calc(100dvh - 72px)!important;box-sizing:border-box;padding-bottom:calc(100px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:100px;overscroll-behavior:contain}
 .path-stop{min-height:0!important;height:auto!important;padding:12px 0!important;gap:10px!important}
 .path-stop .place-credit-details{position:relative!important;display:block!important;inset:auto!important;max-width:100%;font-size:10px;line-height:1.35;margin-top:6px}
 .path-stop button{min-height:40px}
 .path-panel #make-route{min-height:48px!important;margin-top:16px!important;margin-bottom:16px!important}
 #place-list .place-row{height:max-content!important;min-height:0!important;align-self:start!important}
 #place-list .place-add{margin:10px 12px 14px auto!important;transform:none!important;bottom:auto!important;right:auto!important}
}
@media(max-width:365px){:root{--michi-control:38px}.map-actions{gap:6px!important}#base-toggle{max-width:calc(100% - 138px)!important;font-size:10px!important}}
/* Editorial glass: Concept 2 photo-first card structure, Concept 1 navigation. */
@media(max-width:760px){
 #place-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:12px!important;align-items:start!important;padding:0 var(--page-gutter) calc(80px + env(safe-area-inset-bottom))!important}
 #place-list .editorial-card{position:relative!important;display:block!important;height:244px!important;min-height:244px!important;max-height:none!important;overflow:hidden!important;border-radius:22px!important;background:#2d4245!important;isolation:isolate;box-shadow:0 14px 30px #1d32422c!important;border:1px solid #ffffffbf!important}
 #place-list .editorial-featured{grid-column:1/-1;height:320px!important;min-height:320px!important}
 #place-list .editorial-card .place-media--card{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;border-radius:0!important;pointer-events:none!important;z-index:0!important}
 #place-list .editorial-card .place-image-visual,#place-list .editorial-card .place-card-img{height:100%!important;width:100%!important;object-fit:cover!important}
 #place-list .editorial-card .editorial-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(12,29,38,.32) 0%,transparent 38%,rgba(13,30,42,.13) 56%,rgba(10,24,37,.48) 100%)}
 #place-list .editorial-card .editorial-category{position:absolute;z-index:2;top:12px;left:12px;max-width:calc(100% - 24px);border:1px solid #ffffff70;background:rgba(23,44,57,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#fff;font-size:10px;line-height:1.25;font-weight:700;border-radius:30px;padding:7px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 #place-list .editorial-card .place-card-copy.editorial-glass{position:absolute!important;z-index:3!important;left:8px!important;right:8px!important;bottom:8px!important;width:auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;padding:11px 9px!important;border:1px solid #ffffffa6;border-radius:16px;background:rgba(255,253,250,.89);backdrop-filter:blur(19px) saturate(1.25);-webkit-backdrop-filter:blur(19px) saturate(1.25);box-shadow:0 5px 18px #102b3b22}
 #place-list .editorial-card .place-open{display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;min-height:44px!important;height:auto!important;margin:0!important;padding:0!important;text-align:left;position:relative!important;z-index:4}
 #place-list .editorial-card .place-open strong{font:600 14px/1.26 'Noto Serif JP',serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#203b54;margin:0 0 5px!important}
 #place-list .editorial-card .place-open small{display:block!important;white-space:normal;line-height:1.3;font-size:10px;color:#64737e;margin:0!important}
 #place-list .editorial-card .place-add{position:relative!important;z-index:4!important;display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;inset:auto!important;margin:0!important;border-radius:50%!important;font-size:20px!important;background:#fff!important;color:#23395b!important;border:1px solid #dce5e8!important;box-shadow:0 3px 10px #1e33421f!important}
 #place-list .editorial-card .place-add[aria-pressed=true]{background:#315a45!important;color:white!important}
 #place-list .editorial-card .editorial-credits{position:absolute!important;top:45px!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:4!important;width:auto!important;max-width:calc(100% - 16px)!important;margin:0!important;color:#fff!important;font-size:9px!important}
 #place-list .editorial-card .editorial-credits summary{min-height:22px!important;padding:3px 7px!important;border-radius:10px!important;background:rgba(21,38,51,.45)!important;color:white!important;font-size:9px!important}
 #place-list .editorial-card .editorial-credits[open]{background:rgba(255,253,250,.96)!important;color:#23395b!important;border-radius:10px!important;box-shadow:0 8px 22px #11273855}
 #place-list .editorial-card .editorial-credits[open] summary{color:#23395b!important;background:#f0f3f2!important}
 #place-list .editorial-card .editorial-credits .place-credit-details-body{max-height:130px;overflow-y:auto;font-size:9px!important}
}
@media(max-width:350px){#place-list .editorial-card{height:225px!important;min-height:225px!important}#place-list .editorial-featured{height:290px!important;min-height:290px!important}#place-list .editorial-card .place-open strong{font-size:12px}#place-list .editorial-card .editorial-category{font-size:9px}}
@media(min-width:761px){#place-list .editorial-shade,#place-list .editorial-category{display:none}}
/* Editorial glass v2 — a uniform, translucent information shelf overlaps the photo edge. */
@media(max-width:760px){
 #place-list{row-gap:34px!important;column-gap:12px!important;padding-bottom:calc(105px + env(safe-area-inset-bottom))!important}
 #place-list .editorial-card{overflow:visible!important;height:240px!important;min-height:240px!important;max-height:240px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:21px!important}
 #place-list .editorial-featured{height:308px!important;min-height:308px!important;max-height:308px!important}
 #place-list .editorial-card .place-media--card{border-radius:21px!important;overflow:hidden!important;box-shadow:0 11px 25px #1d324229!important}
 #place-list .editorial-card .editorial-shade{border-radius:21px!important;overflow:hidden!important}
 #place-list .editorial-card .place-card-copy.editorial-glass{left:7px!important;right:7px!important;bottom:-17px!important;height:87px!important;min-height:87px!important;max-height:87px!important;padding:11px 10px!important;align-items:center!important;gap:7px!important;border-radius:16px!important;border:1px solid rgba(255,255,255,.62)!important;background:rgba(250,249,247,.64)!important;backdrop-filter:blur(20px) saturate(1.4)!important;-webkit-backdrop-filter:blur(20px) saturate(1.4)!important;box-shadow:0 8px 22px rgba(20,39,53,.18),inset 0 1px rgba(255,255,255,.5)!important}
 #place-list .editorial-card .place-open{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important}
 #place-list .editorial-card .place-open strong{font-size:14px!important;line-height:1.27!important;margin:0!important;-webkit-line-clamp:2}
 #place-list .editorial-card .place-open small{font-size:10px!important;line-height:1.25!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
 #place-list .editorial-card .place-add{flex:0 0 36px!important}
 #place-list .editorial-card .editorial-credits{top:45px!important}
}
@media(max-width:350px){#place-list .editorial-card{height:220px!important;min-height:220px!important;max-height:220px!important}#place-list .editorial-featured{height:280px!important;min-height:280px!important;max-height:280px!important}#place-list .editorial-card .place-card-copy.editorial-glass{height:90px!important;min-height:90px!important;max-height:90px!important}#place-list .editorial-card .place-open strong{font-size:12px!important}}

/* Remove floating image-credit UI; full source/license information remains in place details. */
#place-list .editorial-card .editorial-credits{display:none!important}
@media(max-width:760px){
 #place-list .editorial-card .place-card-copy.editorial-glass{background:rgba(250,249,247,.88)!important;border-color:rgba(255,255,255,.85)!important}
 #place-list .editorial-card:not(.has-image){background:linear-gradient(145deg,#335b67 0%,#6b8c86 52%,#c0b39d 100%)!important}
 #place-list .editorial-card:not(.has-image) .place-media--card{background:transparent!important}
 #place-list .editorial-card:not(.has-image) .place-image-fallback{background:transparent!important;color:#f8f6ef!important}
 #place-list .editorial-card .place-open strong{color:#152d43!important}
 #place-list .editorial-card .place-open small{color:#334b5d!important}
}

/* Location jewels — a small neutral medallion on cards; a plinth in place details. */
#place-list .editorial-card{position:relative}
.michi-gem-medallion{position:relative;z-index:4;flex:0 0 56px;display:grid;place-items:center;width:56px;height:56px;border:1px solid rgba(255,255,255,.92);border-radius:50%;background:linear-gradient(145deg,#fbf8f1 0%,#eee8dc 58%,#e2dbcd 100%);box-shadow:0 8px 18px rgba(20,39,53,.2),inset 0 1px 2px #fff,inset 0 -2px 5px rgba(89,77,59,.14);pointer-events:none}
.michi-gem-medallion::after{content:"";position:absolute;inset:5px;border:1px solid rgba(126,112,90,.2);border-radius:50%}
.michi-gem-ornament{position:relative;z-index:1;width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(23,44,68,.34));opacity:0;transition:opacity .18s ease}
.michi-gem-medallion[data-jewel-state=loaded] .michi-gem-ornament{opacity:1}
.michi-gem-medallion[hidden]{display:none!important}
#place-list .editorial-card.has-gem .editorial-category{max-width:calc(100% - 82px)}
.michi-detail-jewel-slot:empty{display:none}
.michi-detail-jewel-slot{margin:0 0 var(--sp-4,16px)}
.michi-detail-jewel{display:flex;align-items:center;gap:var(--sp-4,16px);padding:var(--sp-3,12px) var(--sp-4,16px);border:1px solid #e3ddd2;border-radius:16px;background:linear-gradient(150deg,#fbf8f1,#f0ebe2);box-shadow:inset 0 1px #fff}
.michi-detail-jewel-plinth{position:relative;display:grid;place-items:center;flex:0 0 88px;width:88px;height:88px;border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#f7f3ea,#e5ded1);box-shadow:0 7px 18px rgba(35,57,91,.12),inset 0 1px 2px #fff}
.michi-detail-jewel-image{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 5px 7px rgba(23,44,68,.3));opacity:0;transition:opacity .18s ease}
.michi-detail-jewel[data-jewel-state=loaded] .michi-detail-jewel-image{opacity:1}
.michi-detail-jewel-copy{display:flex;flex-direction:column;gap:var(--sp-1,4px);min-width:0}
.michi-detail-jewel-kicker{font-size:9px;line-height:1.3;letter-spacing:.12em;font-weight:700;color:#53636c}
.michi-detail-jewel-name{font:600 16px/1.3 'Noto Serif JP',serif;color:#23395b;overflow-wrap:anywhere}
.michi-detail-jewel-status{font-size:11px;color:#59635f}
.michi-detail-jewel-error{margin:0;color:#7a3b22;font-size:12px;font-weight:650;line-height:1.45}
.michi-detail-jewel[data-jewel-state=error] .michi-detail-jewel-plinth{display:none}
.michi-detail-jewel[data-jewel-state=error] .michi-detail-jewel-error{display:block}
.michi-detail-jewel-error[hidden]{display:none!important}
@media(max-width:760px){.michi-gem-medallion{position:absolute;top:8px;right:8px;flex:none}}
@media(max-width:350px){.michi-gem-medallion{top:6px;right:6px;flex-basis:52px;width:52px;height:52px}.michi-gem-ornament{width:48px;height:48px}.michi-detail-jewel{gap:var(--sp-3,12px);padding:var(--sp-2,8px) var(--sp-3,12px)}.michi-detail-jewel-plinth{flex-basis:84px;width:84px;height:84px;border-radius:22px}}
@media(prefers-reduced-motion:reduce){.michi-gem-ornament,.michi-detail-jewel-image{transition:none}}

/* Dietary discovery: evidence-backed labels, filters and place-detail notes. */
.dining-filter-row{display:flex;align-items:center;gap:var(--sp-2,8px);min-height:44px;margin:var(--sp-2,8px) 20px 0}
.dining-filter-row>span{flex:none;color:var(--navy);font-size:11px;font-weight:700;line-height:1.3}
.dining-filter-row select{flex:1;min-width:0;min-height:44px;border-radius:12px;background:var(--paper);font-size:12px}
.dining-badge{display:inline-flex;align-items:center;max-width:100%;margin-left:var(--sp-1,4px);padding:2px 7px;border-radius:999px;background:#315744;color:#fff;font-size:9px;line-height:1.25;font-weight:700;white-space:nowrap;vertical-align:middle}
.dining-detail{margin:var(--sp-3,12px) 0;padding:var(--sp-4,16px);border:1px solid #d3dfcd;border-radius:16px;background:#f7faf2;color:#2f4a38}
.dining-detail-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2,8px)}
.dining-detail-kicker{font-size:9px;line-height:1.3;letter-spacing:.12em;font-weight:700;color:#455e4d}
.dining-classification{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#315744;color:#fff;font-size:11px;line-height:1.25;font-weight:700}
.dining-dishes{display:flex;flex-wrap:wrap;gap:var(--sp-2,8px);list-style:none;margin:var(--sp-3,12px) 0 0;padding:0}
.dining-dishes li{padding:5px 9px;border:1px solid #c6d6c3;border-radius:999px;background:#fffdf8;color:#2f4a38;font-size:11px;line-height:1.3}
.dining-note{margin:var(--sp-3,12px) 0 0;font-size:12px;line-height:1.65;color:#2f4a38}
.dining-source{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1,4px) var(--sp-2,8px);margin:var(--sp-2,8px) 0 0;font-size:11px;line-height:1.5;color:#455e4d}
.dining-source a{display:inline-flex;align-items:center;min-height:44px;color:#315744;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.dining-source a:focus-visible{outline:3px solid var(--clay);outline-offset:2px;border-radius:4px}
@media(max-width:760px){.dining-filter-row{margin:var(--sp-2,8px) var(--page-gutter) 0}.dining-detail{padding:var(--sp-3,12px)}}

/* City selection and the compact regional gem shelf. */
.city-picker{flex:0 0 auto}
.city-label{display:block;margin:2px 20px 0;font-size:10px;line-height:1.4;font-weight:750;letter-spacing:.11em;color:#53636c;text-transform:uppercase}
.city-picker .filter-row{margin-top:5px}
.gems-row{flex:0 0 auto;padding:10px 20px 2px;min-width:0}
.gems-row-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.gems-row h2{font:650 13px/1.4 'Noto Sans JP',sans-serif;letter-spacing:.01em;margin:0;color:var(--navy)}
.gems-count{font-size:9px;font-weight:650;color:#617069;white-space:nowrap}
.gems-list{display:flex;align-items:stretch;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 8px;margin:0 -2px;scrollbar-width:thin;scroll-snap-type:x proximity;max-width:100%}
.gems-list:empty{display:none}
.gem-chip{flex:0 0 210px;width:210px;display:flex;align-items:flex-start;gap:8px;min-height:74px;padding:8px;border-radius:14px;border:1px solid #e6dfd4;background:linear-gradient(145deg,#fffdfa,#f3ede3);box-shadow:0 3px 11px #23395b10;text-align:left;scroll-snap-align:start}
.gem-chip:focus-visible{outline:3px solid var(--clay);outline-offset:2px}
.gem-chip-image{flex:0 0 40px;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 2px 3px #23395b33)}
.gem-chip-dot{display:none;flex:0 0 40px;width:40px;height:40px;place-items:center;color:var(--clay);font-size:20px}
.gem-chip-image-failed .gem-chip-image{display:none}
.gem-chip-image-failed .gem-chip-dot{display:grid}
.gem-chip-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.gem-chip-copy strong{font-size:12px;line-height:1.3;font-weight:650;color:#23395b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gem-chip-copy small{font-size:10px;line-height:1.3;color:#59635f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gem-chip-preview{font-size:9px;line-height:1.35;color:#53636c}
.gem-chip-pending{font-size:9px;line-height:1.35;font-weight:700;color:#7a3b22}
.gems-status{font-size:10px;line-height:1.5;color:var(--muted);margin:0 2px 3px}
.michi-detail-jewel-map-pending{font-size:10px;line-height:1.35;font-weight:700;color:#7a3b22}
@media(max-width:760px){
 .city-label{margin:0 var(--page-gutter) 2px;font-size:10px}
 .city-picker .filter-row{margin:5px var(--page-gutter) 0!important}
 .gems-row{padding:0 var(--page-gutter) var(--sp-3)}
 .gems-row h2{font-size:14px}
 .gem-chip{flex-basis:214px;width:214px;min-height:76px}
 .gems-list{padding-bottom:7px}
 .gems-status{margin-bottom:2px}
}
@media(prefers-reduced-motion:reduce){.photo-visual img,.gem-visual img{transition:none}.photo-visual:hover img,.gem-visual:hover img{transform:none}}

/* Reference home: discovery + city above the map, map, day ideas, gems, then filters and cards. */
.reference-home{position:relative!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:visible!important;padding:0 0 40px!important}
html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;position:static!important;overscroll-behavior-y:auto!important}
.reference-home .discovery-intro{display:flex!important;flex-direction:column!important;gap:10px;padding:14px 16px 0!important;max-width:1160px;width:100%;margin:0 auto}
.reference-home .discovery-intro .browse-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px;min-height:0!important;padding:0!important;order:0!important}
.reference-home .browse-heading h1{font:500 clamp(25px,4.4vw,38px)/1.18 'Noto Serif JP',serif;margin:0;letter-spacing:-.02em}
.reference-home .explore-subtitle{display:block!important;margin:5px 0 0!important;font-size:12px;line-height:1.5;color:#63716f}
.reference-home .city-picker{order:0!important;flex:0 0 auto;padding:0!important}
.reference-home .city-label{margin:0 0 3px!important;font-size:10px;color:#53636c}
.reference-home .city-picker .filter-row{margin:0!important;display:flex;gap:8px}
.reference-home .city-picker .filter-row select{flex:1;min-width:0;background:rgba(255,253,250,.88);border:1px solid rgba(255,255,255,.9);box-shadow:0 4px 15px #23395b0d}
.reference-home .map-stage{position:relative!important;inset:auto!important;order:0!important;height:233px!important;min-height:233px!important;width:auto!important;margin:12px 14px 0!important;border-radius:22px!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 10px 28px #1b35531b!important;overflow:hidden!important;background:#e9eee5!important}
.reference-home .map-top{top:10px!important;left:10px!important;right:10px!important}
.reference-home #map-note{top:60px!important;left:10px!important;right:auto!important;max-width:calc(100% - 20px)!important;font-size:10px!important;padding:5px 9px!important}
.reference-home #map-note:empty{display:none!important}
.reference-home .categories{display:none!important}
.reference-home #path-discover{order:0!important;width:auto!important;max-width:1160px!important;margin:0 auto!important;padding:20px 16px 6px!important}
.reference-home .path-discover-head h2{font-size:23px}
.reference-home .browse{position:relative!important;inset:auto!important;order:0!important;display:flex!important;flex-direction:column!important;width:auto!important;max-width:1160px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:0 16px 30px!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.reference-home .browse>*{order:0!important;flex:0 0 auto!important;min-height:0!important}
.reference-home .sheet-handle{display:none!important}
.reference-home #gems-row{padding:4px 0 8px!important}
.reference-home .gems-list{margin:0 -2px!important}
.reference-home .search-box{margin:8px 0 0!important;min-height:50px!important;background:rgba(255,253,250,.88)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:0 5px 17px #24395b0c!important}
.reference-home #categories-mobile{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;padding:10px 0 9px!important;margin:0!important;scrollbar-width:none!important;overscroll-behavior-x:contain!important}
.reference-home #categories-mobile button{flex:none!important;min-height:38px!important;border-radius:22px!important;padding:8px 13px!important;font-size:11px!important;background:rgba(255,255,255,.8)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:0 3px 10px #23395b0b!important}
.reference-home #categories-mobile button[aria-pressed=true]{background:linear-gradient(140deg,#315a71,#23395b)!important;color:#fff!important;border-color:#23395b!important}
.reference-home #nightlife-types{padding:0 0 9px!important;margin:0!important}
.reference-home .pin-filter{margin:0 0 7px!important;min-height:28px}
.reference-home #results-status{padding:0!important;margin:4px 0 10px!important;font-size:11px}
.reference-home #place-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0 0 26px!important;overflow:visible!important;height:auto!important;max-height:none!important;min-height:0!important;align-items:stretch!important}
.reference-home #place-list .editorial-card{height:244px!important;min-height:244px!important;max-height:none!important}
.reference-home #place-list .editorial-featured{grid-column:1/-1!important;height:320px!important;min-height:320px!important;max-height:none!important}
.reference-home .base-companion{margin:4px 0 0!important}
.reference-home.map-fullscreen .map-stage{position:fixed!important;inset:68px 0 0!important;height:auto!important;min-height:0!important;margin:0!important;border-radius:0!important;z-index:12!important}
.reference-home.map-fullscreen .maplibregl-ctrl-group{display:block!important}
@media(min-width:761px){
 .reference-home{padding-bottom:48px!important}
 .reference-home .discovery-intro{flex-direction:row!important;align-items:flex-end!important;justify-content:space-between!important;gap:36px!important;padding:28px 24px 0!important}
 .reference-home .city-picker{width:330px;max-width:38vw}
 .reference-home .explore-subtitle{display:block!important}
 .reference-home .map-stage{height:clamp(340px,48dvh,560px)!important;min-height:340px!important;margin:18px auto 0!important;width:calc(100% - 48px)!important}
 .reference-home #path-discover{padding:22px 24px 8px!important}
 .reference-home .path-suggestions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .reference-home .browse{padding:2px 24px 42px!important;display:block!important}
 .reference-home #gems-row{padding:0 0 10px!important}
 .reference-home .search-box{margin:10px 0 0!important;max-width:640px!important}
 .reference-home #categories-mobile{padding:12px 0 11px!important}
 .reference-home .pin-filter{margin:0 0 8px!important}
 .reference-home #place-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;padding:0 0 36px!important}
 .reference-home #place-list .editorial-card{display:flex!important;flex-direction:column!important;position:relative!important;height:auto!important;min-height:0!important;max-height:none!important;border:1px solid #e2ddd5!important;border-radius:20px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 10px 27px #24395b12!important;padding:0!important;align-items:stretch!important}
 .reference-home #place-list .place-media--card{display:block!important;position:relative!important;inset:auto!important;width:100%!important;height:190px!important;min-height:190px!important;max-height:190px!important;margin:0!important;flex:none!important;border-radius:0!important;overflow:hidden!important}
 .reference-home #place-list .place-image-visual,.reference-home #place-list .place-card-img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
 .reference-home #place-list .place-card-copy{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:13px 12px 14px!important;flex:1 1 auto!important;background:#fffdfa!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .reference-home #place-list .place-open{display:block!important;flex:1 1 auto!important;min-width:0!important;padding:0!important;margin:0!important;text-align:left!important;min-height:44px!important;white-space:normal!important}
 .reference-home #place-list .place-open strong{font:600 15px/1.3 'Noto Serif JP',serif!important;color:#203b54!important;margin:0 0 5px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
 .reference-home #place-list .place-open small{font-size:11px!important;line-height:1.35!important;color:#64737e!important;display:block!important;margin:0!important}
 .reference-home #place-list .place-add{align-self:flex-end!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;border-radius:50%!important;margin:0!important;padding:0!important;background:#fff!important;color:#23395b!important;border:1px solid #dce5e8!important;box-shadow:0 3px 10px #1e33421f!important}
 .reference-home #place-list .place-add[aria-pressed=true]{background:#315a45!important;color:#fff!important}
 .reference-home #place-list .editorial-category,.reference-home #place-list .editorial-shade,.reference-home #place-list .editorial-credits{display:none!important}
 .reference-home #place-list .michi-gem-medallion{position:absolute!important;top:10px!important;right:10px!important;z-index:3!important;flex:none!important;background:rgba(255,253,250,.9)!important}
 .reference-home .base-companion{display:none!important}
}
@media(max-width:350px){
 .reference-home .discovery-intro{padding-left:12px!important;padding-right:12px!important}
 .reference-home .map-stage{margin-left:10px!important;margin-right:10px!important}
 .reference-home .browse{padding-left:12px!important;padding-right:12px!important}
 .reference-home #place-list{gap:8px!important}
}

/* Map category markers: square-ish matte pictograms, never circles/photos/gems/clusters. */
.map-place-root{width:44px!important;height:44px!important;transition:none!important;z-index:3}
.map-place-root.is-saved{z-index:5}
.map-place-marker{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:12px!important;box-shadow:none!important;pointer-events:auto;cursor:pointer;position:relative}
.map-place-marker:focus-visible{outline:3px solid var(--clay)!important;outline-offset:2px!important;border-radius:12px!important}
.map-category-icon{display:grid;place-items:center;width:38px;height:38px;padding:4px;border-radius:10px;background:rgba(255,253,250,.92);border:1px solid rgba(255,255,255,.92);box-shadow:0 4px 12px #1d344e33;color:var(--navy)}
.map-category-icon svg{display:block;width:30px;height:30px;overflow:visible}
.map-category-icon.kind-food{color:#a74725}
.map-category-icon.kind-cafe{color:#7a3b22}
.map-category-icon.kind-night{color:#3c365f}
.map-category-icon.kind-culture{color:#23395b}
.map-category-icon.kind-nature{color:#425c44}
.map-category-icon.kind-shopping{color:#8a4b2d}
.map-category-icon.kind-hotel{color:#315a45}
.map-category-icon.kind-play{color:#4b3f6b}
.map-place-marker.is-saved .map-category-icon{box-shadow:0 0 0 3px var(--paper),0 0 0 5px var(--sage),0 4px 12px #1d344e33}
.map-place-marker.is-saved:focus-visible{outline-color:var(--sage)!important}
@media(prefers-reduced-motion:reduce){.map-place-root,.map-category-icon{transition:none!important;animation:none!important}}

/* Compact image-led detail with real catalog facts only. */
#detail .detail-headline{display:flex;align-items:flex-start;gap:16px;margin:0 0 14px}
#detail .detail-title-block{flex:1 1 auto;min-width:0}
#detail .detail-meta{margin:7px 0 0;color:#59635f;font-size:11px;line-height:1.5}
#detail #detail-jewel-slot{flex:0 0 138px;margin:0;max-width:138px}
#detail #detail-jewel-slot:empty{display:none}
#detail .detail-headline .michi-detail-jewel{flex-direction:column;align-items:flex-start;gap:6px;padding:9px;border-radius:15px}
#detail .detail-headline .michi-detail-jewel-plinth{flex:none;width:76px;height:76px;border-radius:19px}
#detail .detail-headline .michi-detail-jewel-image{width:64px;height:64px}
#detail .detail-headline .michi-detail-jewel-name{font-size:13px;line-height:1.3}
#detail .detail-headline .michi-detail-jewel-status,#detail .detail-headline .michi-detail-jewel-kicker{font-size:9px}
#detail .detail-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:14px 0 6px!important;position:static!important;background:transparent!important;padding:0!important}
#detail .detail-actions>*{flex:1 1 30%!important;min-height:44px!important;padding:9px 10px!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important;border-radius:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
#detail .detail-actions #detail-add{background:#f3eee6!important;border:1px solid #d8d0c4!important;font-weight:700!important}
#detail .detail-actions #detail-add.detail-added{background:#315a45!important;color:#fff!important;border-color:#315a45!important}
#detail .detail-actions .primary{flex:1 1 34%!important}
#detail .detail-actions #detail-save{background:#f3eee6!important;border:1px solid #d8d0c4!important;font-weight:700!important}
#detail .detail-actions #detail-save.detail-saved{background:#23395b!important;color:#fff!important;border-color:#23395b!important}
#detail .detail-section{border-top:1px solid var(--line);margin:16px 0 0;padding:15px 0 0}
#detail .detail-section h3{font:600 17px/1.3 'Noto Serif JP',serif;margin:0 0 9px;color:var(--navy)}
#detail .detail-editorial p{font-size:13px;line-height:1.8;color:#374d61;margin:0 0 12px}
#detail .detail-editorial p:first-child{color:var(--navy)}
#detail .detail-editorial-sources{font-size:11px;line-height:1.9;color:var(--muted);border-top:1px solid #e8e2d8;padding-top:9px;margin:14px 0 0;overflow-wrap:anywhere}
#detail .detail-editorial-sources a{font-size:11px;padding:6px 2px;display:inline-block;min-height:24px}
#detail .detail-section .michi-detail-lead{margin:0 0 7px}
#detail .detail-section .michi-detail-summary{margin:0 0 12px}
#detail .detail-section .michi-detail-note{margin:0}
#detail .detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0 0 12px}
#detail .detail-facts div{min-width:0}
#detail .detail-facts dt{font-size:9px;font-weight:750;letter-spacing:.11em;color:#617069;text-transform:uppercase;margin:0 0 3px}
#detail .detail-facts dd{margin:0;font-size:12px;line-height:1.55;color:#23395b;overflow-wrap:anywhere}
#detail .detail-details #copy-address{margin-top:2px;font-size:11px}
#detail .detail-details .sources{margin-top:10px}
@media(max-width:760px){
 #detail .detail-headline{gap:10px}
 #detail #detail-jewel-slot{flex-basis:116px;max-width:116px}
 #detail .detail-headline .michi-detail-jewel-plinth{width:66px;height:66px}
 #detail .detail-headline .michi-detail-jewel-image{width:56px;height:56px}
 #detail .detail-actions{position:static!important}
 #detail .detail-facts{grid-template-columns:1fr}
}
@media(max-width:350px){
 #detail .detail-headline{flex-wrap:wrap}
 #detail #detail-jewel-slot{flex-basis:100%;max-width:100%}
 #detail .detail-headline .michi-detail-jewel{flex-direction:row;align-items:center}
}

/* My Collection: available previews, not claimed/collected counts. */
#collection{width:min(700px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:22px;background:var(--paper);max-height:86dvh;overflow:auto}
#collection .collection-sheet{padding:25px 24px 24px}
#collection .close-dialog{position:absolute;right:14px;top:12px;float:none;background:#f3eee6;border-radius:50%;width:40px;height:40px;z-index:2}
#collection h2{font:500 26px/1.25 'Noto Serif JP',serif;margin:2px 0 14px;padding-right:44px}
#collection .collection-summary{margin:0 0 16px;padding:14px 16px;border-radius:15px;background:var(--navy);color:#fffdfa;font-size:12px;line-height:1.55;box-shadow:inset 0 1px #ffffff22}
#collection-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin:0 0 15px}
#collection-tabs [role=tab]{min-height:42px;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:#59635f;font-size:12px;font-weight:700;padding:8px 13px}
#collection-tabs [role=tab][aria-selected=true]{color:var(--navy);border-bottom-color:var(--navy)!important}
#collection-tabs [role=tab]:focus-visible{outline:3px solid var(--clay);outline-offset:-3px}
#collection-gems-panel,#collection-places-panel{min-height:140px}
.collection-gem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.collection-gem{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:9px 6px;border:1px solid #e6dfd4;border-radius:14px;background:linear-gradient(145deg,#fffdfa,#f3ede3);text-align:center;box-shadow:0 3px 10px #23395b0d}
.collection-gem:hover{border-color:#cbbfae}
.collection-gem-art{position:relative;display:grid;place-items:center;width:64px;height:64px;flex:none}
.collection-gem-art img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 3px 4px #23395b30)}
.collection-gem-fallback{display:none;place-items:center;width:46px;height:46px;border:1px solid #d8d0c4;border-radius:12px;color:var(--clay);font-size:22px}
.collection-art-failed .collection-gem-art img{display:none}
.collection-art-failed .collection-gem-fallback{display:grid}
.collection-gem-copy{display:flex;flex-direction:column;gap:2px;min-width:0;width:100%}
.collection-gem-copy strong{font-size:11px;line-height:1.3;color:var(--navy);overflow-wrap:anywhere}
.collection-gem-copy small{font-size:9px;line-height:1.3;color:#59635f;overflow-wrap:anywhere}
.collection-empty{margin:12px 0;color:var(--muted);font-size:12px;line-height:1.6}
#collection-places h3{font:600 13px/1.4 'Noto Sans JP',sans-serif;margin:14px 0 6px;color:#53636c;letter-spacing:.04em}
#collection-places h3:first-child{margin-top:0}
.collection-place-list{display:grid;gap:7px}
.collection-place{display:flex!important;align-items:center;gap:10px;width:100%;text-align:left;min-height:52px;padding:9px 11px!important;background:rgba(255,255,255,.75)!important;border:1px solid #e6dfd4!important;border-radius:12px!important}
.collection-place span{display:flex;flex-direction:column;gap:2px;min-width:0}
.collection-place strong{font-size:12px;line-height:1.35;color:var(--navy);overflow-wrap:anywhere}
.collection-place small{font-size:10px;line-height:1.35;color:#59635f}
@media(max-width:760px){
 #collection .collection-sheet{padding:22px 16px 20px}
 #collection h2{font-size:23px}
 .collection-gem-grid{gap:8px}
 .collection-gem{padding:8px 4px}
 .collection-gem-art{width:58px;height:58px}
 .collection-gem-art img{width:58px;height:58px}
 .collection-gem-copy strong{font-size:10px}
}

/* Final polish: 44px hit areas with a small matte backplate, map UI above markers. */
.reference-home .map-top{z-index:30!important}
.reference-home .maplibregl-ctrl-top-left,.reference-home .maplibregl-ctrl-top-right,.reference-home .maplibregl-ctrl-bottom-left,.reference-home .maplibregl-ctrl-bottom-right{z-index:26!important}
.reference-home .maplibregl-ctrl-attrib{z-index:27!important}
.reference-home .home-marker{z-index:6!important}
.map-place-root{z-index:3!important}
.map-category-icon{width:33px!important;height:33px!important;padding:2px!important;border-radius:9px!important;background:rgba(255,253,250,.84)!important;border:1px solid rgba(255,255,255,.82)!important;box-shadow:0 1px 4px rgba(29,52,78,.16)!important}
.map-category-icon svg{width:29px!important;height:29px!important}
.map-place-marker.is-saved .map-category-icon{box-shadow:0 0 0 3px var(--paper),0 0 0 4px var(--sage),0 1px 4px rgba(29,52,78,.18)!important}
#collection .collection-summary strong{display:block;font:600 23px/1.2 'Noto Serif JP',serif;letter-spacing:-.01em;margin:0 0 4px}
#collection .collection-summary span{display:block;font-size:11px;line-height:1.5;color:#e8ece7}
#detail .place-image-credit--detail{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:2px 6px!important;padding:6px 10px!important;font-size:9px!important;line-height:1.35!important;background:#f5f5f0!important;color:#43574f!important}
#detail .place-image-credit--detail .place-image-kind{flex:0 0 auto!important;font-size:9px!important;line-height:1.2!important;font-weight:700!important;padding:2px 6px!important;border-radius:6px!important;background:#e7ebe4!important;color:#31463d!important}
#detail .place-image-credit--detail .place-image-date{font-size:9px!important;line-height:1.3!important;font-weight:500!important;color:#51645d!important}
#detail .place-image-credit--detail .place-credit-details{flex:0 0 auto!important;margin:0!important;font-size:9px!important}
#detail .place-image-credit--detail .place-credit-details summary{min-height:24px!important;margin:0!important;padding:2px 6px!important;border-radius:6px!important;background:#e7ebe4!important;color:#31463d!important;font-size:9px!important;line-height:1.3!important}
#detail .place-image-credit--detail .place-credit-details[open]{flex-basis:100%!important}
#detail .place-image-credit--detail .place-credit-details-body{font-size:9px!important;line-height:1.45!important;padding:4px 2px 1px!important}
#detail .place-image-credit--detail .place-credit-details-body a{min-height:24px}
@media(max-width:760px){
 header{gap:8px!important;padding:0 12px!important}
 .brand{font-size:23px!important;gap:6px!important}
 .brand img{width:28px;height:28px}
 nav{gap:6px!important}
 #collection-open,#path-toggle{padding:8px 9px!important;font-size:10px!important;border-radius:18px!important;white-space:nowrap}
}


/* Venue art hierarchy: category illustrations are clearly labeled and quieter than verified venue images. */
@media(max-width:760px){
 .reference-home #place-list .place-media--card.is-placeholder{height:126px!important;min-height:126px!important;max-height:126px!important}
}
#place-list .place-media--card.is-illustration{position:relative!important}
#place-list .place-media--card.is-illustration .place-image-chip{display:block!important;position:absolute;left:9px;top:9px;z-index:2;padding:5px 8px;border-radius:999px;background:#fffdf0ed;color:#31463d;font-size:9px;font-weight:700;letter-spacing:.02em;box-shadow:0 2px 8px #1d344e26}
#detail .place-image--detail.is-placeholder .place-image-visual{height:150px!important;max-height:150px!important;overflow:hidden}
#detail .place-image--detail.is-placeholder .place-detail-img{height:100%!important;object-fit:cover}
/* Manual gem collection: local badges, actions, filters and reveal. */
#collection-count{display:inline-block;margin-left:6px;font-size:9px;font-weight:600;opacity:.9;white-space:nowrap}
.michi-gem-medallion.is-collected{box-shadow:0 8px 18px rgba(20,39,53,.2),inset 0 1px 2px #fff,0 0 0 3px #315a454d}
.michi-gem-collected-mark{position:absolute;right:-1px;bottom:-1px;z-index:3;display:grid;place-items:center;width:18px;height:18px;border-radius:6px;background:#315a45;color:#fff;border:2px solid #fffdfa;font-size:10px;font-weight:800;line-height:1}
.gem-chip.is-collected{border-color:#b9cdbd;background:linear-gradient(145deg,#f8fbf5,#e9f0e7)}
.gem-chip-preview.is-collected{color:#315a45;font-weight:750}
.collection-gem-filter{display:flex;gap:7px;margin:0 0 12px;flex-wrap:wrap}
.collection-gem-filter button{min-height:34px;padding:6px 11px;border-radius:18px;border:1px solid #d8d0c4;background:#fffdfa;color:#59635f;font-size:11px;font-weight:650}
.collection-gem-filter button[aria-pressed=true]{background:#23395b;color:#fff;border-color:#23395b}
.collection-gem.is-collected{border-color:#b9cdbd;background:linear-gradient(145deg,#fbfdf8,#edf3e9)}
.collection-gem-collected{display:inline-block;margin-top:2px;font-size:9px;font-weight:750;color:#315a45}
.michi-detail-jewel-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}
.michi-jewel-collect,.michi-jewel-remove{min-height:32px!important;padding:5px 8px!important;border-radius:9px!important;font-size:10px!important;line-height:1.25!important;font-weight:700!important}
.michi-jewel-collect{background:#315a45!important;color:#fff!important;border:1px solid #315a45!important}
.michi-jewel-remove{background:#f7f0e8!important;color:#7a3b22!important;border:1px solid #e2d3c5!important}
.michi-detail-jewel.is-collected{border-color:#b9cdbd;background:linear-gradient(150deg,#f8fbf5,#eaf1e7)}
#detail .detail-headline .michi-detail-jewel-actions{width:100%}
#detail .detail-headline .michi-detail-jewel-actions button{flex:1 1 100%!important;min-height:32px!important}

#gem-reveal{width:min(420px,calc(100% - 24px));padding:0;border:1px solid #ffffff2e;border-radius:24px;background:linear-gradient(160deg,#23395b,#1a2c47);color:#fffdfa;overflow:hidden;box-shadow:0 30px 80px #0c1a2e66}
#gem-reveal::backdrop{background:#172a4699;backdrop-filter:blur(6px)}
.gem-reveal-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 22px 22px}
.gem-reveal-stage{position:relative;display:grid;place-items:center;width:190px;height:190px;flex:none}
#gem-reveal-image{position:relative;z-index:2;width:148px;height:148px;object-fit:contain;filter:drop-shadow(0 14px 22px #00000066);animation:gem-reveal-art .72s cubic-bezier(.2,.8,.2,1) both}
.gem-reveal-burst{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;border-radius:50%}
.gem-reveal-burst i{position:absolute;left:calc(50% - 1.5px);top:50%;width:3px;height:34px;border-radius:3px;background:linear-gradient(#f8f5ef00,#f8f5efcc);transform-origin:50% 0;opacity:0;animation:gem-reveal-ray .68s ease-out both}
.gem-reveal-burst i:nth-child(1){--r:0deg}.gem-reveal-burst i:nth-child(2){--r:45deg}.gem-reveal-burst i:nth-child(3){--r:90deg}.gem-reveal-burst i:nth-child(4){--r:135deg}.gem-reveal-burst i:nth-child(5){--r:180deg}.gem-reveal-burst i:nth-child(6){--r:225deg}.gem-reveal-burst i:nth-child(7){--r:270deg}.gem-reveal-burst i:nth-child(8){--r:315deg}
@keyframes gem-reveal-art{0%{opacity:0;transform:scale(.58) rotate(-12deg)}62%{opacity:1;transform:scale(1.06) rotate(4deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes gem-reveal-ray{0%{opacity:0;transform:rotate(var(--r)) translateY(14px) scaleY(.35)}35%{opacity:.85}100%{opacity:0;transform:rotate(var(--r)) translateY(88px) scaleY(1)}}
#gem-reveal h2{font:600 27px/1.22 'Noto Serif JP',serif;margin:8px 0 3px;color:#fffdfa;letter-spacing:-.01em}
#gem-reveal-message{margin:0 0 18px;color:#e7ece8;font-size:13px;line-height:1.5}
.gem-reveal-actions{display:flex;gap:8px;width:100%}
.gem-reveal-actions>*{flex:1;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:12px;font-weight:700;text-align:center}
#gem-reveal-continue{background:#fffdfa!important;color:#23395b!important;border:1px solid #fffdfa!important}
#gem-reveal-view{background:transparent!important;color:#fffdfa!important;border:1px solid #ffffff59!important}
#gem-reveal button:focus-visible{outline:3px solid #f2d7a8!important;outline-offset:2px}
@media(max-width:350px){
 #collection-count{display:inline-block;margin-left:3px;font-size:8px}
 #gem-reveal h2{font-size:23px}
 .gem-reveal-card{padding:20px 16px 18px}
}
@media(prefers-reduced-motion:reduce){
 #gem-reveal-image{animation:none!important;opacity:1!important;transform:none!important}
 .gem-reveal-burst{display:none!important}
 .gem-reveal-burst i{animation:none!important}
}
.illustration-gallery-link{display:inline-flex;align-items:center;min-height:32px;margin:0 0 10px;font-size:11px;font-weight:650;color:#315744;text-underline-offset:3px}

/* Source-based artwork retains its full ivory-edged composition. */
#detail .place-image--detail.is-illustration:has([data-source-referenced="true"]) .place-image-visual{height:auto!important;max-height:none!important;aspect-ratio:8/5}
#detail .place-image--detail.is-illustration:has([data-source-referenced="true"]) .place-detail-img{height:100%!important;object-fit:contain!important}

/* Gloss waystone starting-point marker */
.home-marker{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#315a45!important;line-height:1!important;transition:none!important;animation:none!important}
.home-marker .waystone-image{display:block;width:44px;height:44px;object-fit:contain;border:0;background:transparent;filter:drop-shadow(0 2px 4px #23395b2e)}
.home-marker .waystone-fallback{display:none;place-items:center;width:34px;height:34px;color:#315a45;filter:drop-shadow(0 1px 1px #fffdfa)}
.home-marker .waystone-fallback svg{display:block;width:30px;height:30px}
.home-marker.is-fallback .waystone-image{display:none!important}
.home-marker.is-fallback .waystone-fallback{display:grid!important}

.map-place-marker.gem{background:rgba(248,245,239,.96);border:1px solid #8b8072;border-radius:14px;padding:0}.map-gem-art{display:block;width:44px;height:44px;object-fit:contain;pointer-events:none}.map-place-marker.gem:focus-visible{outline:3px solid #203b5a;outline-offset:3px}

/* The nationwide gem view keeps every gem selectable and labels its map anchor. */
.all-gems-button{position:absolute;left:12px;bottom:24px;z-index:31;min-height:44px;padding:10px 16px;border:1px solid #23395b;border-radius:24px;background:#fffdfa;color:#23395b;font:600 13px/1.2 system-ui;box-shadow:0 2px 8px #20384926}
.all-gems-button[aria-pressed=true]{background:#23395b;color:#fffdfa}
.all-gems-button:focus-visible{outline:3px solid #95552f;outline-offset:3px}
.all-gems-button:disabled{opacity:.65}
#gem-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
#gem-leaders line{stroke:#455d69;stroke-width:1;stroke-opacity:.65}
.gems-view #map-note{display:block!important;color:#23395b;background:#fffdfa!important}
.gems-view .map-place-root{z-index:2}

main.map-fullscreen #map-expand{display:grid!important;place-items:center;min-width:44px;min-height:44px}

@media(max-width:360px){.gems-view .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{position:fixed;top:132px;right:10px;display:flex!important;margin:0;width:60px}}

/* Keep the close control outside the reading scroll area at every width. */
#detail[open]{display:flex;flex-direction:column;overflow:hidden;max-height:85dvh;padding-top:58px}
#detail .close-dialog{position:absolute;top:8px;right:12px;z-index:5;width:42px;height:42px;background:#fffefa;color:#23395b}
#detail-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}

/* Availability notices preserve history without recommending closed stops. */
.availability-card-label{display:block;color:#6d2c16;background:#fff4df;border-radius:6px;padding:3px 6px;margin:5px 0;font-size:11px;line-height:1.45;font-weight:700}
#detail .availability-notice,.availability-saved{color:#23395b;background:#fff4df;border:1px solid #b79366;border-radius:12px;padding:14px;margin:12px 0}
#detail .availability-notice strong{display:block;color:#6d2c16;font-size:15px}
#detail .availability-notice p,.availability-saved p{font-size:13px;line-height:1.65;margin:7px 0}
#detail .availability-notice a{color:#793719;text-decoration:underline;display:inline-block;padding:6px 0;font-size:13px}
.availability-saved-stop{display:flex;align-items:center;gap:10px;margin-top:10px}.availability-saved-stop>button:first-child{flex:1;text-align:left;min-width:0}.availability-saved-stop small{display:block;margin-top:4px}
#detail-add:disabled,.place-add:disabled{cursor:not-allowed;opacity:.72}
