/* Main container for sidebar and map */
#custom-locator-container {
    display: flex; /* Enables horizontal layout */
    height: 700px;
    font-size: 12px;
    gap: 20px; /* Adds spacing between sidebar and map */
    padding: 10px; /* Adds padding around the container */
}
#custom-locator-container p {
    margin: 0;
    font-weight: 600;
}

/* Sidebar styling */
#custom-locator-sidebar {
    width: 100%; /* Sidebar width */
    background: linear-gradient(180deg, #ffffff, #f1f1f1); /* Gradient for a clean look */
    border-radius: 10px; /* Rounded corners */
    overflow-y: auto; /* Scrollable if content overflows */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for elevation */
    padding: 20px; /* Padding inside the sidebar */
    box-sizing: border-box;
}

/* Sidebar header */
#custom-locator-sidebar h2 {
    font-size: 20px; /* Larger, prominent header */
    margin-bottom: 15px;
    color: #33362d;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Store list styling */
#custom-locator-sidebar ul {
    list-style: none; /* Removes bullets */
    padding: 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

/* Individual list items */
#custom-locator-sidebar li {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Rounded corners for list items */
    cursor: pointer;
    background: #ffffff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#custom-locator-sidebar li:hover {
    background-color: #f9f9f9; /* Lighter background on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle elevation on hover */
}

#custom-locator-sidebar #store-list a {
    color: blue;
}

/* Active location styling */
.custom-locator-active {
    background-color: #818181; /* Soft green for active */
    border: 2px solid #000000 !important;
}

/* Map container styling */
#custom-locator-map {
    width: 75%; /* Map width */
    height: 100%; /* Full height */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly elevated map */
    font-size: 12px;
}

.leaflet-popup-content img.custom-locator-logo {
    display: none;
}

/* Store Name */
.custom-locator-storename {
    color: #006451;
}

 #filter-container {
    display: flex;
    gap: 10px; 
    align-items: center;
} 

 #region-filter, #address-filter {
    flex: 1; 
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
	 margin-bottom: 10px;
} 

/* Responsive Design */

/* Mobile View (Below 768px) */
@media (max-width: 768px) {
    #custom-locator-container {
        flex-direction: column; /* Stack sidebar and map */
    }

    #custom-locator-sidebar {
        width: 100%; /* Full width for mobile */
        height: auto; /* Adjust height automatically */
        padding: 15px;
    }

    #custom-locator-map {
        width: 100%; /* Full width for map */
        height: 60vh; /* Adjust map height for small screens */
    }

    #custom-locator-sidebar li {
        font-size: 14px;
        padding: 12px;
    }
}

/* Tablet View (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #custom-locator-container {
        flex-direction: column; /* Stack sidebar and map vertically */
        height: auto; /* Adjust height dynamically */
    }

    #custom-locator-sidebar {
        width: 100%; /* Full width on tablets */
        height: auto; /* Auto height for flexibility */
        padding: 15px;
        overflow-y: auto; /* Ensure scroll if needed */
    }

    #custom-locator-map {
        width: 100%; /* Full width for map */
        height: 500px; /* Adjust height for tablets */
    }
}

/* iPhone View (Below 480px) */
@media (max-width: 480px) {
    #custom-locator-container {
        height: auto; /* Adjust height */
    }

    #custom-locator-sidebar {
        width: 100%; /* Full width */
        height: auto; /* Adjust height dynamically */
        padding: 10px;
        overflow-y: auto; /* Enable scrolling if needed */
    }

    #custom-locator-map {
        width: 100%; /* Full width */
        height: 400px; /* Adjust height */
    }

    #custom-locator-sidebar ul {
        font-size: 14px; /* Adjust list font size */
    }

    #custom-locator-sidebar li {
        font-size: 13px; /* Reduce text size */
        padding: 10px;
    }
}

