/* World map page layout. Reuses style.css's theme variables (--panel, --border,
   --accent, etc.) and .tab/.toggle styling for the dimension switcher. */

.mapwrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 26px;
    max-width: 1280px;
    margin: 0 auto;
}

.dimtabs { display: flex; gap: 6px; }

.mapcanvas {
    height: 72vh;
    min-height: 420px;
    background: var(--panel2);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .22);
}

/* Leaflet's own CSS sets a white background by default; match the theme instead. */
.leaflet-container {
    background: var(--panel2);
    font-family: var(--body);
}

/* Tiles are 1px/block; when zoomed past native (maxNativeZoom) the browser
   upscales them. Force nearest-neighbour so blocks stay crisp squares rather
   than a blurry smear. */
.leaflet-tile {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.player-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}
.player-marker .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #08140a;
    box-shadow: 0 0 0 2px var(--accent);
}
.player-marker .label {
    font-family: var(--body);
    font-weight: 700;
    font-size: 11px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 999px;
    white-space: nowrap;
}
