.sl-locator-container {
  font-family: Arial, sans-serif;
  padding: 1rem;
}
.sl-locator-header {
  background-color: #000;
  color: #fff;
  text-align: center;
  font-family: Poppins, sans-serif;
  padding: 10px 20px 50px 20px;
  font-weight: 700;
}

.sl-search{
  display: flex;
  justify-content: center;
  align-items: center;
}

#sl-location-input {
  padding: 0.5rem;
  width: 300px;
  max-width: 90%;
}

#sl-reset {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  background-color: #f5a623;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  gap: 5px;
}
.sl-locator-body {
  display: flex;
  flex-direction: row;
}
.sl-map {
  width: 60%;
  height: 600px;
}

.sl-results {
  width: 40%;
  max-height: 600px;
  overflow-y: auto;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  padding: 0 1em 0 1em;
  background-color: #F1F2F2;
}

.sl-result {
  display: block;
  position: relative;
  padding: 1rem 0 1rem 0;
  border-bottom: 1px solid #ccc;
}

.sl-map-toggle {
  display: none;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-width: 2px;
  border-color: #f5a623;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  margin: 8px auto 0 auto;
  width: calc(100% - 8px);
  max-width: 422px;
}

.sl-map-toggle svg{
  margin-left: 10px;
}

.badge {
  display: flex;
  position: absolute;
  top: 20px;
  right: 0;
  margin-left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  justify-content: space-between;
  align-items: center;
  color: white;
  width: 80px !important;
  height: 24px;
  border-radius: 16px;
}

.sl-result .loc-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 1rem;
  line-height: 1.25em;
}

.sl-title{
  font-family: inherit;
  font-weight: 700;
  width: calc(100% - 100px);
  text-transform: capitalize;
}

.sl-details{
  text-transform: capitalize !important;
}

.loc-arrow{
   display: block;
   position: absolute;
   top: calc(50% - 12px);
   right: 10px;
   transform: rotate(-90deg);
   transition: transform 0.3s ease;
 }

.sl-results-body{
}

@media (max-width: 1036px) {
  .sl-locator-body {
    flex-wrap: wrap;
  }
  
  .badge {
    top: 110px;
    right: 20px;
  }
  
  .sl-results, .sl-map{
    width: 100%;
  }
  
  .sl-results{
    padding: 0;
  }
  
 .sl-result {
   margin: 0;
   padding: 0;
 }
 
 .sl-result  .loc-title{
   display: block;
   position: relative;
   margin-bottom: 0;
   border: none;
   cursor: pointer;
 }
 
 .sl-title{
   background-color: #000;
   color: #fff;
   padding: 20px 40px 20px 20px;
   width: calc(100%);
   display: flex;
   min-height: 40px;
   justify-content: flex-start;
   align-items: center;
   font-size: 18px;
   line-height: 1em;
 }
  
  .sl-map{
    height: 300px;
  }
  
  .sl-map-toggle {
    display: flex;
  }
  
  .sl-map.hidden {
    display: none;
  }
  
  .sl-results-body{
    display: none;
    padding: 20px 20px 20px 20px;
  }
}


.sl-result p{
  font-size: 16px !important;
  line-height: 1.25em;
}

.sl-result a{
  text-decoration: none;
  color: #000;
  font-weight: 700;
}

.badge.preferred {
  background-color: #1976d2;
}
.badge.certified {
  background-color: #333;
}

.sl-results button{
  padding: 0.5rem 1rem;
  margin-left: 0;
  background-color: #f5a623;
  color: #000;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

