#world-map {
    height: 600px;
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

#world-map:active {
    cursor: grabbing;
}

.country {
    stroke: #e2e8f0;
    stroke-width: 0.4px;
    transition: all 0.2s ease;
}

.country:hover {
    stroke: #94a3b8;
    stroke-width: 1px;
    filter: brightness(0.97);
    cursor: pointer;
}

.graticule {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 0.3px;
}

#map-tooltip {
    position: absolute;
    display: none;
    z-index: 1000;
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease;
}

#map-tooltip:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

#map-tooltip.pinned {
    pointer-events: auto;
    border: 1px solid #94a3b8;
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #f8fafc;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
    line-height: 1;
}

.tooltip-close:hover {
    opacity: 1;
}

.tooltip-header {
    background: #0f172a;
    color: #f8fafc;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #1e293b;
}

.tooltip-body {
    padding: 15px;
}

.tooltip-body img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    margin-bottom: 12px;
}

.tooltip-footer {
    padding: 8px 15px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 0.65rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bg-slate {
    background-color: #475569;
    color: white;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    font-size: 0.65rem;
    z-index: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.legend-color {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 2px;
}

.animate-in {
    animation: fadeInSlide 0.2s ease-out forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    #world-map { height: 400px; }
    #map-tooltip { width: 220px; }
}
