.holon-map-story {
    background:
        radial-gradient(circle at 8% 12%, rgba(179, 139, 83, 0.2) 0%, transparent 32%),
        radial-gradient(circle at 92% 78%, rgba(179, 139, 83, 0.16) 0%, transparent 34%),
        linear-gradient(180deg, #f2e9d9 0%, #eadcc5 55%, #f3e8d8 100%);
    z-index: 5;
}

.holon-map-scroll {
    position: relative;
    height: 520vh;
}

.holon-map-pin {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.holon-map-parchment {
    position: relative;
    width: min(1060px, 95vw);
    height: min(760px, 86vh);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 36px 70px rgba(20, 12, 7, 0.46),
        0 0 0 1px rgba(66, 36, 16, 0.5),
        inset 0 0 35px rgba(58, 32, 16, 0.5);
    background-image:
        linear-gradient(165deg, rgba(29, 16, 8, 0.2), rgba(245, 224, 184, 0.18)),
        url("/static/images/holon/map_texture.jpg"),
        url("/static/images/holon/texture_parchemin.jpeg");
    background-size: cover, cover, cover;
    background-position: center;
}

.holon-map-parchment::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 8%, rgba(27, 14, 7, 0.45), transparent 28%),
        radial-gradient(circle at 91% 92%, rgba(27, 14, 7, 0.45), transparent 30%);
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 1;
}

.holon-map-inner {
    position: relative;
    height: 100%;
    padding: clamp(1.1rem, 2.2vw, 1.6rem);
    z-index: 2;
}

.holon-map-header {
    text-align: center;
    color: rgba(45, 22, 8, 0.93);
    margin-bottom: 0.8rem;
}

.holon-map-header-kicker {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(64, 33, 11, 0.76);
}

.holon-map-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3.1vw, 2.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.22rem;
}

.holon-map-subtitle {
    margin-top: 0.3rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.95rem, 1.3vw, 1.12rem);
    color: rgba(60, 31, 10, 0.8);
}

.holon-map-viewport {
    position: relative;
    height: calc(100% - 7.8rem);
    border-radius: 16px;
    border: 1px solid rgba(59, 31, 12, 0.52);
    overflow: hidden;
    background:
        linear-gradient(170deg, rgba(245, 230, 200, 0.26) 0%, rgba(145, 104, 69, 0.12) 100%),
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.35), transparent 38%),
        radial-gradient(circle at 82% 78%, rgba(122, 79, 38, 0.18), transparent 42%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 244, 219, 0.42),
        inset 0 0 42px rgba(72, 42, 18, 0.22);
}

.holon-map-canvas {
    position: absolute;
    inset: 0;
    height: 230%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.holon-map-route {
    position: absolute;
    inset: 0;
    opacity: 0.62;
    mix-blend-mode: multiply;
}

.holon-map-route svg {
    width: 100%;
    height: 100%;
}

#holon-route-path {
    stroke: rgba(86, 50, 22, 0.3);
    stroke-width: 1.02;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1.2 3.6;
    filter: drop-shadow(0 0 0.35px rgba(70, 39, 17, 0.35));
    fill: none;
}

.holon-footsteps-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.holon-footstep {
    position: absolute;
    width: 12px;
    aspect-ratio: 0.46;
    opacity: 0;
    transform-origin: 50% 72%;
    object-fit: contain;
    object-position: center;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle, 0deg))
        scale(var(--step-scale, 0.86));
    transition: none;
    filter: brightness(0) saturate(100%) contrast(1.3) drop-shadow(0 1px 2px rgba(38, 19, 8, 0.55));
}

.holon-footstep.visible {
    opacity: 0.94;
    transform:
        translate(-50%, -50%)
        rotate(var(--angle, 0deg))
        translateY(var(--offset-y, 0px))
        scale(1);
}

.holon-map-spot {
    position: absolute;
    z-index: 3;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: transform 420ms ease, opacity 420ms ease;
}

.holon-map-spot.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.holon-spot-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(75, 41, 17, 0.84);
    background: radial-gradient(circle at 30% 30%, #fff0d2 0%, #8a5128 85%);
    box-shadow: 0 0 0 5px rgba(147, 88, 44, 0.24), 0 0 14px rgba(93, 49, 20, 0.45);
}

.holon-spot-card {
    margin-top: 0.38rem;
    max-width: 210px;
    padding: 0.42rem 0.56rem;
    border: 1px solid rgba(114, 69, 34, 0.45);
    border-radius: 8px;
    background: rgba(255, 243, 218, 0.82);
    box-shadow: 0 10px 20px rgba(57, 31, 13, 0.24);
}

.holon-spot-title {
    font-family: "Playfair Display", serif;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(51, 26, 10, 0.95);
}

.holon-spot-text {
    margin-top: 0.18rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    line-height: 1.16;
    color: rgba(56, 30, 11, 0.84);
}

.holon-spot-source { top: 6%; left: 54%; }
.holon-spot-coteaux { top: 16%; left: 24%; }
.holon-spot-calcaire { top: 29%; right: 17%; }
.holon-spot-vignes { top: 39%; left: 17%; }
.holon-spot-biodiv { top: 52%; right: 15%; }
.holon-spot-vendange { top: 63%; left: 23%; }
.holon-spot-distillation { top: 73%; right: 18%; }
.holon-spot-chai { top: 85%; left: 28%; }
.holon-spot-signature { top: 95%; right: 15%; }

.holon-map-legend {
    position: absolute;
    left: clamp(1rem, 2.1vw, 1.5rem);
    right: clamp(1rem, 2.1vw, 1.5rem);
    bottom: clamp(0.8rem, 1.8vw, 1.2rem);
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.holon-legend-chip {
    border-radius: 999px;
    border: 1px solid rgba(103, 61, 30, 0.4);
    background: rgba(255, 241, 213, 0.75);
    padding: 0.26rem 0.62rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(59, 30, 10, 0.84);
}

@media (max-width: 980px) {
    .holon-map-scroll {
        height: 430vh;
    }

    .holon-map-parchment {
        width: min(960px, 96vw);
        height: min(700px, 84vh);
    }

    .holon-map-canvas {
        height: 215%;
    }

    .holon-spot-card {
        max-width: 180px;
    }
}

@media (max-width: 780px) {
    .holon-map-scroll {
        height: 370vh;
    }

    .holon-map-pin {
        padding: 0.55rem;
    }

    .holon-map-parchment {
        border-radius: 14px;
        height: min(680px, 90vh);
    }

    .holon-map-header-kicker {
        font-size: 0.68rem;
    }

    .holon-map-subtitle {
        font-size: 0.92rem;
    }

    .holon-map-viewport {
        height: calc(100% - 7.2rem);
    }

    .holon-footstep {
        width: 10px;
    }

    .holon-spot-card {
        max-width: 155px;
        padding: 0.32rem 0.44rem;
    }

    .holon-spot-title {
        font-size: 0.7rem;
    }

    .holon-spot-text {
        font-size: 0.78rem;
    }
}
