/* App-onderdelen: hero, homepage-secties, locatiekiezer, bevestiging, radar, kaart en detail.
   Mobile first; breakpoints md 768px en lg 1024px (CONTEXT.md 8.9). */

/* ---------- Homepage: hero ---------- */
.wke-hero { padding-block: var(--wke-space-6) var(--wke-space-12); overflow: hidden; }
.wke-hero__grid { display: grid; gap: var(--wke-space-6); align-items: center; }
.wke-hero__text { display: grid; gap: var(--wke-space-4); justify-items: start; min-width: 0; }
.wke-hero__title { font-size: clamp(38px, 7.2vw, 74px); line-height: .98; letter-spacing: -.05em; margin-top: var(--wke-space-2); }
.wke-hero__title mark { color: var(--wke-petrol); background: linear-gradient(transparent 60%, var(--wke-mint) 60%, var(--wke-mint) 92%, transparent 92%); padding-inline: .04em; }
.wke-hero__sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--wke-muted); max-width: 36ch; }
.wke-hero__text .wke-locator { width: 100%; max-width: 560px; margin-top: var(--wke-space-2); }
.wke-hero__demo { font-size: 15px; }
.wke-hero__meta { font: 500 11.5px/1.6 var(--wke-font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--wke-muted); }
.wke-hero__visual { position: relative; min-width: 0; }
.wke-hero__tag { position: absolute; top: 12px; left: 12px; }
.wke-radar-visual { position: relative; width: 100%; aspect-ratio: 1.4; border-radius: var(--wke-r-16); background: var(--wke-surface); border: 1px solid var(--wke-line); overflow: hidden; }
.wke-radar-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wke-radar-visual__sweep {
	position: absolute; top: 50%; left: 50%; height: 91%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(191, 227, 213, 0) 0deg, rgba(191, 227, 213, 0) 300deg, rgba(191, 227, 213, .75) 360deg);
	mix-blend-mode: multiply; pointer-events: none; animation: wke-sweep 9s linear infinite;
}
@keyframes wke-sweep { to { rotate: 360deg; } }
@media (min-width: 768px) {
	.wke-hero { padding-block: var(--wke-space-8) var(--wke-space-16); }
	.wke-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wke-space-8); }
	.wke-hero__visual { order: 2; }
	.wke-radar-visual { aspect-ratio: 1; max-width: 520px; margin-inline: auto; border-radius: 50%; }
	.wke-hero__tag { top: 4%; left: 4%; }
}
@media (prefers-reduced-motion: reduce) { .wke-radar-visual__sweep { animation: none; opacity: .5; } }

/* ---------- Homepage: secties ---------- */
.wke-section { padding-block: var(--wke-section); }
.wke-section__title { font-size: 28px; line-height: 1.05; letter-spacing: -.035em; max-width: 22ch; }
.wke-section__lead { margin-top: var(--wke-space-3); font-size: 17px; color: var(--wke-muted); max-width: 60ch; }
.wke-how { background: var(--wke-surface); border-block: 1px solid var(--wke-line); }
.wke-steps { list-style: none; margin: var(--wke-space-8) 0 0; padding: 0; display: grid; gap: var(--wke-space-6); counter-reset: step; }
.wke-step { display: grid; gap: var(--wke-space-2); align-content: start; }
.wke-step__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--wke-r-10); background: var(--wke-tint); color: var(--wke-petrol); margin-bottom: var(--wke-space-2); }
.wke-step__title { font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }
.wke-step__title::before { counter-increment: step; content: counter(step) ". "; color: var(--wke-muted); font-weight: 700; }
.wke-step__text { color: var(--wke-muted); max-width: 40ch; }
.wke-example__grid { display: grid; gap: var(--wke-space-8); align-items: center; }
.wke-example__text { display: grid; gap: var(--wke-space-4); justify-items: start; }
.wke-example__text .wke-section__lead { margin-top: 0; }
.wke-example__card { min-width: 0; }
@media (min-width: 768px) {
	.wke-section__title { font-size: 32px; }
	.wke-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wke-space-8); }
}
@media (min-width: 1024px) { .wke-example__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--wke-space-12); } }

/* ---------- Locatiekiezer ---------- */
.wke-locator { display: grid; gap: var(--wke-space-3); }
.wke-locator__gps { width: 100%; padding-block: 15px; background: var(--wke-petrol); color: #FFFFFF; }
.wke-locator__gps:hover { background: var(--wke-petrol-hover); }
.wke-locator__gps:active { background: var(--wke-petrol-dark); }
.wke-locator__or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--wke-muted); }
.wke-locator__or::before, .wke-locator__or::after { content: ""; flex: 1; height: 1px; background: var(--wke-line); }
.wke-search {
	position: relative; display: flex; align-items: center; gap: 10px;
	padding: 4px 4px 4px 12px; background: var(--wke-surface); border: 1.5px solid var(--wke-line); border-radius: var(--wke-r-14);
	box-shadow: var(--wke-shadow-search); transition: border-color var(--wke-ease);
}
.wke-search:focus-within { border-color: var(--wke-petrol); }
.wke-search__pin { color: var(--wke-petrol); }
.wke-search__input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 400 16px/1.2 var(--wke-font-body); color: var(--wke-text); }
.wke-search__input::placeholder { color: #6E8481; }
.wke-search__input:focus-visible { outline: none; }
.wke-search__submit { width: 44px; padding: 0; background: transparent; color: var(--wke-petrol); box-shadow: inset 0 0 0 1.5px var(--wke-line); }
.wke-search__submit:hover { background: var(--wke-tint); }
.wke-search__submit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wke-suggest {
	position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
	background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-14); box-shadow: var(--wke-shadow-mini);
	max-height: 320px; overflow-y: auto;
}
.wke-suggest li { display: flex; gap: 10px; align-items: center; padding: 11px 10px; border-radius: var(--wke-r-10); cursor: pointer; font-size: 15px; line-height: 1.3; }
.wke-suggest li .wke-icon { color: var(--wke-muted); }
.wke-suggest li[aria-selected="true"], .wke-suggest li:hover { background: var(--wke-tint); }
.wke-suggest li.is-info { cursor: default; color: var(--wke-muted); font-size: 14px; }
.wke-suggest li.is-info:hover { background: none; }
.wke-locator__status:empty { display: none; }
@media (min-width: 768px) {
	.wke-locator { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wke-space-3); }
	.wke-search { order: 1; flex: 1 1 100%; padding: 6px 6px 6px 14px; }
	.wke-search__submit { width: auto; padding: 11px 18px; background: var(--wke-petrol); color: #FFFFFF; box-shadow: none; }
	.wke-search__submit:hover { background: var(--wke-petrol-hover); }
	.wke-search__submit:active { background: var(--wke-petrol-dark); }
	.wke-search__submit-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.wke-locator__or { order: 2; }
	.wke-locator__or::before, .wke-locator__or::after { display: none; }
	.wke-locator__gps { order: 3; width: auto; padding-block: 11px; background: transparent; color: var(--wke-petrol); box-shadow: inset 0 0 0 1.5px var(--wke-line); }
	.wke-locator__gps:hover { background: var(--wke-tint); }
	.wke-locator__gps:active { background: var(--wke-line); }
	.wke-locator__status { order: 4; flex: 1 1 100%; }
}

/* ---------- App-views ---------- */
.wke-view { padding-top: var(--wke-space-6); }
.wke-view:focus { outline: none; }
.wke-app-title { font-size: 30px; line-height: 1.05; letter-spacing: -.035em; }
.wke-app-title:focus { outline: none; }
.wke-lead { font-size: 17px; color: var(--wke-muted); max-width: 60ch; }
.wke-choose .wke-container { display: grid; gap: var(--wke-space-4); padding-block: var(--wke-space-6) var(--wke-space-8); }
.wke-choose .wke-locator { margin-top: var(--wke-space-2); }
.wke-backbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--wke-space-4); }
@media (min-width: 1024px) { .wke-app-title { font-size: 44px; } .wke-view { padding-top: var(--wke-space-8); } }

/* Rise-animatie bij nieuwe toestand */
.wke-rise { animation: wke-rise .5s ease both; }
@keyframes wke-rise { from { transform: translateY(12px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- Bevestiging ---------- */
.wke-confirm { display: grid; gap: var(--wke-space-4); padding-bottom: var(--wke-space-8); }
.wke-confirm__title { font-size: 28px; line-height: 1.05; letter-spacing: -.035em; }
.wke-confirm__map { max-width: 520px; width: 100%; }
.wke-confirm__map .wke-map { aspect-ratio: 1; }
.wke-confirm__body { display: grid; gap: var(--wke-space-4); align-content: start; justify-items: start; }
.wke-confirm__explain { font-size: 14px; color: var(--wke-muted); }
.wke-confirm__actions { display: grid; gap: var(--wke-space-3); width: 100%; margin-top: var(--wke-space-2); }
@media (max-width: 767.98px) {
	.wke-confirm__actions { position: sticky; bottom: 0; z-index: 10; width: calc(100% + 2 * var(--wke-gutter)); margin-inline: calc(-1 * var(--wke-gutter)); padding: 12px var(--wke-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--wke-surface); border-top: 1px solid var(--wke-line); }
}
@media (min-width: 768px) { .wke-confirm__actions { grid-auto-flow: column; justify-content: start; } }
@media (min-width: 1024px) {
	.wke-confirm__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wke-space-8); align-items: center; max-width: 960px; padding: var(--wke-space-8); background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-20); box-shadow: var(--wke-shadow-card); }
	.wke-confirm__title { font-size: 32px; }
}

/* ---------- Radarscherm ---------- */
.wke-results { display: grid; gap: var(--wke-space-6); padding-bottom: var(--wke-space-8); }
.wke-results__head { display: grid; gap: var(--wke-space-3); }
.wke-results__headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wke-space-3); }
.wke-results__grid { display: grid; gap: var(--wke-space-6); grid-template-areas: "summary" "chips" "list" "map"; }
.wke-results__summary { grid-area: summary; min-width: 0; }
.wke-results__chips { grid-area: chips; min-width: 0; }
.wke-results__list { grid-area: list; min-width: 0; display: grid; gap: var(--wke-space-8); }
.wke-results__map { grid-area: map; min-width: 0; display: grid; gap: var(--wke-space-3); }
.wke-results__map .wke-map { aspect-ratio: 1; }
.wke-results__note { font-size: 12.5px; color: var(--wke-muted); }
.wke-change-btn .wke-change-btn__label { display: none; }
@media (min-width: 768px) { .wke-change-btn .wke-change-btn__label { display: inline; } .wke-change-btn { width: auto; padding-inline: 14px; } }
@media (min-width: 1024px) {
	.wke-results__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "summary chips" "summary map" "list list"; align-items: start; column-gap: var(--wke-space-6); row-gap: var(--wke-space-4); }
	.wke-results__map .wke-map { aspect-ratio: 4 / 3; }
	.wke-results__list { margin-top: var(--wke-space-8); }
}

.wke-filters { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.wke-filters::-webkit-scrollbar { display: none; }
.wke-filter {
	display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--wke-r-8);
	background: var(--wke-surface); box-shadow: inset 0 0 0 1px var(--wke-line); color: var(--wke-text); font: 600 12.5px/1 var(--wke-font-body); cursor: pointer;
	transition: opacity var(--wke-ease), background-color var(--wke-ease);
}
.wke-filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.wke-filter:hover { background: var(--wke-tint); }
.wke-filter[aria-pressed="false"] { opacity: .42; }
.wke-filter[aria-pressed="false"]:hover { opacity: .7; }
.wke-filters__count { margin-left: auto; padding-left: 8px; flex: none; font: 500 12px/1 var(--wke-font-mono); color: var(--wke-muted); white-space: nowrap; }

.wke-group { display: grid; gap: var(--wke-space-3); }
.wke-group__title { font: 500 11px/1.3 var(--wke-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--wke-muted); }
.wke-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wke-space-3); }
@media (min-width: 1024px) { .wke-group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wke-empty { display: grid; gap: var(--wke-space-4); justify-items: start; padding: var(--wke-space-6); background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-20); }
.wke-empty__map { width: 100%; max-width: 360px; }
.wke-empty__map .wke-map { aspect-ratio: 1; }
.wke-empty h2 { font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }

/* ---------- Kaart (SVG, CONTEXT.md 8.11) ---------- */
.wke-map { position: relative; width: 100%; background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-20); overflow: hidden; }
.wke-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--wke-font-mono); }
.wke-map__ground { fill: var(--wke-bg); }
.wke-map__dots { fill: var(--wke-petrol); opacity: .12; }
.wke-map__ring { fill: none; stroke: var(--wke-petrol); stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 3 5; }
.wke-map__ring--solid { stroke-dasharray: none; stroke-opacity: .22; }
.wke-map__ringlabel-bg { fill: var(--wke-bg); }
.wke-map__ringlabel { fill: var(--wke-muted); font-size: 10px; font-weight: 500; }
.wke-map__north { fill: var(--wke-muted); font-size: 10px; font-weight: 500; }
.wke-map__pt { cursor: pointer; outline: none; }
.wke-map__pt .wke-map__halo { fill: var(--c); opacity: .14; transition: r var(--wke-ease); }
.wke-map__pt .wke-map__dot { fill: var(--c); stroke: #FFFFFF; stroke-width: 2.5; }
.wke-map__pt:hover .wke-map__halo { r: 18px; }
.wke-map__pt .wke-map__focus { fill: none; stroke: var(--wke-petrol); stroke-width: 2; opacity: 0; }
.wke-map__pt:focus-visible .wke-map__focus { opacity: 1; }
.wke-map__pt.is-selected .wke-map__dot { stroke-width: 3; }
.wke-map__pt.is-dim { opacity: .3; pointer-events: none; }
.wke-map__line { stroke: var(--wke-text); stroke-opacity: .5; stroke-width: 1.2; stroke-dasharray: 2 4; fill: none; }
.wke-map__label-bg { fill: var(--wke-text); }
.wke-map__label { fill: #FFFFFF; font-size: 10.5px; font-weight: 500; }
.wke-map__you-halo { fill: var(--wke-coral); opacity: .18; }
.wke-map__you { fill: var(--wke-coral); stroke: #FFFFFF; stroke-width: 3; }
.wke-map__you-label { fill: var(--wke-text); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.wke-map--hero { border-radius: var(--wke-r-16); }
@media (min-width: 768px) { .wke-map--hero { border-radius: 50%; } }
.wke-map--hero .wke-map__ground { fill: var(--wke-surface); }
.wke-map--hero .wke-map__ring { stroke-opacity: .18; }
@media (prefers-reduced-motion: no-preference) {
	.wke-map__you-halo { animation: wke-pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
	.wke-map--hero .wke-map__halo { animation: wke-blink 3s ease-in-out infinite; animation-delay: var(--delay, 0s); }
}
@keyframes wke-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(2); opacity: .08; } }
@keyframes wke-blink { 0%, 100% { opacity: .05; } 50% { opacity: .22; } }

.wke-mapinfo { display: grid; gap: 6px; padding: 14px 16px; background: var(--wke-bg); border-radius: var(--wke-r-14); }
.wke-mapinfo__title { font: 700 17px/1.2 var(--wke-font-display); letter-spacing: -.02em; }
.wke-mapinfo__meta { font: 500 12px/1.4 var(--wke-font-mono); color: var(--wke-muted); }
.wke-mapinfo p { font-size: 14px; line-height: 1.5; }

/* ---------- Detailpagina ---------- */
.wke-detail { display: flex; flex-direction: column; gap: var(--wke-space-6); padding-block: var(--wke-space-4) var(--wke-space-8); }
.wke-detail__head { order: 1; display: grid; gap: var(--wke-space-3); justify-items: start; }
.wke-detail__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wke-detail__title { font-size: 30px; line-height: 1.05; letter-spacing: -.035em; }
.wke-detail__sub { font-size: 16px; color: var(--wke-muted); }
.wke-detail__aside { display: contents; }
.wke-detail__facts { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wke-space-2); }
.wke-detail__main { order: 3; display: grid; gap: var(--wke-space-6); min-width: 0; }
.wke-detail__map { order: 4; }
.wke-detail__map .wke-map { aspect-ratio: 1; }
.wke-detail__source { order: 5; }
.wke-detail__back { order: 6; }
.wke-fact { display: grid; gap: 4px; align-content: start; padding: 12px; background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-14); min-width: 0; }
.wke-fact__label { font-size: 12.5px; color: var(--wke-muted); }
.wke-fact__value { font: 500 18px/1.15 var(--wke-font-mono); color: var(--wke-petrol); overflow-wrap: anywhere; }
.wke-fact__value--text { font: 700 15px/1.25 var(--wke-font-body); color: var(--wke-text); }
.wke-fact__extra { font-size: 12.5px; color: var(--wke-muted); }
.wke-block { display: grid; gap: var(--wke-space-3); }
.wke-block__title { font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.wke-block p { font-size: 16px; line-height: 1.6; max-width: 65ch; }
.wke-block__hint { font-size: 12.5px !important; color: var(--wke-muted); }
.wke-plaincard { display: grid; gap: var(--wke-space-2); padding: var(--wke-space-5); background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-20); box-shadow: var(--wke-shadow-card); }
.wke-plaincard p { font-size: 17px; line-height: 1.55; }
.wke-factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.wke-factors li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--wke-line); }
.wke-factors li:last-child { border-bottom: 0; font-weight: 600; }
.wke-factors code { font: 500 12.5px/1.4 var(--wke-font-mono); color: var(--wke-petrol); white-space: nowrap; }
.wke-source { display: grid; gap: 6px; padding: var(--wke-space-4); background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-14); font-size: 14px; }
.wke-source__official { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--wke-line); color: var(--wke-muted); font-size: 13.5px; line-height: 1.5; }
.wke-detail-empty { display: grid; gap: var(--wke-space-4); justify-items: start; padding-block: var(--wke-space-12); }
@media (max-width: 479.98px) {
	.wke-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wke-detail__facts > .wke-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.wke-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "main aside"; column-gap: var(--wke-space-12); row-gap: var(--wke-space-8); align-items: start; }
	.wke-detail__head { grid-area: head; }
	.wke-detail__title { font-size: 44px; }
	.wke-detail__main { grid-area: main; }
	.wke-detail__aside { grid-area: aside; display: grid; gap: var(--wke-space-4); position: sticky; top: calc(var(--wke-header-h) + 24px); }
	.wke-detail__facts { grid-template-columns: 1fr; }
	.wke-detail__back { grid-area: auto; grid-column: 1; }
}
