@charset "UTF-8";
:root {
  --geojson-radius: 2;
  --geojson-fill-color: rgba(var(--primary-color-rgb), 0.3);
  --geojson-fill-opacity: 0.3;
  --geojson-stroke-color: rgba(var(--primary-color-rgb), 0.6);
  --geojson-stroke-width: 4;
  --geojson-stroke-opacity: 1;
}

woody-map {
  display: block;
}

touristic-map .popup {
  max-width: 30ch;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  color: #222;
  display: flex;
  gap: 0.5em;
  justify-content: center;
  align-items: center;
  cursor: default;
}
touristic-map .popup button.popup-close {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: #fff;
  padding: 3px;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
touristic-map .popup button.popup-close svg {
  fill: #222;
  stroke: #222;
  width: 100%;
  height: 100%;
}
touristic-map .popup > img {
  width: 2em;
  height: 2em;
}
touristic-map .tooltip {
  position: relative;
  font-size: 0.8em;
  padding: 0.25em;
  max-width: 30ch;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: #fff;
  color: #222;
  border: 1px solid rgba(127, 127, 127, 0.5);
  border-radius: 0.25em;
  cursor: default;
}
touristic-map .geojson_tooltip {
  color: #000000;
  padding: 6px;
  background: #ffffff;
  font-size: 14px;
}

/**
 * Popup détaché — <woody-map-popup>
 *
 * Affiché AU-DESSUS du conteneur carte (et non ancré à un marqueur, contrairement à `.popup`
 * ci-dessus). Le manager l'insère dans le parent de <woody-map> quand le modèle de marqueurs porte
 * `popup_mode: 'detached'` ; ce parent sert donc de référentiel de positionnement.
 *
 * Sur mobile il occupe toute la largeur en bas du conteneur : c'est ce qui règle le tronquage des
 * popups ancrés sur petit écran.
 */
woody-map-popup {
  position: absolute;
  z-index: 400;
  bottom: var(--touristicmap-popup-bottom, 1rem);
  left: var(--touristicmap-popup-left, 1rem);
  width: var(--touristicmap-popup-width, 100%);
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 2rem);
  /* Feuille basse pleine largeur : un popup étroit serait illisible et vite tronqué. */
}
woody-map-popup[hidden] {
  display: none;
}
woody-map-popup .woody-map-popup__dialog {
  position: relative;
  overflow-y: auto;
  max-height: inherit;
  padding: var(--touristicmap-popup-padding, 0px);
  background: var(--touristicmap-popup-bg, #ffffff);
  border-radius: var(--touristicmap-popup-radius, 0px);
  box-shadow: var(--touristicmap-popup-shadow, 0 2px 12px rgba(0, 0, 0, 0.25));
}
woody-map-popup .card-link {
  flex-direction: row;
}
woody-map-popup .cardMediaWrapper {
  flex-basis: 25%;
}
woody-map-popup .woody-map-popup__close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: var(--touristicmap-popup-bg, #ffffff);
  border-radius: 50%;
  cursor: pointer;
}
woody-map-popup .woody-map-popup__close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
woody-map-popup .woody-map-popup__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
woody-map-popup .woody-map-popup__loader[hidden] {
  display: none;
}
woody-map-popup .woody-map-popup__loader::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid rgba(127, 127, 127, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: woody-map-popup-spin 0.8s linear infinite;
}
woody-map-popup .woody-map-popup__content[hidden] {
  display: none;
}
@media screen and (max-width: 639px) {
  woody-map-popup {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70%;
  }
  woody-map-popup .woody-map-popup__dialog {
    border-radius: var(--touristicmap-popup-radius, 0.5rem) var(--touristicmap-popup-radius, 0.5rem) 0 0;
  }
}

@keyframes woody-map-popup-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Le spinner ne doit pas tourner pour qui a demandé moins d'animations. */
@media (prefers-reduced-motion: reduce) {
  woody-map-popup .woody-map-popup__loader::after {
    animation: none;
  }
}/*# sourceMappingURL=./woody-addon-touristicmaps.css.map */