/* Main container for sidebar and map */
#strloc-main-div {
    display: flex; /* Enables horizontal layout */
    height: 500px;    
    font-size: 12px;
    gap: 20px; /* Adds spacing between sidebar and map */
    padding: 10px; /* Adds padding around the container */
}
#strloc-main-div p{
    margin: 0;
    font-weight: 600;
}

/* Sidebar styling */
#strloc-sidebar {
    width: 25%; /* 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 */
#strloc-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 */
#strloc-sidebar ul {
    list-style: none; /* Removes bullets */
    padding: 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

/* Individual list items */
#strloc-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;
}

#strloc-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 */
}

/* Active location styling */
.strloc-oc-active-location {
    background-color: #e8f7e8; /* Soft green for active */
    font-weight: bold;
    border-left: 4px solid #006451 !important;
}

/* Map container styling */
#strloc-map-container {
    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;
}

#strloc-section-block div:empty {
    display: block;
}

.strloc-heading{
    display: flex;
    align-items: center; 
    margin-bottom: 10px;
}

.strloc-logo{
    width: 18px; 
    height: 22px; 
    margin-right: 10px;
}

.strloc-storename{
    color: #006451;
}

.leaflet-popup-content img.strloc-logo{
    display: none;
}
.strloc-field{
    font-size: 14px;
}

/* Add some padding for small screens */
@media (max-width: 768px) {
    #strloc-section-block {
        flex-direction: column; /* Stack sidebar and map vertically */
        gap: 10px; /* Reduce gap */
    }

    #strloc-sidebar {
        width: 100%; /* Full width for sidebar */
    }

    #strloc-map-container {
        width: 100%; /* Full width for map */
        height: 60vh; /* Adjust map height for small screens */
    }
    #strloc-sidebar ul{
        max-height:250px;
    }
}

.strloc-filter{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/*loader*/

.loader {
    display: none; /* Initially hidden */
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/*  RESPONSIVE DESIGN */

/*  Mobile View (Below 768px) */
@media (max-width: 768px) {
    #strloc-main-div {
        flex-direction: column; /* Stack sidebar and map */
    }

    #strloc-sidebar {
        width: 100%; /* Full width for mobile */
        height: auto; /* Adjust height automatically */
        padding: 15px;
    }

    #strloc-map-container {
        width: 100%; /* Full width for map */
        height: 400px; /* Adjusted height for mobile */
    }

    .strloc-filter {
        gap: 8px;
    }

    #strloc-sidebar li {
        font-size: 14px;
        padding: 12px;
    }
}

/*search css*/

#searchInput {
  background-position: 10px 12px; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  width: 100%; /* Full-width */
  font-size: 14px; /* Increase font-size */
  padding: 12px 0px 12px 40px; /* Add some padding */
  border: 1px solid #ddd; /* Add a grey border */
  margin-bottom: 12px; /* Add some space below the input */
}

/*  Tablet View (For iPads & Tablets) */
@media (min-width: 768px) and (max-width: 1024px) {
    #strloc-main-div {
        flex-direction: column; /* Stack sidebar and map vertically */
        height: auto; /* Adjust height dynamically */
    }

    #strloc-sidebar {
        width: 100%; /* Full width on tablets */
        height: auto; /* Auto height for flexibility */
        padding: 15px;
        overflow-y: auto; /* Ensure scroll if needed */
    }

    #strloc-map-container {
        width: 100%; /* Full width for map */
        height: 500px; /* Adjust height for tablets */
    }

    .strloc-filter {
        flex-wrap: wrap; /* Ensure filters wrap properly */
        justify-content: center; /* Center align */
    }

    #searchInput {
        width: 100%; /* Make search input responsive */
    }

    #strloc-sidebar li {
        font-size: 14px;
        padding: 12px;
    }
}

/*  iPhone 14 Pro Max (430px and below) */
@media (max-width: 480px) {
    #strloc-main-div {
        height: auto; /* Adjust height */
    }

    #strloc-sidebar {
        width: 100%; /* Full width */
        height: auto; /* Adjust height dynamically */
        padding: 10px;
        overflow-y: auto; /* Enable scrolling if needed */
    }

    #strloc-map-container {
        width: 100%; /* Full width */
        height: 400px; /* Adjust height */
    }

    #searchInput {
        width: 100%; /* Make search input full width */
        font-size: 16px; /* Increase font size for better accessibility */
        padding: 12px; /* Add proper spacing */
    }

    .strloc-filter {
        align-items: center; /* Center align */
    }

    #strloc-sidebar ul {
        font-size: 14px; /* Adjust list font size */
    }

    #strloc-sidebar li {
        font-size: 13px; /* Reduce text size */
        padding: 10px;
    }
}

/*  Surface Duo (540px - 720px) */
@media (max-width: 600px) {
    #strloc-main-div {
        height: auto; /* Adjust height dynamically */
    }

    #strloc-sidebar {
        width: 100%; /* Full width */
        height: auto; /* Allow dynamic height */
        padding: 15px;
        overflow-y: auto; /* Enable scrolling if needed */
    }

    #strloc-map-container {
        width: 100%; /* Full width */
        height: 400px; /* Adjust height */
    }

    #searchInput {
        width: 100%; /* Full width for better usability */
        font-size: 16px; /* Bigger font for better readability */
        padding: 12px; /* Proper spacing */
        text-indent: 25px;
    }

    .strloc-filter {
        align-items: center; /* Center align */
    }

    #strloc-sidebar ul {
        font-size: 14px; /* Adjust list font size */
    }

    #strloc-sidebar li {
        font-size: 13px; /* Reduce text size */
        padding: 10px;
    }
}



