.wx-radar {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #bfd4df;
  border-radius: 14px;
  background: linear-gradient(150deg, #f8fcfd 0%, #edf6f8 100%);
  color: #173244;
}

.wx-radar__heading,
.wx-radar__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wx-radar__heading p {
  margin: 0 0 4px;
  color: #167286;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.wx-radar__heading h3 {
  margin: 0;
  color: #10384d;
  font-size: clamp(20px, 2.2vw, 28px);
}

.wx-radar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.wx-radar button {
  min-height: 44px;
  border: 1px solid #0e6177;
  border-radius: 9px;
  padding: 9px 14px;
  background: #0e6177;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}

.wx-radar button:hover { background: #084b5d; }
.wx-radar button:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.wx-radar button:disabled { cursor: wait; opacity: .7; }
.wx-radar button.wx-radar__secondary { background: #fff; color: #0e6177; }

.wx-radar__status {
  min-height: 22px;
  margin: 13px 0 10px;
  color: #526d7d;
  font-size: 14px;
}

.wx-radar__map {
  position: relative;
  height: clamp(310px, 48vw, 520px);
  overflow: hidden;
  border: 1px solid #9db9c7;
  border-radius: 12px;
  background: #dce7eb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.wx-radar__map::after {
  content: "Loading current radar…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(238, 247, 249, .72);
  color: #153f54;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 4;
}

.wx-radar__map.is-loading::after { opacity: 1; }

.wx-radar__basemap,
.wx-radar__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wx-radar__basemap img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}

.wx-radar__overlay {
  z-index: 2;
  object-fit: fill;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.wx-radar__overlay.is-loaded { opacity: .78; }

.wx-radar__position {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 23px;
  height: 23px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0876d1;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.wx-radar__position::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(8,118,209,.42);
  border-radius: 50%;
}

.wx-radar__position i {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.wx-radar__zoom {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 6;
  display: grid;
  justify-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(14,70,91,.35);
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.wx-radar__zoom button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #fff;
  color: #0e6177;
  font-size: 25px;
}

.wx-radar__zoom button:hover { background: #e6f2f5; }
.wx-radar__zoom span { padding: 5px 6px; border-block: 1px solid #d7e3e8; color: #486674; font-size: 10px; text-align: center; }

.wx-radar__live {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 6;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(11,41,52,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.wx-radar__details {
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
}

.wx-radar__details > span { display: grid; gap: 2px; }
.wx-radar__details b { color: #183d50; }
.wx-radar__details small { color: #637c88; }
.wx-radar__details a,
.wx-radar__attribution a { color: #0d647b; font-weight: 750; }

.wx-radar__operational-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 4px solid #d39425;
  border-radius: 4px;
  background: #fff6df;
  color: #654913;
  font-size: 13px;
}

.wx-radar__attribution {
  margin: 10px 0 0;
  color: #6e818a;
  font-size: 11px;
}

@media (max-width: 720px) {
  .wx-radar { padding: 15px; }
  .wx-radar__heading,
  .wx-radar__details { align-items: stretch; flex-direction: column; }
  .wx-radar__actions { justify-content: stretch; }
  .wx-radar__actions button { flex: 1 1 150px; }
  .wx-radar__map { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .wx-radar__overlay,
  .wx-radar__map::after { transition: none; }
}
