.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #31495c;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
  border: 1px solid rgba(12, 209, 232, 0.22);
}

.leaflet-popup-content {
  margin: 12px 28px 12px 12px;
  min-width: 196px;
}

.leaflet-container a.leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.72);
  top: 10px;
  right: 8px;
  width: 20px;
  height: 20px;
  font-size: 18px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #0cd1e8;
}

.bubble-alert {
  min-width: 196px;
  max-width: 260px;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.bubble-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bubble-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #fff !important;
  margin: 0;
}

.bubble-subtitle {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0.82;
}

.bubble-distance {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0cd1e8;
}

.bubble-alert.bubble-fire.bubble-c3 {
  border-left: 3px solid rgba(255, 80, 80, 0.9);
  padding-left: 8px;
}

.bubble-alert.bubble-fire.bubble-c2 {
  border-left: 3px solid rgba(255, 165, 0, 0.9);
  padding-left: 8px;
}

.bubble-alert.bubble-quake {
  border-left: 3px solid rgba(196, 132, 80, 0.95);
  padding-left: 8px;
}

.bubble-alert.bubble-other {
  border-left: 3px solid rgba(12, 209, 232, 0.7);
  padding-left: 8px;
}

.bubble-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.bubble-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
}

.bubble-chip.chip-c2 {
  background: rgba(255, 165, 0, 0.2);
  color: #ffcc80;
}

.bubble-chip.chip-c3 {
  background: rgba(244, 67, 54, 0.22);
  color: #ff8a80;
}

.bubble-facts {
  display: grid;
  gap: 4px;
}

.bubble-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.bubble-label {
  font-weight: 600;
  opacity: 0.7;
}

.bubble-value {
  font-weight: 600;
  text-align: right;
}
