* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
}
html, body {
  height: 100%;
}
/* HEADER */
.header {
  background: #1e293b;
  color: white;
  padding: 10px;
  text-align: center;
}

/* MAIN LAYOUT */
.app-layout {
  display: flex;
  height: calc(100vh - 50px);
}

/* LEFT PANEL */
.sidebar {
  width: 280px;
  background: #f1f5f9;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid #cbd5e1;
}

.sidebar h3 {
  margin: 12px 0 6px;
  font-size: 14px;
  color: #334155;
}

.sidebar input,
.sidebar button {
  width: 100%;
  padding: 8px;
  margin-bottom: 6px;
}

.floor-buttons button,
.zoom-buttons button {
  margin-bottom: 6px;
}

/* RIGHT MAP */
.map-container {
  flex: 1;
  background: white;
  overflow: auto;             /* allow scrolling */
  position: relative;
}




/* SVG always fill map area */
.map-container svg {
  width: 1200px;      /* or your real map width */
  height: 800px;      /* or your real map height */
  max-width: none;
  max-height: none;
}


/* ROUTE STYLE */
.route-path {
  fill: none;
  stroke: #2563eb;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #cbd5e1;
  }

  .map-container {
    height: calc(100vh - 300px);
  }
}
/* Floating toggle button */
#togglePanelBtn {
  display: none;
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 50px;
  border: none;
  background: #1e293b;
  color: white;
  font-size: 14px;
}

/* Mobile behavior */
@media (max-width: 768px) {

  #togglePanelBtn {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 50px;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 50px);
    background: #f1f5f9;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .map-container {
    flex: 1;
  }
}
