:root {
    --primary-color: #008080;
    --secondary-color: #ffffff;
    --text-color: #333;
    --bg-overlay: rgba(255, 255, 255, 0.9);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans SC', sans-serif;
    overflow: hidden;
    /* Prevent scroll inside iframe */
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--bg-overlay);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

#controls h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

#controls p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fefefe;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.visible .modal-content {
    transform: translateY(0);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}

input[type="file"] {
    width: 100%;
}

button#submitBtn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button#submitBtn:hover {
    background-color: #006666;
}

/* Custom Marker Popup */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 5px;
}

.popup-audio {
    width: 100%;
    margin-top: 10px;
}

.popup-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.hidden {
    display: none !important;
}