html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.floorplan-container {
  position: relative;
  display: block;
  max-width: 300px;   /* Set your desired max width */
  width: 100%;
  margin: 20px auto;
  max-height: 100vh;
  overflow: hidden;
}

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

.floorplan-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.apartment {
  fill: rgba(0, 0, 0, 0.07); /* 7% opacity black */
  stroke: none;               /* No outline */
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s;
}

.apartment:hover {
  fill: rgba(0, 0, 0, 0.2);   /* Slightly darker on hover */
}

.label {
  font-size: 8px;
  fill: #222;
  pointer-events: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 1000;
  text-anchor: middle;
  dominant-baseline: middle;
}

.slider-container {
  position: absolute;
  bottom: 50px;    /* 50px from bottom */
  right: 10px;     /* 10px from right */
  z-index: 10;
}

.floor-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 40px;
  margin: 5px 0;
}

.switch.vertical {
  width: 22px;
  height: 40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ddd;
  transition: .4s;
  border-radius: 22px;
}

.slider.vertical {
  border-radius: 11px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
  background-color: #ddd;
}

input:checked + .slider:before {
  transform: translateY(-21px);
}

.floor-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 100;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 2px 0;
  white-space: nowrap;
}

.floor-label.top {
  color: #333;
}

.floor-label.bottom {
  color: #333;
}