/* map_controls.css (v4 - Analog Joystick) */

.map-controls {
    position: fixed;
    right: 20px;
    bottom: 50px; /* Adjusted for new layout */
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 1001;
    user-select: none; /* Prevent text selection while dragging */
}

/* Joystick Container */
#joystick-base {
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid #333;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#joystick-thumb {
    width: 45px;
    height: 45px;
    background-color: #222;
    border: 1px solid #ff4500;
    border-radius: 50%;
    position: absolute;
    cursor: grab;
    transition: transform 0.1s ease-out; /* For snapping back */
}

#joystick-thumb:active {
    cursor: grabbing;
    background-color: #333;
}

/* Zoom Controls Container */
.zoom-controls {
    display: flex;
    flex-direction: column; /* Stack zoom buttons vertically */
    gap: 8px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 25px; /* Tall pill shape */
    border: 1px solid #333;
}

.zoom-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid #ff4500;
    background-color: #222;
    color: #ff4500;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s, color 0.2s;
}

.zoom-controls button:hover,
.zoom-controls button:active {
    background-color: #ff4500;
    color: white;
}
