#map {
    width: 100%;
    height: 680px;
}

.ol-popup {
    background: white;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Map Overlap Styling */
#map .ol-control.layer-switcher {
    top: 3.5em !important;
    left: auto;
    right: 0.5em;
    transition: right 0.3s ease;
}

#map .ol-control.layer-switcher.sidebar-open {
    right: 330px;
}

#map-logo {
  position: absolute;
  bottom: 10px;   /* distance from bottom */
  left: 10px;     /* distance from left */
  width: 120px;    /* adjust as needed */
  height: auto;
  z-index: 1000;  /* make sure it stays above the map */
  opacity: 0.9;   /* optional slight transparency */
  pointer-events: none; /* optional, prevents logo from blocking map clicks */
}

.ol-home {
    top: 0.5em;
    left: auto;
    right: 0.5em;
    transition: right 0.3s ease;
}

.ol-home.sidebar-open {
    right: 330px;
}

.ol-control.ol-home button {
  background-color: #fff;
  border: none;
  color: #333;
  font-size: 1.4em;
  font-weight: 700;
  height: 38px;
  width: 38px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

.ol-control.ol-home button:hover,
.ol-control.ol-home button:focus {
    background-color: rgba(255,255,255,.6);
    color: #000;
}

/* Map Overlay Components Styling */
#scenario-banner {
  position: absolute;
  top: 15px;
  right: 41.5%;
  max-height: 25px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 10px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: sans-serif;
  z-index: 2000;
}

.banner-header {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

.scenario-label {
  font-weight: bold;
  font-size: 13px;
  margin-right: 6px;
}

.scenario-select {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #aaa;
}

.banner-toggle {
  font-size: 16px;
  font-weight: bold;
  color: #666;
  line-height: 1;
}

.banner-content {
  padding: 0 10px 10px 10px;
  max-height: 450px;
  overflow-y: auto;
  transition: max-height 0.3s ease-out;
}

/* Opacity Slider */
.opacity-control {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.opacity-control label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 500;
  font-size: 12px;
}

.opacity-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.opacity-slider {
  flex: 1;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(to right, #ddd 0%, #999 100%);
  border: none;
  padding: 0;
}

.opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #666;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #666;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.opacity-slider::-moz-range-progress {
  background: linear-gradient(to right, #ddd 0%, #999 100%);
}

.opacity-value {
  min-width: 35px;
  text-align: right;
  color: #666;
  font-weight: 500;
  font-size: 12px;
}


/* Symbology toggle buttons */
.symbology-toggle {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.symbology-toggle label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 500;
  font-size: 12px;
}

.toggle-group {
  display: flex;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: #e8e8e8;
  border-color: #999;
}

.toggle-btn.active {
  background: #333;
  color: white;
  border-color: #333;
}
