body {
  background-color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14pt;
  color: #020203;

}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#locations {
  max-height: 500px;
  overflow-y: auto;
  padding: 0.5rem;
}

.btn {
  background-color: #FFD91C;
  transition: background-color 0.3s ease, border 0.3s ease;
  font-size: 14px;
  border: none;
  cursor: pointer;
  outline: none;
  position:absolute;
  right: 0;
  border-radius:50px;
  margin-right:5px;
}
.btn img{
  height:10px;
}

.btn:hover {
  background-color: #F1CD1E;
  border: none;
  cursor: pointer;
  outline: none;
  border-radius:50px;
}

.btn:focus {
  background-color: #F1CD1E;
  border: 2px solid #5cb2d1;
  outline: 3px solid #a4e3f3;
  outline-offset: 2px;
    border-radius:50px;

} 
.location:focus {
  background-color: #FEFBF4;
  border: 1px solid #F1CD1E;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
}


.location {
  background-color: #ffffff;
  list-style-type: none;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.229);
  outline: none;
  border: 1px solid transparent;
  position: relative;
  display:flex;
  flex-direction: row;
  transition:
    background-color 0.3s ease,
    border 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.location img{
  height: 25px;
  width:auto;
}
.locationImgContainer {
  width: 40px;       /* must be equal */
  height: 40px;      /* must be equal */
  background: #FFD91C;
  border: 1px solid #ECC818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
  flex-grow: 0;
  align-self: flex-start;

}


.location:hover {
  background-color: #FEFBF4;
  border: 1px solid #F1CD1E;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.event:focus{
    background-color: #FEFBF4;
  border: 1px solid #F1CD1E;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location h3 {
  font-size: 16px;
  font-weight: 700;
  color:#222121;
}

.location .typeContainer{
  color:#222121;
  position:absolute;  
  top: 0.5rem;
  right: 0.5rem;
  background: #F0FEE2;
  border: 1.5px solid #81C738;
  padding:3px 5px 3px 5px;
  border-radius:20px;
}
.location .typeContainer p{
        font-size: 14px;
        margin:0px;
          color: #222121;

}


.location p {
  font-size: 14px;
  color: #6E6E6E;
  margin: 0px;

}

.location:focus {
  background-color: #FEFBF4;
  border: 1px solid #F1CD1E;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
}

#events{
  display: none;
}
#events.active{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  padding:10px;
}

.event img {
  width: 100%;
  height: auto;
  max-height: 243px; /* optional cap */
  object-fit: cover;
  display: block;
  /* margin-bottom:10px; */
}

.img-container{
    display:flex;
  justify-content:center;
}
.event {
  display:flex;
  flex-direction:column;
  background-color: #ffffff;
  list-style-type: none;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  outline: none;
  border: 1px solid #F3F4F7;
  transition:
    background-color 0.3s ease,
    border 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.event:hover {
  background-color: #FEFBF4;
  border: 1px solid #F1CD1E;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color:#222121;
}

.event p {
  margin-bottom: 0.25rem;
  font-size: 14px;
}.event .bottom-row{
  display: flex;
  justify-content: flex-end; /* pushes tag to the right */
  margin-top: auto;    
}
.event .communityCenter{
  background: #F0FEE2;
  border: 1.5px solid #81C738;
  padding:3px 5px 3px 5px;
  border-radius:20px;
  flex: 0 0 auto;   /* prevents stretching */
  width: auto;      /* shrink to fit content */
  display: inline-flex;  
}
.event .communityCenter p{
   font-size: 14px;
   margin:0px;
}
.event .bottom-row {
  margin-top: auto;          /* pushes this row to the bottom */
  display: flex;
  justify-content: flex-end; /* pushes tag to the right */
}

.selected {
  background-color: #DFF1D0;
  border: 1px solid #81C737;
}

#select-language {
  cursor: pointer;
}
[data-tab-content] {
  display:none;
}

.active[data-tab-content]{
  display: block;
}

.tabs{
  display:flex;
    justify-content: flex-start;
    list-style-type: none;
  padding: 0px;

}

.tab-content{
  background-color:#ffffff;
}

.tabs li:hover {
  cursor: pointer;
}

#locationsTab {
  color: #9E9EA0;
font-weight: 600;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;
margin:10px;
  border-bottom: 2px solid #EFEFEF;
  padding:5px;
}
#eventsTab {
    color: #9E9EA0;
font-weight: 600;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;
margin:10px;
padding:5px;
  border-bottom: 2px solid #EFEFEF;

}

#locationsTab.active-tab{
        border-bottom: 2px solid #7D4196;
  color:#151516;
  
}

#eventsTab.active-tab{
  border-bottom: 2px solid #81C738;
        color:#151516;

}

.search_bar form{
  flex-direction: row;

}

.search_bar{
 margin-bottom: 30px; 
}

.bar {
  position: relative;
  width: 100%;

}
.bar input {
  width: 100%;
  border: 1px solid #D8D8D8;
  background-color:#FFFFFF;
  border-radius: 30px;

  padding: 12px;
  box-sizing: border-box;

  white-space: nowrap;
    overflow-x: auto;
}

.bar .btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  padding: 0;
    border-radius:50px;
    width: 30px;   
  height: 30px;      
  background: #FFD91C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;


}

.results{
  background-color: #ffffff;
  border: 1px solid #D8D8D8;
  padding:10px;
  border-radius: 5px;
  box-shadow: 0px 2px 10px 0px #00000014;
  margin:0px;

}

.helper{
  font-size:14px;
}

.heading{
  display:flex;
  justify-content:space-between;
}

.heading h1{
  font-size:36px;
}

.map{
    background-color: #ffffff;
  border: 1px solid #D8D8D8;
  border-radius: 5px;
  box-shadow: 0px 2px 10px 0px #00000014;
  padding:10px;
}

.information{
  color: #6E6E6E;
  margin:0px;
    display:flex;
  flex-direction: row;
  align-items: center;
}


.event .information img{
  height: 13px;
  width:fit-content;

  margin-right:5px;

}
.event .information p{
  margin:0px;

}

.location .information img{
  height: 13px;
  width:fit-content;
  margin-right:5px;
  border-radius:0px;
      background: #FFFFFF;
  border: 0px;
}
.location .information p{
  margin:0px;

}

.borough{
  margin-bottom:10px;
}



.description{
  color: #3C3A3A;
  margin:0px;
}

.results p{
  font-size:14px;
}

.count{
  color: #3A3A3A;
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
}
.count p{
  margin:0px
}
.custom-marker {
  position: relative;
  width: 24;
  height: 33.39130401611328;
  opacity: 1;

  background: red; /* overridden by color classes */
  border-radius: 50%;
}

.purple-marker {
  background: #7D4196; /* your hex */
}

.green-marker {
  background: #81C738; /* your hex */
}


/* Mobile */
@media screen and (max-width: 1250px) {
  body {
    font-size: 12pt;
  }

  h1 { font-size: 12px; }
  h2, .h5 { font-size: 15px; }
  h3 { font-size: 16px; }

  p, li, .helper, .description, .information {
    font-size: 14px;
  }

  .event p,
  .location p {
    font-size: 14px;
    margin:0px;
  }

  .event h3{
    margin:0px;
    font-size:16px;
  }
  .location h3{
    margin:0px;
    font-size:16px;
  }

  .heading h1{
    font-size: 16px;
    color:#020203;
  }

  .btn img {
    height: 24px;
  }

  #map {
    height: 250px !important;
  }

  /* Your layout flip */
  .display {
    display: flex;
    flex-direction: column-reverse;
  }

  .display > [class*="col-"] {
    width: 100%;
  }
  
  .event img{
    display:none;
  }

  #events.active{
  display:flex;
  flex-direction:column;
}

.event .communityCenter{
  background: #F0FEE2;
  border: 1.5px solid #81C738;
  padding:1px 3px 1px 3px;
  border-radius:15px;
  flex: 0 0 auto;   /* prevents stretching */
  width: auto;      /* shrink to fit content */
  display: inline-flex;  
}
.event .communityCenter p{
   font-size: 12px;
   margin:0px;
}

#eventsTab{
  font-size: 16px;
}

.results p{
  font-size:14px;
}

.event .description{
  display: none;
}
.location .typeContainer{
  position:absolute;  
  top: 0.5rem;
  right: 0.5rem;
  background: #F0FEE2;
  border: 1.5px solid #81C738;
  padding:1px 3px 1px 3px;
  border-radius:15px;
}
.location .typeContainer p{
        font-size: 12x;
        margin:0px;
          color: #222121;

}
.location img{
  height:26px;
}

#locationsTab {
font-size: 16px;

}
}
