/* Store Locator Container */
.store-locator-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Bar */
#store-locator-search {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#store-search {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#search-button {
    padding: 10px 20px;
    background-color: #d73028;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #b11f18;
}

/* Content Layout */
.store-locator-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Map Styles */
#store-map {
    flex: 1;
    min-width: 300px;
    height: 615px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Store List */
#store-list {
    flex: 1;
    min-width: 300px;
    max-height: 615px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

/* Scrollbar */ 
#store-list::-webkit-scrollbar {
    width: 5px;
}

#store-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#store-list::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

#store-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(179 179 179 / 50%) #f1f1f1;
}

/* Store Cards */
.store-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #d73028;
}

.store-card.active {
    border-color: #d73028;
    background-color: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.store-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.store-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.store-card .store-address {
    font-weight: 500;
    color: #333;
}

.store-card .store-phone a, .store-card .store-email a {
    color: #b11f18;
}

.store-card .directions-button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #d73028;
    color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.store-card .directions-button:hover {
    background-color: #b11f18;
    border-color: #fff;
    color: #fff;
}

/* Map Info Window */
.map-info-window {
    padding: 5px;
    max-width: 250px;
}

.map-info-window h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #0073aa;
}

.map-info-window p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.3;
}

.map-info-window a {
    display: inline-block;
    margin-top: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.map-info-window a:hover {
    text-decoration: underline;
}

/* No stores message */
.no-stores {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .store-locator-content {
        flex-direction: column;
        overflow: visible; /* Fix overflow issues on mobile */
    }

    #store-map {
        width: 100%; /* Full width on small screens */
        height: 400px!important;
        flex: none; /* Prevent flex stretching */
    }

    #store-list {
        width: 100%;
        max-height: 430px;
        overflow-y: auto; 
        /*padding-right: 0; /* Remove padding for scrollbar on mobile */
    }
}
