body {
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#floorPanel {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fe9148f3; /* Navy blue semi-transparent */
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
}

.floorBtn {
    background-color: #fe9148f3; /* Navy blue */
    color: white;
    border: none;
    padding: 15px 20px; /* Bigger buttons */
    cursor: pointer;
    font-size: 18px; /* Bigger text */
    border-radius: 5px;
    transition: background 0.3s;
    min-width: 80px; /* Ensure uniform width */
}

.floorBtn:hover {
    background-color: #000000;
}

/* If more than 5 floors, enable scrolling */
#floorPanel::-webkit-scrollbar {
    width: 8px;
}

#floorPanel::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

#floorPanel::-webkit-scrollbar-track {
    background: #222;
}

/* Mobile styles (screen width 768px and below) */
@media (max-width: 768px) {
  #floorPanel {
    transform: scale(0.8); /* Reduce size */
    top: 5px;
    right: 5px;
    padding: 5px;
  }

  .floorBtn {
    font-size: 12px;       /* Smaller text */
    padding: 2px 4px;     /* Less padding */
    margin: 3px 0;    
  }
}

/* Mobile styles (screen width 700px and below) */
@media (max-width: 700px) {
  #floorPanel {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fe9148f3;
    border-radius: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    padding: 6px 8px;
    z-index: 1000;
    width: 96vw;
    min-width: 0;
    max-width: 99vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #fe9148f3 #eee;
    justify-content: space-between;
  }
  #floorPanel::-webkit-scrollbar {
    height: 6px;
  }
  #floorPanel::-webkit-scrollbar-thumb {
    background: #fe9148f3;
    border-radius: 3px;
  }
  #floorPanel::-webkit-scrollbar-track {
    background: #eee;
  }
  .floorBtn {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 14px;
    border-radius: 20px;
    margin: 0 2px;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    min-width: 60px;
    white-space: nowrap;
    flex: 1 1 0;
    text-align: center;
  }
  .floorBtn:active, .floorBtn.selected {
    background: #fff;
    color: #fe9148f3;
  }
}

/* Right-side floor options panel */
#floorOptionsPanel {
  position: fixed;
  display: none;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background-color:    #fe9148f3;
 /* Navy blue semi-transparent */
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#floorOptionsPanel.active {
  display: flex !important;
}

#floorOptionsPanel h4 {
  margin-top: 0;
}

#floorOptionsPanel button {
  margin-bottom: 6px;
  width: 100%;
  padding: 6px 10px;
  cursor: pointer;
}

.popup {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  background-color: #ffffff;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  border: 1px solid #d9e0ec;
  z-index: 1000;
  width: 320px;
  font-family: 'Segoe UI', sans-serif;
}

.popup h3 {
  font-size: 28px;
  color: #1a2d5a; /* Elegant navy blue */
  margin-bottom: 12px;
}

.popup p {
  font-size: 20px;
  color: #1a2d5a;
  margin-bottom: 24px;
}

.popup .close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 18px;
}

.popup button {
   background-color: #1a2d5a;       
  color: #fff;                     /* White text */
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 10px;
  margin: 10px; 
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
}

.popup button:hover {
 background-color: #2b447a;   
}

#walkthroughBtn {
position: absolute;
top: 20px;
left: 20px;
padding: 10px 20px;
font-size: 18px;
z-index: 1;
background-color: #222;
color: white;
border: none;
cursor: pointer;
}

#walkthroughBtn:hover {
  background-color: #444;
}

/* Mobile styles (screen width 700px and below) */
@media (max-width: 700px) {
  #floorOptionsPanel {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: auto;
    top: auto;
    transform: none;
    background-color: #fe9148f3;
    border-radius: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    padding: 6px 6px 6px 6px;
    z-index: 1000;
    width: auto;
    min-width: unset;
    max-width: 98vw;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-start;
  }
  #floorOptionsPanel.active {
    display: flex !important;
  }
  #floorOptionsPanel h4 {
    display: none;
  }
  #floorOptionsPanel button {
    width: auto;
    min-width: unset;
    max-width: 90vw;
    padding: 6px 8px;
    border-radius: 16px;
    margin: 2px 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    background: none;
    border: none;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    text-align: center;
  }
  #floorOptionsPanel button:active, #floorOptionsPanel button.selected {
    background: #fff;
    color: #fe9148f3;
  }
  #floorOptionsPanel::-webkit-scrollbar {
    width: 4px;
  }
  #floorOptionsPanel::-webkit-scrollbar-thumb {
    background: #fe9148f3;
    border-radius: 2px;
  }
  #floorOptionsPanel::-webkit-scrollbar-track {
    background: #eee;
  }
}

.apartmentBtn {
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  background-color: #fe9148f3;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;
  white-space: wrap;
  text-align: left;
}
.apartmentBtn:hover, .apartmentBtn:active {
  background: #fff;
  color: #fe9148f3;
}
