* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #dbeafe;
}

#canvas-container {
  position: fixed;
  inset: 0;
}

canvas { display: block; }

/* Top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(to bottom, rgba(15,23,42,0.85), rgba(15,23,42,0));
  pointer-events: none;
}

.topbar h1 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.placeholder-banner.hidden {
  display: none;
}

.placeholder-banner {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(245, 158, 11, 0.95);
  color: #1c1917;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Legend */
.legend {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 13px;
  color: #0f172a;
  min-width: 170px;
}

.legend h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-hint {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

/* Info panel (muncul saat klik unit) */
.info-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  z-index: 20;
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  padding: 24px 20px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.info-panel.open {
  right: 0;
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.info-panel-header span {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#closePanel {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  color: #475569;
}
#closePanel:hover { background: #e2e8f0; }

.info-icon-house {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ecfeff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

#infoBlock {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  display: block;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-row .label {
  font-size: 13px;
  color: #64748b;
}

.info-row .value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.status-ready { background: #dcfce7; color: #166534; }
.status-booking { background: #fef3c7; color: #92400e; }
.status-sold { background: #fee2e2; color: #991b1b; }

.unit-number-label {
  color: #0f172a;
  font-weight: 800;
  font-size: 11px;
  background: rgba(255,255,255,0.9);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(15,23,42,0.15);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.block-label {
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,0.85);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* Nav hint */
.nav-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(15,23,42,0.75);
  color: #e2e8f0;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 220px;
  line-height: 1.5;
}
