/* go_maps_ext */
.frame-type-gomapsext_show .js-gme-container {
  position: relative;
  background: rgb(var(--c-neutral-lighter));
}

/* preview (map loads only after click) */
.gme-preview {
  background: rgb(var(--c-neutral-lighter));
}

.gme-preview__link {
  display: block;
  height: 250px;
}

/* overrides .js-gme-preview img of gkmb_base */
.js-gme-preview .gme-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin-bottom: 0;
  object-fit: cover;
  cursor: pointer;
}

.gme-preview__text {
  padding: 1rem 1.5rem;
  font-size: 87%;
}

/* categories as legend with marker icons */
.gme-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  margin: 0;
  padding: 1rem 1.5rem;
  list-style: none;
}

.gme-cats__item {
  display: flex;
  align-items: center;
  line-height: 30px;
}

.gme-cats__label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.gme-cats__checkbox {
  margin: 0 0.5em 0 0;
}

.gme-cats__marker {
  width: 18px;
  height: auto;
  margin-right: 10px;
}

/* Mapinfo */
.mapinfo {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  padding: 0.2rem 0.4rem 0.4rem 0;
}

.mapinfo__title {
  color: rgb(var(--c-primary));
  font-weight: bold;
}

.mapinfo__button {
  display: inline-block;
  text-decoration: none;
}

@media (min-width: 800px) {
  .gme-preview {
    position: relative;
    height: 500px;
    overflow: hidden;
  }

  .gme-preview__link {
    height: 100%;
  }

  .gme-preview__text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 2rem;
    background: rgb(var(--c-neutral-lighter));
  }

  .frame-type-gomapsext_show .js-gme-container {
    padding-right: 20%;
  }

  .gme-cats {
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    flex-direction: column;
    padding: 20px 25px;
  }
}
