/* ===========================
   Floor Map
   =========================== */
.floor-map {
  background: #fff;
}

.floor-map__tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.floor-map__tab {
  background: none;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.floor-map__tab--active {
  color: var(--anz-teal);
  border-bottom-color: var(--anz-teal);
}

.floor-map__tab:hover {
  color: var(--anz-teal);
}

.floor-map__wrapper {
  position: relative;
}

.floor-map__floor {
  display: none;
}

.floor-map__floor--active {
  display: block;
}

.floor-map__img-wrap {
  position: relative;
  width: 100%;
}

.floor-map__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Clickable areas */
.floor-map__area {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.floor-map__area:hover {
  border-color: var(--anz-teal);
  background: rgba(26, 94, 94, 0.08);
}

.floor-map__area--info:hover {
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
  cursor: default;
}

.floor-map__label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--anz-teal);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floor-map__area:hover .floor-map__label {
  opacity: 1;
}

/* Hover preview */
.floor-map__preview {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.floor-map__preview--visible {
  opacity: 1;
  visibility: visible;
}

.floor-map__preview-img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .floor-map__tab {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .floor-map__label {
    font-size: 0.6rem;
    bottom: -20px;
  }

  .floor-map__preview-img {
    width: 150px;
    height: 112px;
  }

  .floor-map__area:hover {
    border-color: var(--anz-teal);
    background: rgba(26, 94, 94, 0.12);
  }

  .floor-map__label {
    opacity: 1;
  }
}
