.floor-map-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Use flexbox for centering content */
  align-items: center;
  justify-content: center;
  z-index: 5003;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  /* Ensure it's above other content */
  background-color: black;
  border: 1px solid #e1e2e6;
  transition: right 0.3s ease;
}

@media (max-height: 500px) {
  .floor-map-container {
    right: auto;
    left: 20px;
  }
}

.floor-map-container.map-shifted:not(.expanded) {
  right: 300px;
}

.floor-map-container.collapsed {
  width: 210px;
  height: 210px;
}

.floor-map-container.hovered {
  width: 354px;
  height: 354px;
}

.floor-map-container.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.canva-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
}
.floor-map-container.expanded .canva-header {
  display: flex;
}
.floor-map-canvas {
  display: block;
  /* Canvas size will be set by JS, but ensure it fills its parent */
  width: 100%;
  height: 100%;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    transform 0.3s ease,
    bottom 0.3s ease,
    right 0.3s ease;
}

.expand-map-btn,
.minimize-map-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.expand-map-btn:hover,
.minimize-map-btn:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.expand-map-btn.hidden,
.minimize-map-btn.hidden {
  display: none;
}

.floor-map-container.expanded .floor-map-title {
  display: block;
}

.floor-map-title {
  display: none;
  font-size: 18px;
  font-weight: bold;
  color: white;
  z-index: 1002;
  /* Ensure title is above other content */
}

#full-screen-action-blocker {
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5002;
}
