/* Give Mappi's collapsed Our Map invitation the same visual weight as the
   adjacent 96px map gadget, while retaining the shared notice-rail baseline. */
html body main.app-shell section.map-stage.map-focus.our-map-mode #ourMapExplorerButton:not([hidden]) {
  min-height: 96px !important;
  height: auto !important;
  grid-template-columns: 54px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  column-gap: 9px !important;
  padding: 12px !important;
  border: 1px solid #486f83 !important;
  border-radius: 24px !important;
  background: #00243f !important;
  box-shadow: 0 12px 30px rgba(0, 36, 63, .2), inset 0 1px 0 rgba(255, 255, 255, .1) !important;
}

html body #ourMapExplorerButton .our-map-explorer-mappi {
  width: 54px !important;
  height: 54px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body #ourMapExplorerButton .our-map-explorer-mappi img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
}

html body #ourMapExplorerButton .our-map-explorer-copy {
  gap: 4px !important;
  align-content: center !important;
}

html body #ourMapExplorerButton .our-map-explorer-copy small {
  color: #73dac6 !important;
  font-size: .61rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .1em !important;
}

html body #ourMapExplorerButton .our-map-explorer-copy strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #f5fbff !important;
  font-size: 1rem !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
}

html body #ourMapExplorerButton .our-map-explorer-chevron {
  width: 44px !important;
  height: 44px !important;
  color: #00243f !important;
  background: #73dac6 !important;
}

html body #ourMapExplorerButton .our-map-explorer-chevron svg {
  width: 22px !important;
  height: 22px !important;
}

/* The attribution has its own resting lane above the invitation. Measure the
   card height so longer place names and larger type cannot cover that link. */
html body main.app-shell section.map-stage.map-focus.our-map-mode > .our-map-data-attribution:not([hidden]) {
  bottom: calc(var(--explore-notice-center-bottom) + var(--our-map-explorer-height, 96px) + 8px) !important;
}

@media (max-width: 350px) {
  html body main.app-shell section.map-stage.map-focus.our-map-mode #ourMapExplorerButton:not([hidden]) {
    grid-template-columns: 40px minmax(0, 1fr) 44px !important;
    column-gap: 6px !important;
    padding: 9px !important;
  }

  html body #ourMapExplorerButton .our-map-explorer-mappi,
  html body #ourMapExplorerButton .our-map-explorer-mappi img {
    width: 40px !important;
    height: 40px !important;
  }

  html body #ourMapExplorerButton .our-map-explorer-copy small {
    display: none !important;
  }

  html body #ourMapExplorerButton .our-map-explorer-copy strong {
    font-size: .91rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body main.app-shell section.map-stage.map-focus.our-map-mode #ourMapExplorerButton:not([hidden]) {
    animation: none !important;
  }
}
