.cp-carte {
  position: relative;
  background: #eceae6;
  border-radius: 6px;
  overflow: hidden;
}

.cp-pin {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}

.cp-carte .cp-pin,
.cp-carte .cp-pin:hover,
.cp-carte .cp-pin:focus,
.cp-carte .cp-pin:active {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  color: inherit;
}

.cp-pin__label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 1px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #1d1d1b;
  white-space: nowrap;
  cursor: pointer;
}

.cp-pin:hover .cp-pin__label,
.cp-pin:focus-visible .cp-pin__label {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cp-pin svg {
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
  transform-origin: 50% 100%;
}

.cp-pin:hover svg,
.cp-pin:focus-visible svg {
  transform: scale(1.12);
}

.cp-pin:focus-visible {
  outline: 2px solid #1d1d1b;
  outline-offset: 2px;
  border-radius: 50%;
}

.cp-carte .maplibregl-popup-content {
  padding: 14px 16px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  line-height: 1.45;
  color: #1d1d1b;
}

.cp-info__titre {
  display: block;
  margin: 0 18px 4px 0;
  font-size: 15px;
}

.cp-info p {
  margin: 4px 0 0;
}

.cp-info__adresse {
  color: #5c5c58;
  font-size: 13px;
}

.cp-info__lien {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline;
}

.cp-liste {
  margin: 12px 0 0;
  padding-left: 18px;
}

.cp-erreur {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #5c5c58;
}

.cp-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cp-cluster:hover,
.cp-cluster:focus-visible {
  transform: scale(1.1);
}

.cp-cluster:focus-visible {
  outline: 2px solid #1d1d1b;
  outline-offset: 2px;
}

.cp-liste-popup {
  max-height: 260px;
  overflow-y: auto;
}

.cp-info--item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e2dc;
}

/* Bulle avec sa liste de titres courts */
.cp-cluster-wrap {
  width: 42px;
  height: 42px;
}

.cp-cluster__list {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-cluster__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-cluster__list--right-center,
.cp-cluster__list--right-top,
.cp-cluster__list--right-bottom {
  left: calc(100% + 6px);
  align-items: flex-start;
}

.cp-cluster__list--left-center,
.cp-cluster__list--left-top,
.cp-cluster__list--left-bottom {
  right: calc(100% + 6px);
  align-items: flex-end;
}

.cp-cluster__list--right-center,
.cp-cluster__list--left-center {
  top: 50%;
  transform: translateY(-50%);
}

.cp-cluster__list--right-top,
.cp-cluster__list--left-top {
  top: 0;
}

.cp-cluster__list--right-bottom,
.cp-cluster__list--left-bottom {
  bottom: 0;
}

.cp-cluster__item {
  display: block;
  box-sizing: border-box;
  max-width: 220px;
  height: 20px;
  margin: 0;
  padding: 1px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  color: #1d1d1b;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.cp-cluster__item:hover,
.cp-cluster__item:focus-visible {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cp-cluster__item:focus-visible {
  outline: 2px solid #1d1d1b;
  outline-offset: 1px;
}

.cp-cluster__more {
  font-weight: 500;
  color: #5c5c58;
}
