
.ui-menu {
    position: absolute; /* Position the menu absolutely */
    top: 10px; /* Adjust top position as needed */
    left: 10px; /* Adjust left position as needed */
    z-index: 1000; /* Ensure the menu is above the map */
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto;
}

/* Style for each list item */
.ui-menu li {
    padding: 10px 15px; /* Add padding to the list items */
    border-bottom: 1px solid #eee; /* Light border between items */
    cursor: pointer; /* Change cursor on hover */
    transition: background-color 0.3s; /* Smooth transition on hover */
}

/* Remove border for the last item */
.ui-menu li:last-child {
    border-bottom: none;
}

/* Hover effect for list items */
.ui-menu li:hover {
    background-color: #f5f5f5; /* Light gray hover background */
}

/* Active or selected state */
.ui-menu li.active {
    background-color: #007bff; /* Active item background color */
    color: #fff; /* Text color for active item */
}

/* Optional: style for links inside the menu */
.ui-menu li a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit color from parent */
    display: block; /* Make the link fill the entire list item */
}

.layer-control-title {
    padding: 5px;
    font-weight: bold;
    font-size: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

/* Style for the layer control container */
.leaflet-control-layers {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Style for the layer control title */
.layer-control-title {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    color: #333;
}

/* Style for checkboxes inside the layer control */
.leaflet-control-layers-selector {
    width: 16px;
    height: 16px;
    accent-color: #007bff; /* Custom color for checkboxes */
    cursor: pointer;
}

/* Style for checkbox labels */
.leaflet-control-layers-selector + span {
    color: #444;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover effect for checkbox labels */
.leaflet-control-layers-selector + span:hover {
    color: #007bff;
}

/* CSS for responsive iframe inside the #census-collection modal */
#census-collection .modal-xl {
    max-width: 90%; /* Adjust as needed */
}

#census-collection .modal-body {
    padding: 0; /* Remove padding for full iframe fit */
}

#census-iframe {
    width: 90%;
    height: 80vh; /* 80% of the viewport height */
    border: none;
}

.leaflet-control-layers {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border: 2px solid #4a90e2; /* Blue border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Shadow effect */
    padding: 10px; /* Inner padding */
}

.leaflet-control-layers-toggle {
    background: #4a90e2 !important; /* Change toggle button color */
    border-radius: 50%; /* Make it circular */
}

.leaflet-control-layers label {
    font-weight: bold; /* Bold text */
    color: #333; /* Darker text color */
}

@media (max-width: 768px){
    .leaflet-control-layers {
        display: none;
    }
}

.action-btn-container .btn1 {
    width: 100%;
    display: block;
    box-sizing: border-box;
    margin-bottom: 20px; /* Adjust the value as needed for spacing */;
    font-size:0.9rem;
}




/* Remove left and right borders */
.list-group-item {
    border-left: none !important;
    border-right: none !important;
}


.population-portal-icon {
    font-size: 1.2rem;   /* Adjust the size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;         /* Icon size */
    height: 24px;        /* Icon size */
    border-radius: 50%;  /* Make it circular */
    background-color: #007bff; /* Set background color */
    color: #fff;         /* Icon color */
}

#resource-uri {
    font-size:14px;
}





/* Center the alert on the screen */
#search-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 80%; /* Adjust the width as per your need */
    max-width: 500px; /* Maximum width of the alert */
    display: none;
    text-align: center;
}

.form-toggle-select {
    width: 100%; /* Ensures it takes full width of its container */
    height: auto; /* Adjust height for better responsiveness */
    font-size: 18px; /* Matches the font size in inline styles */
    padding: 0.5rem 1rem; /* Adds padding for a better appearance */
    border: 1px solid #ccc; /* Light border for a clean look */
    border-radius: 4px; /* Slight rounding for modern design */
    background-color: #fff; /* White background for dropdown */
    color: #333; /* Dark text color for readability */
    outline: none; /* Removes default focus outline */
    appearance: none; /* Removes default dropdown arrow */
    -moz-appearance: none; /* For Firefox */
    -webkit-appearance: none; /* For Safari/Chrome */
    cursor: pointer; /* Changes the cursor to pointer */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Add a custom arrow for the dropdown */
.form-toggle-select::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 6px solid #333;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    pointer-events: none;
}

/* On hover */
.form-toggle-select:hover {
    border-color: #007bff; /* Light blue border */
}

/* On focus */
.form-toggle-select:focus {
    border-color: #007bff; /* Highlight border on focus */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5); /* Subtle glow effect */
}

/* Adjust dropdown options */
.form-toggle-select option {
    background-color: #fff; /* Matches the dropdown background */
    color: #333; /* Matches text color */
    line-height: 1.1764705882rem;
    padding: .5882352941rem;
}