.garden-map {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #f0f0f0;
}

@keyframes fadeInHotspot {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.map-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* הסתרת כפתורי הבקרה בדסקטופ כברירת מחדל */
@media (min-width: 769px) {
  #interactive-map-root:not(.expanded) .map-controls {
    display: none;
  }
}

/* כשהמפה מורחבת - הצגת הכפתורים */
#interactive-map-root.expanded .map-controls {
  display: flex;
}

.map-controls button.reload{
    font-size: 24px;
    text-align: center;
    align-content: center;
    padding-top: 6px;
}
.map-controls button {
color: rgba(181, 216, 56, 1);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 75, 62, 1);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-controls button:hover {
  background:  rgba(181, 216, 56, 1);
  color:  rgba(0, 75, 62, 1);
}

.map-controls button:active {
  transform: scale(0.95);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-container > div {
  position: relative;
  display: inline-block;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* התכווצות לגודל התמונה בדיוק, הקונטיינר מרכז אותנו */
}

.map-container img {
  display: block;
  height: 800px;
  width: auto;
  max-width: none;
  user-select: none;
  object-fit: contain;
}

.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid #004B3E;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: fadeInHotspot 0.2s ease-in;
  z-index: 10;
  box-shadow: 1px 1px 2px 1px rgba(255, 255, 255, 0.5);
}
.hotspot.highlighted{
  background: #B5D838;
  transform: translate(-50%, -50%) scale(1.3);
}

.hotspot.active {
   background: #B5D838;
}

.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.popup {
  padding: 10px;
  position: absolute;
  transform: translate(-50%, calc(-100% - 20px));
  background: white;
  border-radius: 3px;
  border-top-right-radius: 0;
  width: 156px;
  font-size: 15px;
  z-index: 50;
  text-align: right;
  pointer-events: auto;
}

/*.popup::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}*/

.popup-close {
  position: absolute;
    right: 0px;
    top: -20px;
    width: 20px;
    height: 20px;
    font-size: 26px;
    border: none;
    padding-bottom: 2px;
    background: #004B3E;
    line-height: 0.9;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    font-family: 'AtlasLight';
}

.popup img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 4px;
}

.popup.service-icon img {
  object-fit: contain;
  background-color: #004B3E;
  padding:13px;
  border-radius: 0;
}

.popup h3 {
  color: #004B3E;
  font-family: 'AtlasBlack';
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup p {
  font-size: 16px;
  color: #004B3E;
}

.popup a {
    display: block;
    color: #004B3E;
    transition: background 0.2s;
    text-decoration: underline;
  text-decoration-thickness: 1px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .map-controls {
    bottom: 10px;
    right: 10px;
  }

  .popup {
    padding: 5px;
    width: 130px;
    font-size: 13px;
  }
  .popup img{
      height: 60px;
      margin-bottom: 2px;
  }
  .popup.service-icon img {
      padding: 10px;
  }
  .hotspot {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  .popup a{
    font-size: 12px;
  }
}
