/* ==========================================================================
   Building Plan Drawer Component (Expanded when clicking a city)
   ========================================================================== */

.building-plan-drawer {
  background: rgba(14, 20, 32, 0.95);
  border-top: 1px solid var(--border-light);
  border-bottom: 2px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  animation: slideDown 0.18s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plan-title-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-main-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plan-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-plan-action {
  padding: 0.38rem 0.8rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-plan-save {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.btn-plan-save:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-plan-start {
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid rgba(0, 210, 255, 0.5);
  color: var(--accent-cyan);
}

.btn-plan-start:hover {
  background: rgba(0, 210, 255, 0.35);
  color: #fff;
}

.btn-plan-clear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-plan-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Building Tiles Grid */
.building-tiles-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1200px) {
  .building-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.building-card {
  background: rgba(20, 28, 44, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: border-color 0.15s ease;
}

.building-card:hover {
  border-color: var(--border-light);
}

.building-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.building-arrow-indicator {
  color: var(--accent-emerald);
  font-weight: 900;
}

.building-pos-tag {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.building-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.building-icon-wrap {
  width: 58px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
}

.building-svg-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.building-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 2px 4px;
}

.level-text {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-cyan);
}

.btn-stepper {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.btn-stepper:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
