.intro {
  min-height: 154px;
  padding: 20px 26px;
}

.ics-link {
  position: relative;
  margin-top: 27px;
}

.ics-link::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 8px);
  width: 108px;
  height: 74px;
  background: url("landing-jai-nam-peek.png") center bottom / contain no-repeat;
  pointer-events: none;
}

@media (min-width: 901px) {
  .ics-link { transform: translateY(14px); }
}

.intro h1 { font-size: 27px; }
.intro .filters { min-width: 220px; }
.mobile-risk-badge { display: none; }

.bottom-nav a,
.bottom-nav button {
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px;
  line-height: 1.25;
}

.bottom-nav span { line-height: 1; }

footer,
#radarStatus { display: none; }

.layer-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.layer-bar button.icon-layer {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
}

.layer-bar button.icon-layer .layer-icon {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.layer-bar button.icon-layer .layer-floodboy {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.layer-bar button[data-layer="risk"]::after {
  content: "!";
  position: absolute;
  top: 0;
  right: -2px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font: 700 11px/1 Prompt, sans-serif;
}

@media (max-width: 900px) {
  .ics-link::before { width: 88px; height: 61px; }
}

@media (max-width: 600px) {
  header {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 25px 10px 10px;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
    font-size: 15px;
    white-space: nowrap;
  }
  .brand .partner-emblem { width: 66px; height: 36px; }
  .brand .flood-eye-logo { width: 32px; height: 32px; }
  .brand span { font-size: 9px; }
  .brand small { font-size: 10px; }
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 102px;
    gap: 10px 8px;
    min-height: 0;
    padding: 17px 17px 18px;
  }
  .intro-copy { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; }
  .intro h1 { font-size: 21px; line-height: 1.35; }
  .intro .eyebrow, .intro p { font-size: 11px; }
  .mobile-risk-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: grid;
    gap: 1px;
    padding: 9px 7px;
    border: 1px solid #ffffff6b;
    border-radius: 8px;
    background: #ffffff1c;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(8px);
  }
  .mobile-risk-badge strong { color: #fff; font-size: 22px; line-height: 1.1; }
  .mobile-risk-badge span { font-size: 9px; line-height: 1.35; }
  .ics-link {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px;
    gap: 2px;
    font-size: 10px;
  }
  .ics-link span { font-size: 12px; }
  .ics-link::before { width: 48px; height: 32px; bottom: calc(100% - 8px); }
  .intro .filters { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
  .stats { display: none; }
  #mapSection .layer-bar { order: 2; }
  #mapSection .map-wrap { order: 3; }
  #mapSection .mode-status { order: 4; }
  .layer-bar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 9px 10px;
  }
  .layer-bar button.icon-layer,
  .layer-bar #fitProvince.icon-layer {
    width: 100%;
    height: auto;
    min-height: 32px;
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .layer-bar button.icon-layer .layer-icon { width: 20px; height: 20px; }
  .layer-bar button.icon-layer .layer-floodboy { width: 25px; height: 25px; }
  .times {
    display: grid;
    grid-template-columns: .72fr 1fr 1.5fr;
    width: 100%;
    overflow: visible;
  }
  .times button {
    min-width: 0;
    min-height: 48px;
    padding: 6px 3px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }
  .bottom-nav a,
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 66px;
    padding: 3px 1px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .intro { grid-template-columns: minmax(0, 1fr) 94px; }
  .intro h1 { font-size: 18px; }
}
