/* Travel map on the home page (WorldMap in abs.js). Loaded only on the home page. */

/*********************************************
  Travel Map (index page — WorldMap module)
**********************************************/
.worldmap-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #dde7ee;
    margin-top: 1.25rem;
}

.worldmap-wrapper svg {
    display: block;
    width: 100%;
    height: auto;
}

.wm-c {
    fill: #d3c9bf;
    stroke: none;
    cursor: default;
    transition: fill var(--transition-fast);
}

.wm-c:hover { fill: #c4b8ac; }

.wm-c.wm-visited {
    fill: var(--color-orange);
    cursor: pointer;
}

.wm-c.wm-visited:hover { fill: #cc3d00; }

.wm-borders {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 0.6;
    pointer-events: none;
}

.worldmap-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(36, 26, 19, 0.94);
    color: #fff;
    padding: 0.45em 0.85em;
    border-radius: 8px;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
    font-size: 0.82em;
    line-height: 1.5;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.1s;
    z-index: 5;
}

.worldmap-tooltip.is-visible { opacity: 1; }

.wm-tooltip-name { display: block; font-weight: 600; }

.wm-tooltip-meta {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.1em;
}

.worldmap-legend {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: 1em;
    font-size: 0.85em;
    color: var(--color-text-muted);
}

.worldmap-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.worldmap-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.worldmap-legend-swatch--visited   { background: var(--color-orange); }
.worldmap-legend-swatch--unvisited { background: #d3c9bf; }

.worldmap-error {
    text-align: center;
    color: var(--color-text-muted);
    padding: var(--spacing-lg);
}
