/* KML Map Modal Styles */
#kml-map-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content Box */
.kml-map-content {
    background-color: #fefefe;
    margin: 2% auto; /* 2% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    height: 95%;
    position: relative;
    box-sizing: border-box;
}

/* The Close Button */
.kml-map-close {
    color: #aaa;
    position: absolute;
    top: -5px;
    right: 10px;
    font-size: 38px;
    font-weight: bold;
    z-index: 1001; /* Ensure it's above the map container */
}

.kml-map-close:hover,
.kml-map-close:focus {
    color: #ff4d4d; /* Make it red on hover */
    text-decoration: none;
    cursor: pointer;
}

/* Make Leaflet's attribution text slightly smaller */
.leaflet-control-attribution { 
    font-size: 10px !important; 
}

/* Download Button Style */
.leaflet-control-download {
    background-color: white;
    padding: 8px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    cursor: pointer;
    text-align: center;
}
.leaflet-control-download span {
    font: bold 14px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.leaflet-control-download:hover {
    background-color: #f4f4f4;
}