:where(.journey-map__topbar .map-back) {
  -webkit-tap-highlight-color: transparent;
}

.journey-map__topbar .map-back[data-map-home-canonical="true"] {
  isolation: isolate;
  min-block-size: auto;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  color: #1c1c1c;
  background: rgb(255 255 255 / 10%);
  -webkit-backdrop-filter: blur(13px) saturate(108%);
  backdrop-filter: blur(13px) saturate(108%);
  box-shadow: inset 0 1px rgb(255 255 255 / 92%), inset 0 -1px rgb(52 40 28 / 20%), inset 0 0 0 1px rgb(56 42 28 / 12%), 0 0.55rem 1.35rem rgb(32 20 10 / 22%);
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.5;
  overflow: hidden;
  transform: none;
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]::before,
.journey-map__topbar .map-back[data-map-home-canonical="true"]::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]::before {
  inset: 0;
  opacity: 0.78;
  background: linear-gradient(158deg, rgb(255 255 255 / 55%), rgb(255 255 255 / 8%) 42%, transparent 72%);
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  transform: translateX(-7%);
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]::after {
  inset: 0.25rem;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: inherit;
  opacity: 0.7;
  transition: opacity 0.18s ease-out;
}

.journey-map__topbar .map-back[data-map-home-canonical="true"] span,
.journey-map__topbar .map-back[data-map-home-canonical="true"] svg {
  position: relative;
  z-index: 1;
  color: inherit;
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]:hover {
  border-color: rgb(255 255 255 / 96%);
  background: rgb(255 255 255 / 10%);
  box-shadow: inset 0 1px rgb(255 255 255 / 96%), inset 0 -1px rgb(52 40 28 / 18%), inset 0 0 0 1px rgb(255 255 255 / 22%), 0 0.55rem 1.35rem rgb(32 20 10 / 22%);
  transform: scale(0.985);
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]:hover::before {
  opacity: 1;
  transform: translateX(7%);
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]:hover::after {
  opacity: 1;
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]:active {
  transform: scale(0.97);
}

.journey-map__topbar .map-back[data-map-home-canonical="true"]:focus-visible {
  outline: 2px solid #fff8e9;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .journey-map__topbar .map-back[data-map-home-canonical="true"],
  .journey-map__topbar .map-back[data-map-home-canonical="true"]::before,
  .journey-map__topbar .map-back[data-map-home-canonical="true"]::after {
    transition: none;
  }
}
