/* css/map-poi.css — shared POI pin + tooltip styling, used by Kartskaparen's
   own canvas-adjacent popup, Spelbordet's map editor, the Game Mode board,
   and the adventure reader. */

.map-poi-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}
.map-poi-layer--hidden { display: none; }

.map-poi-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #d4af37;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    touch-action: none;
}
.map-poi-pin--dm { background: #8b5fbf; }
.map-poi-pin--editable { cursor: grab; }
.map-poi-pin--editable:active { cursor: grabbing; }

.map-poi-pin:hover .map-poi-tooltip,
.map-poi-pin--open .map-poi-tooltip {
    display: block;
}

.map-poi-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid #d4af37;
    border-radius: 3px;
    padding: 10px 12px;
    min-width: 160px;
    max-width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 20;
    cursor: default;
    pointer-events: none;
}
.map-poi-tooltip-title {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.map-poi-tooltip-body {
    font-family: 'Crimson Pro', serif;
    color: #c8bfaa;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
}
