/* Path: /BM/assets/css/dashboard_guest.css */
body {
  font-family: 'Noto Sans Thai', sans-serif;
}

table th,
table td {
  font-size: 0.9rem;
}

.dashboard-map-card,
.table-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eef2f7;
}

.dashboard-card-title {
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-card-subtitle {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

.map-shell {
  padding: 1rem 1.25rem 1.25rem;
}

.map-container {
  position: relative;
  height: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
  background: #f8fafc;
}

#map {
  width: 100%;
  height: 100%;
}

.map-building-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.building-popup {
  min-width: 220px;
  padding: 0.2rem;
  font-family: 'Noto Sans Thai', sans-serif;
  color: #1e293b;
}

.building-popup-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.building-popup-row {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.2rem;
  color: #334155;
}

.building-popup-key {
  font-weight: 600;
  color: #475569;
  margin-right: 0.35rem;
}

.table-shell {
  padding: 1rem 1.25rem 1.25rem;
}

.building-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.building-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.building-table thead {
  background: #f1f5f9;
}

.building-table th {
  color: #1f2937;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.building-table th,
.building-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}

.building-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.building-table tbody tr:hover {
  background: #eaf2ff;
  transition: background-color 0.2s ease;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-link {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: #475569;
  background: #ffffff;
}

.lang-link.is-active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }

  .dashboard-card-header,
  .map-shell,
  .table-shell {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}
