html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
    background: #000; 
    font-family: 'Courier New', Courier, monospace; 
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}

.map-btn {
    position: fixed;
    bottom: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    z-index: 2001;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-btn:hover {
    transform: scale(1.1) translateY(-5px);
}

.btn-exit { 
    left: 30px; 
    background: #ff4444; 
    color: white; 
}

.btn-exit:hover { 
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6); 
}

.btn-add { 
    right: 30px; 
    background: #facc15; 
    color: black; 
}

.btn-add:hover { 
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.6); 
}

/* --- 3. COMPONENTI DELLA SCHEDA (FORM/CARDS) --- */
.card {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px;
    border-radius: 28px;
    color: white;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

h2 { 
    margin: 0 0 15px 0; 
    font-size: 20px; 
    font-weight: 900; 
    letter-spacing: -1px; 
    color: #facc15; 
    text-transform: uppercase; 
}

input, textarea, select {
    width: 100%; 
    background: #222; 
    border: 1px solid #444;
    padding: 12px; 
    border-radius: 12px; 
    color: white;
    margin-bottom: 12px; 
    box-sizing: border-box; 
    outline: none; 
    font-size: 15px;
}

input:focus, textarea:focus, select:focus { border-color: #facc15; }
input:disabled, textarea:disabled, select:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-save {
    width: 100%; 
    padding: 16px; 
    background: #facc15; 
    color: black;
    border: none; 
    border-radius: 15px; 
    font-weight: 900;
    cursor: pointer; 
    text-transform: uppercase; 
    font-size: 13px;
}

/* --- 4. ELEMENTI MAPPA (MARKER, POPUP, ISTRUZIONI) --- */
.sound-marker {
    width: 40px; 
    height: 40px; 
    background: #facc15;
    border: 3px solid #000; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    cursor: pointer; 
    transition: transform 0.2s;
}

#map-instruction {
    display: none; 
    position: fixed; 
    top: 20%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 3000;
    background: rgba(0, 0, 0, 0.9); 
    color: #facc15;
    padding: 15px 30px; 
    border-radius: 50px; 
    border: 2px solid #facc15;
    font-weight: bold; 
    text-transform: uppercase;
}

.leaflet-popup-content-wrapper { 
    background: #111; 
    color: white; 
    border-radius: 15px; 
    border: 1px solid #333; 
}

.leaflet-popup-tip { background: #111; }

/* Utility */
#btn-android-install, #btn-ios-instructions { display: none; }
