.vfab-map-wrap {
  margin: 1.5rem 0;
}

.vfab-map-stage {
  position: relative;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.vfab-map-image-wrap {
  position: relative;
}

.vfab-hotspot-menu {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
  width: min(280px, calc(100% - 32px));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.vfab-hotspot-menu-title {
  padding: 12px 14px 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.vfab-hotspot-menu-list {
  display: flex;
  flex-direction: column;
  padding: 0 8px 8px;
  gap: 4px;
}

.vfab-hotspot-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  font-size: 14px;
}

.vfab-hotspot-menu-item:hover {
  background: rgba(226, 232, 240, 0.75);
}

.vfab-hotspot-menu-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

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

.vfab-map-empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.vfab-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vfab-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 14px;
  line-height: 1.4;
}

.vfab-map-stage.theme-dark .vfab-tooltip {
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
}

.vfab-map-stage.theme-light .vfab-tooltip {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border: 1px solid #e5e7eb;
}

.vfab-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vfab-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.vfab-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.vfab-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.vfab-block-placeholder {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 960px) {
  .vfab-hotspot-menu {
    position: static;
    width: 100%;
    margin: 12px 0;
  }
}
