/* Store Locator Frontend Styles */

.store-locator-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Box Styles */
.store-locator-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.store-search-input:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.store-search-button,
.store-location-button {
    padding: 12px 24px;
    font-size: 16px;
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.store-search-button:hover,
.store-location-button:hover {
    background: #357ae8;
}

.store-location-button {
    min-width: 50px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-location-button svg {
    display: block;
}

/* Map Styles */
.store-locator-map {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Info Window Styles */
.store-info-window {
    max-width: 300px;
    padding: 10px;
}

.store-info-window h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.store-info-window p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.store-info-window a {
    color: #4285F4;
    text-decoration: none;
}

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

.store-address {
    color: #666;
}

.store-directions a {
    display: inline-block;
    padding: 8px 16px;
    background: #4285F4;
    color: white !important;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none !important;
}

.store-directions a:hover {
    background: #357ae8;
}

/* Results List Styles */
.store-locator-results {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-locator-results h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #333;
}

.store-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.store-result-item:hover {
    background: #f0f0f0;
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.store-result-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4285F4;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.store-result-content {
    flex: 1;
}

.store-result-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.store-result-distance {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #4285F4;
    font-weight: 600;
}

.store-result-address,
.store-result-phone {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.store-result-phone a {
    color: #4285F4;
    text-decoration: none;
}

.store-result-phone a:hover {
    text-decoration: underline;
}

.store-result-actions {
    margin-top: 10px;
}

.store-result-actions a {
    display: inline-block;
    padding: 6px 12px;
    background: #4285F4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.store-result-actions a:hover {
    background: #357ae8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-locator-search {
        flex-direction: column;
    }
    
    .store-search-button,
    .store-location-button {
        width: 100%;
    }
    
    .store-result-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .store-result-number {
        margin-bottom: 10px;
    }
}

/* Loading Spinner */
.store-locator-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.store-locator-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285F4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
