.hidden {
	display: none !important;
}
#map { 
    height: 100vh; 
    width: 100%; 
    background: #222; /* Dark background so you can see the image edges */
    user-select: auto;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    outline: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}
#map.loaded {
    opacity: 1;
}
body { 
    margin: 0;
    background-color: #222;
}
.leaflet-container {
    background: #222 !important;
}
#reset-button {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* This perfectly centers the element */
    z-index: 2000; /* Ensures it stays above the map and search bar */

    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

#reset-button:hover {
    background-color: #f4f4f4;
}
/* This removes the default Leaflet white square background */
.map-emoji-icon {
    background: none !important;
    border: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emoji-wrapper {
    font-size: 24px;
    filter: drop-shadow(0 0 2px black); /* Makes emoji readable on any map color */
    cursor: pointer;
}
/* 1. The Base Style (Always loaded, but hidden by default) */
.static-label {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #fff !important;
    color: black !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* 2. Tell Leaflet to hide these specific tooltips by default */
.leaflet-tooltip.static-label {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s linear; /* Smooth fade in/out */
}

/* 3. Show them ONLY when the map has the 'show-labels' class */
.show-labels .leaflet-tooltip.static-label {
    visibility: visible !important;
    opacity: 0.7 !important;
}
.map-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    gap: 10px;
}

#import-btn {
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    padding: 8px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

#import-btn:hover {
    background: #e9ecef;
}
#download-btn {
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    padding: 8px 8px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}
#download-btn:hover {
    background: #e9ecef;
}
#map-guide {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    background: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    
}
#coordinate-display {
    background: rgba(255, 255, 255, 0.7);
    color: black;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    border: 1px solid black;
    pointer-events: none;
    min-width: 100px;
}
.bottom-ui-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px; /* Spans the width of the screen */
    z-index: 4000;
    display: flex;
    justify-content: space-between; /* Pushes display left, buttons right */
    align-items: flex-end;
    pointer-events: none; /* Allows clicking the map behind the gap */
}

.button-group, #coordinate-display {
    pointer-events: auto; /* Re-enables clicking on the actual buttons */
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* MOBILE FIX: When the screen is narrower than 600px */
@media (max-width: 600px) {
    .bottom-ui-container {
        flex-direction: column; /* Stack them vertically */
        align-items: flex-start; /* Align everything to the left */
        gap: 10px;
    }

    .button-group {
        justify-content: flex-start;
    }
}
#marker-form {
	position: fixed; 
	top: 50%; 
	left: 50%; 
	transform: translate(-50%, -50%); 
	z-index: 2000; 
	background: white; 
	padding: 25px; 
	border-radius: 12px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 10px;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}