/* Bagyo Serye v1.3.3B — public-warning accuracy and bright-map corrective layer */

html { color-scheme: dark; }

.map-card.span-12 { width: 100%; }

.dashboard-map-stage {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  background: #dceef4;
}

.dashboard-map-stage .dashboard-leaflet-map {
  position: relative;
  z-index: 0;
  min-height: 520px;
  background: #dceef4;
}

.dashboard-map-stage .premium-map-legend,
.dashboard-map-stage .radar-intensity-legend,
.dashboard-map-stage .map-time-badge {
  z-index: 700;
}

.dashboard-briefing-strip,
.map-card > .map-attribution-note {
  position: relative;
  z-index: 1;
  clear: both;
}

.leaflet-container,
.cyclone-map,
.pacific-report-map {
  background: #dceef4 !important;
}

.wind-flow-canvas {
  filter: saturate(.78) brightness(1.08);
  mix-blend-mode: multiply;
}

.tcws-board { overflow: hidden; }
.tcws-tools,
.flood-tools,
.thunder-region-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.tcws-tools label {
  display: grid;
  gap: 5px;
  width: min(640px, 100%);
  color: var(--muted);
  font-size: 10px;
}
.tcws-tools input,
.flood-tools select,
.thunder-region-filters select {
  min-height: 39px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: rgba(5, 22, 38, .88);
  color: #e9f7ff;
  padding: 8px 10px;
}
.tcws-summary {
  padding: 12px 14px;
  color: #c6dce7;
  font-size: 11px;
  background: rgba(48, 157, 230, .07);
}
.tcws-signal-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.tcws-signal-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  border: 1px solid rgba(103, 191, 244, .2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(5, 21, 37, .7);
}
.tcws-level {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 112px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(16, 94, 149, .5), rgba(7, 37, 64, .9));
}
.tcws-level strong { font-size: 25px; }
.tcws-level small { color: #b6d7e8; text-align: center; font-size: 9px; }
.tcws-level.signal-5 { background: linear-gradient(145deg, #8e113d, #3c0b26); }
.tcws-level.signal-4 { background: linear-gradient(145deg, #c1353e, #5b1525); }
.tcws-level.signal-3 { background: linear-gradient(145deg, #d66e1e, #673314); }
.tcws-level.signal-2 { background: linear-gradient(145deg, #ba9a16, #534512); }
.tcws-level.signal-1 { background: linear-gradient(145deg, #267c69, #123f39); }
.tcws-coverage { padding: 12px 14px; }
.tcws-coverage header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dff5ff;
  font-size: 10px;
}
.tcws-coverage section { margin-top: 9px; }
.tcws-coverage section > b {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tcws-region-details {
  padding: 8px 0;
  border-top: 1px solid rgba(104,194,255,.08);
}
.tcws-region-details summary {
  color: var(--cyan);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tcws-region-details ul { margin-bottom: 0; }
.tcws-coverage ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #c9dce6;
  font-size: 10px;
  line-height: 1.55;
}
.tcws-no-match {
  padding: 18px;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.flood-tools { align-items: center; padding-block: 10px; }
.flood-tools span { color: var(--muted); font-size: 9px; }
.flood-advisory-panel > .card-head {
  height: auto;
  min-height: 72px;
  padding-block: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head > .icon-heading {
  flex-direction: row;
  align-items: center;
}
.icon-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.icon-heading > div > small,
.icon-heading > div > strong { display: block; }
.flood-basin-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(104,194,255,.08);
}
.flood-basin-row small { display: block; color: var(--muted); margin-top: 2px; }
.flood-basin-row a { color: inherit; text-decoration: none; }
.flood-basin-row a:hover { color: var(--cyan); }
.flood-wave-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255,197,79,.18);
  color: #ffd171;
  font-style: normal;
}

.thunder-region-filters { align-items: center; padding-block: 10px; }
.thunder-official-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(213,74,91,.08);
  color: #bfd4de;
  font-size: 9px;
}
.thunder-official-status b { color: #ff9bad; letter-spacing: .08em; }
.thunder-official-status a { margin-left: auto; color: var(--cyan); }
.thunder-methodology {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.thunder-area-card {
  border-left: 4px solid rgba(79, 199, 150, .8);
}
.thunder-area-card.warn { border-left-color: #f3b742; }
.thunder-area-card.danger { border-left-color: #ff536f; }
.thunder-area-card .risk-basis { color: #8ea9b9; }

.facebook-follow-btn.compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(24, 119, 242, .65);
  background: #1877f2;
  color: white;
  text-decoration: none;
  box-shadow: none;
}
.facebook-follow-btn.compact svg {
  width: 17px;
  height: 17px;
  fill: white;
  flex: 0 0 auto;
}
.facebook-follow-btn.compact::before { display: none; }
.facebook-follow-btn.compact strong { font-size: 10px; }

.cyclone-marker-badge {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 8px;
  border-radius: 50%;
  background: #f7f9fb;
  border: 4px solid #e14857;
  color: #991f33;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(225,72,87,.18);
}
.official-age-line { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.official-marker-icon,
.model-marker-icon {
  background: transparent;
  border: 0;
}
.official-marker-icon span,
.model-marker-icon span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 5px;
  border-radius: 50%;
  background: white;
  border: 3px solid #df4055;
  color: #8e1830;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.model-marker-icon span {
  min-width: 62px;
  border-color: #e1aa28;
  color: #5c4611;
  font-size: 9px;
}

@media (max-width: 760px) {
  .dashboard-grid > * {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
  }
  .dashboard-map-stage .dashboard-leaflet-map { min-height: 430px; }
  .tcws-tools,
  .flood-tools,
  .thunder-region-filters { align-items: stretch; flex-direction: column; }
  .thunder-official-status { align-items: flex-start; flex-direction: column; }
  .thunder-official-status a { margin-left: 0; }
  .tcws-signal-card { grid-template-columns: 1fr; }
  .tcws-level { min-height: 80px; }
}
