/* Clickable floor map */
.floor-map {
    position: relative;
    max-width: 100%;
    margin: 1.5em 0;
    line-height: 0;
}

.floor-map img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.floor-map .hotspot {
    position: absolute;
    display: block;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.floor-map .hotspot:hover,
.floor-map .hotspot:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.75);
}

.floor-map .hotspot-label {
    position: absolute;
    inset: auto 0 0 0;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 2px 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.floor-map .hotspot:hover .hotspot-label,
.floor-map .hotspot:focus .hotspot-label {
    opacity: 1;
}

/* Monster / NPC portraits injected next to headings */
.monster-portrait,
.npc-portrait {
    max-width: 220px;
    width: 40%;
    border-radius: 10px;
    float: right;
    margin: 0 0 1em 1.2em;
}

@media (max-width: 650px) {
    .monster-portrait,
    .npc-portrait {
        float: none;
        width: 100%;
        max-width: 320px;
        margin: 1em auto;
        display: block;
    }
}
