/* HBD V719 — CTA compacts sur les pages d’itinéraire détaillées.
   Portée volontairement limitée aux pages .hbd-roadtrip-premium.
   Les actions principales conservent leur présence; les CTA secondaires des cartes
   et les liens municipaux ne doivent plus devenir de grands rectangles pleine largeur. */

/* Actions principales de l’itinéraire : visibles, mais moins hautes. */
html body.hbd-roadtrip-premium .rt-actions {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px !important;
}
html body.hbd-roadtrip-premium .rt-actions a {
  flex:0 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  min-height:42px !important;
  padding:10px 16px !important;
  font-size:14px !important;
  line-height:1.1 !important;
}

/* Liens municipaux sous l’itinéraire : boutons secondaires compacts. */
html body.hbd-roadtrip-premium .rt-municipal-links {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
}
html body.hbd-roadtrip-premium .rt-municipal-links a {
  flex:0 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  min-height:36px !important;
  padding:8px 12px !important;
  font-size:13px !important;
  line-height:1.05 !important;
}

/* Cartes d’arrêts : aucun CTA secondaire pleine largeur. */
html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas {
  display:flex !important;
  flex-flow:row wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  margin-top:auto !important;
}
html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas a,
html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas .rt-municipal-ref {
  flex:0 1 auto !important;
  width:auto !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:36px !important;
  height:auto !important;
  margin:0 !important;
  padding:8px 12px !important;
  font-size:13px !important;
  line-height:1.05 !important;
  white-space:normal !important;
}
html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas a + a {
  border-top-width:2px !important;
}

@media (max-width:760px) {
  html body.hbd-roadtrip-premium .rt-actions a {
    flex:1 1 100% !important;
    width:100% !important;
    min-height:42px !important;
    padding:10px 14px !important;
    font-size:14px !important;
  }
  html body.hbd-roadtrip-premium .rt-municipal-links a,
  html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas a,
  html body.hbd-roadtrip-premium .rt-photo-card .rt-card-ctas .rt-municipal-ref {
    flex:0 1 auto !important;
    width:auto !important;
    min-height:36px !important;
    padding:8px 11px !important;
    font-size:13px !important;
  }
}
