.wum-map-container #wum-map {
    width: 100%;
    /* Maintain aspect ratio of the world map (approx 2:1) */
    /* Using aspect-ratio ensures height scales with width */
    aspect-ratio: 2 / 1; 
    max-height: 80vh;
    background-color: transparent; 
    border-radius: 4px;
    position: relative;
    overflow: hidden; /* Prevent any spillover */
    
    /* Optimization for touch devices */
    touch-action: pan-y; /* Removes tap delay (300ms) on mobile browsers */
    -webkit-tap-highlight-color: transparent; /* Removes flash on tap */
}

/* Ensure SVG scales correctly inside */
.wum-map-container #wum-map svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .wum-map-container #wum-map {
        /* On mobile, we might want it slightly taller or just keep Ratio */
        aspect-ratio: 1.8 / 1; 
    }
}

/* Custom Tooltip Styling */
.jvm-tooltip {
    background-color: #1f2937; /* Modern dark gray like Tailwind slate-800 */
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit; /* Inherit font from website body */
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    
    /* Ensure instant appearance */
    transition: opacity 0.1s ease-out; /* Slight fade is okay, but keep it fast */
    pointer-events: none; /* Ignore pointer events so it doesn't block touches */
}

/* Offset markers to point correctly to the location */
.jvm-marker {
    transform: translateY(-10px);
}

/* Disable interactions for map regions (land) */
.wum-map-container #wum-map path.jvm-region {
    pointer-events: none !important;
}

/* Ensure markers remain interactive */
.wum-map-container #wum-map .jvm-marker,
.wum-map-container #wum-map image,
.wum-map-container #wum-map circle {
    pointer-events: auto !important;
    cursor: pointer;
}

.wum-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

#selected-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-left: 5px solid #007bff;
    border-radius: 4px;
    font-size: 16px;
    color: #555;
    min-height: 20px;
}
