/* XGG P40 — UI-only correction on top of P39 (Home route tab only).
   8 route cover images are 1200x900. Use a 12:9 frame with NO old max-height clamp,
   remove letterboxing, and overlay the route title onto the bottom of the image.
   Do not touch vehicle/service tabs or route destination links/booking triggers. */
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important; /* fixes the old 156/168px cap from VF bundle */
  aspect-ratio: 12 / 9 !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--xgp38-h-E4EDF4,#e4edf4) !important;
  text-decoration: none !important;
}
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media > img {
  position: absolute !important;
  display: block !important;
  inset: 0 !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important; /* source files are 12:9; no crop and no side strips */
  object-position: center !important;
  transform: none !important;
  filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform .38s ease !important;
}
/* Integrated image title: translucent dark-to-clear fade plus compact type.
   Positioned inside the image instead of creating another block under it. */
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media > .trp40-image-title {
  position: absolute !important;
  z-index: 3 !important;
  inset: auto 0 0 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  padding: 30px 14px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg,rgba(var(--xgp38-r-05213C,5,33,60),0) 0%,rgba(var(--xgp38-r-042645,4,38,69),.72) 41%,rgba(var(--xgp38-r-042544,4,37,68),.94) 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.34) !important;
  font: 800 16px/1.34 system-ui,-apple-system,"Segoe UI",sans-serif !important;
  letter-spacing: -.012em !important;
  text-decoration: none !important;
  text-align: left !important;
  overflow-wrap: break-word !important;
}
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .trp02-card-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 4 !important;
  background: rgba(var(--xgp38-r-08385B,8,56,91),.9) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media:hover > img {
  transform: scale(1.035) !important;
}
/* With title moved onto the image, reduce the white body without disrupting
   P39's equal-height footer and aligned info/CTA rows. */
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_body {
  padding: 11px 13px 13px !important;
}
body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_slogan {
  margin: 0 0 9px !important;
}
@media (max-width: 767px) {
  body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media > .trp40-image-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
    padding: 27px 8px 8px !important;
  }
  body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .trp02-card-badge {
    top: 6px !important;
    left: 6px !important;
  }
  body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_body {
    padding: 9px 9px 11px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.transport-native.qnvf23g-home #vf23h3-panel-routes .trp02-card--route .home_price_card_media > img {transition:none !important;}
}
