﻿.map-column {
    flex: 0 0 60%;
    max-height: 85vh;
    display: flex;
    align-items: start;
    align-self: start;
    justify-content: start;
    overflow: visible;
    background: transparent;
    position: relative;
    z-index: 0;
}

.map-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: start;
    align-self: start;
    position: relative;
    justify-content: start;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    align-self: start;
    z-index: 1;
    transition: opacity 1s ease;
}

    .map-image.loaded {
        opacity: 1;
    }

    .map-image.dimmed {
        opacity: 0.4;
    }

.map-image-wrapper {
    position: relative;
    max-height: 85vh;
    width: auto;
    aspect-ratio: 1 / 1;
    margin-left: 10px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.pop-in {
    opacity: 0;
    animation: popIn 0.5s ease-out both;
    animation-delay: var(--delay, 0s);
}

    .pop-in:hover {
        animation-play-state: paused;
    }

/* base style for all pins */
.map-pin {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 1s ease;
    filter: drop-shadow(0 0 2px steelblue);
    z-index: 2222;
}

    .map-pin.dimmed {
        opacity: 0.4;
    }

    .map-pin:hover,
    .map-pin.highlight {
        filter: drop-shadow(0 0 2px lightsteelblue);
        transform: translate(-50%, -50%) scale(1.3);
        transition: transform 0.3s ease;
        z-index: 3333;
    }

    .map-pin.glitch-pin {
        filter: drop-shadow(0 0 2px lightsteelblue) hue-rotate(0deg);
        animation: rgbShift 3s linear infinite;
    }

    .map-pin.boss-pin {
        width: 75px;
        height: 75px;
    }

.map-pin-wrapper {
    position: absolute;
    font-family: inherit;
    font-size: 0.8rem;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 4444;
}

    .map-pin-wrapper .pin-label {
        position: absolute;
        top: -1.6em;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        padding: 0.2rem 0.5rem;
        border-radius: 0.25rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        font-size: 0.8rem;
        z-index: 5;
    }

    .map-pin-wrapper .chest-label {
        position: absolute;
        top: -3rem;
        left: 50%;
        width: 50px;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        display: flex;
        font-size: 0.6rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        gap: 0.25rem;
        z-index: 5;
    }

    .map-pin.chest-pin.dimmed {
        opacity: 0.4;
    }

    .map-pin.chest-pin.highlight,
    .map-pin-wrapper.highlight {
        opacity: 1;
        z-index: 10000;
        transform: translate(-50%, -50%) scale(1.1);
        transition: transform 0.3s ease;
    }

.chest-label.highlight,
.map-pin-wrapper:hover .chest-label {
    opacity: 1;
    z-index: 10000;
}

.chest-item-icon {
    width: 24px;
    height: 24px;
}

.chest-item-name {
    line-height: 1.2;
}

.link-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 0.25rem;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    text-decoration: none;
    cursor: pointer;
    flex-direction: column;
    padding: 0.2rem;
    align-items: center;
    align-self: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    z-index: 5;
}

    .link-label span {
        text-decoration: none;
        padding: 0.2rem;
    }

    .link-label.dimmed {
        opacity: 0.4;
    }

    .link-label:hover {
        filter: drop-shadow(0 0 2px black);
        transform: translate(-50%, -50%) scale(1.3);
        transition: transform 0.3s ease;
        text-decoration: none;
        z-index: 10000;
    }

    .link-label:focus {
        text-decoration: none;
    }

@keyframes rgbShift {
    to {
        filter: drop-shadow(0 0 2px lightsteelblue) hue-rotate(360deg);
    }
}