:root {
  --level-red: #fe0104;
  --level-orange: #ff8c00;
  --level-yellow: #ffd700;
  --level-green: #939598;
  --level-gray: #b7b7b7;
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --border-light: #e6e6f0;
  --text-main: #1f1f2c;
  --text-muted: #6c6c80;
  --color-indigo-900: lab(23.3911% 24.6978 -50.4719);
  --muted-foreground: lab(48.496% 0 0);
}

.warnings-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 32px;
}

.warnings-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}

.warnings-panel {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

.warnings-panel h2 {
  margin: 0 0 11px 0;
  font-size: 16px;
  padding: 8px 0;
  text-align: center;
}

.warning-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.warning-tab {
  flex: 0 0 auto;
  min-width: 120px;
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 8px;
  background: var(--surface);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.warning-tab .tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-muted);
  flex-shrink: 0;
  line-height: 36px;
}

.warning-tab svg {
  width: 18px;
  height: 18px;
}

.warning-tab .tab-label {
  flex: 1;
}

.warning-tab .tab-count {
  font-size: 0.9rem;
  background: var(--surface-muted);
  color: var(--text-main);
  padding: 2px 10px;
  border-radius: 20px;
}

.warning-tab.is-active {
  background: #155dfc;
  color: #fff;
  border-color: #0e3ba8;
}

.warning-tab.is-active .tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.warning-tab.is-active .tab-icon {
  background: rgba(255, 255, 255, 0.35);
}

.warning-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
}

.warning-card {
  max-width: 100%;
}

.warning-card {
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 20px 24px;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.warning-card:hover {
  border-color: #155dfc;
  transform: translateY(-2px);
}

.warning-card.is-focused {
  border-color: #155dfc;
  box-shadow: 0 14px 30px rgba(21, 93, 252, 0.14);
  transform: translateY(-2px);
}

.warning-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.warning-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text-main);
}

.warning-meta {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.alert-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 12px;
  color: #fff;
  margin: 8px 0;
}

.alert-level.warning-severity-7,
.alert-level.warning-severity-6 {
  background: var(--level-red);
  color: #fff;
}

.alert-level.warning-severity-4,
.alert-level.warning-severity-5 {
  background: var(--level-orange);
  color: #fff;
}

.alert-level.warning-severity-3,
.alert-level.warning-severity-2 {
  background: var(--level-yellow);
  color: #000;
}

.warning-body {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 14px;
}

.warning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.warning-tags li {
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--text-main);
}

.warning-card.is-hidden {
  display: none;
}

.warning-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed var(--border-light);
  border-radius: 20px;
  color: var(--text-muted);
  background: var(--surface);
}

.warning-empty.is-visible {
  display: block;
}

.news-flash {
  min-width: 260px;
  border-radius: 8px;
  background: #edf1ff;
  border: 1px solid rgba(46, 73, 255, 0.2);
}

.news-flash h2 {
  margin: 0 0 12px;
  color: #2336b8;
  font-size: 1.2rem;
  padding: 8px 16px;
}

.news-flash p {
  margin: 16px;
  color: #2336b8;
  font-weight: 400;
}

.news-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(46, 73, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.news-card:last-child {
  margin-bottom: 0;
}

.news-card strong {
  display: block;
  color: var(--text-main);
}

.news-card span {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-muted);
  margin: 8px 0;
}

.news-card p {
  margin: 0;
  color: color-mix(in oklab, var(--color-indigo-900) 90%, transparent);
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .warnings-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .news-flash {
    width: auto;
    max-width: max-content;
    margin-bottom: 20px;
  }

  .warning-header {
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .warnings-page {
    padding-inline: 14px;
  }

  .warning-tab {
    min-width: 120px;
    font-size: 0.95rem;
  }

  .warning-card {
    padding: 18px;
  }
}

.faq-container {
  margin-top: 64px
}

.faq-container ul {
  margin: 0 32px;
  list-style: square;
}

#map {
  width: 100%;
  height: 900px;
  margin-top: 24px;
  border-radius: 22px;
  position: relative;
}

.hazard-icon-marker {
  background: transparent;
  border: none;
}

.hazard-icon-marker img {
  width: 20px;
  height: 20px;
  padding: 4px;
  display: block;
  border-radius: 50%;
  background: rgba(16, 22, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.leaflet-bar button.home {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1f1f2c;
  border: none;
  border-radius: 6px;
}

.leaflet-bar button.home:hover {
  background: #f2f4ff;
}

.leaflet-bar .center_icon_button {
  font-size: 20px;
  line-height: 26px;
}

.home.zoomingOut i {
  color: #fc8428;
}

.leaflet-control-locate {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1f1f2c;
  border: none;
  border-radius: 6px;
}

.leaflet-control-locate:hover {
  background: #f2f4ff;
}

.leaflet-control-locate .fa {
  font-size: 20px;
  line-height: 26px;
}
.leaflet-control-locate.active a{color:#fc8428}
.leaflet-control-locate.active.following a{color:#fc8428}
.leaflet-control-locate-location circle{animation:leaflet-control-locate-throb 4s ease infinite}
/*------------------------------| gesture-handling-2fingers |------------------------------*/
@-webkit-keyframes leaflet-gestures-fadein {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

@keyframes leaflet-gestures-fadein {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

.leaflet-container:after {
  -webkit-animation: leaflet-gestures-fadein 2.5s backwards;
  animation: leaflet-gestures-fadein 2.5s backwards;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 15px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 555;
  pointer-events: none
}

.leaflet-gesture-handling-scroll-warning:after,
.leaflet-gesture-handling-touch-warning:after {
  -webkit-animation: leaflet-gestures-fadein 2.5s forwards;
  animation: leaflet-gestures-fadein 2.5s forwards
}

.leaflet-gesture-handling-touch-warning:after {
  content: attr(data-gesture-handling-touch-content)
}

.leaflet-gesture-handling-scroll-warning:after {
  content: attr(data-gesture-handling-scroll-content)
}

.warning-map-logo {
  z-index: 555;
  position: absolute;
  width: 32px;
  margin: 10px;
}

.warning-map-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  color: var(--text-main);
  font-size: 13px;
  z-index: 600;
}

.warning-map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.warning-map-legend .legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.legend-dot-yellow { background: var(--level-yellow); }
.legend-dot-orange { background: var(--level-orange); }
.legend-dot-red { background: var(--level-red); }
