/* Container */
.nhv-projects-map-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Raleway', sans-serif;
}

#nhv-projects-map {
  background: transparent;
}

/* Verberg standaard Leaflet-attributie wanneer we geen tiles tonen */
#nhv-projects-map .leaflet-control-attribution {
  display: none;
}

/* Foutmelding bij laden geojson */
.nhv-projects-map-error {
  padding: 12px 16px;
  margin: 12px;
  border-radius: 8px;
  background: rgba(167, 119, 82, 0.12);
  color: #5a3a22;
  font-size: 14px;
  line-height: 1.5;
}

/* Crawlbare linklijst onder de kaart */
.nhv-projects-map-seo-links {
  width: 100%;
  max-width: 850px;
  margin-top: 24px;
  padding: 0 8px;
  box-sizing: border-box;
}

.nhv-projects-map-seo-links__box {
  background: #faf8f5;
  border: 1px solid rgba(167, 119, 82, 0.28);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(33, 36, 44, 0.06);
}

.nhv-projects-map-seo-links__nav {
  display: block;
}

.nhv-projects-map-seo-links__intro {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #21242c;
  line-height: 1.4;
}

.nhv-projects-map-seo-links__intro:not(:first-child) {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(167, 119, 82, 0.18);
}

.nhv-projects-map-seo-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nhv-projects-map-seo-links__list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(167, 119, 82, 0.12);
  border: 1px solid rgba(167, 119, 82, 0.22);
  color: #8a613f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nhv-projects-map-seo-links__list a:hover {
  background: #a77752;
  border-color: #a77752;
  color: #faf8f5;
}

/* Marker pin — gemeenschappelijk */
.nhv-map-pin-wrapper {
  background: transparent;
  border: 0;
}

.nhv-map-pin-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}

#nhv-projects-map .leaflet-marker-icon {
  pointer-events: auto !important;
}

.nhv-map-pin {
  cursor: pointer;
  transition: transform 200ms ease;
}

.nhv-map-pin:hover {
  transform: translateY(-2px) scale(1.06);
}

/* Project-marker = klein bronzen stipje */
.nhv-map-pin--project {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eb994f;
  box-shadow:
    0 0 0 3px #faf8f5,
    0 2px 4px rgba(0, 0, 0, 0.25);
}

.nhv-map-pin--project .nhv-map-pin-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #faf8f5;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Branch-marker = grote ronde pin met vestiging-logo */
.nhv-map-pin--branch {
  position: relative;
  width: 45px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nhv-map-pin__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  display: block;
}

.nhv-map-pin__letter {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #a77752;
  line-height: 1;
}

/* Lightbox overlay */
.nhv-map-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.nhv-map-lightbox--visible {
  opacity: 1;
}

.nhv-map-lightbox-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #fff;
  color: #21242c;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: scale(0.94);
  transition: transform 200ms ease;
}

.nhv-map-lightbox--visible .nhv-map-lightbox-card {
  transform: scale(1);
}

.nhv-map-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(33, 36, 44, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(33, 36, 44, 0.95);
  cursor: pointer;
  line-height: 1;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nhv-map-lightbox-image {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: rgba(24, 18, 15, 0.06);
}

.nhv-map-lightbox-city {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(24, 18, 15, 0.65);
  color: #faf8f5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nhv-map-lightbox-body {
  padding: 22px 24px 24px;
  overflow: auto;
}

.nhv-map-lightbox-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #21242c;
}

.nhv-map-lightbox-summary {
  margin: 0 0 14px;
  color: rgba(33, 36, 44, 0.75);
  font-size: 14px;
  line-height: 1.7;
}

.nhv-map-lightbox-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(167, 119, 82, 0.14);
  color: rgba(33, 36, 44, 0.95);
  font-size: 13px;
  font-weight: 600;
}

.nhv-map-lightbox-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nhv-map-lightbox-actions {
  margin: 16px 0 0;
}

.nhv-map-lightbox-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 9999px;
  background: #a77752;
  color: #faf8f5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nhv-map-lightbox-link:hover {
  background: #8a613f;
  color: #faf8f5;
}

@media (max-width: 600px) {
  .nhv-map-lightbox-image {
    height: 220px;
  }

  .nhv-map-lightbox-title {
    font-size: 18px;
  }
}
