/* styles.css */
.clicked-circle {
  background: lightgray !important; /* Change color to light gray */
}

/* Existing styles here */
.collapsible-header {
  background-color: #eee5e5;
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
}

.content {
  display: none;
}

#divAddress {
  position: relative; /* Ensures the legend is positioned within this container */
  height: 700px;
}


#map {
  width: 100%;
  height: 300px; /* Set the desired height for the map */
}

#floodmap { 
/* display: none; */
height: 800px; 
padding-left: 20px;
padding-right: 20px;
}

#parcelmap { 
/* display: none; */
height: 500px; 
padding-left: 20px;
padding-right: 20px;
}

#isochronemap { 
/* display: none; */
height: 500px; 
padding-left: 20px;
padding-right: 20px;
}

#catchmentmap { 
/* display: none; */
height: 500px; 
padding-left: 20px;
padding-right: 20px;
}

#addressmap {
  height: 700px; 
  padding-left: 20px;
  padding-right: 20px;
  position:relative;
}

/* Position the legend absolutely within the map container */
#addresslegend {
  background-color: white;
  border-radius: 5px;
  padding: 10px;
  position: absolute; /* Changed to absolute */
  top: 10px; /* Adjust as needed */
  left: 10px; /* Adjust as needed */
  width: 200px;
  z-index: 1000; /* Ensure it's on top */
  font-family: Arial, sans-serif;
  font-size: 12px; /* Adjusted to be more readable */
}
.gradeClass {
    margin-bottom: 10px;
}
.school {
    margin-left: 20px;
}

.active {
  display: block;
}

.circleElem {
  background: rgb(141, 160, 203); /* color of the circle */
  border: 1px solid red;
  border-radius: 50%; /* make the div a circular shape */
  border-color: white;
  border-width: 2px;
  cursor: pointer;
  transition: 0.5s fill, 0.5s stroke-width;
}

.circleMiddle {
  background: rgb(252, 141, 98); /* color of the circle */
  border: 1px solid red;
  border-radius: 50%; /* make the div a circular shape */
  border-color: white;
  border-width: 2px;
}

.circleHigh {
  background: rgb(102, 194, 165); /* color of the circle */
  border: 1px solid red;
  border-radius: 50%; /* make the div a circular shape */
  border-color: white;
  border-width: 2px;
}

.circleBlank {
  background: rgb(87, 87, 87); /* color of the circle */
  border: 1px solid rgb(241, 241, 241);
  border-radius: 50%; /* make the div a circular shape */
  border-color: white;
  border-width: 1px;
}

.addressIcon {
  background: #ff7800;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: block;
}


/* LEGEND STYLES */
.info {
  padding: 6px 8px;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
}

.legend {
  width: 300px;
  margin-left: 26px !important;
  margin-bottom: 26px !important;
  padding: 0px 16px 16px 16px;
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #78373F;
  line-height: 24px;
  color: #555;
}

.legend h4 {
  text-align: left;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 64px;
  margin: 0px;
  color: white;
}

.legend span {
  position: relative;
  margin-left: 5px;
  color: white;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 300;
  bottom: 3px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 1;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

.legend .circle {
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-top: 4px;
}

.flood2 {
  background: rgb(161, 161, 161); /* color of the circle */
  border-color: white;
  border-width: 2px;
}

.floodway {
  background: rgb(161, 161, 161); /* color of the circle */
  border-color: white;
  border-width: 2px;
}

.acre {
  background: rgb(239, 240, 188); /* color of the circle */
  border-color: white;
  border-width: 2px;
}

.tooltip-facility {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px;
  font-size: 12px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  z-index: 1000; /* Ensure tooltip is on top of other elements */
}

.tooltip-edu {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 5px;
  font-size: 12px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  z-index: 1000; /* Ensure tooltip is on top of other elements */
}
.mapboxgl-popup {
  max-width: 400px;
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

/* Style the table */
table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}
