.map-page{background:#f8f6fc}.map-head{display:flex;align-items:center;justify-content:space-between;padding:10px max(5vw,20px);background:#f1ebfb;border-bottom:1px solid #dcd1ed}.map-head a{text-decoration:none;font-size:14px}.map-head a:first-child{display:flex;align-items:center;gap:8px;color:#544064;font-weight:950;font-size:23px}.map-head img{width:36px;image-rendering:pixelated}.map-page main{max-width:1060px;margin:auto;padding:28px 20px 60px}.map-title,.map-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.map-title{justify-content:space-between}.map-title{margin-bottom:20px}.map-title p,#summary{font-size:14px;color:#72647d;margin:7px 0}.map-title h1{font-size:34px}#atlas{height:clamp(265px,42vh,500px);border-radius:15px;border:1px solid #b5a4cb;background:#ebe7f3;overflow:hidden}#atlas iframe,#atlas>div{width:100%;height:100%;border:0}.map-tools{margin:9px 0 22px}.map-tools a,.map-tools button,.catalog-head a{font-size:14px;font-weight:bold;color:#68478e;text-underline-offset:3px}.map-tools a{margin-right:12px}.m-thumb{display:grid;place-items:center;text-align:center}.map-page [hidden]{display:none!important}#feedback{color:#86506b;margin-top:10px}.map-page .mf-content input{width:100%}@media(max-width:550px){.map-page main{padding:19px 13px}.map-title h1{font-size:27px}.map-title .purple{font-size:13px}}
.pinned-map{position:relative}.pinned-map iframe{width:100%;height:100%}.map-pin{position:absolute;font-size:11px;font-weight:bold;transform:translate(-50%,-100%);border:2px solid #fff;color:white;background:#8452aa;border-radius:13px 13px 13px 2px;box-shadow:0 2px 5px #45345255;padding:4px 7px}.map-pin:active{transform:translate(-50%,-100%)}




.link-choice{display:flex;gap:10px;margin:12px 0;border:0}.link-choice label{background:#fff0f5;border:1px solid #dfc8d9;border-radius:12px;padding:8px 12px}.map-page .link-choice input{width:auto}.map-page #registration-stars input{width:50%}#manual-fields textarea{width:100%;font:inherit}


#rank-more{margin:12px auto 0}#rank-more[hidden]{display:none}

.catalog-tools{display:flex;justify-content:flex-end;margin:0 0 .75rem}
.shop-add-cta{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.4rem .85rem .4rem .5rem;border:1px solid #d890ad;border-radius:1rem;background:#ffe4ef;color:#712543;font:inherit;font-weight:800;box-shadow:0 3px 0 #ebbdce;cursor:pointer}
.shop-add-cta img{width:34px;height:30px;object-fit:contain;image-rendering:pixelated}
.shop-add-cta span{font-size:1.1em}
.shop-add-cta:hover,.shop-add-cta:focus-visible{background:#ffcede}
.shop-add-cta:active{transform:translateY(2px);box-shadow:0 1px 0 #ebbdce}
.shop-add-cta:disabled{opacity:.65;cursor:wait}


#register {
 --paper: #f0f8f2;
 --stitch: #b5d2c2;
 --stamp: #dfeee3;
 --letter: #355e51;
 --action: #396951;
}
#rank-join {
 --paper: #fff6e8;
 --stitch: #e4c8a0;
 --stamp: #fbe9c9;
 --letter: #65452b;
 --action: #81502c;
}
#new-shop {margin-top:1.2rem}
#new-shop .link-choice {display:flex; gap:.5rem; margin:1.1rem 0; padding:0; border:0}
#new-shop .link-choice legend {padding:0}
#new-shop .link-choice label {display:flex; align-items:center; justify-content:center; gap:.45rem; flex:1; min-height:44px; margin:.45rem 0 0; border:1px solid var(--stitch); border-radius:.7rem; background:#fff; cursor:pointer}
#new-shop .link-choice label:has(:checked) {background:var(--stamp); color:var(--letter); border-color:var(--action)}
#new-shop .link-choice input {width:1rem; height:1rem; margin:0; accent-color:var(--action)}
.map-photos {margin:1rem 0; padding:.5rem .9rem .85rem; border:1px dashed var(--stitch); border-radius:.9rem; background:var(--paper)}
.map-photos input::file-selector-button {color:var(--letter); background:white; padding:.35rem .5rem; border:1px solid var(--stitch); border-radius:.5rem; font:inherit; cursor:pointer}
.pinned-map,.static-overview{position:relative;isolation:isolate}
.pinned-map iframe{pointer-events:none}
.static-overview img{width:100%;height:100%;object-fit:contain}
.atlas-wrap{position:relative;isolation:isolate}
.random-shop{
 position:absolute;z-index:1;top:7px;left:7px;display:inline-flex;align-items:center;gap:6px;
 min-height:46px;padding:3px 12px 3px 5px;border:2px solid #ad617a;border-radius:16px;
 background:linear-gradient(#fff9f0,#ffe2ed);color:#742b47;box-shadow:0 3px 0 #ba8394,inset 0 0 0 2px #fff8f7;
 font-size:15px;font-weight:800;text-decoration:none;line-height:1.25;
}
.random-shop[hidden]{display:none}
.random-shop img{flex:none;image-rendering:pixelated}
.random-shop i{font-size:12px;color:#a85b27;font-style:normal}
.random-shop:focus-visible{outline:3px solid #71438a;outline-offset:2px}
.random-shop:hover{background:#ffdae8}
.random-shop:active{transform:translateY(2px);box-shadow:0 1px 0 #ba8394}

.map-photos .camera-trigger{position:relative;display:inline-grid;place-items:center;justify-self:start;min-height:44px;padding:.4rem 1rem;border:1px solid var(--stitch);border-radius:.7rem;background:#fff4f7;color:var(--letter);font-weight:700;overflow:hidden}
.map-photos .camera-trigger input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.camera-trigger:focus-within{outline:2px solid #924963;outline-offset:2px}
#camera-file{overflow-wrap:anywhere}

/* A strawberry notebook cover, followed by one ruled entry per shop. */
.catalog {
 --berry:#803c59; --ink:#493847; --rule:#eee1e7;
 padding:clamp(.85rem,3vw,1.65rem); border:1px solid #e6cdd9; border-radius:1.35rem;
 background:linear-gradient(180deg,#fff4f6,#fff 11rem); box-shadow:0 3px 0 #ecdfe8;
}
.catalog-head {display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.catalog-mascot {object-fit:contain;image-rendering:pixelated;flex:none}
.catalog-head h2 {margin:0;color:var(--ink);font-size:clamp(1.12rem,3vw,1.45rem);letter-spacing:-.035em}
.catalog-head #switch {margin-left:auto;color:#75586e;font-size:.875rem;font-weight:650;text-decoration:underline;text-decoration-color:#cfb4c1;text-underline-offset:4px}
.sorts {display:inline-flex;max-width:100%;margin:.9rem 0 .25rem;padding:3px;gap:2px;background:#f4ebf0;border:1px solid #e8dbe2;border-radius:1rem}
.sorts button {flex:1 1 auto;min-width:0;padding:.45rem .72rem;border:1px solid transparent;border-radius:.77rem;color:#685765;font-size:.875rem;font-weight:650;line-height:1.3;word-break:keep-all}
.sorts button[aria-pressed=true] {color:#762c4b;background:#fffafb;border-color:#d8afc0;box-shadow:0 1px 2px #5d26321a;font-weight:800}
.catalog #summary {font-size:.8125rem;line-height:1.6;margin:.45rem 0 .85rem}
#stores {list-style:none;margin:0;padding:0;color:var(--ink)}
#stores li {display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:'rank heading' '. info' '. actions';align-items:start;column-gap:.75rem;row-gap:.15rem;padding:.85rem 0;border-top:1px solid var(--rule);cursor:pointer}
.store-rank {grid-area:rank;display:grid;place-items:center;min-width:1.7rem;height:1.7rem;margin-top:.24rem;border-radius:.55rem;background:#f4eff5;color:#705d74;font-size:.875rem;font-variant-numeric:tabular-nums}
#stores li:first-child .store-rank {background:#ffe6ab;color:#744b1e;box-shadow:inset 0 -2px #edca88}
.store-heading {grid-area:heading;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.5rem}
#stores .place {justify-self:start;padding:0;text-align:left;font-size:1rem;line-height:1.45;color:var(--ink);font-weight:800;word-break:keep-all;overflow-wrap:anywhere}
.store-info {grid-area:info;min-width:0;overflow-wrap:anywhere}
.store-info p {margin:.12rem 0;color:#716573;font-size:.84rem;line-height:1.55}
.store-info .store-stats {color:#794c67;font-weight:650}
.store-actions {grid-area:actions;display:flex;align-items:center;gap:.4rem}
#stores .detail-button,#stores .member-score {display:inline-flex;align-items:center;justify-content:center;gap:.3rem;position:relative;border:1px solid;border-radius:.75rem;padding:.32rem .63rem;font-size:.875rem;font-weight:700;line-height:1.35;text-decoration:none;white-space:nowrap}
#stores .detail-button {justify-self:end;background:#f6f0fa;color:#644770;border-color:#dfcfe8}
#stores .member-score {background:#fff2f5;color:var(--berry);border-color:#edcdd9}
#stores .member-score::before {content:'★';color:#a64b6b;font-size:.82em}
.catalog :is(a,button):focus-visible {outline:2px solid #8e527c;outline-offset:2px}
@media (hover:hover) {
 #stores .detail-button:hover,.sorts button:not([aria-pressed=true]):hover {background:#eae0f0}
 #stores .member-score:hover {background:#ffdfeb}
}
@media(max-width:550px){
 .catalog-head {gap:.35rem}
 .catalog-mascot {width:1.85rem;height:1.85rem}
 .sorts {display:flex}
 .sorts button {padding:.45rem .22rem}
 #stores li {column-gap:.45rem}
 #stores .detail-button::before,#stores .member-score::after {content:'';position:absolute;inset:-.38rem 0}
}
.map-regions{margin:0 0 1rem;padding:clamp(.85rem,2vw,1.3rem);border:1px solid #d7e5da;border-radius:1.2rem;background:#f3faf5;color:#433941}
.region-head,.map-regions button{display:flex;align-items:center;gap:.5rem}.region-head{justify-content:space-between}.region-head h2{margin:0;font-size:1.2rem}.region-head p{margin:.2rem 0 0;color:#52665d;font-size:.925rem}
#region-options{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.85rem}
.map-regions button{border:1px solid #b9cdc1;border-radius:1rem;background:#fffdfa;color:#45594f;padding:.5rem .8rem;min-height:40px;cursor:pointer}.map-regions button[aria-pressed=true]{background:#ffdfeb;color:#643b4e;border-color:#c9809a}.map-regions button:disabled{background:#edf0ed;color:#717770;border-style:dashed;cursor:default}.map-regions small{font-size:.8rem}
.region-fields{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.region-fields input{min-width:0;width:100%;box-sizing:border-box}
#region-location [hidden]{display:none}#region-location .map-entry-actions button{cursor:pointer}
@media(max-width:430px){.region-fields{grid-template-columns:1fr}.region-head{align-items:flex-start}#near-city{white-space:nowrap}}
#region-options{display:grid;gap:.75rem}.country-group{padding:.75rem 1rem;border:1px solid #dbe5db;border-radius:1rem;background:#ffffffbd}.country-group h3{margin:0 0 .55rem;font-size:.96rem;color:#495b50}.country-group>div{display:flex;flex-wrap:wrap;gap:.45rem}.country-group:nth-child(2){background:#fff9fa;border-color:#eadbe1}

#region-options strong span{display:block;font-size:50%;line-height:1.4;text-align:center}

.map-regions{padding:clamp(14px,2vw,23px);border-color:#ddc7ca;border-radius:20px;background:linear-gradient(130deg,#fff8ef,#fff4f6 63%,#f7f2fa);box-shadow:0 3px 0 #eadbdf}
.region-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.region-stamp{box-sizing:border-box;width:48px;height:48px;padding:7px;border:1px dashed #c68fa2;border-radius:13px;background:#fffdf8;image-rendering:pixelated;transform:rotate(-4deg)}
.region-head h2{font-size:1.32rem;color:#613e50}.region-head p{font-size:.84rem;color:#74616b}.map-regions #near-city{border-color:#dac2ce;background:#fffdfb;color:#70445a;font-weight:700}
#region-options{gap:9px;margin-top:15px}.country-group{border-color:#cbddd2;background:#f7fcf8}.country-group:nth-child(2){background:#fff9fb}.country-group h3{font-size:.87rem;letter-spacing:.015em}
.country-group button{gap:7px;border-radius:12px;background:white;box-shadow:0 2px 0 #e0e9e2}.country-group small{border-radius:8px;background:#f0f4ef;padding:2px 5px;font-size:.7rem}
.country-group button[aria-pressed=true]{background:#ffdeea;border-color:#c6819a;box-shadow:0 2px 0 #dba0b6}.country-group button[aria-pressed=true] small{background:#fff4f8;color:#783951}
@media(max-width:470px){.region-head{gap:7px}.region-stamp{width:34px;height:34px;padding:4px}.map-regions #near-city{font-size:.76rem;padding:.35rem .5rem}.country-group{padding:.65rem}.country-group button{padding:.4rem .55rem}}

#detail-story p{white-space:pre-line}
