.hostpot-container img {
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.block-hotspot-block h2 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: #17428c;
  text-align: left;
}

.block-hotspot-block p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: "Roboto", sans-serif;
  text-align: left;
  font-weight: 300;
  max-width: 900px;
}

/* --- Base Container Setup --- */
.hostpot-container {
  position: relative;
  width: 100%;
  overflow: hidden; /* Prevents overflow if image scales */
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 40px;
  z-index: 1;
}

.house-bg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* --- Hotspot Wrapper --- */
/* This is the anchor point. We position this using % on the image */
.hotspot-wrap {
  position: absolute;
  width: 40px;
  height: 40px;
  /* Center the hotspot on the coordinate */
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* --- The Orange Plus Button --- */
.hotspot {
  width: 30px;
  height: 30px;
  background-color: #17428c; /* Saint-Gobain Blue */
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(248, 153, 29, 0.7);
  transition: all 0.3s ease;
  position: relative;
  z-index: 6;
}

/* Pulse animation for the button */
.hotspot-wrap:hover .hotspot {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(248, 153, 29, 0.8);
}

/* --- The Connector Line --- */
.connector-line {
  width: 2px;
  height: 0px; /* Start hidden */
  background-color: #fff;
  position: absolute;
  bottom: 30px; /* Starts right above the dot */
  left: 50%;
  transform: translateX(-50%);
  transition: height 0.3s ease; /* Animate the line growth */
  z-index: 7;
}

/* --- The Popover Box (Hidden by default) --- */
.hotspot-popover {
  position: absolute;
  bottom: 80px; /* Initial position slightly lower */
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transition-delay: 0.1s; /* Wait slightly for line to start growing */
  z-index: 999;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.custom-popover-body {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}

/* Left side (Dark Blue Text) */
.popover-label {
  background-color: #163a72; /* Saint-Gobain Blue */
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
  width: 50%;
}

/* Right side (White Logo) */
.popover-logo {
  background-color: #fff;
  width: 50%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popover-logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- HOVER EFFECTS ( The Animation ) --- */

/* 1. Grow the line */
.hotspot-wrap:hover .connector-line {
  height: 50px; /* Distance between dot and box */
}

/* 2. Show the popover */
.hotspot-wrap:hover .hotspot-popover {
  opacity: 1;
  visibility: visible;
  bottom: 80px; /* Final position matches line height + offset */
}

/* --- Specific Positions for Spots --- */
/* You adjust top/left percentages based on your image */

/* Spot 1: Glass Balcony (Top Left) */
.spot-1 {
  top: 38%;
  left: 21%;
}

/* Spot 2: Skylight (Top middle-ish) */
.spot-2 {
  top: 45%;
  left: 24%;
}

/* Spot 3: UPVC Windows (Center Left - The Main Example) */
.spot-3 {
  top: 74%;
  left: 81%;
} /* done */

/* Spot 4: Glass Partitions (Inside room) */
.spot-4 {
  top: 65%;
  left: 67%;
}

/* Spot 5: Dining Setup (Table) */
.spot-5 {
  top: 68%;
  left: 57%;
}

.spot-6 {
  top: 95%;
  left: 73%;
} /* done */

.spot-7 {
  top: 35%;
  left: 30%;
}

.spot-8 {
  top: 52%;
  left: 35%;
}

.spot-9 {
  top: 44%;
  left: 64%;
} /* done */

.spot-10 {
  top: 91%;
  left: 21%;
}

.spot-11 {
  top: 81%;
  left: 29%;
}

.spot-12 {
  top: 64%;
  left: 25%;
} /* done */

.spot-13 {
  top: 66%;
  left: 73%;
} /* done */

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .hotspot {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .hotspot-popover {
    width: 200px;
  }

  .popover-label {
    font-size: 12px;
  }

  .block-hotspot-block h2 {
    font-size: 24px;
    line-height: 1.5;
  }
}

.hotspot-point {
  position: absolute;
}
