:root:has(dialog#pharmaciesMap[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

:root:has(dialog#pharmaciesMap[open])::backdrop {
  background-color: rgb(0 0 0 / 25%);
}

#pharmaciesMap {
  padding: 0;
  border: none;
  background: none;
}

#pharmaciesMap #map {
  display: grid;
  width: 90vw;
  height: 500px;
  max-height: 90vh;
  aspect-ratio: 3/2;
  padding: 0;
  grid-template-rows: 30px 1fr;
  gap: 1rem;
}

#pharmaciesMap #map #close {
  display: flex;
  justify-content: flex-end;
}

#pharmaciesMap #map #close button {
  background: none;
  cursor: pointer;
  outline: none;
  border: none;
  font-size: 4rem;
  font-weight: bold;
}

#pharmaciesMap #map gmp-map {
  height: 100%;
}
