/* Layout and selection colours belong to Breakdance. Override this height there. */
.mjc-structures-map { min-height: 20rem; height: 28rem; isolation: isolate; }
/* Seul le contenu du marker est transformé : Leaflet garde la maîtrise de sa position. */
.mjc-structures-map .mjc-map-marker { background: transparent; border: 0; cursor: pointer; }
.mjc-structures-map .mjc-map-marker__body {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    transform-origin: 50% 100%;
    transition: transform 180ms ease;
}
.mjc-structures-map .mjc-map-marker__pin {
    position: absolute;
    top: 5px;
    left: 5px;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    border: 2px solid #FFFFFF;
    border-radius: 50% 50% 50% 0;
    background-color: #FF3033;
    box-shadow: -2px 2px 5px rgb(39 36 35 / 22%);
    transform: rotate(-45deg);
    transition: background-color 180ms ease, box-shadow 180ms ease;
}
.mjc-structures-map .mjc-map-marker__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFFFFF;
    transform: translate(-50%, -50%);
}
.mjc-structures-map .mjc-map-marker:hover .mjc-map-marker__body { transform: scale(1.08); }
.mjc-structures-map .mjc-map-marker.is-active .mjc-map-marker__body { transform: scale(1.15); }
.mjc-structures-map .mjc-map-marker.is-active .mjc-map-marker__pin {
    background-color: #C92F35;
    box-shadow: -3px 3px 7px rgb(39 36 35 / 30%);
}
.mjc-structures-map .mjc-map-marker:focus-visible {
    outline: 2px solid #272423;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .mjc-structures-map .mjc-map-marker__body,
    .mjc-structures-map .mjc-map-marker__pin { transition: none; }
}

/* Ces styles concernent uniquement les popups de la cartographie MJC. */
.mjc-structures-map .mjc-map-popup {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #3D3A38;
}
.mjc-structures-map .mjc-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #E4E1DA;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgb(39 36 35 / 8%);
}
.mjc-structures-map .mjc-map-popup .leaflet-popup-content {
    box-sizing: border-box;
    max-width: calc(100vw - 48px);
    margin: 0;
    padding: 14px 30px 14px 16px;
    line-height: inherit;
}
.mjc-structures-map .mjc-map-popup .leaflet-popup-tip {
    background: #FFFFFF;
    box-shadow: 2px 2px 5px rgb(39 36 35 / 6%);
}
.mjc-structures-map .mjc-map-popup .leaflet-popup-close-button {
    top: 3px;
    right: 3px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    color: #706C67;
    font-family: inherit;
    font-size: 20px;
    line-height: 28px;
    text-decoration: none;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__entry { overflow-wrap: anywhere; }
.mjc-structures-map .mjc-map-popup .mjc-map-popup__entry + .mjc-map-popup__entry {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E4E1DA;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__title {
    display: block;
    color: #272423;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__address {
    margin: 6px 0 0;
    color: #706C67;
    line-height: 1.5;
    white-space: pre-line;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__phone {
    display: block;
    margin: 6px 0 0;
    color: #3D3A38;
    text-decoration: none;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__website,
.mjc-structures-map .mjc-map-popup .mjc-map-popup__select {
    display: inline-block;
    margin-top: 8px;
    color: #FF3033;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__select {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.mjc-structures-map .mjc-map-popup .mjc-map-popup__phone:hover,
.mjc-structures-map .mjc-map-popup .leaflet-popup-close-button:hover { color: #FF3033; }
.mjc-structures-map .mjc-map-popup .leaflet-popup-close-button:hover { background: #FAF8F3; }
.mjc-structures-map .mjc-map-popup .mjc-map-popup__website:hover,
.mjc-structures-map .mjc-map-popup .mjc-map-popup__select:hover {
    color: #C92F35;
    /* text-decoration: underline; */
}
.mjc-structures-map .mjc-map-popup a:focus-visible,
.mjc-structures-map .mjc-map-popup button:focus-visible { outline: 2px solid #C92F35; outline-offset: 2px; }
