/* ── Weather map panel ──────────────────────────────────────────────────── */
.tab-panel.wx-map-panel {
  padding: 0;
}

.wx-map-wrap {
  height: calc(100vh - 120px);
  width: 100%;
}

/* ── Leaflet DivIcon wrapper ────────────────────────────────────────────── */
.wx-icon-wrap {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
}

/* ── Station marker bubble ──────────────────────────────────────────────── */
.wx-marker {
  position: relative;
  display: inline-block;
  background: #fff;
  border: 1.5px solid #0ea5e9;
  border-radius: 8px;
  padding: 3px 8px 3px;
  white-space: nowrap;
  text-align: center;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
  /* anchor bottom-center of bubble to the lat/lon point */
  transform: translate(-50%, calc(-100% - 6px));
  transition: box-shadow .15s, border-color .15s;
  z-index: 400;
}

/* Downward stem pointing at the location */
.wx-marker::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0ea5e9;
}

.wx-marker:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(14,165,233,.4);
  z-index: 1000;
}

.wx-marker:hover::after {
  border-top-color: #0284c7;
}

.wx-row {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  line-height: 1;
}

.wx-emoji {
  font-size: 17px;
  line-height: 1;
}

.wx-temp {
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.wx-name {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1;
  letter-spacing: .01em;
}

/* ── Popup styling ──────────────────────────────────────────────────────── */
.wx-popup .leaflet-popup-content-wrapper {
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  padding: 0;
}

.wx-popup .leaflet-popup-content {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  margin: 11px 14px 13px;
}

.wx-popup .leaflet-popup-tip-container {
  margin-top: -1px;
}

.wx-pop-ts {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 5px;
  letter-spacing: .01em;
}

.wx-pop-id {
  color: #64748b;
  font-size: 11px;
  margin-left: 5px;
}

.wx-pop-meta {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 6px;
}

.wx-pop-current {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 8px;
}

.wx-pop-emoji {
  font-size: 26px;
  line-height: 1.1;
  flex-shrink: 0;
}

.wx-pop-vals {
  font-size: 13px;
  line-height: 1.6;
}

/* ── Forecast table inside popup ────────────────────────────────────────── */
.wx-pop-fc {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  font-size: 12px;
}

.wx-pop-fc td {
  padding: 3px 0;
  vertical-align: middle;
}

.wx-pop-fc tr + tr td {
  border-top: 1px solid #f1f5f9;
}

.wx-pop-fc-lbl {
  color: #64748b;
  padding-right: 10px;
  white-space: nowrap;
}

.wx-pop-fc-prec {
  color: #0284c7;
  text-align: right;
  white-space: nowrap;
  padding-left: 8px;
}

/* ── Details link ───────────────────────────────────────────────────────── */
.wx-pop-link {
  display: inline-block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #0ea5e9;
  text-decoration: none;
  letter-spacing: .01em;
}

.wx-pop-link:hover { text-decoration: underline; }
