/* Rondkijken — the "Rondkijken 01c" design from the Buurtklimaat Design Lab (Paper):
   sunlit plaster, wet elm bark, elm leaf, lamplight only for "vandaag". */
:root {
  --ground: #F6F1E7; --paper: #FFFDF8; --ink: #1E2A22; --ink-2: #45493F; --ink-3: #5A5D50; --ink-4: #8A8676;
  --line: #DDD3C1; --line-2: #EEE7DA; --elm: #3F6A35; --elm-2: #2F5228; --lamp: #F2B63D; --canal: #3D6E7E;
  --tint-green: #EEF3E6; --tint-sand: #F3EDE2; --tint-red: #F7ECE6; --tint-blue: #E6EFF1; --tint-yellow: #FBF1D9; --tint-pink: #F8E9EC;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-pill: 0 2px 10px rgba(30,42,34,.12);
  --map-h: 58vh;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
button { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--canal); outline-offset: 2px; }

/* ------------------------------------------------------------------ map */
#map { position: fixed; top: 0; left: 0; right: 0; height: var(--map-h); background: #F4EFE4; }
.maplibregl-ctrl-attrib { font-size: 11px; background: rgba(246,241,231,.85) !important; }
.maplibregl-ctrl-bottom-right { bottom: 30px; }

/* ------------------------------------------------------------------ header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 0; pointer-events: none; }
.top::before { content: ""; position: absolute; inset: 0 0 -40px 0; background: linear-gradient(180deg, rgba(246,241,231,.95), rgba(246,241,231,0)); z-index: -1; }
.pill { pointer-events: auto; border: 0; background: var(--paper); box-shadow: var(--shadow-pill); height: 44px; border-radius: 999px; cursor: pointer; }
.place { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 14px; font-weight: 500; max-width: calc(100vw - 92px); }
.place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 44px; display: grid; place-items: center; }

/* map bar: a kind shown across the city, and "look around here" after panning away */
.mapbar { position: fixed; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 66px); left: 0; right: 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.mapbar .pill { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 14.5px; font-weight: 600; }
.lookhere { background: var(--ink); color: var(--paper); }
.lookhere:disabled { background: var(--paper); color: var(--ink-3); font-weight: 500; cursor: default; }
.chipf { padding-left: 6px !important; }
.chipf .ci { width: 30px; height: 30px; border-radius: 50%; background: var(--tint-sand); display: grid; place-items: center; }
.chipf .ci svg { width: 22px; height: 22px; }
.chipf .cx { color: var(--ink-3); font-size: 13px; margin-left: 2px; }

/* ------------------------------------------------------------------ sheet */
.sheet { position: relative; z-index: 3; margin-top: calc(var(--map-h) - 30px); min-height: 60vh; background: var(--ground);
  border-radius: 28px 28px 0 0; box-shadow: 0 -6px 24px rgba(30,42,34,.10);
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 36px); }
.grip { width: 40px; height: 5px; border-radius: 999px; background: #D6CDBB; margin: 0 auto 14px; }
#overview, #detail { display: flex; flex-direction: column; gap: 20px; max-width: 560px; margin: 0 auto; }
.greet { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
h1 { font-family: var(--serif); font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.lede { margin: 0; color: var(--ink-2); line-height: 23px; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #ECE4D4; }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); font-size: 15px; font-weight: 500; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(30,42,34,.10); }
[role="tabpanel"] { display: flex; flex-direction: column; gap: 20px; }

/* featured "vandaag" card */
.feature { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: 22px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(30,42,34,.06), 0 8px 24px rgba(30,42,34,.07); border: 0; text-align: left; cursor: pointer; width: 100%; }
.feature .kop { display: flex; justify-content: space-between; align-items: center; }
.today-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lampdot { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgba(242,182,61,.25); }
.walk { font-size: 14px; color: var(--ink-3); }
.feature .row { display: flex; align-items: center; gap: 12px; }
.feature h3 { flex: 1; font-family: var(--serif); font-size: 23px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.feature p { margin: 0; color: var(--ink-2); line-height: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); border: 1px solid #DDD3C1; }
.chip.soft { border: 0; background: #F1EADC; }

/* groups and rows */
.group { display: flex; flex-direction: column; gap: 10px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 0; }
.group-head h2 { font-family: var(--serif); font-size: 19px; line-height: 24px; font-weight: 600; margin: 0; }
.group-head span { font-size: 14px; color: var(--ink-3); }
.item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(30,42,34,.05); border: 0; width: 100%; text-align: left; cursor: pointer; }
.item:hover { box-shadow: 0 1px 2px rgba(30,42,34,.05), 0 6px 16px rgba(30,42,34,.08); }
.item .txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item .ti { font-size: 17px; line-height: 22px; font-weight: 500; }
.item .su { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.item .chev { width: 20px; flex-shrink: 0; display: flex; justify-content: flex-end; color: #8A8676; }
.coin { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.coin svg { width: 36px; height: 36px; }
.coin.dashed { border: 1.5px dashed #A59F8E; }
.coin.big { width: 60px; height: 60px; }
.coin.big svg { width: 42px; height: 42px; }

/* project card */
.project { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 22px; background: #1E2A22; color: #FFFDF8; border: 0; text-align: left; cursor: pointer; width: 100%; }
.project .ph { display: flex; align-items: flex-start; gap: 14px; }
.project .ph > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.project .pe { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #B9C7A8; }
.project h3 { font-family: var(--serif); font-size: 23px; line-height: 28px; font-weight: 600; margin: 0; }
.project p { margin: 0; font-size: 15px; line-height: 21px; color: #D8DDD0; }
.project .coin { background: #FBF1D9; width: 64px; height: 64px; }
.project .coin svg { width: 46px; height: 46px; }
.bar { display: flex; align-items: center; height: 18px; }
.bar .done { height: 3px; background: #8DB173; }
.bar .todo { height: 3px; background-image: linear-gradient(90deg, #5E6B58 55%, transparent 55%); background-size: 8px 3px; }
.bar .knob { width: 18px; height: 18px; border-radius: 50%; background: var(--lamp); border: 3px solid #1E2A22; box-shadow: 0 0 0 2px var(--lamp); flex-shrink: 0; }
.bar .end { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bar-y { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: #B9C7A8; padding-top: 6px; }
.bar-y b { color: var(--lamp); }
.steps { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid #36453A; }
.steps div { display: flex; gap: 12px; font-size: 15px; line-height: 20px; color: #D8DDD0; }
.steps div b { width: 64px; flex-shrink: 0; font-size: 13px; color: #B9C7A8; }
.steps div.now b { color: var(--lamp); }
.steps div.now { color: #FFFDF8; }
.project .more { display: flex; justify-content: space-between; font-size: 14px; }
.project .more b { color: var(--lamp); }
.project .more span { color: #8E9A86; font-size: 13px; }

/* rustig + patterns */
.rustig { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--paper); }
.rustig h3 { margin: 0 0 2px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.rustig p { margin: 0; font-size: 14px; color: var(--ink-3); }
.linkish { background: none; border: 0; padding: 0; color: var(--elm); font-weight: 600; cursor: pointer; }
.patterns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.pattern { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #F1EADC; font-size: 14px; color: var(--ink-2); }
.pattern b { font-variant-numeric: tabular-nums; color: var(--ink); }

.source { display: flex; gap: 12px; align-items: flex-start; padding: 16px 4px 0; border-top: 1px solid #E3DACA; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.source svg { flex-shrink: 0; margin-top: 2px; }
.empty { color: var(--ink-3); font-size: 15px; padding: 4px; }

/* ------------------------------------------------------------------ detail */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 0; background: var(--paper); box-shadow: var(--shadow-pill); font-weight: 500; cursor: pointer; }
.dkick { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--elm-2); }
.dkick i { width: 8px; height: 8px; border-radius: 50%; background: var(--elm); display: inline-block; }
.dkick.live i { background: var(--lamp); box-shadow: 0 0 0 3px rgba(242,182,61,.3); }
.dtitle { display: flex; gap: 14px; align-items: flex-start; }
.dtitle h2 { flex: 1; font-family: var(--serif); font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.dsub { margin: 0; font-size: 17px; line-height: 25px; color: #34382F; }
.why { display: flex; gap: 14px; padding: 4px 2px; }
.why .rule { width: 3px; flex-shrink: 0; border-radius: 999px; background: var(--elm); }
.why .wl { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.why q { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 26px; quotes: "“" "”"; }
.h3 { font-family: var(--serif); font-size: 19px; line-height: 24px; font-weight: 600; margin: 0 2px; }
.timeline { display: flex; flex-direction: column; padding: 4px 2px; }
.step { display: flex; gap: 14px; }
.step .rail { width: 14px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.step .dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--elm); }
.step .dot.today { width: 14px; height: 14px; margin-top: 3px; background: var(--lamp); border: 3px solid var(--paper); box-shadow: 0 0 0 1px #E0C68B; }
.step .dot.later { background: var(--ground); border: 2px solid #A59F8E; }
.step .line { width: 2px; flex: 1; background: var(--elm); min-height: 10px; }
.step .line.later { background-image: linear-gradient(180deg, #C9BFAA 50%, transparent 50%); background-size: 2px 6px; }
.step .body { display: flex; flex-direction: column; gap: 1px; padding-bottom: 14px; }
.step .body b { font-size: 14px; }
.step .body span { font-size: 15px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 2px; font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.sources { list-style: none; margin: 0; padding: 6px 16px; border-radius: 20px; background: var(--paper); }
.sources li { padding: 10px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 20px; }
.sources li:first-child { border-top: 0; }
.sources a { color: var(--ink); text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.sources small { color: var(--ink-4); font-size: 12.5px; }
.allsrc { align-self: flex-start; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; height: 40px; padding: 0 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.allsrc:disabled { color: var(--ink-3); cursor: default; }
.how { font-size: 13.5px; color: var(--ink-3); margin: 0 2px; }
.parent { align-self: flex-start; border: 0; background: #1E2A22; color: #FFFDF8; border-radius: 14px; padding: 10px 14px; text-align: left; cursor: pointer; font-size: 14px; }
.parent b { color: var(--lamp); }

/* ------------------------------------------------------------------ markers */
.mk { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(30,42,34,.14);
  box-shadow: 0 3px 10px rgba(30,42,34,.2), 0 1px 2px rgba(30,42,34,.12); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mk svg { width: 34px; height: 34px; }
.mk.dashed { width: 38px; height: 38px; border: 1.5px dashed #8A8676; box-shadow: none; }
.mk.dashed svg { width: 26px; height: 26px; }
.mk.dim { opacity: .35; }
.mk.sel { box-shadow: 0 0 0 4px #1E2A22, 0 3px 10px rgba(30,42,34,.3); }
.mk-today { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.mk-today .glow { width: 62px; height: 62px; border-radius: 50%; background: rgba(242,182,61,.38); display: grid; place-items: center; pointer-events: auto; }
.mk-today .label { display: flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: #1E2A22; color: #FFFDF8; font-size: 12px; font-weight: 500; white-space: nowrap; }
.mk-today .label i { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }
.far .mk { width: 34px; height: 34px; }
.far .mk svg { width: 25px; height: 25px; }
.far .mk.dashed { width: 30px; height: 30px; }
.far .mk.dashed svg { width: 21px; height: 21px; }
.far .mk-today .glow { width: 44px; height: 44px; margin-top: 9px; }   /* keeps its centre on the spot (anchor offset is 31px) */
.far .mk-today .label { display: none; }
.here { width: 24px; height: 24px; border-radius: 50%; background: rgba(30,42,34,.14); display: grid; place-items: center; }
.here::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #1E2A22; border: 2.5px solid var(--paper); }

/* ------------------------------------------------------------------ search */
.search { position: fixed; inset: 0; z-index: 10; background: rgba(30,42,34,.28); display: flex; justify-content: center; align-items: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px; }
.search-box { width: min(560px, 100%); background: var(--ground); border-radius: 22px; padding: 12px; box-shadow: 0 10px 40px rgba(30,42,34,.25); display: flex; flex-direction: column; gap: 10px; max-height: 80vh; overflow: auto; }
.search-row { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
.close { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--paper); cursor: pointer; font-size: 18px; }
.locate { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--tint-green); color: var(--elm-2); font-weight: 600; cursor: pointer; }
.results { list-style: none; margin: 0; padding: 0; }
.results button { width: 100%; text-align: left; border: 0; background: none; padding: 12px 10px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; }
.results button:hover, .results button:focus-visible { background: var(--paper); }
.results small { color: var(--ink-3); font-size: 13px; }
.results .sec { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 10px 4px; }
.results .sec span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-4); margin-left: 6px; }
.results .hit { flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; }
.results .hit .txt { display: flex; flex-direction: column; min-width: 0; }
.results .hit .ti { font-weight: 500; }
.results .hit .coin { width: 38px; height: 38px; flex-shrink: 0; }
.results .hit .coin svg { width: 28px; height: 28px; }
.note { margin: 0; font-size: 13.5px; color: var(--ink-3); padding: 0 4px 4px; }
.ex { border: 0; background: none; padding: 0; color: var(--elm); font-weight: 600; cursor: pointer; font-size: inherit; }

/* ------------------------------------------------------------------ desktop */
@media (min-width: 920px) {
  :root { --map-h: 100vh; }
  #map { height: 100vh; }
  .top { left: 0; right: auto; width: 460px; }
  .top::before { display: none; }
  .sheet { position: fixed; top: 76px; left: 16px; bottom: 16px; width: 440px; margin: 0; min-height: 0; overflow-y: auto; border-radius: 26px; padding: 18px 18px 28px; }
  .grip { display: none; }
  .maplibregl-ctrl-bottom-right { bottom: 0; }
  .mapbar { left: 472px; top: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.step .body span.kop { color: var(--ink); font-weight: 500; }
