/* Final award badge override: keep the real badge visible above older pseudo-image rules. */
body .hero-card::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
}

body .hero-card > img.hero-award-badge {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  top: 12px !important;
  right: calc(50% - 178px) !important;
  width: clamp(52px, 6.9vw, 63px) !important;
  min-width: 52px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  clip-path: circle(49% at 50% 50%) !important;
  object-fit: cover !important;
  overflow: hidden !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .30)) !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

@media (max-width: 520px) {
  body .hero-card > img.hero-award-badge {
    top: 9px !important;
    right: clamp(33px, calc(50% - 147px), 55px) !important;
    width: clamp(45px, 12.6vw, 52px) !important;
    min-width: 45px !important;
  }
}

/* Keep the premium closest-stop pin sharp without runtime presentation JS. */
.closest-card .closest-route .closest-pin-mark-medallion .closest-pin-mark-icon,
.closest-card .closest-route .closest-medallion.closest-pin-mark-medallion img,
.closest-card .closest-location-loader-icon img {
  content: url("assets/roaming-bean-pin-premium-proper.svg?v=2") !important;
  backface-visibility: hidden !important;
  image-rendering: auto !important;
  will-change: auto !important;
}

@media (max-width: 640px) {
  .closest-card .closest-route .closest-pin-mark-medallion,
  .closest-card .closest-route .closest-medallion.closest-pin-mark-medallion {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    filter: none !important;
    transform: translateZ(0) !important;
  }

  .closest-card .closest-route .closest-pin-mark-medallion .closest-pin-mark-icon,
  .closest-card .closest-route .closest-medallion.closest-pin-mark-medallion img,
  .closest-card .closest-loading-route .closest-loading-badge.closest-pin-mark-medallion .closest-pin-mark-icon {
    width: 88px !important;
    height: 88px !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Keep the Burgh badge aligned to the smaller hero artwork. */
body .hero-card > img.hero-award-badge {
  top: 10px !important;
  right: calc(50% - 164px) !important;
  width: clamp(50px, 6.4vw, 59px) !important;
  min-width: 50px !important;
}

@media (max-width: 520px) {
  body .hero-card > img.hero-award-badge {
    top: 8px !important;
    right: clamp(44px, calc(50% - 134px), 66px) !important;
    width: clamp(43px, 11.8vw, 49px) !important;
    min-width: 43px !important;
  }
}
