
html, body {
  margin: 0;
  height: 100%;
}

#map {
  height: 100vh;
  width: 100%;
  background: #f5f5f5;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid #555;
  vertical-align: middle;
}

.leaflet-time-control {
  background: rgba(255,255,255,0.96);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  min-width: 520px;
  width: 75vw;
  font-family: system-ui, sans-serif;
}

.time-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-slider-input {
  flex: 1;
  min-width: 340px;
}

.time-button {
  border: 1px solid #aaa;
  background: white;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
}

.time-label {
  font-weight: 600;
  margin-bottom: 6px;
}

.case-control {
  background: rgba(255,255,255,0.96);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  font-family: system-ui, sans-serif;
  min-width: 220px;
}

.case-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.leaflet-tile {
  background: transparent !important;
}

.left-map-panel {
  width: 280px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.panel-title {
  font-weight: 700;
  font-size: 15px;
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
}

.layer-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.layer-list {
  overflow-y: auto;
  max-height: calc(100vh - 310px);
  padding: 8px 10px 12px 10px;
}

.case-category {
  margin-bottom: 12px;
}

.case-category-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.04em;
  margin: 10px 2px 6px;
}

.case-row {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fff;
  overflow: hidden;
}

.case-row-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.case-checkbox {
  margin: 0;
}

.case-disclosure-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #222;
}

.case-disclosure-button:hover {
  text-decoration: underline;
}

.case-disclosure-arrow {
  cursor: pointer;
  color: #555;
  user-select: none;
}

.case-row-details {
  display: none;
  padding: 0 8px 10px 30px;
  border-top: 1px solid #eee;
}

.case-row.is-open {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.case-row.is-open .case-row-details {
  display: flex;
  flex-direction: row;
  gap: 6px 8px;
  align-items: start;
}

.opacity-label {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

.opacity-slider {
  width: 100%;
}

.opacity-value {
  font-size: 12px;
  color: #555;
  min-width: 34px;
  text-align: right;
}

.legend-section {
  flex-shrink: 0;
  border-top: 1px solid #ddd;
  background: #fafafa;
  padding-bottom: 10px;
}

.legend-section .panel-title {
  border-bottom: none;
  padding-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px;
}

.legend-item i {
  width: 18px;
  height: 12px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.case-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 6px;
  cursor: pointer;
}

.case-category-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.04em;
  margin: 0;
}

.case-category-checkbox {
  margin: 0;
}

.case-category {
  margin-bottom: 12px;
}

.case-category-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 6px;
}

.case-category-checkbox {
  margin: 0;
}

.case-category-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.04em;
}

.case-category-toggle:hover {
  text-decoration: underline;
}

.case-category-arrow {
  cursor: pointer;
  color: #555;
  user-select: none;
}

.case-category-content {
  display: none;
}

.case-category.is-open .case-category-content {
  display: block;
}