/* ═══════════════════════════════════════════════════════════════
   surface-obs.css — Shared styles for IEM Mesonet surface obs
   Used by both desktop (index.html) and mobile (mobile.html)
   ═══════════════════════════════════════════════════════════════ */

/* ── Station marker icon ───────────────────────────────────────── */
.wx-stn-icon {
  position: relative;
  width: 28px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.wx-stn-icon.stale .wx-stn-barb svg {
  opacity: 0.4;
}

.wx-stn-barb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wx-stn-temp {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 3px #000, 0 0 3px #000;
  white-space: nowrap;
  margin-top: -2px;
}

.wx-stn-icon.stale .wx-stn-temp {
  color: #666 !important;
}

/* ── Station detail panel (click-to-open) ─────────────────────── */
.stn-detail-panel {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  background: #12131c;
  border: 1px solid #2a2b3d;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  color: #e0e0e0;
  font-size: 12px;
  pointer-events: auto;
}

.stn-detail-panel.hidden {
  display: none;
}

.stn-detail-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #2a2b3d;
  padding-bottom: 6px;
}

.stn-detail-header strong {
  font-size: 14px;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.stn-detail-name {
  flex: 1;
  color: #9ca3af;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stn-detail-valid {
  color: #6b7280;
  font-size: 10px;
  white-space: nowrap;
}

.stn-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.stn-detail-table td {
  padding: 2px 6px 2px 0;
  vertical-align: top;
}

.stn-detail-table td:nth-child(odd) {
  color: #9ca3af;
  width: 60px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stn-detail-table td:nth-child(even) {
  color: #e0e0e0;
}

/* ── Desktop Surface sidebar ──────────────────────────────────── */
#surfaceSidebar {
  /* inherits param-sidebar styles from style.css */
}

.surface-info-box {
  background: #0d0e1a;
  border: 1px solid #1e2030;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.surface-info-box strong {
  color: #e0e0e0;
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.surface-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
  padding: 4px 0;
}

.surface-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.surface-status-dot.stale {
  background: #f59e0b;
}

/* ── Mobile Obs detail sheet ──────────────────────────────────── */
#obsDetailSheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #12131c;
  border-top: 1px solid #2a2b3d;
  border-radius: 16px 16px 0 0;
  z-index: 1100;
  padding: 12px 16px 24px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}

#obsDetailSheet.visible {
  transform: translateY(0);
}

.obs-sheet-handle {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.obs-sheet-handle-bar {
  width: 36px;
  height: 4px;
  background: #2a2b3d;
  border-radius: 2px;
}
