.leaflet-control-zoom {
  position: fixed !important;
  bottom: 20px;
  left: 300px;
  z-index: 1000;
}

.emoji-dropdown {
  position: absolute;
  background: #2b2b2b;
  border: 1px solid #444;
  padding: 4px;
  z-index: 2000;
  display: none;
  flex-wrap: wrap;
  max-width: 200px;
}

.emoji-input-preview {
  display: none;
  margin-top: 4px;
}

.emoji-picker-preview {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.emoji-picker {
  position: absolute;
  bottom: 0;
  right: 0;
}

.emoji-picker-grid {
  position: absolute;
  top: 34px;
  right: 0;
  background: #2b2b2b;
  border: 1px solid #444;
  padding: 4px;
  display: none;
  z-index: 2000;
  display: grid;
  grid-template-columns: repeat(8, 24px);
  gap: 4px;
  width: calc(8 * 24px + 7 * 4px);
}

.emoji-picker-grid img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.dropdown-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.list-dropdown {
  position: absolute;
  background: #2b2b2b;
  border: 1px solid #444;
  z-index: 2000;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  display: none;
}

.list-dropdown div {
  padding: 2px 4px;
  cursor: pointer;
}

.list-dropdown div:hover {
  background: #444;
}

#filterKategorie {
  margin-top: 5px;
}
  #kategorie-lista {
    margin-left: 10px;
  }

#addLayerBtn {
  margin: 10px 0;
}
#collapseAllLayers {
  margin: 5px 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
#savePinBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 12px 20px;
  font-size: 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  display: none;
}

@media (max-width: 800px) {
  #savePinBtn { display: block; }
}

.mobile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.mobile-modal-content {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 8px;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-modal-content button {
  padding: 8px 12px;
}

.gps-marker {
  width: 12px;
  height: 12px;
  background: #0080ff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,128,255,0.7);
  animation: gps-pulse 2s infinite;
}

@keyframes gps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,128,255,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0,128,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,128,255,0); }
}

@media (max-width: 700px) {
  #geosearch { top: 90px; left: 10px; right: 10px; }
  #gpsFollowBtn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    z-index: 1000;
    background: #2b2b2b;
    color: #f0f0f0;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
  }
  #narzedzia { top: 50px; left: 10px; }
  #exportKML { display: none; }
}
.trudnosc-wrapper {
  margin: 6px 0;
}
.trudnosc-title {
  text-align: center;
  font-size: 12px;
  margin-bottom: 2px;
}
.trudnosc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    to right,
    green 0%,
    green 20%,
    limegreen 20%,
    limegreen 40%,
    yellow 40%,
    yellow 60%,
    orange 60%,
    orange 80%,
    red 80%,
    red 100%
  );
  outline: none;
}
.trudnosc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #444;
  border-radius: 50%;
  cursor: pointer;
}
.trudnosc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 1px solid #444;
  border-radius: 50%;
  cursor: pointer;
}
.trudnosc-labels {
  display: none;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.trudnosc-value {
  text-align: center;
  font-size: 12px;
  margin-top: 2px;
}
.trudnosc-text {
  text-align: center;
  font-size: 12px;
  margin: 6px 0;
}
