.store-locator {
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

#store-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#store-search-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#store-search-form button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#store-search-form button:hover {
    background: #0056b3;
}

.loading {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    text-align: center;
    border-radius: 4px;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.error strong {
    display: block;
    margin-bottom: 5px;
}

.error-details {
    background: rgba(0,0,0,0.05);
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.store-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: 4px;
    background: white;
    position: relative;
    z-index: 1;
}

.store-result:hover {
    border-color: #007bff;
}

.store-info h3 {
    margin-top: 0;
    color: #007bff;
}

.store-info p {
    margin: 5px 0;
    color: #666;
}

.store-info a {
    color: #007bff;
    text-decoration: none;
}

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

.store-map {
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    position: relative;
    z-index: 1;
}

/* Fix Leaflet z-index issues */
.leaflet-map-pane {
    z-index: 2;
}

.leaflet-top,
.leaflet-bottom {
    z-index: 10;
}

.leaflet-popup {
    z-index: 11;
}

.leaflet-control {
    z-index: 12 !important;
}

/* Ensure controls are clickable */
.leaflet-control-zoom {
    clear: both;
}

/* Fix any potential conflicts with Elementor */
.elementor-element {
    z-index: auto;
}

/* Responsive layout */
@media (max-width: 600px) {
    .store-result {
        grid-template-columns: 1fr;
    }
    
    .store-map {
        height: 150px;
    }
}
