body, html { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

#map { 
    width: 100%; 
    height: 100vh; 
    z-index: 1; 
    background: #e5e3df; 
}

#fabBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

#fabBtn:hover { 
    background: #0056b3; 
    transform: scale(1.05); 
}

/* Info gomb - kék dizájn fehér 'i' betűvel, a Leaflet zoomgombok alá igazítva */
#infoBtn {
    position: fixed;
    top: 90px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #007bff;
    color: white;
    border: 2px solid rgba(0,0,0,0.2);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#infoBtn:hover { 
    background: #0056b3; 
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 15px;
    box-sizing: border-box;
}

.modal-overlay.active { 
    display: flex; 
}

.modal {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    box-sizing: border-box;
}

.modal h2 { 
    margin-top: 0; 
    font-size: 20px; 
    color: #333; 
    margin-bottom: 20px; 
}

/* Info modal szövegezésének szofisztikált margói és sorközei */
.modal p {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 14px;
}

.modal p:last-child {
    margin-bottom: 0;
}

input, select, button[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button[type="submit"] {
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0;
}

button[type="submit"]:hover { 
    background: #218838; 
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    padding: 0;
    width: auto;
    margin: 0;
}

.close-btn:hover { 
    color: #333; 
}

@media (max-width: 480px) {
    .modal { padding: 20px 15px; }
    #fabBtn { 
        top: 20px; 
        bottom: auto; 
        right: 20px; 
        width: 55px; 
        height: 55px; 
    }
    #infoBtn {
        top: 90px;
        left: 10px;
        width: 34px;
        height: 34px;
    }
}