:root {
  --primary: #43177e;
  --primary-dark: #280e4c;
  --primary-hover: #361265;
  --ink: #212529;
  --muted: #51545c;
  --white: #ffffff;
  --light: #fbf9ff;
  --lavender: #eee5ff;
  --field: #f2f2ff;
  --line: #d9d1e5;
  --pink: #ff70a7;
  --turquoise: #66d7d1;
  --referral-library: #2f6b2f;
  --hulp-area: #334155;
  --workshop2026: #43177e;
  --workshop2025: #005ea8;
  --workshop2024: #6e3178;
  --event: #a90052;
  --convenience: #006a67;
  --supermarket: #924600;
  --pilot1: #5b456d;
  --pilot2: #7a3d00;
  --shadow: 0 1rem 3rem rgba(67, 23, 126, 0.13);
  --radius: 0.55rem;
  --wide-radius: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
[tabindex] {
  outline-offset: 4px;
}

button:not(:disabled),
a[href],
.filter {
  transition:
    color 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

button:not(:disabled) {
  cursor: pointer;
}

button:not(:disabled):hover {
  box-shadow: 0 0.2rem 0 rgba(67, 23, 126, 0.22);
}

:focus-visible {
  outline: 3px solid var(--primary);
}

a {
  color: var(--primary);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

a:active {
  color: var(--primary-dark);
}

button:active:not(:disabled),
.header-link:active,
.hero-link:active {
  transform: translateY(1px);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-dark);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--primary);
  font-weight: 600;
  line-height: 1.13;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: clamp(2.65rem, 6vw, 5.35rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.45rem;
}

.skip-links {
  position: absolute;
  z-index: 10000;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--primary-dark);
  border-radius: var(--radius);
  transform: translateY(-180%);
}

.skip-link:focus,
.skip-link:hover {
  color: var(--white);
  text-decoration-thickness: 2px;
}

.skip-link:focus {
  transform: translateY(0);
}

.context-skip-link {
  position: absolute;
  z-index: 1100;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  color: var(--white);
  background: var(--primary-dark);
  border-radius: var(--radius);
  white-space: nowrap;
}

.context-skip-link:focus {
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip-path: none;
  color: var(--white);
  box-shadow: 0 0 0 4px var(--white);
}

.map-skip-link:focus {
  top: 7rem;
  left: 4.5rem;
}

[tabindex="-1"]:focus {
  outline: 4px solid var(--turquoise);
  outline-offset: -4px;
}

.site-header,
.site-footer,
.hero,
.intro,
.finder,
.highlight {
  padding-right: max(1.25rem, calc((100vw - 1320px) / 2));
  padding-left: max(1.25rem, calc((100vw - 1320px) / 2));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  gap: 2rem;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
}

.brand:hover img {
  opacity: 0.78;
}

.brand-logo {
  display: block;
  width: clamp(13rem, 25vw, 20rem);
  height: auto;
}

.header-link,
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-weight: 600;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  gap: 0.55rem;
}

.header-link:hover,
.hero-link:hover {
  color: var(--white);
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: underline;
}

.header-link:focus-visible {
  outline-color: var(--primary-dark);
}

.hero-link:focus-visible {
  outline-color: var(--pink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 39rem;
  padding-top: clamp(4rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, var(--primary) 0 63%, var(--primary-dark) 63% 100%);
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  gap: 3rem;
}

.hero::before {
  position: absolute;
  top: -7rem;
  right: 21%;
  width: 18rem;
  height: 18rem;
  background: var(--pink);
  border-radius: 50%;
  content: "";
  opacity: 0.22;
}

.hero-copy,
.hero-stat {
  position: relative;
  z-index: 2;
}

.hero-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300;
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 600;
}

.eyebrow-light {
  color: var(--turquoise);
}

.hero-link {
  color: var(--primary);
  background: var(--white);
  border-color: var(--white);
}

.hero-link:hover {
  color: var(--primary);
  background: var(--light);
  border-color: var(--light);
}

.hero-stat {
  align-self: end;
  max-width: 15rem;
  padding: 1.4rem;
  color: var(--primary);
  background: var(--white);
  border-radius: var(--wide-radius);
  box-shadow: 14px 14px 0 rgba(102, 215, 209, 0.78);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: clamp(3.4rem, 7vw, 5.7rem);
  line-height: 0.9;
}

.hero-stat span {
  margin-top: 0.7rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
}

.hero-person {
  position: absolute;
  z-index: 1;
  right: max(1rem, calc((100vw - 1450px) / 2));
  bottom: -7rem;
  width: min(31vw, 27rem);
  height: auto;
  opacity: 0.34;
  pointer-events: none;
}

.intro {
  display: grid;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--light);
  gap: 3rem 7rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 0.75fr);
}

.intro h2 {
  max-width: 18ch;
}

.intro-copy {
  padding-top: 1.75rem;
  border-top: 5px solid var(--turquoise);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.finder {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.finder-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 2rem;
}

.finder-heading p:last-child {
  max-width: 46rem;
  margin-bottom: 0;
}

.text-button {
  min-height: 2.75rem;
  padding: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.text-button:hover {
  color: var(--primary-hover);
  background: var(--light);
  border-radius: var(--radius);
  text-decoration-thickness: 2px;
}

.search-panel {
  display: grid;
  align-items: end;
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--light);
  border-left: 6px solid var(--primary);
  border-radius: var(--wide-radius);
  gap: 0.7rem 1.5rem;
  grid-template-columns: minmax(20rem, 1fr) auto;
}

.search-panel form {
  min-width: 0;
}

.search-panel label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 600;
}

.combobox-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
}

.combobox-wrap input {
  min-width: 0;
  min-height: 3.4rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

.search-button,
.location-button,
.secondary-button,
.primary-button {
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  font-weight: 600;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
}

.search-button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.search-button:hover,
.location-button:hover,
.secondary-button:hover,
.primary-button:hover {
  color: var(--white);
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.location-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  gap: 0.65rem;
}

.target-icon {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border: 0.18rem solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0.16rem var(--primary), 0 0 0 0.3rem currentColor;
}

.search-help,
.status-message {
  margin: 0;
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.status-message {
  min-height: 1.5em;
  color: var(--primary);
  font-weight: 600;
}

.suggestions {
  position: absolute;
  z-index: 900;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  max-height: 21rem;
  margin: 0;
  padding: 0.35rem;
  overflow: auto;
  list-style: none;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.suggestions [role="option"] {
  display: block;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  border-radius: 0.35rem;
  cursor: pointer;
}

.suggestions [role="option"]:hover,
.suggestions [role="option"][aria-selected="true"] {
  color: var(--white);
  background: var(--primary);
}

.suggestion-type {
  display: block;
  font-size: 0.86rem;
}

.filters {
  display: flex;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filters legend {
  width: 100%;
  margin-bottom: 0.65rem;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 600;
}

.filter {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  gap: 0.5rem;
}

.filter:hover {
  background: var(--light);
  border-color: var(--primary);
  box-shadow: 0 0.2rem 0 rgba(67, 23, 126, 0.18);
}

.filter:active {
  box-shadow: none;
  transform: translateY(1px);
}

.filter:has(input:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.filter:has(input:checked) {
  background: var(--light);
  border-color: var(--primary);
}

.filter input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--primary);
}

.legend-icon {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--white);
  border-radius: 50%;
  place-items: center;
  flex: 0 0 auto;
}

.legend-icon svg,
.map-marker svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.filter-referralLibrary .legend-icon,
.badge-referralLibrary,
.marker-referralLibrary { background: var(--referral-library); }

.filter-hulpDichterbijArea .legend-icon,
.badge-hulpDichterbijArea,
.marker-hulpDichterbijArea { background: var(--hulp-area); }

.filter-workshop2026 .legend-icon,
.badge-workshop2026,
.marker-workshop2026 { background: var(--workshop2026); }

.filter-workshop2025 .legend-icon,
.badge-workshop2025,
.marker-workshop2025 { background: var(--workshop2025); }

.filter-workshop2024 .legend-icon,
.badge-workshop2024,
.marker-workshop2024 { background: var(--workshop2024); }

.filter-event .legend-icon,
.badge-event,
.marker-event { background: var(--event); }

.filter-convenience .legend-icon,
.badge-convenience,
.marker-convenience { background: var(--convenience); }

.filter-supermarket .legend-icon,
.badge-supermarket,
.marker-supermarket { background: var(--supermarket); }

.filter-pilot1 .legend-icon,
.badge-pilot1,
.marker-pilot1 { background: var(--pilot1); }

.filter-pilot2 .legend-icon,
.badge-pilot2,
.marker-pilot2 { background: var(--pilot2); }

.finder-layout {
  display: grid;
  min-height: 45rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--wide-radius);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(21rem, 0.72fr) minmax(30rem, 1.28fr);
}

.results-panel {
  position: relative;
  display: flex;
  min-height: 0;
  max-height: 49rem;
  padding: 1.5rem;
  flex-direction: column;
}

.results-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.results-summary h3,
.results-summary p {
  margin-bottom: 0.8rem;
}

.location-list {
  min-height: 0;
  margin: 0 -0.5rem 0 0;
  padding: 0 0.5rem 0 0;
  overflow-y: auto;
  list-style: none;
}

.location-card {
  margin-bottom: 0.75rem;
}

.location-card button {
  display: block;
  width: 100%;
  padding: 1rem;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.location-card button:hover,
.location-card button[aria-current="true"] {
  background: var(--light);
  border-color: var(--primary);
}

.location-card button:active {
  transform: translateY(1px);
}

.location-card h4 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.08rem;
}

.location-card p {
  margin: 0;
  font-size: 0.94rem;
}

.category-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

.distance {
  color: var(--primary);
  font-weight: 600;
}

.secondary-button {
  margin-top: 1rem;
  color: var(--primary);
  background: var(--white);
}

.secondary-button:hover {
  color: var(--white);
}

.map-panel {
  position: relative;
  min-height: 45rem;
  background: var(--light);
}

.map-heading {
  position: absolute;
  z-index: 500;
  top: 1rem;
  right: 1rem;
  left: 4.5rem;
  max-width: 32rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 1.5rem rgba(40, 14, 76, 0.15);
}

.map-heading h3,
.map-heading p {
  margin: 0;
}

.map-heading p {
  font-size: 0.86rem;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 45rem;
}

.map-marker {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--white);
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 8px rgba(40, 14, 76, 0.48);
  place-items: center;
  transform: rotate(-45deg);
}

.map-marker span {
  display: grid;
  transform: rotate(45deg);
  place-items: center;
}

.map-popup h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.map-popup p {
  margin: 0 0 0.4rem;
}

.highlight {
  display: grid;
  align-items: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--light);
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(20rem, 0.85fr) minmax(20rem, 0.8fr);
}

.highlight-image-wrap {
  position: relative;
}

.highlight-image-wrap::before {
  position: absolute;
  z-index: 0;
  top: -1rem;
  right: -1rem;
  width: 45%;
  height: 55%;
  background: var(--pink);
  content: "";
  opacity: 0.55;
}

.highlight-image-wrap::after {
  position: absolute;
  z-index: 0;
  bottom: -1rem;
  left: -1rem;
  width: 42%;
  height: 45%;
  background: var(--turquoise);
  content: "";
  opacity: 0.62;
}

.highlight-image-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.highlight-copy h2 {
  max-width: 18ch;
}

.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 2rem;
}

.check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  content: "\2713";
  font-size: 0.8rem;
  font-weight: 700;
  place-items: center;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: var(--ink);
  background: var(--white);
  border-top: 1px solid var(--line);
  gap: 2rem;
}

.footer-logo {
  display: block;
  width: min(17rem, 65vw);
  height: auto;
}

.site-footer p {
  max-width: 34rem;
  margin: 1rem 0 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.leaflet-control-zoom a {
  color: var(--primary);
}

.leaflet-control-zoom a:hover,
.leaflet-control-attribution a:hover,
.map-popup a:hover {
  color: var(--primary-hover);
  background: var(--light);
  text-decoration-thickness: 2px;
}

.leaflet-marker-icon:focus-visible,
.leaflet-control a:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--white);
}

.leaflet-marker-icon:hover {
  filter: brightness(0.8);
  cursor: pointer;
}

.leaflet-container a:focus-visible {
  outline: 3px solid var(--primary);
}

.noscript-message,
.empty-state {
  padding: 1rem;
  background: var(--light);
  border-radius: var(--radius);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    align-self: start;
  }

  .hero-person {
    right: -2rem;
    width: 27rem;
  }

  .intro,
  .highlight {
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
  }

  .finder-layout {
    grid-template-columns: 1fr;
  }

  .results-panel {
    max-height: none;
  }

  .location-list {
    display: grid;
    max-height: 29rem;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .location-card {
    margin: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .site-header,
  .finder-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .brand-logo {
    width: 15rem;
  }

  .hero {
    min-height: auto;
    background: var(--primary);
  }

  .hero-person {
    display: none;
  }

  .hero-stat {
    box-shadow: 8px 8px 0 rgba(102, 215, 209, 0.78);
  }

  .intro,
  .highlight,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-panel {
    border-left-width: 4px;
  }

  .combobox-wrap {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .combobox-wrap input,
  .search-button {
    border-radius: var(--radius);
  }

  .filters {
    align-items: stretch;
    flex-direction: column;
  }

  .filter {
    width: 100%;
  }

  .location-list {
    grid-template-columns: 1fr;
  }

  .map-panel,
  #map {
    min-height: 34rem;
  }

  .map-heading {
    right: 0.7rem;
    left: 3.5rem;
  }

  .highlight-image-wrap {
    margin: 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .map-marker,
  .legend-icon,
  .category-badge {
    border: 2px solid ButtonText;
  }
}
