/* TTWC Station Network — locked-snapshot map styling (v1.36.0).
 * Fully namespaced under .ttwc-sn-snap and independent of admin.css
 * (which is scoped to #ttwc-sn-dashmap), so multiple snapshots coexist and
 * nothing here touches the interactive dashboard map. */

.ttwc-sn-snap { display: block; margin: 0 0 4px; }
.ttwc-sn-snap .ttwc-snap-app {
  font-family: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #10151a; background: #f4f7f9;
  border: 1px solid #d9e0e6; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 22, 28, .08);
}

/* header */
.ttwc-sn-snap .ttwc-snap-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #0f161c; color: #fff; padding: 10px 14px;
}
.ttwc-sn-snap .ttwc-snap-title {
  font-family: 'Saira Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: .2px;
  text-transform: uppercase;
}
.ttwc-sn-snap .ttwc-snap-sub {
  display: block; text-transform: none; font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600; font-size: 11px; color: rgba(255, 255, 255, .82); margin-top: 3px; letter-spacing: 0;
}
.ttwc-sn-snap .ttwc-snap-count {
  flex: 0 0 auto; font-size: 11px; line-height: 1.2; text-align: right;
  color: rgba(255, 255, 255, .9); white-space: nowrap;
}
.ttwc-sn-snap .ttwc-snap-count b { font-size: 15px; }

/* map stage */
.ttwc-sn-snap .ttwc-snap-stage { position: relative; }
.ttwc-sn-snap .ttwc-snap-map { height: clamp(380px, 56vh, 680px); width: 100%; background: #f4f7f9; }
.ttwc-sn-snap .leaflet-container { font-family: inherit; }
/* keep the attribution small (Leaflet's default is easily enlarged by the theme) */
.ttwc-sn-snap .leaflet-control-attribution {
  font-size: 9px; line-height: 1.35; padding: 0 5px; background: rgba(255, 255, 255, .78);
}
.ttwc-sn-snap .leaflet-control-attribution a { font-size: 9px; }

/* logo (bottom-left) */
/* logo (bottom-left) — transparent PNG on a drop-shadow, exactly like the
 * interactive map's .ttwc-logo. No background box: the shipped ttwc-logo.png
 * is the flood-filled transparent asset (Challenges & Resolutions §1.1), and a
 * plain <img> renders fine in the Leaflet overlay context. */
.ttwc-sn-snap .ttwc-snap-logo {
  position: absolute; left: 12px; bottom: 16px; z-index: 590; pointer-events: none;
}
.ttwc-sn-snap .ttwc-snap-logo img {
  display: block; height: 44px; width: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

/* legend (bottom-right) */
.ttwc-sn-snap .ttwc-snap-legend {
  position: absolute; right: 10px; bottom: 34px; z-index: 500; max-width: 46%;
  background: rgba(255, 255, 255, .94); border: 1px solid #d9e0e6; border-radius: 8px;
  padding: 8px 10px; font-size: 11px; line-height: 1.35; box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  max-height: calc(100% - 46px); overflow: auto;
}
.ttwc-sn-snap .ttwc-snap-leg-title { font-weight: 700; margin-bottom: 5px; }
.ttwc-sn-snap .ttwc-snap-leg-title .u { font-weight: 500; color: #5a6570; }
.ttwc-sn-snap .ttwc-snap-leg-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ttwc-sn-snap .ttwc-snap-leg-row .sw {
  flex: 0 0 auto; width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .25);
}

/* notice / error overlays */
.ttwc-sn-snap .ttwc-snap-notice {
  display: none; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 600;
  background: rgba(255, 255, 255, .96); border: 1px solid #d9e0e6; border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); max-width: 80%; text-align: center;
}
.ttwc-sn-snap .ttwc-snap-fail { padding: 22px 16px; font-size: 13px; color: #9c2a2a; }

/* footer disclaimer */
.ttwc-sn-snap .ttwc-snap-foot {
  padding: 8px 14px; font-size: 10.5px; line-height: 1.4; color: #5a6570; background: #eef2f5;
  border-top: 1px solid #e2e8ed;
}

/* value pill markers (mirror dashboard-map.js .ttwc-pill) */
.ttwc-sn-snap .ttwc-snap-divicon { background: none !important; border: 0 !important; width: auto !important; height: auto !important; }
.leaflet-marker-icon.ttwc-snap-divicon .ttwc-snap-pill,
.ttwc-sn-snap .ttwc-snap-pill {
  display: inline-block; white-space: nowrap; transform: translate(-50%, -50%);
  font-weight: 600; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .92); box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  font-variant-numeric: tabular-nums; cursor: pointer;
}

@media (max-width: 640px) {
  .ttwc-sn-snap .ttwc-snap-title { font-size: 17px; }
  .ttwc-sn-snap .ttwc-snap-legend { max-width: 60%; font-size: 10px; }
}
