/* Gauge displays: graphs, level colours and the mobile-friendly guide tabs. */

.gauge-chart {
  position: relative;
  width: 100%;
  min-height: 120px;
}

.gauge-tooltip {
  position: absolute;
  z-index: 10;
  padding: 2px 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
  background: rgba(33, 37, 41, 0.9);
  border-radius: 4px;
}

.paddle-days-chart,
.typical-levels-chart {
  position: relative;
  width: 100%;
}

.month-tooltip {
  padding: 4px 8px;
  line-height: 1.35;
}

.gauge-band {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gauge-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}

.gauge-swatch-hollow {
  background: #fff;
  border: 2px solid #adb5bd;
}

.gauge-map-icon {
  background: none;
  border: none;
}

.gauge-map-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.river-dot-icon {
  background: none;
  border: none;
}

.river-dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

.river-dot-hollow {
  background: #fff;
  border: 3px solid #6c757d;
}

.gauge-sparkline {
  width: 100px;
  height: 24px;
  vertical-align: middle;
}

.level-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.level-badge:hover {
  background: #f8f9fa;
}

/* Guide tabs: one row that scrolls sideways on narrow screens instead of wrapping. */
.river-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.river-tabs::-webkit-scrollbar {
  display: none;
}

.river-tabs .nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.river-tabs .nav-link {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .river-tabs {
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }

  .river-tabs.scrolled-end {
    mask-image: none;
  }

  .river-tabs .nav-link {
    padding: 0.5rem 0.75rem;
  }
}
