:root {
  --map-bg: #F5F5F5;
  --room-bg: #E0E0E0;
  --corridor-bg: #FFFFFF;
  --wall-color: #D1D1D1;
  --text-main: #202124;
  --text-muted: #5F6368;
  --accent: #1A73E8;
  --font-sans: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #FFFFFF;
  color: var(--text-main);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* App Header */
.app-header {
  padding: 12px 16px;
  background: white;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-button {
  width: 24px;
  height: 24px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-title {
  font-size: 16px;
  font-weight: 400;
  color: #3C4043;
}

/* Main Viewport */
.map-viewport {
  flex: 1;
  background-color: var(--map-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}

/* Search Bar */
.search-bar {
  width: 95%;
  max-width: 1200px;
  height: 48px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 24px;
  z-index: 10;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input-placeholder {
  color: #70757A;
  font-size: 14px;
}

/* Map Canvas */
.map-container {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.map-canvas {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  position: relative;
  background-color: transparent;
}

/* Room Component */
.room {
  position: absolute;
  background-color: var(--room-bg);
  border: 1px solid var(--wall-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.room-id {
  font-size: 11px;
  font-weight: 700;
  color: #3C4043;
  margin-bottom: 1px;
}

.room-type {
  font-size: 8px;
  font-weight: 400;
  color: #70757A;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Central Space */
.central-space {
  position: absolute;
  top: 31%;
  left: 26%;
  width: 48%;
  height: 38%;
  background-color: white;
  border: 1px solid var(--wall-color);
}

/* Room Positions & Sizes */
/* Left Column */
.r-a301 { top: 12%; left: 7%; width: 17%; height: 17%; }
.r-a302 { top: 31%; left: 7%; width: 17%; height: 21%; }
.r-a303 { top: 54%; left: 7%; width: 17%; height: 21%; }
.r-wc   { top: 77%; left: 7%; width: 17%; height: 8%; }

/* Top Row */
.r-a304 { top: 10%; left: 26%; width: 15%; height: 13%; }
.r-a305 { top: 10%; left: 42.5%; width: 15%; height: 13%; }
.r-a306 { top: 10%; left: 59%; width: 15%; height: 13%; }

/* Bottom Row */
.r-a307 { top: 73%; left: 26%; width: 22%; height: 15%; }
.r-a308 { top: 73%; left: 52%; width: 22%; height: 15%; }

/* Right Column */
.r-a310 { top: 12%; right: 7%; width: 17%; height: 30%; }
.r-a311 { top: 44%; right: 7%; width: 17%; height: 17%; }
.r-a312 { top: 63%; right: 7%; width: 17%; height: 10%; }
.r-stairs { top: 75%; right: 7%; width: 17%; height: 8%; }

/* Floor Selector Overlay */
.floor-selector {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 32px;
}

.floor-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 500;
  color: #70757A;
  border-bottom: 1px solid #F1F3F4;
  cursor: pointer;
}

.floor-btn:last-child { border-bottom: none; }

.floor-btn.active {
  color: var(--accent);
  background-color: #E8F0FE;
}
