#layerlist {
    list-style: none;
}

.category {
  margin-bottom: 10px;
}

.fruit-toggle {
  margin-left: 20px;
}

.map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.panelmenu {
  position: absolute;
  z-index: 1000;
}

.panelcontent {
  display: none;
}

.panelcontent.show {
  display: block;
}

.layerpaneltext {
  margin-left: 20px;
  margin-right: 20px;
}

.panelmenuitem {
  cursor: pointer;
  background-color: aquamarine;
}

.panelmenuitem img {
  margin: auto;
  margin: auto;
  display: block;
}

.panelmenuitem.show {
  background-color: brown;
}

.panel {
  position: absolute;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: scroll;
}

body {
  overflow: hidden; /* Hide panel outside of viewport dissapear */
  font-family: sans-serif;
}

.infopanelheader {
  margin-left: 20px;
  margin-right: 20px;
}

.layerfruitcount {
  color: gray;
}

/* Desktop panel (left side) */
@media (min-width: 768px) {
  .panel {
    top: 0;
    left: 50px;
    width: 300px;
    height: 100%;
    transform: translateX(-100%);
  }
  .panel.open {
    transform: translateX(0);
  }
  .panelmenu {
    height: 100%;
    left: 0;
    top: 0;
    width: 50px;
  }
  .panelmenuitem {
    width: 100%;
    height: 50px;
  }

  .panelmenuitem img {
    width: 100%
  }
}


/* Mobile panel (bottom) */
@media (max-width: 767px) {
  .panel {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 90%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transform: translateY(100%);
    touch-action: none; /* Needed for swipe handling */
  }
  .panel.fullopen {
    transform: translateY(0);
  }

  .panel.open {
    transform: translateY(55%)
  }

  .panelmenu {
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: grid;
    grid-template-columns: 50% 50%;
  }
  .panelmenuitem {
    width: 100%;
    height: 100%
  }

  .panel.open .infopanelimageandheader {
    display: grid;
    grid-template-columns: 40% 60%; 
  }

  .panel.open .img_attribution {
    display: none;
  }

  .panel.open .img {
    max-height: unset;
    height: 100%;
  }
  .panelmenuitem img {
    height: 30px;
  }
}

.img {
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  object-fit: cover;
  display: block; /* remove space after image */
  transition: transform 0.3s ease;

}

.img-attribution {
  font-size: 12px;
  display: block;
  margin: 0px
}

.marker-icon {
  position: absolute;
  z-index: 2;
  width: 30px;
}

@keyframes marker-focus {
  0%, 100% { filter: drop-shadow(0 0 0 black)}
  50% { filter: drop-shadow(0 0 10px black)}
}

.leaflet-marker-icon.focused svg {
  animation: marker-focus 2s infinite;
}

.leaflet-marker-icon.focused {
  z-index: 998 !important; /* overwrite inline z-index added by leaflet */
}