/* تبدیل انتخاب موقعیت از نقشه — OSM رایگان، بدون کلید، کاملاً اختیاری */
.to-map-modal[hidden] { display: none; }
.to-map-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.to-map-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .7); }
.to-map-modal__panel {
  position: relative; background: #fff; border-radius: 14px;
  width: min(860px, 94vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column; overflow: hidden;
}
.to-map-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #E2E8F0;
  font-size: 14px; color: #223339; background: #F8FAFA;
}
.to-map-modal__close {
  border: 0; background: #E6F4F2; color: #0E4D3C;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.to-map-modal__body { height: 56vh; min-height: 320px; }
.to-map-canvas { width: 100%; height: 100%; }
.to-map-modal__msg {
  padding: 8px 16px; font-size: 12.5px; color: #0E4D3C;
  background: #E8F2EE; border-top: 1px solid #D5E0DE;
}
.to-map-modal__msg.is-error { color: #B91C1C; background: #FDE8E8; }
.to-map-pick-btn { cursor: pointer; }
