body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow: hidden; /* Prevents pull-to-refresh on mobile */
}

#map {
    height: 100vh;
    width: 100vw;
}


.hidden {
    display: none !important;
}



/* Map Popup Styling */
.popup-container {
    min-width: 200px;
}

.popup-container h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.popup-container p {
    margin: 2px 0;
    font-size: 14px;
}

.status-alert {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* The "Mark Checked" Button */
.btn-check {
    display: block;
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.btn-check:active {
    background-color: #2ecc71;
}

.btn-checked-disabled {
    display: block;
    width: 100%;
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* Custom CSS Map Pins */
.custom-pin {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-align: center;
    line-height: 24px;
    font-size: 14px;
}
.pin-green { background-color: #27ae60; }
.pin-orange { background-color: #e67e22; }
.pin-red { background-color: #c0392b; }
.pin-gray { background-color: #7f8c8d; }

/* Move Zoom to Bottom Right */
.leaflet-bottom.leaflet-right { bottom: 20px; right: 10px; }

#map-controls {
    position: absolute;
    top: 15px;
    left: 15px; /* Moved to left for better mobile access */
    z-index: 1001; /* Higher z-index to stay above Leaflet */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-btn {
    background: white;
    width: 48px; /* Slightly larger for easier thumb-tapping */
    height: 48px;
    border-radius: 50%; /* Circular looks more like a native app */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    color: #2c3e50;
    border: 2px solid rgba(0,0,0,0.1);
}

/* Ensure the map doesn't hide them */
#map {
    position: relative;
    z-index: 1;
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

#ticket-img { width: 100%; border-radius: 10px; margin-bottom: 15px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; }
.stat-box { background: #f8f9fa; padding: 10px; border-radius: 8px; border: 1px solid #eee; }
#prize-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 13px; }
#prize-table th { text-align: left; border-bottom: 2px solid #eee; padding: 8px; }
#prize-table td { padding: 8px; border-bottom: 1px solid #eee; }
