.map-wrapper {
  display: flex;
  flex-direction: column;
  height: auto;
}

.search-container {
  display: flex;
  flex-direction: column;
  padding: 5px;
  margin-bottom: 10px;
  width: 100%;
  height: auto;
  background-color: #efefef;
  box-sizing: border-box;
}

#search-result {
  display: flex;
  flex-direction: column;
  height: 20vh;
  overflow-y: auto;
  box-sizing: border-box;
}

#map {
  width: 100%;
  height: 70vh;
}

.advanced-marker-centered {
  position: absolute;
  transform: translate(-50%, -50%);
}

#search-box {
  flex: 0 0 auto;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  background-color: #fff;
}

.filters {
/*  display: flex;*/
/*  flex: 0 0 auto; */
  margin-bottom: 10px;
  font-size: 16px;
/*  line-height: 1.5; */
}

.filters label {
  display: block;
  cursor: pointer;
  padding: 0 5px;
  background-color: #fff;
  border: 1px solid #afafaf;
}

.sort-container {
  margin-bottom: 10px;
  font-size: 16px;
}

.sort-container label {
  margin-right: 5px;
}

.sort-container select {
  background-color: #fff;
}

.location-item {
  border-bottom: 1px solid #cecece;
}

.location-item .location-heading {
  /* display: flex;
  flex-direction: row; */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  font-size: 17px;
  min-width: 0;  
}

.location-item:hover .location-heading {
  background-color: #e7e7e7;
}

.location-item.active .location-heading {
  background-color: #ddd;
}

.location-item .location-heading h4 {
  font-weight: bold;
  margin: 0;
  padding: 8px;
  font-size: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.location-item .location-heading .icon-wrapper {
  /* display: flex;
  align-items: center;
  flex-shrink: 0; */
  padding-right: 5px;
	position: relative;
	display: inline-block;
}



.location-item .location-heading .icon-wrapper svg,
.location-item .location-heading .icon-wrapper img {
  width: 1.8em;
  height: 1.8em;
  display: inline-block;
  vertical-align: middle;
}

.partner-tip:focus::after, .partner-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 0px; top: 0px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: .4rem .55rem;
  border-radius: .4rem;
  background: #0f2b5d;  /* your blue */
  color: #fff;
  font: 12px/1.2 system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 9999;
}

/*
.partner-tip:focus::before, .partner-tip:hover::before{
  content:"";
  position:absolute;
  left:0; top:100%;
  transform: translateX(-50%);
  border:6px solid transparent;
  border-top-color:#0f2b5d;  
}
*/

.location-item .location-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  margin-top: 0;
  padding: 0;
  background: #fff;
}

.location-item.active .location-body {
  max-height: 200px; /* Adjust this based on expected content height */
  padding: 8px;
  border-top: 1px solid #cecece;
}

@media (min-width: 768px) {
  .map-wrapper {
    flex-direction: row;
    height: min(75vh, 640px);
  }

  .search-container {
    width: 300px;
    margin: 20px 10px;
  }

  #search-result {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  #map {
    flex-grow: 1;
    width: auto;
    height: auto;
  }
}