#analysis-root {
  padding: 20px;
}

.analysis-header h1 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
}

.analysis-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.analysis-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.analysis-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.analysis-card h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.analysis-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.analysis-view {
  margin-top: 20px;
}

.analysis-back-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 12px;
}

.hidden {
  display: none;
}

.analysis-chart-container {
  min-height: 500px;
  height: auto;
}

/* Break Analysis pages out of the fixed-width wrapper */
.analysis-fullwidth {
  width: 80vw;
  margin-left: calc(50% - 40vw); /* Pulls it out of the centered wrapper */
  padding: 0 20px; /* Optional: keeps edges from touching */
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
}

.analysis-table th,
.analysis-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.analysis-table th {
  background: #f4f4f4;
  font-weight: 600;
}

.analysis-table tr:hover {
  background: #fafafa;
}

/* Make sure Leaflet map tiles and markers render correctly */
#analysis-map {
  width: 100%;
  height: 600px;
}

/* Optional: remove default Leaflet marker padding */
.analysis-map-marker {
  background: none !important;
  border: none !important;
}

.analysis-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.analysis-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.analysis-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.analysis-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.analysis-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* ------------------------------
   ANALYSIS FILTER BAR
------------------------------ */

.analysis-filters {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 14px;
  margin-bottom: 4px;
  color: #444;
}

.filter-group select,
.filter-group input[type="date"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 160px;
}

.filter-dates {
  display: flex;
  gap: 6px;
}

.filter-apply-btn {
  padding: 8px 14px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.filter-apply-btn:hover {
  background: #005fa3;
}

#filter-camera {
  height: 32px;          /* forces a single-row compact height */
  overflow-y: auto;      /* scroll inside if many items */
  appearance: none;
  background: white;
  background-image: url("data:image/svg+xml;utf8,<svg ...>"); /* optional arrow */
  background-repeat: no-repeat;
  background-position: right 8px center;
}