/* Frontend Store Locator Styles - 2 Column Layout */

.wvls-store-locator {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Search Section */
.wvls-search-section {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wvls-search-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.wvls-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.wvls-search-field {
    flex: 1;
    min-width: 200px;
}

.wvls-search-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.wvls-search-field select {
    width: 100%;
    /* padding: 12px 15px; */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.3s;
}

.wvls-search-field select:focus {
    outline: none;
    border-color: #7c3aed;
}

.wvls-search-button {
    /* padding: 12px 35px; */
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wvls-search-button:hover {
    background: #6d28d9;
}

/* Main Content - 2 Columns */
.wvls-content {
    display: flex;
    gap: 20px;
}

/* Left Sidebar - Store List */
.wvls-sidebar {
    width: 35%;
    min-width: 320px;
}

.wvls-stores-count {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.wvls-stores-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar */
.wvls-stores-list::-webkit-scrollbar {
    width: 8px;
}

.wvls-stores-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wvls-stores-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wvls-stores-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Store Item */
.wvls-store-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.wvls-store-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.wvls-store-item.active {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.wvls-store-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.wvls-store-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wvls-store-info {
    flex: 1;
    min-width: 0;
}

.wvls-store-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 5px;
}

.wvls-store-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

.wvls-store-phone {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
}

.wvls-get-directions {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    background: #7c3aed;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.wvls-get-directions:hover {
    background: #6d28d9;
    color: #fff;
}

/* Right Side - Map Container */
.wvls-map-container {
    flex: 1;
    min-width: 400px;
}

.wvls-map-display {
    width: 100%;
    height: 600px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wvls-map-display iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.wvls-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 16px;
}

/* Loading & No Stores */
.wvls-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

.wvls-no-stores {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .wvls-content {
        flex-direction: column;
    }

    .wvls-sidebar {
        width: 100%;
    }

    .wvls-map-container {
        width: 100%;
        min-width: auto;
    }

    .wvls-map-display {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .wvls-search-form {
        flex-direction: column;
    }

    .wvls-search-field {
        width: 100%;
    }

    .wvls-search-button {
        width: 100%;
    }

    .wvls-store-item {
        flex-direction: column;
    }

    .wvls-store-thumbnail {
        width: 100%;
        height: 150px;
    }
}