/* Base styles for all test pages */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #f8f9fa;
  --border-color: #e9ecef;
  --text-color: #2d3748;
  --text-muted: #718096;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Header styles */
.header {
  padding: 1rem;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.header a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header a:hover {
  text-decoration: underline;
}

/* Main content area */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar styles */
.sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar h2 {
  margin-top: 0;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Map container */
.map-container {
  flex: 1;
  position: relative;
  height: 100%;
  min-width: 0; /* Fixes flexbox overflow issue */
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Info box */
.info-box {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.info-box p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-box p strong {
  color: var(--text-color);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .map-container {
    height: 60vh;
  }
}

/* Leaflet overrides */
.leaflet-container {
  background: #f5f5f5;
  font-family: inherit;
}

.leaflet-popup-content {
  margin: 0.75rem;
}

.leaflet-popup-content-wrapper {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Utility classes */
.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
