/* Water temperature layer: scoped so it can sit beside the existing map styles. */
.wt-ui { font-size: 13px; line-height: 1.45; margin: 4px 0 6px; }
.wt-ui.wt-floating { background: rgba(244,239,228,.96); padding: 8px 10px; border: 1px solid rgba(28,36,32,.2); border-radius: 8px; max-width: 240px; }
.wt-toggle { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; padding: 3px 0; }
.wt-toggle.wt-sub { font-weight: 400; font-size: 12px; padding-left: 20px; }
.wt-toggle input { margin-top: 3px; }
.wt-swatch { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; margin-top: 4px;
  background: linear-gradient(90deg, #2b4d8f, #4aa66b, #d4b82a, #d65a24); border: 1px solid rgba(0,0,0,.25); }
.wt-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #3d4a44; margin: 2px 0 2px 20px; }
.wt-legend i { flex: 1; height: 8px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2);
  background: linear-gradient(90deg, #2b4d8f, #2f78b5, #2a9aa6, #4aa66b, #9dbb3c, #d4b82a, #e08a24, #d65a24, #b02a1e); }
.wt-fine { font-size: 12px; color: #3d4a44; margin: 4px 0; }
.wt-ui-note { margin-left: 20px; }
.wt-sum { margin: 0 0 4px; font-size: 13px; }

.wt-divicon { background: none; border: 0; }
.wt-pill { display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -50%);
  white-space: nowrap; font: 700 12px/1 "Segoe UI", system-ui, sans-serif; color: #fff;
  background: var(--wt, #1b4f5e); border: 2px solid #fff; border-radius: 999px; padding: 3px 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4); text-shadow: 0 1px 1px rgba(0,0,0,.35); cursor: pointer; }
.wt-pill .wt-lbl { font-weight: 600; font-size: 10px; opacity: .92; }
.wt-pill.wt-live { box-shadow: 0 0 0 2px var(--wt), 0 1px 4px rgba(0,0,0,.4); }
.wt-pill.wt-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: wt-pulse 1.8s infinite; }
@keyframes wt-pulse { 50% { opacity: .35; } }
.wt-pill.wt-typical { background: color-mix(in srgb, var(--wt) 38%, #fff); color: #1c2420; text-shadow: none;
  border: 2px dashed var(--wt); }
.wt-pill.wt-old { background: rgba(244,239,228,.92); color: #3d4a44; text-shadow: none; border: 1.5px solid #8a8f89;
  font-size: 11px; padding: 2px 6px; box-shadow: none; }
.wt-pill.wt-old .wt-val { color: var(--wt); font-weight: 800; }

.wt-pop { min-width: 210px; max-width: 280px; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
.wt-pop h4 { margin: 0 0 4px; font-size: 14px; }
.wt-pop p { margin: 4px 0; }
.wt-big { font-size: 22px; font-weight: 700; }
.wt-big span { font-size: 13px; font-weight: 400; color: #3d4a44; }
.wt-badge { display: inline-block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; color: #fff; }
.wt-b-live { background: #1e7a4a; } .wt-b-sample { background: #1b4f5e; }
.wt-b-typical { background: #8c6d1c; } .wt-b-old { background: #6b6b6b; }
.wt-warn { color: #8a3b2c; }
.wt-band { background: rgba(92,107,61,.12); border-left: 3px solid #5c6b3d; padding: 4px 6px; font-size: 12px; }
