#hcff-usgs-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.88);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.hcff-usgs-loading-box {
  text-align: center;
  font-size: 18px;
  color: #005607;
  font-weight: 600;
  background: rgba(255,255,255,0.96);
  padding: 20px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}

.hcff-usgs-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border: 5px solid #d0d0d0;
  border-top: 5px solid #005607;
  border-radius: 50%;
  animation: hcff-usgs-spin 0.9s linear infinite;
}

@keyframes hcff-usgs-spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

.hcff-river-selector-wrap { margin: 20px 0; text-align: center; }
.hcff-river-selector-label { display:block; margin-bottom:8px; font-weight:700; font-size:18px; color:#005607; }
.hcff-river-selector { width:100%; max-width:420px; padding:10px 14px; font-size:17px; border:1px solid #bfc7bf; border-radius:8px; background:#fff; color:#333; box-sizing:border-box; }

.hcff-usgs-report-title { margin-bottom: 4px; }
.hcff-usgs-report-note { text-align:center; font-weight:bold; font-size:12px; }
.hcff-usgs-report-table, .hcff-series-table { width:100%; border-collapse: collapse; font-size:16px; }
.hcff-usgs-report-table th, .hcff-usgs-report-table td, .hcff-series-table th, .hcff-series-table td { padding:8px; border:1px solid #ccc; vertical-align: top; }
.hcff-usgs-report-table thead th, .hcff-series-table thead th { background:#ddd; }
.hcff-col-more { width:1%; }
.hcff-toggle-link { text-decoration:none; font-weight:bold; }
.hcff-station-link { text-decoration:none; font-weight:bold; color:#005607; }
.hcff-station-link:hover { color:darkblue; }
.hcff-row-latest { background:#fff4c2; }
.hcff-row-even { background:#fff; }
.hcff-row-odd { background:#f9f9f9; }
.hcff-temp-caution { color: orange; font-weight:bold; }
.hcff-temp-warning { color: red; font-weight:bold; }
.hcff-orientation-overlay {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  color:#fff;
  display:none;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:9999;
  font-size:24px;
  padding:20px;
  box-sizing:border-box;
}

/* ===== HCFF USGS SELECTOR CLEANUP ===== */

.hcff-river-selector-wrap {
  max-width: 460px;
  margin: 0 auto 25px auto;
  text-align: center;
}

/* Labels */
.hcff-river-selector-label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 18px;
  color: #005607;
}

/* Both dropdowns */
.hcff-state-selector,
.hcff-river-selector {
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  font-size: 17px;
  border: 1px solid #bfc7bf;
  border-radius: 8px;
  background-color: #ffffff;
  color: #333333;
  box-sizing: border-box;

  /* remove browser inconsistencies */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Add a subtle dropdown arrow */
.hcff-state-selector,
.hcff-river-selector {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' viewBox='0 0 20 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l9 8 9-8' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

/* Hover + focus */
.hcff-state-selector:hover,
.hcff-river-selector:hover,
.hcff-state-selector:focus,
.hcff-river-selector:focus {
  border-color: #005607;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 86, 7, 0.15);
}

/* Mobile spacing */
@media (max-width: 600px) {
  .hcff-river-selector-wrap {
    padding: 0 10px;
  }

  .hcff-state-selector,
  .hcff-river-selector {
    font-size: 16px;
  }
}

.hcff-station-filter {
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  font-size: 17px;
  border: 1px solid #bfc7bf;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.hcff-station-results {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 18px auto;
  text-align: left;
}

.hcff-station-result {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
}

.hcff-station-result:hover {
  background: #eef7ee;
}

.hcff-station-result-name {
  font-weight: 700;
  color: #005607;
}

.hcff-station-result-group {
  font-size: 13px;
  color: #666;
}

.hcff-station-results {
    margin-top: 12px;
}

.hcff-station-match {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.hcff-station-match a {
    font-weight: 700;
    color: #005607;
    text-decoration: none;
}

.hcff-station-match a:hover {
    text-decoration: underline;
}

.hcff-station-drainage {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.hcff-station-no-results {
    padding: 10px;
    color: #999;
}

/* Hide drainage selector UI but keep it available to JavaScript */
.hcff-river-selector-label[for^="hcff-river-selector-"],
.hcff-river-selector {
    display: none !important;
}

/* Hide the empty default instruction message */
.hcff-usgs-dynamic-report > p {
    display: none !important;
}