/* Carte d'un voyage (assets/js/components/voyage-map.js), pages bateau et croisière */
.voyage-map {
    height: 420px;
    border-radius: 12px;
    border: 2px solid var(--deep-blue);
    box-shadow: 6px 6px 0 var(--ochre);
    z-index: 0;
}

.voyage-marker span {
    display: inline-block;
    min-width: 24px;
    padding: 2px 6px;
    transform: translate(-50%, -50%);
    background: var(--deep-blue);
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .voyage-map {
        height: 320px;
    }
}

/* Carte agrandie dans une popin (95 % de la fenêtre) */
.voyage-map.is-expanded {
    /* Leaflet sets an inline position: relative on its container */
    position: fixed !important;
    top: 2.5vh;
    left: 2.5vw;
    width: 95vw;
    height: 95vh;
    margin: 0;
    /* Above the cookie banner (9999) */
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.voyage-map-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 35, 50, 0.7);
}

.voyage-map-backdrop[hidden] {
    display: none;
}

body.voyage-map-open {
    overflow: hidden;
}

.voyage-map-expand a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--deep-blue);
}
