/* PlowCast styles, adapted from TrailTap */
:root { --green:#2e7d32; --yellow:#f9a825; --red:#c62828; --gray:#9e9e9e; --navy:#13294b; --cam:#5e35b1; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #222; line-height: 1.4; }
header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 16px; background: var(--navy); }
header a.brand { color: #fff; font-weight: bold; font-size: 18px; text-decoration: none; }
.tagline { color: #cfe0f5; font-size: 14px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 2px 8px; border-radius: 4px; color: #cfe0f5; font-size: 13px; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.12); }
.nav a.on { background: #fff; color: var(--navy); font-weight: bold; }
.credit { margin-left: auto; font-size: 12px; color: #a9bdd8; }
.credit a { color: #ffd166; font-weight: 700; text-decoration: none; }
.credit a:hover { text-decoration: underline; }

.dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red { background: var(--red); }
.dot.gray { background: var(--gray); }
.cam-dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: var(--cam); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--cam); }

.map-wrap { position: relative; }
#map { height: calc(100vh - 44px); }
.key-button { padding: 3px 10px; font: inherit; font-size: 13px; border: 1px solid var(--navy); border-radius: 4px; background: #fff; color: var(--navy); cursor: pointer; }
.key-button:hover { background: var(--navy); color: #fff; }
.key-panel { position: absolute; top: 10px; left: 56px; z-index: 1000; width: 440px; max-width: calc(100% - 70px); max-height: calc(100% - 20px); overflow-y: auto; padding: 14px 16px; font-size: 13px; background: #fff; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.key-panel h2 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.key-panel h3 { margin: 12px 0 4px; font-size: 14px; color: var(--navy); }
.key-panel p, .key-panel ul { margin: 4px 0; }
.key-panel ul { padding-left: 18px; }
.key-close { position: absolute; top: 6px; right: 8px; width: auto; min-height: 0; border: none; background: none; font-size: 20px; cursor: pointer; }
.key-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.key-table th { text-align: left; font-size: 12px; color: #555; border-bottom: 1px solid #ddd; padding: 4px; }
.key-table td { vertical-align: top; padding: 5px 4px; border-bottom: 1px solid #eee; }
.swatch { display: inline-block; width: 22px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 3px; }
.trip-panel { width: 360px; }
.hours { display: flex; align-items: flex-end; gap: 2px; height: 44px; margin: 6px 0 2px; }
.hour { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.hour span { display: block; width: 100%; border-radius: 2px 2px 0 0; }
.hour.best span { outline: 2px solid var(--navy); }
#trip-again { margin-top: 8px; }
.report-box { margin-top: 6px; padding-top: 6px; border-top: 1px solid #eee; }
.report-btn { width: auto; min-height: 28px; margin: 3px 3px 0 0; padding: 2px 8px; font-size: 12px; border: 1px solid #bbb; border-radius: 4px; background: #fff; cursor: pointer; }
.report-btn:hover { background: #eef2f8; }
.report-icon span { display: block; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px #333; }
.band { display: inline-block; padding: 0 6px; margin: 2px 0; border-left: 5px solid; font-weight: bold; }

.panel { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
.about h1 { color: var(--navy); }
.about h2 { margin-top: 28px; padding-top: 14px; font-size: 18px; color: var(--navy); border-top: 1px solid #ddd; }
.about li { margin-bottom: 6px; }
.doc-link a { display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--navy); color: #fff; text-decoration: none; }

.storm-box { max-width: 260px; padding: 10px 12px; font-size: 13px; background: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.storm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.storm-toggle { padding: 1px 8px; font: inherit; font-size: 12px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: var(--navy); cursor: pointer; }
.storm-body { margin-top: 4px; }
.storm-box h3 { margin: 0; font-size: 15px; color: var(--navy); }
.storm-box .note { margin-top: 6px; padding: 6px 8px; border-left: 4px solid var(--yellow); background: #fff8e1; }
.muted { color: #777; }
.small { margin-top: 6px; font-size: 11px; }
img.cam { display: block; width: 280px; max-width: 100%; margin-top: 6px; border-radius: 4px; }

.locate-btn { display: flex !important; align-items: center; justify-content: center; color: #333; }
.locate-btn:hover { color: #1e88e5; }
.locate-btn.active { color: #1e88e5; background: #e3f2fd !important; }

@media (max-width: 600px) {
  .credit { margin-left: 0; }
  #map { height: calc(100vh - 64px); }
  .storm-box { max-width: 200px; font-size: 12px; }
  .key-panel { left: 10px; max-width: calc(100% - 20px); }
}

/* camera labeling page */
.label-page { max-width: 900px; margin: 20px auto; padding: 0 16px; }
.label-img { max-width: 100%; border: 1px solid #ccc; border-radius: 4px; }
.label-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.label-buttons button { padding: 8px 14px; font-size: 15px; cursor: pointer; }

/* buttons in the blue top bar (map page) */
.nav-btn { padding: 2px 8px; font: inherit; font-size: 13px; border: none; border-radius: 4px; background: none; color: #cfe0f5; cursor: pointer; }
.nav-btn:hover, .nav-btn.on { background: rgba(255,255,255,.12); color: #fff; }
.camera-key { position: absolute; bottom: 24px; left: 10px; z-index: 900; padding: 8px 10px; font-size: 12px; background: #fff; border-radius: 6px; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.camera-key .key { margin-right: 8px; }
