/* NJ Fishing Intel Live Marine Flow v5.7.0 */

.njfi-flow-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.marine-flow-status {
  margin: 7px 2px 2px;
  padding: 7px 9px;
  border: 1px solid rgba(130, 205, 230, 0.28);
  border-radius: 7px;
  background: rgba(5, 25, 34, 0.72);
  color: #bfefff;
  font-size: 11px;
  line-height: 1.35;
}

.marine-flow-status[data-level="error"] {
  border-color: rgba(255, 158, 92, 0.55);
  color: #ffd1af;
}

.marine-flow-swatch {
  position: relative;
  width: 22px !important;
  height: 8px !important;
  border: 0 !important;
  border-radius: 5px;
  overflow: visible;
}

.marine-flow-swatch::after {
  content: "›››";
  position: absolute;
  left: 0;
  top: -7px;
  font-weight: 900;
  letter-spacing: -2px;
}

.wind-flow-swatch::after {
  color: #ffffff;
}

.current-flow-swatch::after {
  color: #41dcff;
}

.animated-wave-swatch::after {
  color: #ffd65c;
}

.tide-inlet-swatch::after {
  content: "↕";
  top: -7px;
  left: 6px;
  color: #78e1ff;
  letter-spacing: 0;
}

#tideInletPanel {
  margin: 8px 0 3px;
  max-height: 390px;
  overflow: auto;
  border: 1px solid rgba(105, 203, 235, 0.28);
  border-radius: 8px;
  background: rgba(4, 21, 29, 0.82);
}

.tide-inlet-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: #0a3343;
  border-bottom: 1px solid rgba(118, 221, 255, 0.3);
}

.tide-inlet-heading strong {
  color: #ffffff;
}

.tide-inlet-heading span {
  color: #9edff4;
  font-size: 10px;
}

.tide-inlet-card {
  margin: 8px;
  padding: 9px;
  border: 1px solid rgba(121, 203, 229, 0.2);
  border-radius: 7px;
  background: #0a2733;
  color: #eefaff;
}

.tide-inlet-card h4 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 13px;
}

.tide-current-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 5px 0;
  border-top: 1px solid rgba(143, 224, 250, 0.12);
}

.tide-current-line span {
  color: #9edff4;
  font-size: 11px;
}

.tide-current-line strong {
  color: #ffffff;
}

.tide-current-line small {
  grid-column: 2;
  color: #ffd36c;
  text-align: right;
  text-transform: capitalize;
}

.tide-prediction-list {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.tide-prediction-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
}

.tide-prediction-list b {
  color: #7de2ff;
}

.tide-prediction-list span {
  color: #e8f8fd;
}

.tide-prediction-list em {
  color: #ffffff;
  font-style: normal;
}

.tide-inlet-card footer {
  margin-top: 6px;
  color: #7fb6c8;
  font-size: 10px;
}

.marine-wave-station-icon,
.tide-inlet-marker-icon {
  background: transparent !important;
  border: 0 !important;
}

.marine-wave-station-icon > div,
.tide-inlet-marker-icon > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
  min-height: 28px;
  padding: 3px 5px;
  border: 1px solid #ffd65c;
  border-radius: 14px;
  background: rgba(6, 31, 41, 0.91);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
}

.marine-wave-station-icon > div.crossing {
  border-color: #ff9d66;
  box-shadow:
    0 0 0 2px rgba(255, 118, 62, 0.18),
    0 3px 12px rgba(0, 0, 0, 0.48);
}

.marine-wave-arrow {
  display: inline-block;
  color: #ffd65c;
  font-size: 15px;
  transform-origin: 50% 50%;
}

.tide-inlet-marker-icon > div {
  border-color: #5fdcff;
}

.tide-inlet-marker-icon span {
  color: #5fdcff;
  font-size: 16px;
  font-weight: 900;
}

.marine-live-popup-shell .leaflet-popup-content-wrapper {
  background: #071923 !important;
  color: #f3fbff !important;
  border: 1px solid #57d8ff !important;
  border-radius: 10px !important;
}

.marine-live-popup-shell .leaflet-popup-tip {
  background: #071923 !important;
}

.marine-live-popup-shell .leaflet-popup-content {
  margin: 12px !important;
  width: 350px !important;
  max-width: calc(100vw - 70px) !important;
}

.marine-live-popup {
  color: #f3fbff !important;
  line-height: 1.4;
}

.marine-live-popup > strong {
  display: block;
  color: #ffffff !important;
  font-size: 17px;
}

.marine-live-popup > span {
  display: block;
  margin-bottom: 8px;
  color: #85ddf8 !important;
  font-size: 11px;
  text-transform: uppercase;
}

.marine-live-popup-grid {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 5px 9px;
  padding: 8px;
  border-radius: 7px;
  background: #0b2b38;
}

.marine-live-popup-grid b {
  color: #90e2fa !important;
}

.marine-live-popup-grid span {
  color: #ffffff !important;
}

.marine-live-assessment {
  margin: 8px 0;
  padding: 7px 9px;
  border-radius: 6px;
  background: #123a48;
  color: #ffffff !important;
  font-weight: 700;
}

.marine-live-assessment.caution {
  background: #5c3515;
  color: #ffe4bc !important;
}

.marine-live-popup small {
  color: #a7cfdd !important;
}

@media (max-width: 700px) {
  #tideInletPanel {
    max-height: 300px;
  }

  .marine-live-popup-shell .leaflet-popup-content {
    width: 290px !important;
  }
}
