.bh-map {
  --bh-paper: #fbfaf6;
  --bh-white: #fffdf9;
  --bh-ink: #26342c;
  --bh-muted: #68746b;
  --bh-line: #dcd6c8;
  --bh-moss: #536d52;
  --bh-sand: #e7dcc7;
  --bh-water: #d7e8ea;
  --bh-shadow: 0 18px 45px rgba(53, 63, 52, .16);
  color: var(--bh-ink);
  background: var(--bh-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bh-map * {
  box-sizing: border-box;
}

.bh-map__intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px) 18px 18px;
}

.bh-map__eyebrow {
  margin: 0 0 10px;
  color: #b98258;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
}

.bh-map__title {
  margin: 0;
  max-width: 800px;
  color: #23372b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.bh-map__lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--bh-muted);
  font-size: 17px;
  line-height: 1.65;
}

.bh-map__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.bh-map__pill,
.bh-map__button,
.bh-map__drawer-close {
  min-height: 42px;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  background: var(--bh-white);
  color: var(--bh-ink);
  padding: 10px 15px;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.bh-map__pill:hover,
.bh-map__button:hover {
  transform: translateY(-1px);
}

.bh-map__pill.is-active {
  background: #edf2e8;
  border-color: #9caf96;
  color: var(--bh-moss);
}

.bh-map__mobilebar {
  display: none;
  max-width: 1180px;
  margin: 10px auto;
  padding: 0 18px;
  justify-content: space-between;
  gap: 10px;
}

.bh-map__shell {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.bh-map__filters {
  align-self: start;
  border: 1px solid rgba(91, 103, 91, .18);
  border-radius: 8px;
  background: rgba(255, 253, 249, .78);
  padding: 16px;
}

.bh-map__filters h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bh-map__filter-list {
  display: grid;
  gap: 9px;
}

.bh-map__filter {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bh-muted);
  font-size: 14px;
}

.bh-map__filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--bh-moss);
}

.bh-map__stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(91, 103, 91, .18);
  border-radius: 8px;
  background: linear-gradient(180deg, #eef6f4 0%, #fbfaf6 68%);
  box-shadow: var(--bh-shadow);
}

.bh-map__stage::before {
  content: "Europa-kaart laden...";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(91, 103, 91, .18);
  border-radius: 999px;
  background: rgba(255, 253, 249, .92);
  color: var(--bh-muted);
  padding: 11px 16px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.bh-map__stage.is-loading::before {
  opacity: 1;
}

.bh-map__leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d7e8ea;
}

.bh-map__leaflet .leaflet-control-zoom {
  margin-top: 78px;
  margin-left: 16px;
  border: 1px solid rgba(91, 103, 91, .2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(53, 63, 52, .08);
}

.bh-map__leaflet .leaflet-control-zoom a {
  color: var(--bh-moss);
  background: rgba(255, 253, 249, .94);
  border-color: rgba(91, 103, 91, .16);
}

.bh-map__leaflet .leaflet-control-attribution {
  background: rgba(255, 253, 249, .78);
  color: rgba(67, 82, 67, .75);
  font-size: 10px;
}

.bh-map__toolbar {
  position: absolute;
  z-index: 8;
  left: 16px;
  top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bh-map__status {
  border: 1px solid rgba(91, 103, 91, .2);
  background: rgba(255, 253, 249, .9);
  color: var(--bh-muted);
}

.bh-map__status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}

.bh-map__atlas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.bh-map__south {
  fill: #eef1df;
  opacity: .54;
}

.bh-map__land {
  fill: var(--bh-sand);
  stroke: rgba(105, 110, 86, .45);
  stroke-width: 1.4;
}

.bh-map__land-muted {
  fill: rgba(231, 220, 199, .72);
  stroke: rgba(105, 110, 86, .28);
  stroke-width: 1.1;
}

.bh-map__atlas-line {
  fill: none;
  stroke: rgba(83, 109, 82, .28);
  stroke-width: 1.1;
  stroke-dasharray: 5 7;
}

.bh-map__sea-label,
.bh-map__note {
  pointer-events: none;
  fill: rgba(57, 82, 86, .58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.bh-map__note {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-style: normal;
  fill: rgba(67, 82, 67, .62);
}

.bh-map__region {
  cursor: pointer;
}

.bh-map__region circle {
  fill: rgba(123, 146, 116, .28);
  stroke: rgba(83, 109, 82, .62);
  stroke-width: 1.3;
}

.bh-map__region.is-active circle,
.bh-map__region:hover circle {
  fill: rgba(123, 146, 116, .48);
}

.bh-map__region text {
  text-anchor: middle;
  fill: #40513f;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 253, 249, .9);
  stroke-width: 4px;
}

.bh-map__marker {
  cursor: pointer;
  transition: transform .2s ease;
}

.bh-map__marker:hover,
.bh-map__marker.is-active {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.15);
}

.bh-map__marker circle {
  fill: var(--bh-white);
  stroke: var(--bh-moss);
  stroke-width: 2;
  filter: drop-shadow(0 5px 10px rgba(53, 63, 52, .22));
}

.bh-map__marker text {
  text-anchor: middle;
  dominant-baseline: central;
  fill: var(--bh-moss);
  font-size: 18px;
  font-weight: 900;
}

.bh-map-region-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.bh-map-region-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(83, 109, 82, .38);
  border-radius: 999px;
  background: rgba(255, 253, 249, .9);
  color: #40513f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(53, 63, 52, .15);
  white-space: nowrap;
}

.bh-map-region-marker strong {
  margin-left: 4px;
  color: var(--bh-moss);
}

.bh-map-region-marker.is-active span,
.bh-map-region-marker span:hover {
  background: #edf2e8;
  border-color: rgba(83, 109, 82, .65);
}

.bh-map-house-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.bh-map-house-marker button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.bh-map-house-marker span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bh-moss);
  border-radius: 50%;
  background: var(--bh-white);
  box-shadow: 0 7px 16px rgba(53, 63, 52, .25);
}

.bh-map-house-marker span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bh-moss);
}

.bh-map-house-marker.is-active span,
.bh-map-house-marker button:hover span,
.bh-map-house-marker button:focus-visible span {
  transform: scale(1.16);
  background: #edf2e8;
}

.bh-map-house-marker button:focus-visible {
  outline: 2px solid rgba(83, 109, 82, .65);
  outline-offset: 2px;
}

.bh-map__drawer {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(390px, 42%);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(91, 103, 91, .18);
  background: rgba(255, 253, 249, .97);
  box-shadow: -18px 0 50px rgba(53, 63, 52, .16);
  transform: translateX(104%);
  transition: transform .28s ease;
}

.bh-map__drawer.is-open {
  transform: translateX(0);
}

.bh-map__drawer-image {
  min-height: 210px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .45), transparent 28%),
    linear-gradient(135deg, #d6e1d0, #b8c9ba 48%, #e9d6ba);
  background-size: cover;
  background-position: center;
}

.bh-map__drawer-body {
  padding: 22px;
  overflow: auto;
}

.bh-map__drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bh-map__drawer h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
}

.bh-map__drawer-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
}

.bh-map__drawer-location {
  color: var(--bh-muted);
  margin: 8px 0 16px;
}

.bh-map__drawer-summary {
  color: #435044;
  line-height: 1.6;
}

.bh-map__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.bh-map__badges span {
  border-radius: 999px;
  background: #edf2e8;
  color: var(--bh-moss);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
}

.bh-map__cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  align-items: center;
  border-radius: 999px;
  background: var(--bh-moss);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.bh-map__seo-links {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 22px 18px 56px;
}

.bh-map__seo-links h3 {
  margin: 0 0 12px;
}

.bh-map__seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bh-map__seo-grid a {
  padding: 13px 14px;
  border: 1px solid rgba(91, 103, 91, .18);
  border-radius: 8px;
  background: rgba(255, 253, 249, .72);
  color: var(--bh-moss);
  text-decoration: none;
}

@media (max-width: 920px) {
  .bh-map__mobilebar {
    display: flex;
  }

  .bh-map__shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .bh-map__filters {
    position: fixed;
    z-index: 30;
    left: 14px;
    right: 14px;
    bottom: 14px;
    transform: translateY(120%);
    transition: transform .25s ease;
    box-shadow: var(--bh-shadow);
  }

  .bh-map__filters.is-open {
    transform: translateY(0);
  }

  .bh-map__stage {
    min-height: calc(100svh - 230px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .bh-map__leaflet .leaflet-control-zoom {
    margin-top: 86px;
    margin-left: 10px;
  }

  .bh-map__drawer {
    top: auto;
    width: 100%;
    height: min(76vh, 620px);
    border-left: 0;
    border-top: 1px solid rgba(91, 103, 91, .18);
    transform: translateY(104%);
  }

  .bh-map__drawer.is-open {
    transform: translateY(0);
  }

  .bh-map__seo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .bh-map__intro {
    padding-top: 24px;
  }

  .bh-map__title {
    font-size: 38px;
  }

  .bh-map__lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .bh-map__themes {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bh-map__toolbar {
    left: 10px;
    right: 10px;
  }

  .bh-map__status {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .bh-map-region-marker span {
    min-width: 78px;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .bh-map-house-marker button {
    width: 44px;
    height: 44px;
  }

  .bh-map__drawer h3 {
    font-size: 24px;
  }

  .bh-map__seo-grid {
    grid-template-columns: 1fr;
  }
}
