
#myd_map {
    /* position: absolute;
    top: 0;
    bottom: 0;*/
    width: 100%;
    height: 100%;
  }

    .ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 0;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -140px;
    min-width: 350px;
    overflow: hidden; /* important pour arrondis */
  }

  /* Header */
  .ol-popup__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 12px;
    border-bottom:1px solid #eee;
    background:#fafafa;
  }

  .ol-popup__title{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    font-size:14px;
  }

  .ol-popup__icon{
    width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    background:#fff;
    border:1px solid #eee;
  }

  /* Contenu */
  .ol-popup__content{
    padding:12px;
    font-size:12px;
    line-height:1.45;
  }

  /* Footer (optionnel) */
  .ol-popup__footer{
    padding:10px 12px;
    border-top:1px solid #eee;
    background:#fafafa;
    font-size:12px;
    color:#666;
  }

  /* Close button (visible + joli) */
  .ol-popup-closer{
    display:inline-flex;      /* <-- au lieu de none */
    text-decoration:none;
    width:28px;
    height:28px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    color:#333;
  }

  .ol-popup-closer:hover{
    background:#eee;
  }

  .ol-popup-closer:after{
    content:"✖";
    font-size:14px;
    line-height:1;
  }

  .slide-on-mobile {
    width: 25rem!important;
  }


  .ol-tooltip {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    opacity: 1;
    white-space: nowrap;
    font-size: 12px;
    cursor: default;
    user-select: none;
  }
  .ol-tooltip-measure {
    opacity: 1;
    font-weight: bold;
  }
  .ol-tooltip-static {
    background-color: #ffcc33;
    color: black;
    border: 1px solid white;
  }
  .ol-tooltip-measure:before,
  .ol-tooltip-static:before {
    border-top: 6px solid rgba(0, 0, 0, 0.5);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
  }
  .ol-tooltip-static:before {
    border-top-color: #ffcc33;
  }
.relais-badge {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.relais-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.relais-badge span {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

#popup-title-text{
  display: inline-block;
  white-space: nowrap;       /* optionnel: empêche la coupure */
  overflow: hidden;          /* optionnel */
  text-overflow: ellipsis;   /* optionnel */
}