/* Neighbourhoods: de kaart op /explore en de straat met het wijkblad per wijk. */

/* ---------------- de kaart ---------------- */
.explore .ex-head { max-width: 70ch; }
.ex-home { color: var(--ink-dim); margin: 6px 0 0; }
.ex-home a { font-weight: 600; color: var(--nb, var(--accent)); }
.nbh-stage { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 45%, #131821 0%, #0b0c0e 72%); }
.nbh-map { display: block; width: 100%; height: auto; max-height: 86vh; }
.nbh-map .tile-empty { fill: #0d0f13; fill-opacity: .6; stroke: #1d2128; }
.nbh-map .tile-fog { fill: #0e1014; stroke: #23272d; stroke-dasharray: 3 5; }
.nbh-map .trace { fill: none; stroke-width: 3; stroke-linecap: round; stroke-opacity: .7;
  stroke-dasharray: 2 10; animation: nbh-flow 1.6s linear infinite; }
@keyframes nbh-flow { to { stroke-dashoffset: -24; } }
.nbh-map .landmark polygon { fill: #13151b; stroke: #4a4436; stroke-width: 1.5; }
.nbh-map .landmark text { fill: #c9b98f; font-size: 8.5px; }
.nbh-map .square polygon { fill: #15171a; stroke: var(--accent); stroke-width: 2; }
.nbh-map .square text { fill: var(--accent); font-size: 10.5px; }
.nbh-map .coming polygon { fill: #8a8f96; fill-opacity: .06; stroke: #8a8f96; stroke-width: 2; stroke-dasharray: 6 5; }
.nbh-map .coming text { fill: #9aa0a6; font-size: 8.5px; }
.nbh-map text { text-anchor: middle; }
.nbh-map .maplabel { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 12.5px;
  paint-order: stroke; stroke: #0b0c0e; stroke-width: 4px; stroke-linejoin: round; }
.nbh-map .maplabel.small { font-weight: 600; letter-spacing: .08em; }
.nbh-map .dist { cursor: pointer; transition: filter .2s ease; }
.nbh-map .dist .shape { fill-opacity: .1; stroke-width: 2.5; transition: fill-opacity .2s ease; }
.nbh-map .dist:hover, .nbh-map .dist:focus-visible { filter: drop-shadow(0 0 9px var(--c)) drop-shadow(0 0 20px var(--c)); outline: none; }
.nbh-map .dist:hover .shape, .nbh-map .dist:focus-visible .shape { fill-opacity: .24; }
.ex-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--ink-dim); margin: 10px 2px 0; }
.ex-legend .k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -10px; vertical-align: -1px; }
.ex-legend .k-nb { background: #4fd6e8; }
.ex-legend .k-lm { background: #c9b98f; }
.ex-legend .k-fog { background: #2c3037; border: 1px dashed #6b7178; }

.nbh-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.nbh-list a { display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; align-items: start; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; }
.nbh-list a:hover { text-decoration: none; border-color: var(--nb); box-shadow: 0 0 18px color-mix(in srgb, var(--nb) 30%, transparent); }
.nbh-list-icon { width: 52px; height: 52px; grid-row: span 3; }
.nbh-list-name { font-weight: 700; font-size: 17px; color: var(--nb); }
.nbh-list-tag { font-size: 13.5px; color: var(--ink-dim); line-height: 1.45; }
.nbh-list-count { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }

/* ---------------- een wijk ---------------- */
.nbh { max-width: var(--maxw); margin: 0 auto; padding: 0 18px 40px; }
.nbh-head { position: relative; margin: 18px 0 0; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: radial-gradient(80% 140% at 85% 0%, color-mix(in srgb, var(--nb) 30%, transparent), transparent 60%), linear-gradient(180deg, #14171c, #0b0c0e);
  display: grid; grid-template-columns: 88px 1fr; gap: 6px 18px; align-items: center; }
.nbh-back { grid-column: 1 / -1; font-size: 13px; color: var(--ink-dim); }
.nbh-head-icon { width: 88px; height: 88px; grid-row: span 3; filter: drop-shadow(0 0 14px var(--nb)); }
.nbh-head h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.05; color: var(--nb);
  text-shadow: 0 0 22px color-mix(in srgb, var(--nb) 55%, transparent); }
.nbh-head p { margin: 0; color: #c3c7cc; max-width: 62ch; }
.nbh-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.nbh-acts form { margin: 0; }
.nbh-hot { background: var(--nb) !important; border-color: var(--nb) !important; color: #0b0c0e !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--nb) 45%, transparent); }
.nbh-pill { border: 1px solid var(--nb); color: var(--nb); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 14px; }
.nbh-note { font-size: 13px; color: var(--ink-dim); }
.nbh-warn { grid-column: 1 / -1; font-size: 13.5px; color: #ffcf8f; margin: 6px 0 0; }
.nbh-flash { margin-top: 12px; }
@media (max-width: 560px) {
  .nbh-head { grid-template-columns: 58px 1fr; padding: 18px 16px 16px; }
  .nbh-head-icon { width: 58px; height: 58px; }
}
.nbh-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.nbh-filters .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-dim); border-radius: 999px;
  padding: 6px 13px; font-weight: 600; font-size: 13.5px; }
.nbh-filters .chip:hover { text-decoration: none; border-color: var(--nb); color: var(--ink); }
.nbh-filters .chip.on { background: var(--nb); border-color: var(--nb); color: #0b0c0e; }
.nbh-layout { display: grid; gap: 22px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .nbh-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .gazette { order: 2; position: sticky; top: 76px; align-self: start; }
}

/* het wijkblad */
.gazette { background: #101216; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.gz-mast { text-align: center; border-bottom: 3px double var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.gz-title { font-weight: 700; font-size: 21px; color: var(--nb); line-height: 1.15; }
.gz-date { font-size: 11px; color: var(--ink-faint); letter-spacing: .12em; text-transform: uppercase; }
.gz-h { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
  border-bottom: 1px solid var(--line); padding-bottom: 5px; margin: 14px 0 10px; }
.gz-empty { font-size: 13px; color: var(--ink-faint); margin: 0; }
.gz-nn { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; color: var(--ink); }
.gz-nn:hover { text-decoration: none; }
.gz-nn b { display: block; font-size: 14px; line-height: 1.2; }
.gz-nn small { font-size: 12px; color: var(--ink-faint); }
.gz-albums { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gz-albums a { color: var(--ink); min-width: 0; }
.gz-albums a:hover { text-decoration: none; }
.gz-cv { display: block; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; }
.gz-cv img { width: 100%; height: 100%; object-fit: cover; }
.gz-cv.is-blurred img { filter: blur(10px); }
.gz-albums b { display: block; font-size: 12.5px; margin-top: 5px; line-height: 1.3; overflow-wrap: anywhere; }
.gz-albums small { font-size: 11.5px; color: var(--ink-faint); }
.gz-notes { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 13px; }

/* avatars: foto of beginletter, met een neonrand */
.nbh .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #0b0c0e; background: conic-gradient(var(--nb), #e8408a, var(--nb));
  box-shadow: 0 0 0 2px #0b0c0e, 0 0 0 3px var(--nb), 0 0 14px var(--nb); }

/* de straat */
.street { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 6px; }
.street.js { display: block; }
.seg { display: grid; grid-template-columns: repeat(var(--per, 5), minmax(0, 1fr)); gap: 6px; align-items: end; padding: 0 4px; }
.road { height: 26px; border-radius: 6px; position: relative; overflow: hidden; background: linear-gradient(180deg, #15181d, #0e1014);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--nb) 70%, transparent), 0 1px 0 color-mix(in srgb, var(--nb) 35%, transparent), 0 0 18px color-mix(in srgb, var(--nb) 25%, transparent); }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--nb) 85%, #fff) 0 16px, transparent 16px 34px); animation: nbh-drive 1.4s linear infinite; }
.road.rev::before { animation-direction: reverse; }
@keyframes nbh-drive { to { background-position: 34px 0; } }
.turn { height: 34px; width: 26px; background: linear-gradient(90deg, #15181d, #0e1014);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--nb) 60%, transparent), inset -1px 0 0 color-mix(in srgb, var(--nb) 60%, transparent); }
.turn.r { margin-left: auto; }
.bld { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; color: var(--ink); padding-top: 6px; }
.bld:hover { text-decoration: none; }
.bld svg { width: 100%; max-width: 92px; height: auto; display: block; overflow: visible; transition: transform .2s ease;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--nb) 70%, transparent)); }
.bld:hover svg, .bld:focus-visible svg { transform: translateY(-3px); filter: drop-shadow(0 0 9px var(--nb)); }
.bld .base { fill: color-mix(in srgb, var(--nb) 16%, #0b0c0e); stroke: var(--nb); stroke-width: 1.6; stroke-linejoin: round; }
.bld .win { fill: url(#win); stroke: none; }
.bld .extra { fill: none; stroke: var(--nb); stroke-width: 1.6; stroke-linecap: round; }
.win-light { fill: var(--nb); opacity: .6; }
.bld .av { width: 32px; height: 32px; font-size: 13px; margin-top: -16px; position: relative; }
.bld .sign { margin-top: 6px; font-weight: 700; font-size: 11.5px; background: #07080a; border: 1px solid var(--nb); color: var(--nb);
  border-radius: 5px; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 0 8px var(--nb); }
.bld .handle { font-size: 10.5px; color: var(--ink-faint); margin: 2px 0 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.egg-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; color: #ffcf8f;
  opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.bld.egg:hover .egg-tag, .bld.egg:focus-visible .egg-tag { opacity: 1; }
.bld.new svg { animation: nbh-build .6s ease-out both; transform-origin: bottom; }
@keyframes nbh-build { from { transform: scaleY(.1); opacity: 0; } to { transform: none; opacity: 1; } }
.build-site { border: 2px dashed #5a4424; border-radius: 12px; padding: 14px; text-align: center; color: #ffcf8f; margin-top: 12px;
  display: grid; gap: 6px; justify-items: center; }
.build-site small { color: var(--ink-dim); }
.cones { letter-spacing: 10px; color: #ff9900; text-shadow: 0 0 8px #ff9900; }
.shuffle { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }

/* de wijk op de ledenpagina */
.nbh-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600;
  color: var(--nb); border: 1px solid color-mix(in srgb, var(--nb) 60%, transparent); border-radius: 999px; padding: 2px 10px 2px 4px; }
.nbh-badge:hover { text-decoration: none; box-shadow: 0 0 14px color-mix(in srgb, var(--nb) 35%, transparent); }
.nbh-badge svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .nbh-map .trace, .road::before, .bld.new svg { animation: none; }
}

/* Edit profile: een wijk kiezen */
.nbh-opt { display: grid !important; grid-template-columns: auto 36px 1fr; gap: 10px; align-items: center; }
.nbh-opt-icon { width: 36px; height: 36px; }
.nbh-opt strong { color: var(--nb, var(--ink)); }
.nbh-opt small { color: var(--ink-dim); }
.search-home { font-size: 12px; font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Telefoon: de kaart blijft leesbaar groot en je veegt eroverheen. */
.ex-drag { display: none; font-size: 12.5px; color: var(--ink-faint); margin: 6px 2px 0; }
@media (max-width: 700px) {
  .nbh-stage { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; max-height: 72vh; }
  .nbh-map { width: 680px; max-width: none; max-height: none; }
  .ex-drag { display: block; }
}
