.map__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 40px;
}

@media screen and (min-width: 768px) {
  .map__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.map__wrap {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 9/16;
}

@media screen and (min-width: 768px) {
  .map__wrap {
    aspect-ratio: 16/9;
  }
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d6dadd;
}

.mapboxgl-popup-content,
.map__popup {
  padding: 0;
  color: var(--ltf-color-black);
  background-color: var(--ltf-color-white);
}

.mapboxgl-popup-close-button {
  top: 0.25rem;
  right: 0.25rem;
  padding: 0.5rem;
  border-radius: 100%;
  aspect-ratio: 1;
  color: var(--ltf-color-primary);
  background-color: color-mix(in srgb, var(--ltf-color-white) 70%, transparent);
  font-size: 1.25rem;
  text-align: center;
  line-height: 0;
  transition: all 0.2s ease-in-out;
}

.mapboxgl-popup-close-button:hover {
  color: var(--ltf-color-white);
  background-color: color-mix(
    in srgb,
    var(--ltf-color-primary) 100%,
    transparent
  );
}

.mapboxgl-popup-close-button span {
  position: relative;
  top: -1.5px;
  display: inline-block;
}

.map__popup--image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.map__popup--content {
  padding: 1rem;
  font-size: 1rem;
}

.map__popup--name.h5,
.map__popup--location.h6,
.map__popup--focus-areas {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  color: var(--ltf-color-primary);
}

.map__popup--location.h6 {
  font-weight: 700;
  text-transform: uppercase;
}

.map__popup--focus-areas {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.map__popup--link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ltf-color-primary) !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

.map__filters {
  grid-column: 1 / -1;
}

@media screen and (min-width: 768px) {
  .map__filters {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    grid-column: 1 / 2;
  }
}

.map__filters--header {
  margin-bottom: 1rem;
  white-space: nowrap;
}

.map__filters--buttons--wrap {
  display: flex;
  flex-flow: column;
  gap: 1rem;
  overflow: hidden;
  transition: height 0.2s ease-in-out;
}

@media screen and (min-width: 768px) {
  .map__filters--buttons--wrap {
    flex-flow: row;
    flex-wrap: wrap;
  }
}

.map__filters--buttons--wrap .map__filter--label {
  width: max-content;
}

.map__text {
  grid-column: 1 / -1;
}

@media screen and (min-width: 768px) {
  .map__text {
    grid-column: 2 / -1;
  }
}
