
/* ===== Wide container ===== */
.wide-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  background: var(--bg-light);
}

/* ===== Fotoblok ===== */
.wide-container .photo-block {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg-light);
}

.wide-container .photo-block img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Tekstblok ===== */
/* Tekstblok: inhoud bovenaan, onderste foto onderaan */
.wide-container .text-block {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--txtwidth, 35%);
  min-width: 0;
  box-sizing: border-box;
  padding-left: 1rem;
  background: var(--bg-light);
}
/* Foto onderaan het tekstblok */
.wide-container .text-block > img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: 1rem;
}

/* ===== Tekst links, foto rechts ===== */
.wide-container.textleft .text-block {
  order: 1;
  padding-left: 1rem;
}

.wide-container.textleft .photo-block {
  order: 2;
  margin-left: 1rem;
}


/* ===== Mobiele weergave ===== */
@media (max-width: 1000px) {

  /* Blokken onder elkaar */
  .wide-container {
    flex-direction: column;
  }

  /* Foto linksboven behoudt originele verhouding */
  .wide-container .photo-block {
    order: 1;
    width: 100%;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .wide-container .photo-block img {
    width: 100%;
    height: auto;
  }

  /* Tekstblok krijgt natuurlijke hoogte */
  .wide-container .text-block {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Onderste foto direct na de tekst */
  .wide-container .text-block > img {
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    height: auto;
  }

  /* Ook bij .textleft blijft de foto bovenaan */
  .wide-container.textleft .photo-block {
    order: 1;
    margin-left: 0;
  }

  .wide-container.textleft .text-block {
    order: 2;
  }
}




/* ===== Foto met SVG-overlay ===== */

/* Container onderaan het tekstblok */
.wide-container .plan-image {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 1rem;
    box-sizing: border-box;
}

/* Foto en SVG krijgen exact dezelfde afmetingen */
.wide-container .plan-image-stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1180 / 780;
    overflow: hidden;
    line-height: 0;
}

/* Foto en SVG vullen exact dezelfde ruimte */
.wide-container .plan-image-stage > img,
.wide-container .plan-image-stage > .map-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* De foto wordt niet verschoven of bijgesneden */
.wide-container .plan-image-stage > img {
    object-fit: fill;
}


/* SVG exact over de foto */
.wide-container .plan-image-stage > .map-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Standaard alle vormen verbergen */
.wide-container .map-overlay .shade-shapes path,
.wide-container .map-overlay .contour-shapes path {
    display: none;
}

/* Geselecteerde donkere vorm */
.wide-container .map-overlay.highlight-vb32 .shade-shapes .vb32,
.wide-container .map-overlay.highlight-vb36 .shade-shapes .vb36,
.wide-container .map-overlay.highlight-vb06 .shade-shapes .vb06 {
    display: inline;
    fill: #000;
    fill-opacity: 0.48;
}

/* Geselecteerde witte contour */
.wide-container .map-overlay.highlight-vb32 .contour-shapes .vb32,
.wide-container .map-overlay.highlight-vb36 .contour-shapes .vb36,
.wide-container .map-overlay.highlight-vb06 .contour-shapes .vb06 {
    display: inline;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linejoin: round;
}


/* Mobiel: foto direct na de tekst */
@media (max-width: 1000px) {
    .wide-container .plan-image {
        margin-top: 0;
        padding-top: 0;
    }
}
