/**
 * Store Locator Frontend Styles
 *
 * @package Pazzey_Store_Locator
 */

.pazzey-store-locator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.pazzey-store-locator * {
    box-sizing: border-box;
}

/* Search Form */
.pazzey-search-form {
    margin-bottom: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 4px;
}

.pazzey-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pazzey-search-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.pazzey-search-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.pazzey-search-form button {
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pazzey-search-form button:hover {
    background: #005a87;
}

/* Location Select Dropdown */
.pazzey-location-select-wrapper {
    margin-bottom: 10px;
}

.pazzey-location-select-wrapper select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Map Container */
.pazzey-map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.pazzey-map-wrapper {
    flex: 1 1 60%;
    min-width: 300px;
}

#pazzey-store-map {
    width: 100%;
    height: 400px;
    min-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Sidebar */
.pazzey-sidebar-wrapper {
    flex: 1 1 35%;
    min-width: 250px;
}

#pazzey-side-bar {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Store Items */
.pazzey-store-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

.pazzey-store-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pazzey-store-item:last-child {
    margin-bottom: 0;
}

.pazzey-store-link {
    color: #0073aa;
    text-decoration: none;
}

.pazzey-store-link:hover {
    text-decoration: underline;
}

.pazzey-store-address {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.pazzey-store-distance {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Info Window */
.pazzey-info-window {
    max-width: 300px;
    padding: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.pazzey-info-window strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.pazzey-store-info {
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.pazzey-directions-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.pazzey-directions-link:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .pazzey-map-container {
        flex-direction: column;
    }

    .pazzey-map-wrapper,
    .pazzey-sidebar-wrapper {
        flex: 1 1 100%;
    }

    #pazzey-store-map {
        height: 300px;
    }

    #pazzey-side-bar {
        max-height: 250px;
    }
}
