/* V687 — CTA compacts obligatoires dans les cartes interactives HBD.
   Cette feuille doit être chargée EN DERNIER afin de surcharger le système CTA global.
   Portée: popups Leaflet + panneau Lieux visibles uniquement. */

/* Panneau latéral : deux actions compactes, côte à côte si possible. */
html body .embedded-place-panel .guide-place-links,
html body #guidePlaceList .guide-place-links,
html body .guide-place .guide-place-links {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin: 9px 0 0 !important;
}

/* Popups Leaflet : les liens sont également compacts et ne prennent jamais toute la largeur. */
html body .leaflet-popup-content .guide-popup {
  max-width: 300px !important;
}

html body .embedded-place-panel .guide-place-links a,
html body #guidePlaceList .guide-place-links a,
html body .guide-place .guide-place-links a,
html body .leaflet-popup-content .guide-popup a,
html body .leaflet-popup-content-wrapper .guide-popup a,
html body .guide-popup a {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  margin: 5px 4px 0 0 !important;
  padding: 5px 10px !important;
  box-sizing: border-box !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .15px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border: 2px solid #111 !important;
  background: #ff6500 !important;
  color: #111 !important;
  box-shadow: none !important;
}

html body .embedded-place-panel .guide-place-links a:hover,
html body #guidePlaceList .guide-place-links a:hover,
html body .guide-place .guide-place-links a:hover,
html body .leaflet-popup-content .guide-popup a:hover,
html body .guide-popup a:hover,
html body .embedded-place-panel .guide-place-links a:focus-visible,
html body .leaflet-popup-content .guide-popup a:focus-visible {
  background: #111 !important;
  color: #ff6500 !important;
  border-color: #ff6500 !important;
}

@media (max-width: 560px) {
  html body .embedded-place-panel .guide-place-links a,
  html body #guidePlaceList .guide-place-links a,
  html body .guide-place .guide-place-links a,
  html body .leaflet-popup-content .guide-popup a,
  html body .guide-popup a {
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
}
