.shamanic-help-overview-headline {
  grid-column: 3 / span 10;
  grid-row: 1 / span 1;
  text-align: center;
}

.shamanic-help-overview-description {
  grid-column: 4 / span 8;
  text-wrap: balance;
  grid-row: 2 / span 1;
  text-align: center;
  margin-bottom: var(--s-md);
}

.shamanic-help-overview-filter {
  grid-column: 3 / span 10;
  grid-row: 4 / span 1;
  margin-block: var(--s-sm);
}

.shamanic-help-overview-list {
  grid-column: 3 / span 10;
  grid-row: 5 / span 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.shamanic-help-overview-item {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1em;
  padding: 1em;
}

.shamanic-help-overview-item.hidden {
  display: none;
}

.shamanic-help-overview-item-title {
  margin: 0;
  text-wrap: balance;
}

.shamanic-help-overview-item-more-btn {
  margin-top: auto;
  justify-self: center;
}

.shamanic-help-overview-item-img-wrapper {
  aspect-ratio: 450 / 350;
}

.shamanic-help-overview-map {
  grid-column: 3 / span 10;
  grid-row: 3 / span 1;
  aspect-ratio: 16/9;
  touch-action: pan-x pan-y;
}

.shamanic-help-overview .leaflet-popup-content {
  display: grid;
  gap: 0.5em;
  grid-template-columns: 1fr auto;
}

.shamanic-help-overview .map-marker-img-wrapper {
  aspect-ratio: 450 / 350;
  height: calc(1.3 * 4em + 1.2em * 1.3 + 1em);
  grid-row: 1 / span 3;
  grid-column: 2 / span 1;
}

.shamanic-help-overview .map-marker-title {
  font-weight: 700;
  font-size: 1.2em;
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
}

.shamanic-help-overview .map-marker-address {
  grid-row: 2 / span 1;
  grid-column: 1 / span 1;
}

.shamanic-help-overview .map-marker-contact {
  grid-row: 3 / span 1;
  grid-column: 1 / span 1;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.leaflet-popup-content,
.leaflet-container .map-marker-contact a {
  color: var(--black);
}

.leaflet-container a.map-marker-title {
  color: var(--blue);
}

.shamanic-help-overview .map-marker-cat {
  grid-row: 4 / span 1;
  grid-column: 1 / span 2;
}

.shamanic-help-overview-filter {
  display: flex;
  align-items: center;
  gap: 1em;
}

.shamanic-help-overview-filter-location,
.shamanic-help-overview-filter-taxonomy {
  position: relative;
}

.shamanic-help-overview-filter-inner {
  position: absolute;
  height: calc(1.25 * 7em + 0.5em);
  overflow-y: auto;
  border: 1px solid;
  background-color: var(--white);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  width: max-content;
  padding: 0.25em;
  top: calc(100% + 1px);
}

.shamanic-help-overview-filter-inner.active {
  opacity: 1;
  pointer-events: auto;
}

.open-filter-inner {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background-color: var(--white);
  padding: 0.5em;
  border: 1px solid var(--blue);
}

.open-filter-inner::after {
  content: "▴";
  transform: rotate(180deg);
}

.shamanic-help-overview-filter-reset.btn {
  padding: 0.5em;
}

main.content-wrapper .marker-cluster-small {
  background-color: rgba(140, 190, 226, 0.6);
  color: var(--white);
}

main.content-wrapper .marker-cluster-small div {
  background-color: rgba(57, 142, 204, 0.6);
}

@media (max-width: 1199.98px) {
  .shamanic-help-overview-headline,
  .shamanic-help-overview-description,
  .shamanic-help-overview-list,
  .shamanic-help-overview-filter,
  .shamanic-help-overview-map {
    grid-column: 2 / span 12;
  }

  .shamanic-help-overview-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199.98px) and (orientation: portrait) {
  .shamanic-help-overview-map {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 991.98px) {
  .shamanic-help-overview-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .shamanic-help-overview-map {
    grid-column: 1 / span 14;
  }

  .shamanic-help-overview .map-marker-img-wrapper {
    display: none;
  }

  .shamanic-help-overview .leaflet-popup-content {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0.5em;
  }

}

@media (max-width: 767.98px) {
  .shamanic-help-overview-filter {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .shamanic-help-overview-list {
    grid-template-columns: 1fr;
  }

  .shamanic-help-overview-filter {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
