.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.floorplan-wrapper {
  flex: 1 1 100%;
  max-width: 600px;
  position: relative;
}

.responsive-floorplan {
  position: relative;
  width: 100%;
  height: auto;
}

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

.highlight-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -10px; /* space below tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
.fp-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -100%);
  display: none;
}
.tooltip {
  position: absolute;
  padding: 6px 10px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  transform: translate(-50%, -100%);
  display: none;
}
.fp-instance-1,
.fp-instance-2 {
  position: relative;
}
.preview {
  flex: 1 1 100%;
  max-width: 500px;
}

.preview img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 20px 20px 0px 0px;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.thumbnails img {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: 0px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}
.thumbnails img:first-child {
  border-bottom-left-radius: 20px;
}

.thumbnails img:last-child {
  border-bottom-right-radius: 20px;
}
.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border: 2px solid #ccc;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    gap: 1rem;
  }
}
