body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 12px;
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
}

h1 {
  margin: 0;
  font-size: 18px;
  margin-right: 24px;
  white-space: nowrap;
  color: #333;
}

#map {
  width: 100%;
  height: calc(100vh - 40px);
}

.Icon {
  height: 40px;
  width: 40px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Icon-text {
  font-size: 11px;
  font-weight: bold;
  color: white;
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0px 0px 3px rgba(0,0,0,0.7);
  z-index: 1;
  padding-bottom: 2px; /* Slight adjustment for visual centering */
}

.bom-marker {
  position: relative;
  width: 40px;
  height: 48px;
}

.bom-marker .bom-icon {
  border: 2px solid #d4af37;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
}

.bom-badge {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #d4af37;
  color: #000;
  font-size: 8px;
  font-weight: bold;
  padding: 0px 3px;
  border-radius: 2px;
  line-height: 12px;
  white-space: nowrap;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  flex-wrap: wrap;
  max-width: 800px;
}

/* Date picker styles */
.date-picker-container, .year-picker-container, .time-period-container {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.date-picker-container label, .year-picker-container label, .time-period-container label {
  margin-right: 10px;
  font-size: 14px;
  font-weight: 500;
}

.date-picker, .year-picker, .time-period-select {
  padding: 2px 6px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.date-picker:hover, .year-picker:hover, .time-period-select:hover {
  border-color: #aaa;
}

.date-picker:focus, .year-picker:focus, .time-period-select:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

#reportSelector {
  padding: 8px;
  margin-bottom: 10px;
  width: 200px;
}

.display-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.display-options label {
  font-size: 14px;
  font-weight: 500;
  margin-right: 8px;
  white-space: nowrap;
}

.display-btn {
  padding: 3px 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}

.display-btn:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.display-btn.active {
  background-color: #4285f4;
  color: white;
  border-color: #3367d6;
}

.display-btn#showMin {
  background-color: #d4ebef;
}

.display-btn#showMin:hover {
  background-color: #bcd4d9;
}

.display-btn.active#showMin {
  background-color: #84abb1;
}

.display-btn#showMax {
  background-color: #e2b7b4;
}

.display-btn#showMax:hover {
  background-color: #d4a3a0;
}

.display-btn.active#showMax {
  background-color: #c55951;
}

.display-btn#showRain {
  background-color: #56b3e8;
}

.display-btn#showRain:hover {
  background-color: #4999cc;
}

.display-btn.active#showRain {
  background-color: #004aad;
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 600px) {
  .header-container {
    padding: 8px;
  }

  h1 {
    margin-right: 0;
    margin-bottom: 8px;
    width: 100%;
  }

  .controls {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }

  .date-picker-container, .year-picker-container, .time-period-container {
    width: 100%;
    justify-content: space-between;
  }

  .display-options {
    width: 100%;
    justify-content: space-between;
  }

  .display-btn {
    padding: 8px 12px;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  #map {
    height: calc(100vh - 120px);
  }
}

/* Adjustments for medium-sized screens */
@media screen and (min-width: 601px) and (max-width: 800px) {
  .header-container {
    padding: 8px;
  }

  .controls {
    gap: 12px;
  }

  .display-btn {
    padding: 6px 10px;
  }
}