/* NPN Map Layers + Weather Radar + Traffic Cameras + Radio Towers + FCC ULS v5 */

.npn-map-layer-control {
  background: rgba(5, 9, 5, .92);
  color: #ecfdf5;
  border: 1px solid rgba(125,211,252,.36);
  padding: 11px;
  width: 275px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}

.npn-map-layer-title {
  color: rgba(236,253,245,.92);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.npn-map-layer-row {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.npn-map-layer-row label {
  color: rgba(236,253,245,.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.npn-map-layer-control select,
.npn-map-layer-control button,
.npn-map-layer-control input[type="range"] {
  width: 100%;
}

.npn-map-layer-control select {
  background: rgba(7,15,7,.96);
  border: 1px solid rgba(148,163,184,.28);
  color: #ecfdf5;
  padding: 8px;
  font-weight: 800;
}

.npn-map-layer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.npn-map-layer-control button {
  border: 1px solid rgba(125,211,252,.36);
  background: rgba(15,24,15,.92);
  color: #ecfdf5;
  padding: 8px 9px;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.npn-map-layer-control button.active {
  color: #061006;
  background: rgba(125,211,252,.82);
  border-color: rgba(236,253,245,.70);
}

.npn-map-layer-status {
  color: #a9b8a9;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 8px;
}

.npn-map-layer-status.good {
  color: rgba(132,255,132,.78);
}

.npn-map-layer-status.warn {
  color: rgba(255,191,95,.82);
}

.npn-map-layer-status.bad {
  color: rgba(255,120,120,.86);
}

#mapLayersToggle.layers-on,
#weatherRadarTopToggle.radar-on,
#trafficCamsTopToggle.traffic-on,
#radioTowersTopToggle.towers-on,
#fccUlsTopToggle.uls-on {
  border-color: rgba(125,211,252,.82) !important;
  box-shadow:
    0 0 0 1px rgba(125,211,252,.12) inset,
    0 0 16px rgba(125,211,252,.16) !important;
}

#weatherRadarTopToggle.radar-on {
  border-color: rgba(132,255,132,.75) !important;
}

#trafficCamsTopToggle.traffic-on {
  border-color: rgba(255,191,95,.82) !important;
  color: rgba(255,231,179,.98) !important;
}

#radioTowersTopToggle.towers-on {
  border-color: rgba(125,211,252,.95) !important;
  color: rgba(186,230,253,.98) !important;
}

#fccUlsTopToggle.uls-on {
  border-color: rgba(244,114,182,.92) !important;
  color: rgba(251,207,232,.98) !important;
}

.leaflet-pane.leaflet-npn-weather-pane {
  z-index: 410 !important;
  pointer-events: none !important;
}

.leaflet-pane.leaflet-npn-traffic-pane {
  z-index: 575 !important;
}

.leaflet-pane.leaflet-npn-tower-pane {
  z-index: 585 !important;
}

.leaflet-pane.leaflet-npn-uls-pane {
  z-index: 595 !important;
}

.npn-marker-glyph {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-image: var(--npn-marker-glyph);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--npn-marker-glyph);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.npn-marker-glyph-tower {
  --npn-marker-glyph: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTEyIDN2MThNNiAyMWgxMk04IDIxbDQtMTggNCAxOE04LjUgOC41aDdNNy41IDEzaDlNNSA3YzEuOC0yIDMuOC0zIDctM3M1LjIgMSA3IDNNMy41IDQuNUM2IDIgOC44IDEgMTIgMXM2IDEgOC41IDMuNScgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScxLjgnIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcvPjwvc3ZnPg==");
}

.npn-marker-glyph-camera {
  --npn-marker-glyph: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCc+PHBhdGggZD0nTTQgOGg0bDEuNy0yLjVoNC42TDE2IDhoNHYxMUg0Vjh6JyBmaWxsPSdub25lJyBzdHJva2U9J2JsYWNrJyBzdHJva2Utd2lkdGg9JzInIHN0cm9rZS1saW5lam9pbj0ncm91bmQnLz48Y2lyY2xlIGN4PScxMicgY3k9JzEzLjUnIHI9JzMuMicgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJy8+PHBhdGggZD0nTTE3IDEwaDEuNScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnLz48L3N2Zz4=");
}

.npn-traffic-camera-icon {
  background: transparent;
  border: 0;
}

.npn-traffic-camera-icon span,
.npn-traffic-camera-cluster span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border: 1px solid rgba(255,191,95,.95);
  background: rgba(8,13,8,.95);
  color: #ffbf5f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow:
    0 0 0 2px rgba(255,191,95,.13),
    0 0 18px rgba(255,191,95,.22);
}

.npn-traffic-camera-icon span {
  grid-template-columns: 16px auto;
  column-gap: 3px;
  box-sizing: border-box;
  padding: 0 5px;
}

.npn-traffic-camera-icon .npn-marker-glyph {
  width: 16px;
  height: 16px;
}

.npn-traffic-camera-icon b {
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .04em;
}

.npn-traffic-camera-cluster {
  background: transparent;
  border: 0;
}

.npn-traffic-camera-cluster span {
  width: 46px;
  height: 34px;
  border-color: rgba(255,191,95,1);
  color: #061006;
  background: rgba(255,191,95,.92);
}

.npn-traffic-camera-popup-shell .leaflet-popup-content-wrapper,
.npn-traffic-camera-popup-shell .leaflet-popup-tip {
  background: rgba(5, 9, 5, .96);
  color: #ecfdf5;
  border: 1px solid rgba(255,191,95,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.42);
}

.npn-traffic-camera-popup-shell .leaflet-popup-content {
  margin: 11px;
}

.npn-traffic-camera-popup {
  display: grid;
  gap: 8px;
  min-width: 235px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.npn-traffic-camera-popup strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffbf5f;
  font-size: 13px;
  line-height: 1.2;
}

.npn-traffic-camera-state {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,191,95,.62);
  background: rgba(255,191,95,.14);
  color: #ffe7b3;
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .05em;
}

.npn-traffic-camera-popup span,
.npn-traffic-camera-popup a {
  font-size: 11px;
  line-height: 1.35;
}

.npn-traffic-camera-popup a {
  color: #84ff84;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.npn-traffic-camera-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(0,0,0,.45);
}

.npn-traffic-camera-meta {
  display: grid;
  gap: 2px;
  color: rgba(236,253,245,.68);
}

.npn-radio-tower-icon,
.npn-radio-tower-cluster {
  background: transparent;
  border: 0;
}

.npn-radio-tower-icon span,
.npn-radio-tower-cluster span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125,211,252,.96);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(14,35,45,.96), rgba(5,11,13,.96));
  color: #bae6fd;
  box-shadow:
    0 0 0 2px rgba(125,211,252,.12),
    0 0 18px rgba(125,211,252,.26);
}

.npn-radio-tower-icon span {
  grid-template-rows: 19px 8px;
  gap: 1px;
  width: 40px;
  height: 34px;
  box-sizing: border-box;
  padding: 3px 4px 2px;
}

.npn-radio-tower-icon .npn-marker-glyph {
  width: 18px;
  height: 18px;
}

.npn-radio-tower-icon b,
.npn-radio-tower-cluster b {
  display: block;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .06em;
}

.npn-radio-tower-cluster span {
  width: 42px;
  height: 42px;
  background: rgba(125,211,252,.90);
  color: #031015;
  border-color: rgba(236,253,245,.72);
}

.npn-radio-tower-cluster b {
  font-size: 12px;
}

.npn-radio-tower-popup-shell .leaflet-popup-content-wrapper,
.npn-radio-tower-popup-shell .leaflet-popup-tip {
  background: rgba(5, 9, 5, .96);
  color: #ecfdf5;
  border: 1px solid rgba(125,211,252,.38);
  box-shadow: 0 18px 45px rgba(0,0,0,.42);
}

.npn-radio-tower-popup-shell .leaflet-popup-content {
  margin: 11px;
}

.npn-radio-tower-popup {
  display: grid;
  gap: 8px;
  min-width: 250px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.npn-radio-tower-popup strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.2;
}

.npn-radio-tower-tag {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(125,211,252,.72);
  background: rgba(125,211,252,.14);
  color: #bae6fd;
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .05em;
}

.npn-radio-tower-popup span,
.npn-radio-tower-popup a {
  font-size: 11px;
  line-height: 1.35;
}

.npn-radio-tower-popup a {
  color: #84ff84;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.npn-radio-tower-meta {
  display: grid;
  gap: 2px;
  color: rgba(236,253,245,.68);
}

.npn-uls-license-icon,
.npn-uls-license-cluster {
  background: transparent;
  border: 0;
}

.npn-uls-license-icon span,
.npn-uls-license-cluster span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(244,114,182,.96);
  border-radius: 2px;
  background: rgba(18,8,15,.96);
  color: #fbcfe8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(244,114,182,.13),
    0 0 18px rgba(244,114,182,.24);
}

.npn-uls-license-icon span {
  grid-template-columns: 1fr;
  grid-template-rows: 19px 8px;
  gap: 1px;
  width: 40px;
  height: 34px;
  box-sizing: border-box;
  padding: 3px 4px 2px;
}

.npn-uls-license-icon .npn-marker-glyph {
  width: 18px;
  height: 18px;
}

.npn-uls-license-icon b {
  display: block;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .06em;
  white-space: nowrap;
}

.npn-uls-license-cluster span {
  width: 46px;
  height: 34px;
  color: #16050d;
  background: rgba(244,114,182,.92);
  border-color: rgba(253,242,248,.75);
  font-size: 12px;
}

.npn-uls-popup-shell .leaflet-popup-content-wrapper,
.npn-uls-popup-shell .leaflet-popup-tip {
  background: rgba(5, 9, 5, .96);
  color: #ecfdf5;
  border: 1px solid rgba(244,114,182,.38);
  box-shadow: 0 18px 45px rgba(0,0,0,.42);
}

.npn-uls-popup-shell .leaflet-popup-content {
  margin: 11px;
}

.npn-uls-popup {
  display: grid;
  gap: 8px;
  min-width: 270px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.npn-uls-popup strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fbcfe8;
  font-size: 13px;
  line-height: 1.2;
}

.npn-uls-tag {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(244,114,182,.72);
  background: rgba(244,114,182,.14);
  color: #fbcfe8;
  font-size: 10px !important;
  font-weight: 950;
  letter-spacing: .05em;
}

.npn-uls-popup span,
.npn-uls-popup a {
  font-size: 11px;
  line-height: 1.35;
}

.npn-uls-popup a {
  color: #84ff84;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.npn-uls-meta {
  display: grid;
  gap: 2px;
  color: rgba(236,253,245,.68);
}
