.leaflet-tile-pane { filter: grayscale(100%); }

#mb-chat-btn {
  position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px;
  border-radius: 50%; background: #509EE3; color: #fff; border: none;
  font-size: 22px; cursor: pointer; z-index: 99999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
}
#mb-chat-panel {
  position: fixed; bottom: 88px; right: 24px; width: 340px; height: 480px;
  background: #fff; border-radius: 12px; z-index: 99999;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden;
  font-family: -apple-system, Arial, sans-serif;
}
#mb-chat-header {
  background: #509EE3; color: #fff; padding: 13px 16px;
  font-weight: 600; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
#mb-chat-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.mb-msg {
  padding: 8px 12px; border-radius: 10px;
  max-width: 88%; font-size: 13px; line-height: 1.5; word-break: break-word;
}
.mb-msg.user { background: #509EE3; color: #fff; align-self: flex-end; text-align: right; }
.mb-msg.bot  { background: #f0f2f5; color: #222; align-self: flex-start; }
.mb-msg.err  { background: #ffe0e0; color: #c00; align-self: flex-start; }
#mb-chat-footer { border-top: 1px solid #eee; padding: 8px 10px; display: flex; gap: 6px; }
#mb-chat-input {
  flex: 1; border: 1px solid #ddd; border-radius: 8px;
  padding: 7px 10px; font-size: 13px; outline: none; direction: rtl;
}
#mb-chat-input:focus { border-color: #509EE3; }
#mb-chat-send {
  background: #509EE3; color: #fff; border: none;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
#mb-chat-send:hover { background: #3d8fd4; }
#mb-chat-clear {
  font-size: 11px; color: #888; text-align: center;
  padding: 4px 0 2px; cursor: pointer; text-decoration: underline;
}
#mb-chat-clear:hover { color: #509EE3; }
