html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}

#map {
  width: 100%;
  height: 100vh;
}

.map-popup {
  position: absolute;
  background: #ffffff;
  min-width: 310px;
  max-width: 390px;
  border: 1px solid #777;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #444;
}

.popup-header {
  height: 22px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.popup-header-blue {
  background: #1f78ff;
}

.popup-header-red {
  background: #d32f2f;
}

.popup-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  padding: 0 6px;
}

.popup-body {
  padding: 10px;
}

.popup-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.35;
}

.popup-separator {
  border-top: 1px solid #555;
  margin: 8px 0;
}

.popup-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 12px;
  margin: 5px 0;
}

.popup-label {
  color: #888;
}

.popup-value {
  color: #333;
  text-align: right;
  white-space: nowrap;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.loading-overlay.hidden {
  display: none;
}

.loading-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 28px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  text-align: center;
  min-width: 220px;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px auto;
  border: 4px solid #d0d0d0;
  border-top: 4px solid #1f78ff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: #444;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}