.sm-visor #routeDetailPanel.sm-trail-card-host{
  --sm-ficha-top:max(112px,var(--sm-header-edge,0px));
  --sm-ficha-inferior:96px;
  top:var(--sm-ficha-top)!important;bottom:auto!important;height:auto;
  max-height:calc(100dvh - var(--sm-ficha-top) - var(--sm-ficha-inferior));
  padding:0;scrollbar-width:thin;overscroll-behavior:contain;border-radius:13px;
  border-top:4px solid var(--sm-verde)!important;background:#fff!important;
}
.sm-visor .route-detail-panel.sm-trail-card-host.is-open{display:block}
.sm-visor .route-detail-panel .route-detail-close{
  position:sticky;float:right;top:7px;right:7px;z-index:4;
  width:38px;height:38px;margin:7px 7px -45px 0;border:1px solid #e0e6e0;
}
.sm-visor .route-detail-panel .map-card-action{padding:0;cursor:pointer}
.sm-visor #routeDetailCard,.sm-visor #routeDetailCard .trail-card,
.sm-visor #routeDetailCard .trail-image-wrap,.sm-visor #routeDetailCard .trail-body{
  width:100%;min-width:0;box-sizing:border-box
}
.sm-visor .route-detail-panel .trail-body{padding:13px 15px 16px}
.sm-visor .route-detail-panel .trail-body p{margin:0}
@media(max-width:980px){
  .sm-visor #routeDetailPanel.sm-trail-card-host{
    --sm-ficha-top:max(43dvh,var(--sm-header-edge,88px));--sm-ficha-inferior:86px
  }
  .sm-visor .route-detail-panel .trail-image-wrap{aspect-ratio:auto;height:clamp(104px,17dvh,150px)}
}
@media(max-width:980px) and (max-height:520px){
  .sm-visor #routeDetailPanel.sm-trail-card-host{
    --sm-ficha-top:max(32dvh,var(--sm-header-edge,88px))
  }
}
