/* ==========================================================================
   Cities Overview Table Component
   ========================================================================== */

.cities-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.cities-section-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cities-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cities-toggle-btn:hover {
  color: #fff;
}

.cities-last-updated {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Cities Table */
.cities-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  overflow: hidden;
}

.cities-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.cities-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.cities-table th.col-res-header {
  text-align: right;
  padding-right: 1.2rem;
}

.cities-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.city-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.city-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.city-row.selected-city {
  background: rgba(0, 210, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
}

.city-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}

.city-icon {
  font-size: 16px;
}

.city-coords {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.happiness-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cell-res-val {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  line-height: 1.25;
}

.cell-res-cap {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.cell-res-rate {
  font-size: 0.68rem;
  font-weight: 600;
}

.cell-pop-val {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #facc15;
}

.btn-city-refresh {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
}

.btn-city-refresh:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
