@layer legacy {

.hero {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--secondary-background-color, white);
}

.hero--desktop {
  height: 50vh;
  min-height: 320px;
  max-height: 640px;

  & .hero__map-frame {
    height: 100%;
  }

  & .hero__map {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.9) saturate(1.2);
  }
}

.hero__marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero__bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.hero__bar .button--grey {
  --button-background-color: white;
  --button-background-color-hover: color-mix(in oklab, white, #000 8%);
}

.hero__bar .share-dialog .button--grey {
  --button-background-color: var(--color-grey-light, #f5f5f5);
  --button-background-color-hover: color-mix(in oklab, var(--button-background-color), #000 8%);
}

}
