body, html {
  height: 100%;
  width: 100%;
  margin: 0;
}
#mainContainer {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Set the size of the div element that contains the map */
#map {
    margin-left:25%;
    height: 100%;
    width: 75%;
}

#sideBar {
  position:absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  width: 25%;
  padding: 10px;
  box-shadow: 0.1em 0.1em 0.1em #9E9E9E ;
  overflow-x: hidden;
  overflow-y: auto;
}

#legend {
  position: fixed;
  bottom: 10px;
  right: 65px;
  border-radius: 10px;
  width: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}

#legend div.modal-content {
  box-shadow: 0.1em 0.1em 0.1em #9E9E9E;
}

#sidebarContent {
  margin-top: 10px;
  padding-top:10px;
}

.disabled {
  text-decoration: line-through;
}

#toSchoolsLink {
  position: fixed;
  bottom: 100px;
  left: 26%;
  border-radius: 10px;
  width: auto;
  overflow-y: auto;
}

#filters {
  position: fixed;
  bottom: 10px;
  left: 26%;
  right: 400px;
  border-radius: 10px;
  width: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

#filters div.modal-content {
  box-shadow: 0.1em 0.1em 0.1em #9E9E9E;
}

:root {
    --building-color: #FF9800;
    --house-color: #0288D1;
    --shop-color: #7B1FA2;
    --warehouse-color: #558B2F;
}

/*
 * Property styles in unhighlighted state.
 */
 .school {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
  }
  
  .school::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #FFFFFF;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
  }

  .school .bad, .school .info, .school .good, .school .nurses {
    display: none;
  }

  .school.info .info {
    display: block;
  }
  .school.good .good {
    display: block;
  }
  .school.bad .bad {
    display: block;
  }
  .school.nurses .nurses {
    display: block;
  }
  .school .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
  }
  
  .school .icon svg {
    height: 20px;
    width: 20px;
  }
  
  .school .details {
    display: none;
    flex-direction: column;
    flex: 1;
  }
  
  .school .address {
    color: #9E9E9E;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
  }
  
  .school .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  
  .school .features > div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
  }
  
  /*
   * Property styles in highlighted state.
   */
  .school.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: auto;
    padding: 8px 15px;
    width: auto;
  }
  
  .school.highlight::after {
    border-top: 9px solid #FFFFFF;
  }
  
  .school.highlight .details {
    display: flex;
  }
  
  .school.highlight .icon svg {
    width: 50px;
    height: 50px;
  }
  
  .school .bed {
    color: #FFA000;
  }
  
  .school .bath {
    color: #03A9F4;
  }
  
  .school .size {
    color: #388E3C;
  }
  
  /*
   * House icon colors.
   */
  .school.highlight:has(.fa-house) .icon {
    color: var(--house-color);
  }
  
  .school:not(.highlight):has(.fa-house) {
    background-color: var(--house-color);
  }
  
  .school:not(.highlight):has(.fa-house)::after {
    border-top: 9px solid var(--house-color);
  }
  
  /*
   * Building icon colors.
   */
  .school.highlight:has(.fa-building) .icon {
    color: var(--building-color);
  }
  
  .school:not(.highlight):has(.fa-building) {
    background-color: var(--building-color);
  }
  
  .school:not(.highlight):has(.fa-building)::after {
    border-top: 9px solid var(--building-color);
  }
  
  /*
   * Warehouse icon colors.
   */
  .school.highlight:has(.fa-warehouse) .icon {
    color: var(--warehouse-color);
  }
  
  .school:not(.highlight):has(.fa-warehouse) {
    background-color: var(--warehouse-color);
  }
  
  .school:not(.highlight):has(.fa-warehouse)::after {
    border-top: 9px solid var(--warehouse-color);
  }
  
  /*
   * Shop icon colors.
   */
  .school.highlight:has(.fa-shop) .icon {
    color: var(--shop-color);
  }
  
  .school:not(.highlight):has(.fa-shop) {
    background-color: var(--shop-color);
  }
  
  .school:not(.highlight):has(.fa-shop)::after {
    border-top: 9px solid var(--shop-color);
  }