/* EZpanl Store Locator Styles */

.ezpanl-store-locator-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ezpanl-store-locator {
    display: flex;
    gap: 0;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Map Container */
.ezpanl-map-container {
    flex: 1;
    min-height: 500px;
    position: relative;
}

#ezpanl-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Sidebar */
.ezpanl-sidebar {
    width: 350px;
    background: #ffffff;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.ezpanl-sidebar-header {
    padding: 20px;
    background: #1a1a1a;
    color: #ffffff;
}

.ezpanl-sidebar-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.ezpanl-search {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.ezpanl-search:focus {
    outline: 2px solid #cc0000;
}

/* Location List */
.ezpanl-location-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ezpanl-location-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ezpanl-location-item:hover {
    background: #f5f5f5;
}

.ezpanl-location-item.active {
    background: #fff5f5;
    border-left: 3px solid #cc0000;
}

.ezpanl-location-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.ezpanl-location-address {
    font-size: 14px;
    color: #666666;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.ezpanl-location-phone {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.ezpanl-location-phone a {
    color: #1a1a1a;
    text-decoration: none;
}

.ezpanl-location-phone a:hover {
    color: #cc0000;
}

.ezpanl-location-hours {
    font-size: 13px;
    color: #888888;
    margin: 0 0 10px 0;
}

.ezpanl-directions-link {
    display: inline-block;
    font-size: 13px;
    color: #cc0000;
    text-decoration: none;
    font-weight: 500;
}

.ezpanl-directions-link:hover {
    text-decoration: underline;
}

/* Custom Map Markers */
.ezpanl-marker {
    background: #cc0000;
    border: 3px solid #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ezpanl-marker.active {
    background: #1a1a1a;
    transform: scale(1.2);
}

/* Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ezpanl-popup-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a1a1a;
}

.ezpanl-popup-address {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

/* No Results */
.ezpanl-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888888;
}

/* Responsive */
@media (max-width: 768px) {
    .ezpanl-store-locator {
        flex-direction: column;
    }

    .ezpanl-sidebar {
        width: 100%;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .ezpanl-map-container {
        min-height: 300px;
    }

    #ezpanl-map {
        min-height: 300px;
    }
}
