:root{--map-land:#f4f1ea;--map-sea:#b5d9ec;--map-beach:#f3dfa2;--map-park:#cfe6c0;--map-wood:#dfe9cf;--map-water:#b5d9ec;--map-building:#e6e0d4;--map-street:#ffffff;--map-street-edge:#cfc8ba;--map-major:#fbe3a1;--map-major-edge:#d9b65c;--map-path:#b9b1a2;--map-contour:#c7b99a;--map-rail:#3f3f46;--map-tram:#0b7fc2;--map-text:#2b2b2b;--map-sea-text:#24566f;--map-halo:#f4f1ea;--map-district:#6b5d4d;--map-marker:#b4491a;--map-marker-text:#ffffff;--map-marker-edge:#ffffff;--map-main:#ffd21f;--map-main-text:#2b1d00;--map-main-edge:#2b1d00;--map-frame:#9a9488;--map-k-sight:#b93a26;--map-k-museum:#6d3fc4;--map-k-food:#2f7d32;--map-k-transport:#1d4ed8;--map-k-beach:#0e7490;--map-k-stay:#475569;--map-k-text:#ffffff;--map-k-edge:#ffffff;--map-rail-dash:#ffffff;}
:root[data-theme="dark"]{--map-land:#23262b;--map-sea:#16324a;--map-beach:#5c5232;--map-park:#27402c;--map-wood:#2a3528;--map-water:#16324a;--map-building:#2e3238;--map-street:#454a52;--map-street-edge:#1a1c20;--map-major:#7a6a3a;--map-major-edge:#1a1c20;--map-path:#5a5f68;--map-contour:#4a4636;--map-rail:#d4d4d8;--map-tram:#4cc3ff;--map-text:#f1f1f1;--map-sea-text:#a9cfe6;--map-halo:#23262b;--map-district:#c9bca8;--map-marker:#f2a273;--map-marker-text:#1b1108;--map-marker-edge:#1b1108;--map-main:#ffd21f;--map-main-text:#2b1d00;--map-main-edge:#2b1d00;--map-frame:#5a5f68;--map-k-sight:#b93a26;--map-k-museum:#6d3fc4;--map-k-food:#2f7d32;--map-k-transport:#1d4ed8;--map-k-beach:#0e7490;--map-k-stay:#64748b;--map-k-text:#ffffff;--map-k-edge:#ffffff;--map-rail-dash:#23262b;}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--map-land:#23262b;--map-sea:#16324a;--map-beach:#5c5232;--map-park:#27402c;--map-wood:#2a3528;--map-water:#16324a;--map-building:#2e3238;--map-street:#454a52;--map-street-edge:#1a1c20;--map-major:#7a6a3a;--map-major-edge:#1a1c20;--map-path:#5a5f68;--map-contour:#4a4636;--map-rail:#d4d4d8;--map-tram:#4cc3ff;--map-text:#f1f1f1;--map-sea-text:#a9cfe6;--map-halo:#23262b;--map-district:#c9bca8;--map-marker:#f2a273;--map-marker-text:#1b1108;--map-marker-edge:#1b1108;--map-main:#ffd21f;--map-main-text:#2b1d00;--map-main-edge:#2b1d00;--map-frame:#5a5f68;--map-k-sight:#b93a26;--map-k-museum:#6d3fc4;--map-k-food:#2f7d32;--map-k-transport:#1d4ed8;--map-k-beach:#0e7490;--map-k-stay:#64748b;--map-k-text:#ffffff;--map-k-edge:#ffffff;--map-rail-dash:#23262b;}}
/* Interactive map page. The --map-* colours above this line are written by maps/tools/make_viewer.py from style.json. */
:root{--ui-bg:#fff;--ui-fg:#1b2430;--ui-soft:#55606e;--ui-edge:#d5cbb9;--ui-link:#9a3c14;--ui-off:#6b7280;--ui-shadow:0 2px 10px rgba(0,0,0,.28);
  font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ui-fg)}
:root[data-theme="dark"]{--ui-bg:#1d2025;--ui-fg:#f1f1f1;--ui-soft:#c3c8d0;--ui-edge:#4a505a;--ui-link:#f2a273;--ui-off:#9aa1ac;--ui-shadow:0 2px 10px rgba(0,0,0,.6)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--ui-bg:#1d2025;--ui-fg:#f1f1f1;--ui-soft:#c3c8d0;--ui-edge:#4a505a;--ui-link:#f2a273;--ui-off:#9aa1ac;--ui-shadow:0 2px 10px rgba(0,0,0,.6)}}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--map-land)}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
button{font:inherit;color:inherit}
a{color:var(--ui-link)}
:focus-visible{outline:3px solid var(--ui-fg);outline-offset:2px}

#map{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--map-land);font:inherit;z-index:0}
#map.leaflet-container{font-family:inherit;font-size:1rem;line-height:1.5}

.close,.btn,.sheet,.credit{background:var(--ui-bg);color:var(--ui-fg)}
.close{position:fixed;z-index:1200;top:calc(10px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));
  min-height:44px;line-height:42px;padding:0 16px 0 12px;border:1px solid var(--ui-edge);border-radius:22px;font-weight:600;
  text-decoration:none;box-shadow:var(--ui-shadow);white-space:nowrap}
.close span{font-size:1.5rem;line-height:1;vertical-align:-2px}

.btn{min-height:44px;min-width:44px;padding:0 16px;border:1px solid var(--ui-edge);border-radius:22px;font-weight:600;cursor:pointer;box-shadow:var(--ui-shadow)}
.btn.sq{padding:0;width:44px;height:44px;border-radius:10px;font-size:1.5rem;line-height:1;display:block}
.btn:disabled{color:var(--ui-off);cursor:default}
/* zoom buttons: top left (owner 2026-11-16) */
.zoom{position:fixed;z-index:1000;top:calc(10px + env(safe-area-inset-top));left:calc(10px + env(safe-area-inset-left));display:flex;gap:8px}

/* the folded list: a bar along the bottom on phones, one tap opens it; on wide screens it sits where the open list sits */
.bar{position:fixed;z-index:1000;left:0;right:0;bottom:0;width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;
  padding:0 calc(20px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(16px + env(safe-area-inset-left));
  border-width:1px 0 0;border-radius:16px 16px 0 0;font-size:1.125rem;text-align:left;box-shadow:0 -4px 18px rgba(0,0,0,.3)}
.bar::after,.x.min::before{content:"";display:block;width:12px;height:12px;border:solid currentColor;border-width:3px 3px 0 0;flex:none}
.bar::after{transform:translateY(3px) rotate(-45deg)}

.credit{position:fixed;z-index:900;right:0;bottom:calc(56px + env(safe-area-inset-bottom));margin:0;padding:2px calc(8px + env(safe-area-inset-right)) 2px 8px;
  font-size:1rem;line-height:1.5;border-top-left-radius:8px;opacity:.92}
.credit a{color:var(--ui-fg);display:inline-block;min-height:24px}

/* markers: a 44 px tap area around a 30 px disc */
.mk{display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%}
.mk span{display:block;width:30px;height:30px;border-radius:50%;background:var(--map-marker);color:var(--map-marker-text);
  border:2px solid var(--map-marker-edge);font-weight:700;font-size:1rem;line-height:26px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.mk.kind span{color:var(--map-k-text);border-color:var(--map-k-edge)}
.mk.kind.g-sight span{background:var(--map-k-sight)}.mk.kind.g-museum span{background:var(--map-k-museum)}
.mk.kind.g-food span{background:var(--map-k-food)}.mk.kind.g-transport span{background:var(--map-k-transport)}
.mk.kind.g-beach span{background:var(--map-k-beach)}.mk.kind.g-stay span{background:var(--map-k-stay)}
.mk.on span{width:38px;height:38px;line-height:34px;box-shadow:0 0 0 3px var(--ui-fg),0 2px 8px rgba(0,0,0,.5)}
/* a group of markers that would cover each other: a larger pill with a second ring; a tap zooms in */
.mk.grp span{width:auto;min-width:40px;height:40px;line-height:34px;padding:0 9px;border-radius:20px;border-width:3px;white-space:nowrap;
  box-shadow:0 0 0 3px var(--map-marker),0 2px 8px rgba(0,0,0,.5)}
.mk.grp.on span{width:auto;height:44px;line-height:38px;box-shadow:0 0 0 3px var(--ui-fg),0 2px 8px rgba(0,0,0,.5)}
.mk.grp.mix span{background:var(--ui-fg);color:var(--ui-bg);border-color:var(--ui-bg);box-shadow:0 0 0 3px var(--ui-fg),0 2px 8px rgba(0,0,0,.5)}
/* the one or two main places of a map: a yellow star (owner decision 87), on the map and in the list */
.mk.main,.mk.main.kind{filter:drop-shadow(0 0 1px var(--map-main-edge)) drop-shadow(0 0 1px var(--map-main-edge)) drop-shadow(0 2px 3px rgba(0,0,0,.45))}
.mk.main span,.mk.main.kind span,.mk.main.on span{width:44px;height:44px;line-height:48px;border:0;border-radius:0;box-shadow:none;
  background:var(--map-main);color:var(--map-main-text);clip-path:polygon(50% 0,65.6% 28.5%,97.6% 34.5%,75.3% 58.2%,79.4% 90.5%,50% 76.6%,20.6% 90.5%,24.7% 58.2%,2.4% 34.5%,34.4% 28.5%)}
.mk.main.on{filter:drop-shadow(0 0 2px var(--ui-fg)) drop-shadow(0 0 2px var(--ui-fg)) drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.num.main,.kind .num.main{min-width:36px;height:36px;line-height:39px;padding:0;margin:-3px 3px -3px -3px;border-radius:0;background:var(--map-main);color:var(--map-main-text);clip-path:polygon(50% 0,65.6% 28.5%,97.6% 34.5%,75.3% 58.2%,79.4% 90.5%,50% 76.6%,20.6% 90.5%,24.7% 58.2%,2.4% 34.5%,34.4% 28.5%)}
.mk:focus{outline:none}
.mk:focus-visible span{box-shadow:0 0 0 3px var(--ui-fg)}

/* the sheet: place card or list; bottom of the screen on phones, a panel on the left on wide screens */
.sheet{position:fixed;z-index:1100;left:0;right:0;bottom:0;max-height:55%;overflow:auto;overscroll-behavior:contain;
  padding:16px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  border-top:1px solid var(--ui-edge);border-radius:16px 16px 0 0;box-shadow:0 -4px 18px rgba(0,0,0,.3)}
.sheet h2{margin:0 52px 8px 0;font-size:1.125rem;line-height:1.35}
.sheet .count{margin:0 0 8px;color:var(--ui-soft);font-weight:600}
.sheet h2:focus{outline:none}
.sheet p{margin:0 0 10px}
.x.min span{display:none}
.x.min::before{margin:0 auto;transform:translateY(-3px) rotate(135deg)}
.x{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font-size:1.75rem;line-height:1;cursor:pointer}
.num{display:inline-block;min-width:30px;height:30px;padding:0 4px;margin-right:6px;border-radius:15px;background:var(--map-marker);color:var(--map-marker-text);
  font-weight:700;line-height:30px;text-align:center;vertical-align:middle}
.kind .num{color:var(--map-k-text)}
.kind .g-sight .num,.kind.g-sight .num{background:var(--map-k-sight)}.kind .g-museum .num,.kind.g-museum .num{background:var(--map-k-museum)}
.kind .g-food .num,.kind.g-food .num{background:var(--map-k-food)}.kind .g-transport .num,.kind.g-transport .num{background:var(--map-k-transport)}
.kind .g-beach .num,.kind.g-beach .num{background:var(--map-k-beach)}.kind .g-stay .num,.kind.g-stay .num{background:var(--map-k-stay)}
.place{display:flex;gap:12px;align-items:flex-start}
.place img{width:96px;height:96px;object-fit:cover;border-radius:8px;flex:none}
.place>div{flex:1;min-width:0}
.links{display:flex;flex-wrap:wrap;gap:4px 20px;align-items:center;margin:0}
.links a,.linkbtn{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.linkbtn{border:0;background:none;padding:0;color:var(--ui-link);text-decoration:underline;cursor:pointer}
.rows{list-style:none;margin:0 0 8px;padding:0}
.rows button,.rows a{display:flex;align-items:center;width:100%;min-height:44px;padding:4px 0;border:0;border-top:1px solid var(--ui-edge);
  background:none;text-align:left;cursor:pointer;color:var(--ui-fg);text-decoration:none}
.rows li:first-child button,.rows li:first-child a{border-top:0}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--ui-edge);border-radius:22px;background:var(--ui-bg);cursor:pointer;font-weight:600}
.chip i{width:14px;height:14px;border-radius:50%;flex:none}
.chip.g-sight i{background:var(--map-k-sight)}.chip.g-museum i{background:var(--map-k-museum)}.chip.g-food i{background:var(--map-k-food)}
.chip.g-transport i{background:var(--map-k-transport)}.chip.g-beach i{background:var(--map-k-beach)}.chip.g-stay i{background:var(--map-k-stay)}
.chip[aria-pressed="false"]{color:var(--ui-off);text-decoration:line-through}
.chip[aria-pressed="false"] i{background:var(--ui-off)}
.key{margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--ui-edge);color:var(--ui-soft)}
.key span{display:inline-flex;align-items:center;gap:8px;margin-right:18px}
.key i{display:inline-block;width:28px;height:0;border-top:4px solid var(--map-rail)}
.key i.tram{border-top-color:var(--map-tram)}

@media (min-width:48rem){
  .sheet,.bar{left:10px;right:auto;top:64px;bottom:auto;width:23rem;border:1px solid var(--ui-edge);border-radius:14px;box-shadow:var(--ui-shadow)}
  .sheet{max-height:calc(100% - 110px)}
  .bar{padding:0 20px 0 16px}
  .bar::after{transform:translateY(-3px) rotate(135deg)}
  .x.min::before{transform:translateY(3px) rotate(-45deg)}
  .credit{bottom:0;padding-bottom:calc(2px + env(safe-area-inset-bottom))}
}

/* without scripts, or when the map fails: a short text and the pages that carry the drawn maps */
.fallback{position:fixed;z-index:1150;top:70px;left:10px;right:10px;max-width:34rem;margin:0 auto;padding:16px;background:var(--ui-bg);
  border:1px solid var(--ui-edge);border-radius:14px;box-shadow:var(--ui-shadow)}
.fallback ul{margin:0;padding-left:1.2em}
.fallback li{margin:0}
.fallback a{display:block;min-height:44px;padding:10px 0;line-height:1.5}
.js .fallback{display:none}
.js.map-failed .fallback{display:block}
html:not(.js) .zoom{display:none}
@media print{.zoom,.bar,.close,.sheet{display:none}}
