/* ---------------------------------------------------------------
   Gehweite – based on Walkipedia by Neil Scott (MIT). Set in the style of
   the Büttner Generator Suite: paper tone, Lora, Poppins, Courier Prime,
   rust red; brass for Stolpersteine.
---------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --page: #f3f3f3;
  --ink: #191919;
  --ink-soft: #5e5e5e;
  --rule: #e2ddd7;
  --rule-soft: #eeeae5;
  --link: #a23e2a;
  --link-visited: #7e2f20;
  --accent: #a23e2a;
  --focus: #a23e2a;
  --brass: #b8913a;
  --brass-dark: #7c5f1e;
  --saved: #d8a000;

  --font-serif: "Lora", Georgia, serif;
  --font-display: "Lora", Georgia, serif;
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;

  --radius: 4px;
  --mast-h: 75px;   /* the sticky masthead's height; app.js keeps it exact */
}

/* Lora, Poppins, Courier Prime, self-hosted (SIL OFL, see fonts/OFL-*.txt) */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--mast-h); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links in running text need more than colour to stand out */
p a, .newsletter label a { text-decoration: underline; text-underline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  background: #f8f9fa;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #fff; border-color: #72777d; }
.btn:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #447ff5; border-color: #447ff5; }
.btn[disabled] { opacity: .6; cursor: progress; }

.lang-select {
  font: inherit; font-weight: 500;
  padding: 8px 34px 8px 10px;
  border: 1px solid #a2a9b1; border-radius: 2px;
  appearance: none; -webkit-appearance: none;
  background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23202122' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 7px;
  color: var(--ink);
  cursor: pointer;
}
.lang-select:hover { background-color: #fff; border-color: #72777d; }
.lang-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* sits inside a heading, so it takes the heading's type */
.walk-select {
  font: inherit; color: var(--accent); field-sizing: content;
  padding: 0 1.05em 0 .15em; border: 0; border-bottom: 2px solid currentColor; border-radius: 0;
  background-color: transparent; background-position: right .15em center; background-size: .55em .37em;
}
.walk-select:hover { background-color: #f8f9fa; }

/* ---------- masthead ---------- */
.masthead {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px 32px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  /* always reachable; above Leaflet's panes and controls */
  position: sticky; top: 0; z-index: 1100;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.globe { flex: none; width: 46px; height: 46px; border-radius: 50%; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { display: block; font: 500 1.7rem/1 var(--font-display); letter-spacing: .005em; color: var(--ink); }
.brand-tag { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.place-form { flex: 1 1 540px; display: flex; gap: 8px; max-width: 800px; }
.place-form input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 1rem;
  padding: 8px 10px 8px 34px;
  border: 1px solid #a2a9b1; border-radius: 2px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2354595d' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 10px center no-repeat;
  color: var(--ink);
}

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.map-panel {
  position: sticky; top: var(--mast-h);
  height: calc(100vh - var(--mast-h));
  min-height: 460px;
  border-right: 1px solid var(--rule);
}
#map { width: 100%; height: 100%; background: #eef0ec; }
/* the classic OSM style is busy: soften it so the pins read first */
.osm-classic { filter: saturate(.7) contrast(.96) brightness(1.03); }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-control-attribution { font-size: 11px; }

.map-loader {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.35);
  font-size: .9rem; white-space: nowrap;
}
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--rule-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-float {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 999;
  background: var(--paper);
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.35);
  border-radius: 999px;
}

.btn-walk { top: auto; bottom: 24px; }
.btn-walk svg { fill: var(--saved); }
.walk-n { font-size: .8rem; color: var(--ink-soft); }

/* ---------- list panel ---------- */
.list-panel { min-width: 0; padding: 0 clamp(16px, 2.4vw, 28px) 28px; }

.intro { padding: 28px 0 8px; max-width: 54ch; }
.intro h1 {
  margin: 0 0 14px; padding-bottom: 6px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2;
  border-bottom: 1px solid var(--rule);
}
.intro p { margin: 0 0 12px; }
.intro .small { font-size: .88rem; color: var(--ink-soft); }

.controls {
  position: sticky; top: var(--mast-h); z-index: 10;
  background: var(--paper);
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.controls h2 {
  margin: 0; padding-bottom: 4px;
  font-size: 1.6rem; line-height: 1.2;
  border-bottom: 1px solid var(--rule);
}
.result-count { margin: 6px 0 0; font: 400 .84rem/1.45 var(--font-mono); color: var(--ink-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font: inherit; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: #fff; color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: #72777d; }
.chip .n { font-size: .74rem; color: var(--ink-soft); }
.chip .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--kind); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .n { color: rgba(255,255,255,.75); }
.chip[disabled] { opacity: .4; cursor: default; }

.list-tools { display: flex; gap: 8px; margin-top: 10px; }
.filter-text { flex: 1; min-width: 0; }
.filter-text input {
  width: 100%; font: inherit; font-size: .9rem;
  padding: 5px 8px; border: 1px solid #a2a9b1; border-radius: 2px;
}
.sort { display: flex; border: 1px solid #a2a9b1; border-radius: 2px; overflow: hidden; flex: none; }
.sort button {
  font: inherit; font-size: .85rem;
  padding: 4px 10px; border: 0; background: #f8f9fa; color: var(--ink); cursor: pointer;
}
.sort button + button { border-left: 1px solid #a2a9b1; }
.sort button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- which place did you mean? ---------- */
.choices { padding: 20px 0 8px; }
.choices h2, .tour h2 {
  margin: 0 0 12px; padding-bottom: 4px;
  font-size: 1.6rem; line-height: 1.2;
  border-bottom: 1px solid var(--rule);
}
.choice-list { list-style: none; margin: 0; padding: 0; }
.choice {
  width: 100%;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 8px;
  font: inherit; text-align: left; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.choice:hover { background: var(--page); }
.choice:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.choice strong { display: block; color: var(--link); font-weight: 500; }
.choice-detail { display: block; font-size: .86rem; color: var(--ink-soft); }
.choice-n, .choice-pin {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 500 .8rem/1 var(--font-sans);
}
.choice-pin { width: 28px; height: 28px; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.35); cursor: pointer; }

/* ---------- your walk ---------- */
.tour { padding: 20px 0 8px; }
.tour-list { list-style: none; margin: 12px 0 16px; padding: 0; }
.tour-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-bottom: 1px solid var(--rule-soft); }
.tour-list a { flex: 1; min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.tour-here { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; cursor: pointer; }
.tour-here input { margin: 0; accent-color: var(--accent); }
.choice-n.is-you { width: 18px; height: 18px; margin: 0 4px; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.tour-start { flex: none; font-size: .82rem; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tour .small { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); }
.tour-foot { margin: 16px 0 0; }

.also { margin: 6px 0 0; font-size: .85rem; color: var(--ink-soft); }
.link-button {
  font: inherit; color: var(--link);
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.link-button:hover { text-decoration: underline; }
.also-where { color: var(--ink-soft); }

/* ---------- article rows ---------- */
.article-list { list-style: none; margin: 0; padding: 0; }
.article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 8px 12px 10px;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.article:hover { background: var(--page); }
.article.is-active { background: #eaf3ff; border-left-color: var(--kind); }
.article:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.thumb {
  width: 64px; height: 64px; border-radius: 2px;
  object-fit: cover; display: block;
  background: var(--rule-soft);
}
.thumb.is-blank {
  display: grid; place-items: center;
  font: 26px/1 var(--font-serif); color: #fff;
  background: var(--kind);
  opacity: .85;
}
.article-body { min-width: 0; }
.article h3 {
  margin: 0; font: 500 1.02rem/1.3 var(--font-display);
  overflow-wrap: anywhere;
}
.article h3 a { color: var(--link); }
.article .desc { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.article .walk { margin: 4px 0 0; font: 400 .78rem/1.4 var(--font-mono); color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.save {
  align-self: start; display: flex;
  margin: -4px -4px 0 0; padding: 4px;
  background: none; border: 0; border-radius: 2px;
  color: #a2a9b1; cursor: pointer;
}
.save:hover { color: var(--ink-soft); }
.save[aria-pressed="true"] { color: var(--saved); }
.save svg, .btn-save svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.save[aria-pressed="true"] svg, .btn-save[aria-pressed="true"] svg { fill: var(--saved); stroke: var(--saved); }
.kind-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kind); flex: none; }

.empty { padding: 24px 4px; color: var(--ink-soft); }
.is-empty .filters, .is-empty .list-tools { display: none; }
.empty strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }

/* messages sit in the sticky masthead, so they're seen wherever the page is scrolled */
.notice {
  flex-basis: 100%;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--page); border: 1px solid var(--rule); border-left: 3px solid var(--ink-soft);
  border-radius: 2px;
}
.notice.is-error { background: #fee7e6; border-color: #f4b9b4; border-left-color: #bf3c2c; }
.status { flex: 1; margin: 0; font-size: .9rem; color: var(--ink); }
.notice-close, .tour-remove {
  flex: none;
  font: 1.25rem/1 var(--font-sans); color: var(--ink-soft);
  background: none; border: 0; padding: 0 4px; cursor: pointer;
}
.notice-close:hover, .tour-remove:hover { color: var(--ink); }

/* ---------- map markers ---------- */
.wiki-marker {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--kind);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 2px 5px rgba(0,0,0,.3);
  transition: transform .15s ease;
}
.wiki-marker.is-saved { box-shadow: 0 0 0 2.5px var(--saved), 0 2px 5px rgba(0,0,0,.3); }
.wiki-marker.is-active { transform: scale(1.5); box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgba(0,0,0,.4); }

.wiki-cluster {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper); color: var(--ink);
  font: 500 .85rem/1 var(--font-sans);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 3px 8px rgba(0,0,0,.35);
}
.wiki-cluster.sm { width: 30px; height: 30px; }
.wiki-cluster.md { width: 38px; height: 38px; font-size: .9rem; }
.wiki-cluster.lg { width: 46px; height: 46px; font-size: .95rem; }

.you-marker {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 0 8px rgba(51,102,204,.2);
}

/* ---------- popups ---------- */
.leaflet-popup-content-wrapper { border-radius: 4px; padding: 0; box-shadow: 0 6px 22px -6px rgba(0,0,0,.45); }
.leaflet-popup-content { margin: 0; width: 280px !important; }
.leaflet-container a.leaflet-popup-close-button { top: 4px; right: 4px; font-size: 20px; color: #fff; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.leaflet-popup.no-photo a.leaflet-popup-close-button { color: var(--ink-soft); text-shadow: none; }
.popup img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 4px 4px 0 0; background: var(--rule-soft); }
.popup-body { padding: 12px 14px 14px; }
.popup .kind-tag { font: 400 .7rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--kind); }
.popup h3 { margin: 2px 0 2px; font: 500 1.2rem/1.25 var(--font-display); padding-right: 14px; }
.popup .desc { margin: 0 0 8px; font-size: .82rem; color: var(--ink-soft); }
.popup .extract { margin: 0 0 10px; font-size: .86rem; line-height: 1.45; color: var(--ink); }
.popup .extract.is-loading { color: var(--ink-soft); font-style: italic; }
.popup .popup-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .82rem; border-top: 1px solid var(--rule-soft); padding-top: 8px; }
.popup .walk { color: var(--ink-soft); }
.popup a { font-weight: 500; }
.popup .btn-save { width: 100%; justify-content: center; margin: 0 0 10px; padding: 6px 10px; font-size: .86rem; }

/* ---------- footer ---------- */
.footer { padding: 16px clamp(16px, 3vw, 32px) 28px; font-size: .8rem; color: var(--ink-soft); max-width: 110ch; }
.footer .github { display: inline-flex; vertical-align: -3px; margin-left: 2px; color: inherit; }
.footer .github:hover { color: var(--ink); }

.support {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}
.newsletter { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 6px 10px; }
.newsletter-row { display: flex; gap: 6px; }
.newsletter input[type="email"] {
  width: 15rem; min-width: 0;
  font: inherit;
  padding: 4px 8px;
  border: 1px solid #a2a9b1; border-radius: 2px;
  background: #fff; color: var(--ink);
}
.newsletter .btn { font-size: inherit; padding: 4px 10px; }
.newsletter-note:empty { display: none; }
@media (max-width: 560px) {
  .newsletter-row { flex-basis: 100%; }
  .newsletter input[type="email"] { flex: 1; width: auto; }
}

.tip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  margin: 0; padding-left: 32px;
  border-left: 1px solid var(--rule-soft);
}
.tip .btn { text-decoration: none; }
@media (max-width: 560px) {
  .support { grid-template-columns: 1fr; }
  .tip { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  /* short enough to leave page showing below, so a swipe can scroll past the map */
  .map-panel { position: relative; top: 0; height: 46vh; height: 46svh; min-height: 300px; border-right: 0; border-bottom: 1px solid var(--rule); transition: height .25s ease; }
  body.map-full .map-panel { position: sticky; top: var(--mast-h); height: calc(100vh - var(--mast-h)); height: calc(100svh - var(--mast-h)); z-index: 5; }
  .controls { position: static; }
}
@media (max-width: 560px) {
  /* two compact rows, as the masthead stays on screen: brand and language, then the search */
  .masthead {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px 8px; padding: 10px 16px;
  }
  .place-form { display: contents; }
  .brand { grid-column: 1 / 3; gap: 10px; }
  .globe { width: 38px; height: 38px; }
  .brand-name { font-size: 1.45rem; }
  .brand-tag { display: none; }
  .place-form .lang-select { grid-row: 1; grid-column: 3 / 5; justify-self: end; min-width: 0; padding-top: 6px; padding-bottom: 6px; }
  .place-form input { grid-row: 2; grid-column: 1; }
  .place-form .btn { justify-content: center; align-self: stretch; }
  #random-place .btn-label { display: none; }
  .notice { grid-column: 1 / -1; }
  .list-panel { padding: 0 16px 24px; }
  .list-tools { flex-wrap: wrap; }
  .filter-text { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .spinner { animation-duration: 2.4s; }
}

/* ---------- Stolpersteine ---------- */
/* A small brass square set in grey, like the stones in the pavement. */
.stone-marker {
  width: 15px; height: 15px; border-radius: 2px;
  background: linear-gradient(135deg, #e3c26a, var(--brass) 55%, var(--brass-dark));
  border: 1px solid #8d8f91;
}
.thumb.is-blank.is-stone {
  background: #9a9c9e;
  opacity: 1;
  position: relative;
}
.thumb.is-blank.is-stone::after {
  content: ""; position: absolute; inset: 14px; border-radius: 2px;
  background: linear-gradient(135deg, #e3c26a, var(--brass) 55%, var(--brass-dark));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.popup-stone .inscription {
  margin: 4px 0 10px; padding: 10px 12px;
  font: 700 .8rem/1.45 var(--font-mono); letter-spacing: .02em; text-transform: uppercase;
  color: #3b2d0c;
  background: linear-gradient(135deg, #ecd189, #c9a24b 60%, #a8822f);
  border: 3px solid #9a9c9e; border-radius: 2px;
}
.tour-stone {
  display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px;
  border-radius: 1px; background: var(--brass); border: 1px solid #8d8f91;
}

/* ---------- mixed languages, disabled chips ---------- */
.lang-mark {
  display: inline-block; margin-left: 6px; padding: 0 5px; vertical-align: 2px;
  font: 400 .66rem/1.5 var(--font-mono); letter-spacing: .04em;
  color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 3px;
}
.chip[disabled] { opacity: .55; cursor: default; }

/* ---------- Bahnhöfe ---------- */
.station-marker { border-radius: 5px; }
.popup-station .credit { font-size: .8rem; color: var(--ink-soft); }
.tour-station {
  display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: 1px;
  border-radius: 2px; background: #b3261e;
}

/* ---------- add everything listed to the walk ---------- */
.btn-add-all { margin: 2px 0 8px; gap: 6px; }
.btn-add-all svg { fill: var(--saved); }
.popup-stone .laid { margin: -6px 0 10px; font-size: .74rem; color: var(--ink-soft); }

/* ---------- roadbook ---------- */
.roadbook { margin: 14px 0 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.roadbook summary { cursor: pointer; font: 500 1rem/1.3 var(--font-display); }
.roadbook[open] summary { margin-bottom: 10px; }
.rb-field { display: block; margin: 0 0 8px; font-size: .82rem; color: var(--ink-soft); }
.rb-field input, .rb-field textarea {
  display: block; width: 100%; margin-top: 3px; padding: 7px 9px; box-sizing: border-box;
  font: inherit; font-size: .95rem; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; resize: vertical;
}
.rb-format { margin: 2px 0 4px; flex-wrap: wrap; }
.rb-hint { margin: 2px 0 10px; }
.rb-status { margin: 8px 0 0; min-height: 1em; }
.route-style { margin: 4px 0 4px; width: max-content; max-width: 100%; }
.route-note { margin: 2px 0 10px; }

/* ---------- bigger map ---------- */
.map-toggle { position: absolute; top: 10px; right: 10px; left: auto; transform: none; z-index: 800; gap: 6px; }
.map-toggle .i-shrink, .map-toggle [class^="t-"] { display: none; }
body.map-full .map-toggle .i-grow { display: none; }
body.map-full .map-toggle .i-shrink { display: inline; }
@media (min-width: 901px) {
  body:not(.map-full) .map-toggle .t-desk-grow, body.map-full .map-toggle .t-desk-shrink { display: inline; }
  body.map-full .layout { grid-template-columns: minmax(0, 1fr) 0; }
  body.map-full .list-panel { display: none; }
  body.map-full .map-panel { border-right: 0; }
}
@media (max-width: 900px) {
  body:not(.map-full) .map-toggle .t-mob-grow, body.map-full .map-toggle .t-mob-shrink { display: inline; }
}

/* ---------- signet ---------- */
.intro-signet { display: block; width: min(200px, 50%); height: auto; aspect-ratio: 1; margin: 22px 0 6px; mix-blend-mode: multiply; }
.intro h1 { font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.2; }
