/* sound-map.css */
.sound-map-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.sound-map {
    position: relative;
    overflow: hidden;
    transform-origin: 0 0;
    cursor: grab;
}

.sound-map:active {
    cursor: grabbing;
}

.sound-map-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-item {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 0.2s ease-out;
}

.map-item:hover {
    z-index: 20;
    transform: translate(-50%, -50%) scale(1.2);
}

.map-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    margin-bottom: 5px;
}

.map-item:hover .tooltip {
    opacity: 1;
}

.sound-map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.sound-map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-map-controls button:hover {
    background-color: #f0f0f0;
}