.ihp-front-stage {
  position: relative;
  width: 100%;
}

.ihp-front-image {
  width: 100%;
  height: auto;
  display: block;
}

.ihp-front-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* polygons */
.ihp-front-poly {
    fill: rgb(202 234 212 / 26%);
    cursor: pointer;
    outline: none;
    stroke: rgb(49 73 56 / 60%);
    stroke-width: 1;
}

.ihp-front-poly[data-status="optie"] {
    fill: rgb(241 200 136 / 26%);
    cursor: pointer;
    outline: none;
    stroke: rgb(192 138 52);
    stroke-width: 1;
}

.ihp-front-poly[data-status="verkocht"] {
    fill: rgb(234 202 202 / 26%);
    cursor: pointer;
    outline: none;
    stroke: rgb(191 56 56 / 60%);
    stroke-width: 1;
}

.ihp-front-poly:focus {
  outline: none;
}

/* hover */
.ihp-front-poly:hover, .ihp-front-poly:focus, .ihp-front-poly.is-active {
    fill: rgb(255 255 255 / 50%);
    cursor: pointer;
    outline: none;
    stroke: rgb(255 255 255 / 85%);
    stroke-width: 1;
}

/* active
.ihp-front-poly.is-active {
  fill: rgba(0, 123, 255, 0.22);
  stroke: rgba(0, 123, 255, 1);
  stroke-width: 0.8;
}
*/

/* keyboard focus, without browser rectangle */
.ihp-front-poly:focus-visible {
  fill: rgba(0, 123, 255, 0.12);
  stroke: rgba(0, 123, 255, 0.9);
  stroke-width: 0.8;
}

/* panel container */
.ihp-front-panels {
  margin-top: 12px;
}

.ihp-front-panel {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.ihp-front-panel-title {
  font-weight: 600;
  margin-bottom: 8px;
}

/* CTA button */
.ihp-front-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 100px;
    text-decoration: none !important;
    border: 2px solid #8a5a45;
    background: #8a5a45;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
}
.ihp-front-cta:hover, 
.ihp-front-cta:focus {
    text-decoration: none !important;
    border: 2px solid #7f8f84;
    background: #7f8f84;
    color: white;
}

/* Tooltip */
.ihp-tooltip {
    position: absolute;
    z-index: 50;
    max-width: 90vw;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 46px 15px 15px 15px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 380px;
}

.ihp-tooltip[hidden] { display: none; }

.ihp-tooltip-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  /* background: transparent; */
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* In tooltip mode: panels niet tonen (maar ze blijven als databron) */
.ihp-front[data-mode="tooltip"] .ihp-front-panels {
  display: none;
}

.ihp-front-post-id {
  margin-top: 10px;
  font-size: 14px;
}

@media screen and (max-width: 767px){
  .ihp-tooltip{
    position: relative;
    width: 100%;
    margin: 0;
    margin-bottom: 1.5rem;
    margin-top: -90%;
    max-width: 100%;
    left: 0 !important;
    transform: unset !important;
    zoom: 0.85;
  }
}