.table-mapbox tr {
  cursor: pointer;
}
.mapbox-popup-title {
  color: var(--body-color);
}
.mapbox-popup-description {
  color: var(--body-color);
}

.table-pposmap {
  min-height: var(--pposmap-height, 500px);
}

#map {
  height: var(--pposmap-height, 500px);
  min-height: var(--pposmap-height, 500px);
  width: 100%;
}

/* Mapbox GL: dopilnuj, żeby canvas wypełniał kontener #map */
#map .mapboxgl-map,
#map .mapboxgl-canvas {
  width: 100%;
  height: 100%;
}

/* Mapbox GL: popup obrazek jak w Leaflet */
#map .mapboxgl-popup-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mapbox GL: nasz marker (gdy używamy custom element) */
.marker {
  --pposmap-marker-width: 50px;
  --pposmap-marker-height: 64px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  width: var(--pposmap-marker-width);
  height: var(--pposmap-marker-height);
  cursor: pointer;
}
#map .mapboxgl-popup-content {
  background: var(--body-bg, #fff);
  color: var(--body-color);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 20px 10px 15px;
  pointer-events: auto;
  position: relative;
}

/* Mapbox GL: linki w popup (np. tel) zawsze czytelne */
#map .mapboxgl-popup-content a,
#map .mapboxgl-popup-content a:hover,
#map .mapboxgl-popup-content a:visited {
  color: currentColor;
}
.flex-container {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.list-items-container {
  max-height: var(--pposmap-height, 500px);
  width: 22%;
  overflow: auto;
  scrollbar-color: rgba(0, 0, 0, 0.1) white;
  scrollbar-width: thin;
  padding-top: 25px;
}
.list-item {
  /* display: flex;
  justify-content: space-between;
  align-items: flex-end; */
  background-color: #f7f7f7;
  padding: 20px;
  margin: 0 10px 10px;
  border-top-left-radius: 50px;
  border-bottom-right-radius: 50px;
}
h3.location {
  font-family: "Courgette", cursive;
  letter-spacing: 1px;
  padding: 10px 0;
  font-weight: normal;
  padding-top: 0;
  margin: 0;
}
.list-item:hover {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 4px 9px;
}

.leaflet-popup-content img {
  width: 100%;
}
/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 800px) {
  .flex-container {
    flex-direction: column;
  }
  .table-pposmap {
    min-height: var(--pposmap-height-mobile, var(--pposmap-height, 400px));
  }
  #map {
    height: var(--pposmap-height-mobile, var(--pposmap-height, 400px));
    min-height: var(--pposmap-height-mobile, var(--pposmap-height, 400px));
  }
  .list-items-container {
    width: 100%;
    max-height: var(--pposmap-height-mobile, var(--pposmap-height, 400px));
    overflow: auto;
    scrollbar-color: rgba(0, 0, 0, 0.1) white;
    scrollbar-width: thin;
    padding-top: 25px;
  }
}
