.flood-page .poll-results-hero { margin-bottom: 16px; }

.flood-page .weather-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  border-radius: 12px;
  background: var(--twro-ink2, rgba(255, 255, 255, 0.04));
}

.flood-page .weather-share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--twro-mute, #8aa0bc);
  margin-right: 4px;
}

.flood-page .weather-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink3, rgba(255, 255, 255, 0.06));
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.flood-page .weather-share-btn:hover {
  border-color: var(--twro-gold, #e8c05a);
  background: rgba(232, 192, 90, 0.08);
}

.flood-page .weather-share-btn.is-copied {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
}

.flood-page .weather-share-btn svg,
.flood-page .weather-share-btn .news-share-svg {
  width: 18px;
  height: 18px;
}

.flood-page .weather-share-btn .news-share-icon--ok { display: none; }
.flood-page .weather-share-btn.is-copied .news-share-icon--default { display: none; }
.flood-page .weather-share-btn.is-copied .news-share-icon--ok { display: inline-flex; }

html[data-twro-theme="light"] .flood-page .weather-share,
html[data-twro-theme="read"] .flood-page .weather-share {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-twro-theme="light"] .flood-page .weather-share-btn,
html[data-twro-theme="read"] .flood-page .weather-share-btn {
  background: #fff;
  border-color: #e2e8f0;
}

.flood-layout { display: block; }

.flood-map-card {
  margin: 0 0 16px;
  padding: 14px 14px 10px;
  border-radius: 18px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink2, #122336);
}

.flood-map-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.flood-map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #7d9a4a;
  flex: 0 0 auto;
  position: relative;
}

.flood-map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #7d9a4a;
}

.flood-map-head label {
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.flood-map-expand {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink, #0b1622);
  color: var(--twro-text, #fff);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.flood-map-expand:hover,
.flood-map-expand[aria-pressed="true"] {
  border-color: var(--twro-gold, #e8c05a);
  color: var(--twro-gold, #e8c05a);
}

.flood-map-card.is-expanded {
  position: sticky;
  top: 84px;
  z-index: 2;
  max-height: 60vh;
  overflow: auto;
}

.flood-map-card.is-expanded .flood-svg {
  width: 100%;
  margin: 0;
}

.flood-map-head select {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink, #0b1622);
  color: var(--twro-text, #fff);
  font: inherit;
}

.flood-map-stage { position: relative; }

.flood-map-tip {
  position: absolute;
  z-index: 6;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: #102033;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -130%);
}

.flood-map-card.is-expanded .flood-map-tip { font-size: 1.55rem; padding: 9px 18px; }

.flood-svg.is-tip .flood-khet-label { opacity: 0.2; }
.flood-svg.is-tip .is-hot .flood-khet-label { opacity: 0; }
.flood-khet.is-hot path { stroke: #102033; stroke-width: 2.4; }

.flood-svg { width: 100%; height: auto; display: block; }

.flood-khet path {
  fill: #243044;
  stroke: rgba(11, 22, 34, 0.9);
  stroke-width: 1.1;
  cursor: pointer;
}

.flood-khet--bad path { fill: #e07a72; }
.flood-khet--watch path { fill: #d4b06a; }
.flood-khet--ok path { fill: #6aafa3; }
.flood-khet--info path { fill: #8b97a8; }
.flood-khet--none path { fill: #31445c; }
.flood-khet.is-on path { stroke: #f8fafc; stroke-width: 2.8; }
.flood-khet path:focus-visible { outline: 2px solid var(--twro-gold, #ffc247); }

.flood-khet-label {
  font-weight: 700;
  fill: #102033;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(11, 22, 34, 0.45);
  stroke-width: 2px;
  stroke-linejoin: round;
}

.flood-khet--bad .flood-khet-label,
.flood-khet--none .flood-khet-label,
.flood-khet--info .flood-khet-label { fill: #f8fafc; }

.flood-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.75rem;
}

.flood-map-key i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}

.flood-map-key .is-bad { background: #f3b7b4; }
.flood-map-key .is-watch { background: #e7d3a4; }
.flood-map-key .is-ok { background: #c5e6de; }
.flood-map-key .is-info { background: #d5d8de; }
.flood-map-key .is-none { background: #f4f6f8; border: 1px solid #d5dbe3; }

.flood-map-note {
  margin: 0;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.72rem;
  line-height: 1.45;
}

html[data-twro-theme="light"] .flood-map-card,
html[data-twro-theme="read"] .flood-map-card {
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html[data-twro-theme="light"] .flood-map-head select,
html[data-twro-theme="read"] .flood-map-head select,
html[data-twro-theme="light"] .flood-map-expand,
html[data-twro-theme="read"] .flood-map-expand {
  background: #fff;
  color: #1a2332;
}

html[data-twro-theme="light"] .flood-khet path,
html[data-twro-theme="read"] .flood-khet path { stroke: #fff; stroke-width: 1.3; }
html[data-twro-theme="light"] .flood-khet--bad path,
html[data-twro-theme="read"] .flood-khet--bad path { fill: #f3b7b4; }
html[data-twro-theme="light"] .flood-khet--watch path,
html[data-twro-theme="read"] .flood-khet--watch path { fill: #e7d3a4; }
html[data-twro-theme="light"] .flood-khet--ok path,
html[data-twro-theme="read"] .flood-khet--ok path { fill: #c5e6de; }
html[data-twro-theme="light"] .flood-khet--info path,
html[data-twro-theme="read"] .flood-khet--info path { fill: #d5d8de; }
html[data-twro-theme="light"] .flood-khet--none path,
html[data-twro-theme="read"] .flood-khet--none path { fill: #f7f8fa; stroke: #e6ebf0; }
html[data-twro-theme="light"] .flood-khet.is-on path,
html[data-twro-theme="read"] .flood-khet.is-on path { stroke: #1e3a5f; stroke-width: 2.6; }
html[data-twro-theme="light"] .flood-khet-label,
html[data-twro-theme="read"] .flood-khet-label {
  stroke: rgba(255, 255, 255, 0.92);
}
html[data-twro-theme="light"] .flood-khet--bad .flood-khet-label,
html[data-twro-theme="read"] .flood-khet--bad .flood-khet-label,
html[data-twro-theme="light"] .flood-khet--none .flood-khet-label,
html[data-twro-theme="read"] .flood-khet--none .flood-khet-label,
html[data-twro-theme="light"] .flood-khet--info .flood-khet-label,
html[data-twro-theme="read"] .flood-khet--info .flood-khet-label { fill: #3c4a5a; }

@media (min-width: 980px) {
  .flood-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  .flood-map-card { position: sticky; top: 84px; }
  body.flood-map-open .flood-layout {
    grid-template-columns: minmax(0, 60%) minmax(280px, 1fr);
  }
  .flood-map-card.is-expanded { max-height: calc(100vh - 100px); }
}

.flood-verdict {
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
}

.flood-verdict--bad { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); }
.flood-verdict--watch { background: rgba(234, 179, 8, 0.16); border-color: rgba(234, 179, 8, 0.45); }
.flood-verdict--ok { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.4); }
.flood-verdict--old,
.flood-verdict--empty { background: var(--twro-ink2, rgba(255, 255, 255, 0.04)); }

.flood-verdict__text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.flood-verdict__time {
  margin: 6px 0 0;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.85rem;
}

.flood-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.flood-card {
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink2, rgba(255, 255, 255, 0.04));
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 88px;
}

.flood-card__k {
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.78rem;
  font-weight: 700;
}

.flood-card__v {
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.flood-card__s {
  margin-top: 4px;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.8rem;
}

.flood-gauge {
  margin: 0 0 14px;
}

.flood-gauge__k {
  margin: 0;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.78rem;
  font-weight: 700;
}

.flood-gauge__v {
  margin: 2px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

.flood-gauge__read {
  margin: 4px 0 8px;
  color: var(--twro-lime, #c8ff3d);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.flood-gauge__stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  line-height: 0;
}

.flood-gauge__art {
  display: block;
  width: 100%;
  height: auto;
}

.flood-gauge__water {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.78), rgba(2, 132, 199, 0.55) 42%, rgba(3, 105, 161, 0.62));
  transform-origin: center bottom;
  animation: flood-rise 0.9s ease-out both;
  pointer-events: none;
}

.flood-gauge__badge {
  position: absolute;
  top: 8px;
  left: 12px;
  margin: 0;
  color: #0f2744;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.flood-gauge__names {
  display: grid;
  grid-template-columns: 25.4% 29% 27.6% 18%;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.flood-gauge__names li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.flood-gauge__names strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.flood-gauge__names span {
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.75rem;
  line-height: 1.3;
}

.flood-gauge__note {
  margin: 8px 0 0;
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.8rem;
  line-height: 1.5;
}

.flood-gauge__wave {
  position: absolute;
  left: 0;
  top: -8px;
  width: 200%;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'><path d='M0 10 Q18 0 36 10 T72 10 V16 H0 Z' fill='%23e0f2fe'/></svg>") repeat-x;
  animation: flood-wave 3.2s linear infinite;
}

@keyframes flood-rise {
  from { transform: scaleY(0); }
}

@keyframes flood-wave {
  from { transform: translateX(0); }
  to { transform: translateX(-72px); }
}

@media (prefers-reduced-motion: reduce) {
  .flood-gauge__water,
  .flood-gauge__wave { animation: none; }
}

.flood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.flood-chip {
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.flood-chip.is-on {
  border-color: var(--twro-gold, #ffc247);
  background: var(--twro-quote-bg, rgba(232, 192, 90, 0.14));
}

.flood-trend {
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.78rem;
}

.flood-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.flood-search {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink2, #122336);
  color: inherit;
  font: inherit;
}

.flood-near {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink3, #1b324b);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.flood-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flood-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink2, rgba(255, 255, 255, 0.03));
}

.flood-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 auto;
  background: #94a3b8;
}

.flood-item--crit .flood-dot,
.flood-item--flood .flood-dot { background: #ef4444; }
.flood-item--warn .flood-dot,
.flood-item--slight .flood-dot { background: #eab308; }
.flood-item--ok .flood-dot { background: #22c55e; }

.flood-item__name { font-weight: 800; line-height: 1.35; }
.flood-item__meta,
.flood-note,
.flood-empty,
.flood-wait,
.flood-legend,
.flood-credit,
.flood-more {
  color: var(--twro-mute, #c5d0e0);
  font-size: 0.84rem;
  line-height: 1.5;
}

.flood-item__meta { margin-top: 2px; }
.flood-stale { color: #f59e0b; }
.flood-item__links { display: flex; gap: 12px; margin-top: 6px; }
.flood-link { color: var(--twro-lime, #c8ff3d); font-size: 0.82rem; }

.flood-legend,
.flood-credit,
.flood-more { margin: 8px 0; }
.flood-credit a { color: inherit; }

.flood-more-btn {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--twro-line, rgba(255, 255, 255, 0.14));
  background: var(--twro-ink3, #1b324b);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {
  .flood-cards { grid-template-columns: 1fr; }
  .flood-tools { flex-direction: column; }
  .flood-verdict__text { font-size: 1.12rem; }
}
