.guard-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem 1rem;
}

.guard-dropdown > .guard-map-toolbar {
  margin: .75rem 1rem;
}

.guard-map-toolbar .guard-intro {
  flex: 1 1 12rem;
  margin: 0;
}

@media (max-width: 600px) {
  .guard-dropdown .guard-map-toolbar .guard-intro {
    display: none;
  }
}

.guard-map-trigger,
.guard-map-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #a4c9bd;
  border-radius: .5rem;
  background: #edf7f2;
  color: #215f51;
  font: inherit;
  cursor: pointer;
}

.guard-map-trigger {
  padding: .3rem .65rem;
  font-size: .9rem;
  font-weight: 700;
}

.guard-map-trigger[hidden],
.guard-map-dialog [hidden] {
  display: none !important;
}

.guard-map-trigger svg {
  width: 19px;
  height: 19px;
}

html:has(.guard-map-dialog[open]) {
  overflow: hidden;
}

dialog.guard-map-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: #fff;
  color: #173b32;
  overflow: hidden;
}

dialog.guard-map-dialog[open] {
  display: flex;
  flex-direction: column;
}

.guard-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .55rem clamp(.8rem, 3vw, 1.5rem);
  border-bottom: 1px solid #cce1d9;
}

.guard-map-dialog .guard-map-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: normal;
}

.guard-map-header button {
  font-size: 1.65rem;
  line-height: 1;
}

.guard-map-dialog :focus-visible {
  outline: 3px solid #215f51;
  outline-offset: 2px;
}

.guard-map-status {
  max-height: 40%;
  overflow: auto;
  font-size: .95rem;
}

.guard-map-status:has(+ .guard-map-canvas[hidden]) {
  max-height: none;
}

.guard-map-status:has(> :not([hidden])) {
  padding: .55rem clamp(.8rem, 3vw, 1.5rem);
}

.guard-map-status ul {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

.guard-map-dialog .guard-map-canvas {
  flex: 1;
  min-height: 0;
  background: #e7efeb;
  isolation: isolate;
}

.guard-map-pin svg {
  display: block;
  width: 30px;
  height: 39px;
  fill: #ba1e28;
  stroke: white;
  stroke-width: 2px;
  filter: drop-shadow(0 2px 2px #0006);
}

.guard-map-pin circle {
  fill: white;
  stroke: none;
}

.guard-map-pharmacy {
  display: grid;
  gap: .15rem;
  font-size: .9rem;
  line-height: 1.35;
}

.guard-map-pharmacy a,
.guard-map-status > a {
  color: #215f51;
  text-decoration: underline;
  font-weight: 700;
}
