/* POI image glow effect */
.poi img {
  transition: filter 0.3s ease;
}

.poi:hover img {
  filter: drop-shadow(0 0 7px #ffffff) drop-shadow(0 0 3px #ffffff);
}

/* Show on Map button */
.show-on-map-wrapper {
  margin-top: -10px;
  margin-bottom: 20px;
  text-align: left;
}

.show-on-map-button {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

.show-on-map-button:hover {
  background-color: #e65c00;
}

/* Tooltip styling */
.custom-tooltip {
  position: absolute;
  max-width: calc(100vw - 32px); /* leave 16px space on both sides */
  box-sizing: border-box;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
  background: #333;
  color: #fff;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
    font-family: 'TildaSans',Arial,sans-serif;
}




.custom-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}


/* Tooltip edge alignment tweaks */
.custom-tooltip.align-left {
  left: 0;
  transform: translateX(0);
}

.custom-tooltip.align-right {
  left: auto;
  right: 0;
  transform: translateX(0);
}


/* Wrapper for the filters */
.district-filters {
  margin-bottom: 30px;
  text-align: center;
}

/* Title styling */
.district-filters__title {
  color: #7dab5f;
  font-size: 42px;
  font-family: "TildaSans", Arial, sans-serif;
  font-weight: 600;
margin-bottom: 3rem;
}

/* Buttons container */
.district-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Buttons */
#district-buttons .filter-button {
  color: #000000;
  background-color: #7dab5f;
  border-radius: 30px;
  -moz-border-radius: 30px;
  -webkit-border-radius: 30px;
  padding: 8px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover and active states */
#district-buttons .filter-button:hover {
  background-color: #689e4b;
}

#district-buttons .filter-button.active {
  background-color: #4f7d39;
  color: #ffffff;
}



.custom-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; /* adjust as needed */
  height: 20px; /* adjust as needed */
  background-color: #7cac5d;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-family: "TildaSans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
    user-select: none; 
}




/* Default (960px and up) */
#custom-map-wrapper {
  width: 854px;
  height: 880px;
  margin: 0 auto;
  position: static;
  padding-top: 0;
}

#custom-map-wrapper iframe {
  width: 854px;
  height: 880px;
  position: static;
}

/* 640px–959px */
@media (max-width: 959px) {
  #custom-map-wrapper {
    width: 640px;
    height: 659px;
    position: static;
    padding-top: 0;
  }

  #custom-map-wrapper iframe {
    width: 640px;
    height: 659px;
    position: static;
  }
}

/* 480px–639px */
@media (max-width: 639px) {
  #custom-map-wrapper {
    width: 480px;
    height: 495px;
    position: static;
    padding-top: 0;
  }

  #custom-map-wrapper iframe {
    width: 480px;
    height: 495px;
    position: static;
  }
}

/* 320px–479px (square responsive version) */
@media (max-width: 479px) {
  #custom-map-wrapper {
    width: 100%;
    padding-top: 100%;
    height: auto; /* ignore height on wrapper */
    position: relative;
  }

  #custom-map-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}

  
  
  
  /* Center the toggle section */
#map-toggle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Styling for the labels */
.map-toggle-label {
  font-size: 16px;
  margin: 0 15px;
    font-family: 'TildaSans',Arial,sans-serif;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #7dab5f;
}

input:checked + .slider:before {
  transform: translateX(26px);
}



/* Add border radius to the container of Yandex map */
.uc-map-yandex {
  border-radius: 15px; /* Adjust this value as needed */
  overflow: hidden; /* Ensure the border radius is applied to the content inside the iframe */
}

/* Add border radius to the iframe itself (if necessary) */
.uc-map-yandex iframe {
  border-radius: 15px; /* Same value as above or different depending on your preference */
}


.t814__blocktext {
  margin-top: 0 !important; /* removing 10% margin from text block */  
}
}
