/* =======================================================
   LEKKERWEG UITJESKAART
   Gebruikt de huisstijl-variabelen van de site (--lw-*).
   Staan die er niet, dan gelden de waarden na de komma.
   ======================================================= */

.lw-map-app {
  --lw-map-accent: var(--lw-accent, #4F7FA6);
  --lw-map-accent-dark: var(--lw-accent-dark, #3F6B8F);
  --lw-map-accent-soft: var(--lw-accent-soft, #F3EEE8);
  --lw-map-accent-brd: var(--lw-accent-brd, #E2D8CC);
  --lw-map-me: #e05a3a;
  --lw-map-ink: var(--lw-ink, #1F2A44);
  --lw-map-muted: var(--lw-muted, #5E6F7D);
  --lw-map-border: var(--lw-border, #E1DCD4);
  --lw-map-radius: var(--lw-radius, 18px);
  --lw-map-shadow: var(--lw-shadow, 0 6px 18px rgba(0,0,0,.06));
  --lw-map-shadow-strong: var(--lw-shadow-strong, 0 16px 40px rgba(0,0,0,.10));
  color: var(--lw-map-ink);
  max-width: 1200px;
  margin: 0 auto;
}

.lw-map-app *,
.lw-map-app *::before,
.lw-map-app *::after { box-sizing: border-box; }

/* ---- Zoekblok (zelfde look als .lw-card) ---- */

.lw-map-search {
  background: #fff;
  border: 1px solid var(--lw-map-border);
  border-radius: var(--lw-map-radius);
  padding: 20px 22px;
  box-shadow: var(--lw-map-shadow);
  margin-bottom: 18px;
}

.lw-map-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lw-map-ink);
  margin: 0 0 14px;
}

.lw-map-row { display: flex; gap: 10px; flex-wrap: wrap; }

.lw-map-app .lw-map-row input,
.lw-map-app .lw-map-row select {
  min-height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #e3e8ee;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--lw-map-ink);
  font-size: 15.5px;
  font-family: inherit;
  box-shadow: none;
  outline: none;
}

.lw-map-app .lw-map-row input { flex: 1 1 220px; min-width: 0; }
.lw-map-app .lw-map-row select { width: auto; padding-right: 34px; cursor: pointer; }

.lw-map-app .lw-map-row input:focus,
.lw-map-app .lw-map-row select:focus {
  background: #fff;
  border-color: #bfd4e7;
  box-shadow: 0 0 0 3px rgba(95,143,185,0.12);
}

.lw-map-app .lw-map-go {
  min-height: 52px;
  min-width: 140px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--lw-map-accent-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s ease;
}

.lw-map-app .lw-map-go:hover,
.lw-map-app .lw-map-go:focus { background: #2F5677 !important; }

.lw-map-app .lw-map-link {
  display: inline-block;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none !important;
  box-shadow: none;
  color: var(--lw-map-accent-dark) !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Categorie-chips (zelfde look als .lw-chip) ---- */

.lw-map-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lw-map-cats:empty { display: none; }

.lw-map-app .lw-map-cats button {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid #d9e3ec;
  border-radius: 999px;
  background: #fff;
  color: #2f4f6b !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  box-shadow: var(--lw-map-shadow);
  cursor: pointer;
  transition: all .2s ease;
}

.lw-map-app .lw-map-cats button:hover {
  background: #eef5fb;
  border-color: var(--lw-map-accent);
  color: var(--lw-map-accent-dark) !important;
  transform: translateY(-1px);
}

.lw-map-app .lw-map-cats button.is-active {
  background: var(--lw-map-accent);
  border-color: var(--lw-map-accent);
  color: #fff !important;
}

.lw-map-msg {
  margin: 12px 0 0;
  min-height: 1em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lw-map-muted);
}
.lw-map-msg:empty { display: none; }

/* ---- Resultaatbalk boven de kaart ---- */

.lw-map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #eef5fb;
  border: 1px solid #d5e4f1;
  color: var(--lw-map-ink);
  font-size: 15px;
  line-height: 1.45;
}

.lw-map-summary[hidden] { display: none; }
.lw-map-summary strong { color: var(--lw-map-accent-dark); }

.lw-map-app .lw-map-tolist {
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--lw-map-accent) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.lw-map-app .lw-map-tolist:hover { background: var(--lw-map-accent-dark) !important; }

/* ---- Kaart ---- */

.lw-map {
  height: 460px;
  border: 1px solid var(--lw-map-border);
  border-radius: var(--lw-map-radius);
  box-shadow: var(--lw-map-shadow);
  overflow: hidden;
  z-index: 0;
}

.lw-map-app .leaflet-container { font-family: inherit; }
.lw-map-app .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--lw-map-shadow-strong); }
.lw-map-app .leaflet-popup-content { margin: 12px 14px; }

.lw-map-popup { min-width: 180px; color: var(--lw-map-ink); font-size: 13.5px; line-height: 1.5; }
.lw-map-popup img { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.lw-map-popup strong { display: block; font-size: 14.5px; line-height: 1.3; margin-bottom: 2px; }
.lw-map-popup .lw-map-pop-meta { color: var(--lw-map-muted); }
.lw-map-popup .lw-map-pop-links { display: flex; gap: 12px; margin-top: 8px; }
.lw-map-app .lw-map-popup a { color: var(--lw-map-accent-dark) !important; font-weight: 700; text-decoration: none; }
.lw-map-app .lw-map-popup a:hover { text-decoration: underline; }

/* ---- Resultatenlijst ---- */

.lw-map-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }

.lw-map-app .lw-map-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--lw-map-border);
  border-radius: var(--lw-map-radius);
  box-shadow: var(--lw-map-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.lw-map-app .lw-map-list li::before { display: none; content: none; }

.lw-map-app .lw-map-list li:hover { transform: translateY(-2px); box-shadow: var(--lw-map-shadow-strong); }

.lw-map-list img { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border-radius: 12px; }

.lw-map-info { flex: 1 1 auto; min-width: 0; }

.lw-map-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--lw-map-ink);
}

.lw-map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
  color: var(--lw-map-muted);
}

.lw-map-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #cfe3f4;
  color: #4A79A1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.lw-map-dist { font-weight: 600; color: var(--lw-map-ink); }

/* Knoppen: Bekijk = .cta-alt, Route = .cta */
.lw-map-btns { display: flex; gap: 8px; flex: 0 0 auto; }

.lw-map-app .lw-map-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}

.lw-map-app .lw-map-btns a.lw-map-view {
  background: #fff;
  border: 1px solid var(--lw-map-accent-brd);
  color: var(--lw-map-accent-dark) !important;
}

.lw-map-app .lw-map-btns a.lw-map-view:hover { background: var(--lw-map-accent-soft); }

.lw-map-app .lw-map-btns a.lw-map-route {
  background: var(--lw-map-accent);
  border: 1px solid var(--lw-map-accent);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 12px rgba(79,127,166,.25);
}

.lw-map-app .lw-map-btns a.lw-map-route:hover { background: var(--lw-map-accent-dark); transform: translateY(-1px); }

.lw-map-app .lw-map-more {
  display: block;
  margin: 18px auto 0;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--lw-map-accent-brd);
  border-radius: 999px;
  background: #fff;
  color: var(--lw-map-accent-dark) !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: var(--lw-map-shadow);
  cursor: pointer;
}

.lw-map-app .lw-map-more:hover { background: var(--lw-map-accent-soft); }
.lw-map-app .lw-map-more[hidden] { display: none; }

/* ---- Mobiel ---- */

@media (max-width: 782px) {
  /* Categorieen op 1 regel, horizontaal vegen */
  .lw-map-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 14px -16px 0;
    padding: 2px 16px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
  }
  .lw-map-cats::-webkit-scrollbar { display: none; }
  .lw-map-app .lw-map-cats button {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 13px;
    box-shadow: none;
  }
  .lw-map-app .lw-map-cats button:hover { transform: none; }
}

@media (max-width: 600px) {
  .lw-map { height: 340px; }
  .lw-map-summary { font-size: 14px; padding: 10px 12px; }
  .lw-map-search { padding: 16px; }
  .lw-map-label { font-size: 18px; }
  .lw-map-app .lw-map-go { flex: 1 1 100%; }
  .lw-map-app .lw-map-row select { flex: 1 1 auto; }
  .lw-map-app .lw-map-list li { flex-wrap: wrap; align-items: flex-start; }
  .lw-map-list img { width: 56px; height: 56px; flex-basis: 56px; }
  .lw-map-info { flex-basis: calc(100% - 70px); }
  .lw-map-btns { width: 100%; }
  .lw-map-app .lw-map-btns a { flex: 1; }
}
