.block-map__canvas {
  width: 100%;
  border: 1px solid var(--ib-line);
  border-radius: var(--ib-radius);
  background: var(--ib-bg-soft);
  overflow: hidden;
}

.block-map__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--ib-line);
  border-radius: var(--ib-radius);
  background: var(--ib-bg-soft);
  color: var(--ib-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.block-map__marker {
  position: absolute;
  left: 0;
  top: 0;
  padding-bottom: 12px;
  transform: translate(-50%, -100%);
  cursor: default;
}

.block-map__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ib-bg);
  border-radius: 50%;
  background: var(--ib-accent);
  color: var(--ib-accent-contrast, #fff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ib-fg) 30%, transparent);
}

.block-map__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--ib-bg);
  border-bottom: 3px solid var(--ib-bg);
  border-radius: 0 0 4px;
  background: var(--ib-accent);
  transform: translateX(-50%) rotate(45deg);
}

.block-map__pin .ib-mark {
  position: relative;
  z-index: 1;
  block-size: 24px;
}

.block-map__pin--image {
  border-color: var(--ib-accent);
  background: var(--ib-bg);
}

.block-map__pin--image::after {
  border-color: var(--ib-accent);
}

.block-map__logo {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
}

.block-map__pin--dot {
  width: 30px;
  height: 30px;
}

.block-map__pin--dot::after {
  bottom: -8px;
  width: 9px;
  height: 9px;
}

.block-map__dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ib-bg);
}

.block-map__hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 260px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--ib-fg);
  color: var(--ib-bg);
  font-family: var(--ib-font-body);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .2s;
}

.block-map__marker:hover .block-map__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .block-map__hint {
    transition: none;
  }
}

.block-map__frame {
  position: relative;
}

.block-map__styles {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 4px;
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ib-bg) 92%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ib-fg) 14%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.block-map__style {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ib-fg);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.block-map__style:hover {
  background: color-mix(in srgb, var(--ib-accent) 12%, transparent);
}

.block-map__style.is-active {
  background: var(--ib-accent);
  color: var(--ib-accent-contrast, #fff);
}

.block-map__style:focus-visible {
  outline: 2px solid var(--ib-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .block-map__styles {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 14px;
  }

  .block-map__style {
    flex: none;
    padding: 6px 10px;
    font-size: 12px;
  }
}
