#map {
  position: relative;
  margin-bottom: 0 !important;
}

#map-container {
  height: 600px;
}

@media screen and (max-width: 425px) {
  #map-container {
    height: 450px;
  }
}

.map-filters-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #e0eafb;
  border-radius: 0 0 20px 0;
  color: #3b3b3a;
  transition: all 0.2s ease-in;
  padding: 0rem 1rem;
  align-items: center;
}

@media screen and (max-width: 768px) {
  #map {
    margin-top: 68px !important;
  }

  .map-filters-wrapper {
    width: 100%;
    top: -68px;
    border-radius: unset;
  }
}

/* Το φόντο ακολουθεί το ύψος της λίστας. Αν δεν χωράει στον χάρτη, κάνει scroll μέσα στο φόντο. */
.map-filters-wrapper.open {
  height: auto;
  max-height: 100%;
  overflow-y: auto;
  padding-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in;
}

.map-filters-wrapper.open .map-filters li {
  white-space: nowrap;
}

.filters-toggler {
  border: none;
  background: none;
  padding: 1rem;
  font-size: 1.5rem;
  width: fit-content;
  position: relative;
  color: #3b3b3a;
}

.filters-toggler::before {
  content: '';
  position: absolute;
  left: 15;
  bottom: 15px;
  width: 0;
  height: 3px;
  background-color: #3b3b3a;
  transition: width 0.25s ease-out;
}

.filters-toggler:hover::before {
  width: 90%;
}

.map-filters {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
}

.map-filters input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

.filter-icon {
  width: 30px;
  height: 30px;
}

.map-filters-wrapper.open > .map-filters {
  display: block;
  animation: filters 1s forwards;
  opacity: 0;
}

@keyframes filters {
  to {
    opacity: 1;
  }
}

.doughnut {
  border: 4px solid;
  border-radius: 50%;
  height: 20px;
  width: 20px;
}

.leaflet-marker-icon {
  object-fit: cover;
}

/* Popup σημείου: τίτλος (bold) και από κάτω η κατηγορία */
.map-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 4px 6px;
}

.map-popup-wrapper .leaflet-popup-content {
  margin: 10px 26px 10px 12px;
  line-height: 1.3;
}

.map-popup-wrapper .leaflet-popup-tip {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.map-popup-wrapper a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  color: #777777;
  font-size: 20px;
}

.map-popup-wrapper a.leaflet-popup-close-button:hover {
  color: #3b3b3a;
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d2b36;
}

a.map-popup-title {
  color: #1d2b36;
  text-decoration: none;
}

a.map-popup-title:hover {
  color: #1f6192;
  text-decoration: underline;
}

.map-popup-category {
  font-size: 13px;
  color: #666666;
}
