/* ==========================================================================
   ps-cities-map-standalone.css
   Styles for the full-page standalone deployment cities map.
   ========================================================================== */

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* --- Token Warning Overlay --- */
#token-warning {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  display: none;
}

#token-warning h3 {
  margin-top: 0;
  color: #d32f2f;
}

#token-warning code {
  background: #eee;
  padding: 2px 4px;
  border-radius: 4px;
}

/* --- Controls Overlay --- */
#controls {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  user-select: none;
}

.control-group input {
  cursor: pointer;
  accent-color: #78B9AB;
  width: 16px;
  height: 16px;
}

/* --- Popup Styles (shared with dashboard) --- */
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden;
}

.ps-map-popup {
  padding: 14px 16px;
  border-left: 4px solid #78B9AB;
  font-size: 13px;
  line-height: 1.5;
}

.ps-map-popup-title {
  font-weight: 700;
  font-size: 1.05em;
  color: #333;
  margin-bottom: 2px;
}

.ps-map-popup-meta {
  color: #666;
  font-size: 0.88em;
  margin-bottom: 10px;
}

.ps-map-popup-stats {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.ps-map-popup-stats td {
  padding: 2px 0;
  border: none;
}

.ps-map-popup-stats td:first-child {
  color: #777;
  padding-right: 12px;
  white-space: nowrap;
}

.ps-map-popup-stats td:last-child {
  font-weight: 600;
  color: #333;
  text-align: right;
}

.ps-map-popup-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.ps-map-popup-links a {
  color: #548177;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92em;
}

.ps-map-popup-links a:hover {
  text-decoration: underline;
  color: #78B9AB;
}

/* --- Loading Spinner --- */
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}