/* Add to your existing diving-map.css or map-instructions.css */

/* Instructions Control Button */
.leaflet-control-instructions {
    margin-top: 10px; /* Space below zoom control */
}

.leaflet-control-custom-instructions {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #007BFF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: block !important;
}

.leaflet-control-custom-instructions:hover {
    background: #f4f4f4;
}

/* Instructions Overlay */
.leaflet-instructions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 18px;
    max-width: 320px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s;
    pointer-events: auto;
}

.leaflet-instructions-content {
    position: relative;
}

.leaflet-instructions-close {
    position: absolute;
    top: 2px;
    right: 2px;
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    z-index: 2;
}

.leaflet-instructions-close:hover {
    color: #222;
}

.leaflet-instructions-overlay ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.leaflet-instructions-overlay li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .leaflet-instructions-overlay {
        max-width: 95vw;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .leaflet-control-custom-instructions {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}