/* Main Wrapper */
.slm-wrapper {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Bar */
.slm-search-bar {
    display: flex;
    gap: 10px;
    background: #D6C5AC;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
}

.slm-search-input,
.slm-province-filter {
    padding: 12px 16px !important;
    border: 1px solid #b8a48e !important;
    border-radius: 4px;
    background: #FFFFFF !important;
    color: #361E0B;
    font-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.slm-search-input {
    flex: 1;
}

.slm-search-input::placeholder {
    color: #9c7f66;
}

.slm-search-input:focus,
.slm-province-filter:focus {
    border-color: #93406A;
    box-shadow: 0 0 0 3px rgba(147, 64, 106, 0.15);
}

/* Custom dropdown arrow */
.slm-province-filter {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393406A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.slm-search-btn, .slm-reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.slm-search-btn:active,
.slm-reset-btn:active {
    transform: scale(0.97);
}

.slm-search-btn { background-color: #93406A; }
.slm-search-btn:hover { background-color: #7a3359; }

.slm-reset-btn { background-color: #967250; }
.slm-reset-btn:hover { background-color: #7d5e40; }

/* Map Container - Full Width */
.slm-map-container {
    width: 100%;
    height: 500px !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* List Container */
.slm-list-container {
    width: 100%;
    background: transparent; /* Remove old background */
    border: none;            /* Remove old border */
    padding: 0;
    max-height: none;        /* Allow full height flow */
    overflow: visible;       /* Remove scrollbar */
}

/* Province Groups */
.slm-province-group {
    margin-bottom: 40px;
}

.slm-province-title {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #333;
}

/* Grid Layout (3 Columns) */
.slm-location-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Location Card Styling */
.slm-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards in a row match height */
    position: relative;
    box-sizing: border-box;
}

/* Hover Effect: Lift and Shadow */
.slm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

/* Store Name */
.slm-store-name {
    margin-bottom: 10px;
    color: #0073aa;
    display: block;
    font-weight: 700;
}

/* Address Block */
.slm-address-block {

}
.slm-address-block span {
    display: inline-block;
}

/* Province Border Indicators (Optional Polish) */
.slm-item.province-qc { border-top: 4px solid #0056b3; }
.slm-item.province-on { border-top: 4px solid #cc0000; }

/* Distance badge (geo search) */
.slm-distance {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 8px;
    background: #e8f4fd;
    color: #0073aa;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    align-self: flex-start;
}

/* No results message (geo search) */
.slm-no-results {
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Hidden utility */
.slm-item.hidden, .slm-province-group.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .slm-location-list {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet */
    }
}

@media (max-width: 600px) {
    .slm-location-list {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
    }
    .slm-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.slm-map-container
{
	margin-bottom: 24px;
}