/* מיכל המפה */
.leaflet-container {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  direction: rtl;
}

/* תיבת ה-divIcon של המארקר שלנו – לא לחתוך תוכן */
.leaflet-marker-icon.branch-divicon { overflow: visible !important; }

/* עטיפה פנימית באותה מידה כמו iconSize */
.branch-divicon .pin-wrap {
  position: relative;
  width: 120px;  /* תואם ל-iconSize[0] */
  height: 48px;  /* תואם ל-iconSize[1] */
}

/* התווית (שם העיר) – רקע תואם למשפט */
.branch-divicon .pin-label {
  display: inline-block;
  width: auto;   /* אוטומטי - מתאים לאורך הטקסט */
  min-width: 60px;
  max-width: 200px;
  padding: 4px 10px;
  font-family: "Assistant", Sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  background-color: #10437C;
  border-radius: 5px;
  box-shadow: 0px 0px 28px 0px rgba(0,0,0,0.86);
  margin-bottom: 8px;
  text-align: center;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  pointer-events: none; /* לא לחסום קליקים */
  box-sizing: border-box;
}

/* הנקודה עצמה – ממורכזת בתחתית - עיצוב כמו כפתור */
.branch-divicon .pin-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0);
  width: 16px;
  height: 16px;
  background: #10437c;
  border: 2px solid #10437c;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,.35), 0 0 0 2px rgba(16, 66, 124, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* אפקט hover על הנקודה */
.branch-divicon:hover .pin-dot {
  background: #10437c;
  border-color: #10437c;
  transform: translate(-50%, 0) scale(1.2);
  box-shadow: 0 4px 15px rgba(0,0,0,.5), 0 0 0 4px rgba(16, 66, 124, 0.3);
}

/* אפקט לחיצה */
.branch-divicon:active .pin-dot {
  transform: translate(-50%, 0) scale(1.1);
}

/* Leaflet popup (התוכן שמגיע מהתבנית) */
.branches-leaflet-popup .leaflet-popup-content { margin: 10px 12px; }
.branch-popup { font-family: inherit; font-size: 14px; }
.branch-popup .bp-title { font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.branch-popup .bp-row { margin: 4px 0; }
.branch-popup .bp-link { display:inline-block; margin-top: 6px; text-decoration: none; font-weight: 700; }
.branch-popup.loading .bp-row { opacity: .7; font-style: italic; }
.branch-popup.error .bp-row { color: #b00020; }
