/* RPMX: keep the route advisory inside its map as a dismissible alert. */
body.rpmx-front-page #rpmx-home-hero .rpmx-home-map-frame,
body.rpmx-discovery-taxonomy .rpmx-home-map-frame,
body.rpmx-listing-v2 .rpmx-listing-hero-map {
  position: relative !important;
}
body.rpmx-front-page .rpmx-home-route-notice,
body.rpmx-discovery-taxonomy .rpmx-home-route-notice,
body.rpmx-listing-v2 .rpmx-listing-route-notice {
  position: absolute !important;
  z-index: 1200 !important;
  left: 50% !important;
  right: auto !important;
  bottom: 70px !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
  width: min(540px, calc(100% - 20px)) !important;
  max-width: calc(100% - 20px) !important;
  max-height: calc(100% - 128px) !important;
  margin: 0 !important;
  overflow: auto !important;
  pointer-events: auto !important;
}
body.rpmx-front-page .rpmx-home-route-notice,
body.rpmx-listing-v2 .rpmx-listing-route-notice {
  border: 1px solid rgba(228, 67, 65, .42) !important;
  border-left: 4px solid #e44341 !important;
  border-radius: 14px !important;
  background: linear-gradient(115deg, rgba(255,247,247,.98), rgba(255,255,255,.97)) !important;
  color: #512b2b !important;
  box-shadow: 0 10px 28px rgba(70,20,24,.20) !important;
}
body.rpmx-front-page .rpmx-home-route-notice__close,
body.rpmx-listing-v2 .rpmx-listing-route-notice button {
  color: #9d2e2e !important;
}
body.rpmx-front-page .rpmx-home-route-notice[hidden],
body.rpmx-listing-v2 .rpmx-listing-route-notice[hidden] {
  display: none !important;
}
@media (max-width: 767px) {
  body.rpmx-front-page .rpmx-home-route-notice,
  body.rpmx-discovery-taxonomy .rpmx-home-route-notice,
  body.rpmx-listing-v2 .rpmx-listing-route-notice {
    bottom: 70px !important;
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    max-height: calc(100% - 112px) !important;
    padding: 10px 40px 10px 12px !important;
    border-radius: 13px !important;
    font-size: .70rem !important;
    line-height: 1.3 !important;
  }
}

/* Stack the route alert above the existing location feedback only while visible. */
body.rpmx-listing-v2 .rpmx-listing-hero-map.has-map-location-status .rpmx-listing-route-notice {
  bottom: 112px !important;
}
@media (max-width: 767px) {
  body.rpmx-listing-v2 .rpmx-listing-hero-map.has-map-location-status .rpmx-listing-route-notice {
    bottom: 112px !important;
  }
}
