/* Store Locator Integration Styles */

.store-locator-container {
    padding: 60px 0;
    background-color: #f7f7f7;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

.store-locator-search-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    border: 1px solid #dfdfdf;
}

.store-locator-method {
    flex: 1;
    display: flex;
    justify-content: center;
}

.store-locator-divider {
    position: relative;
    color: #828282;
    font-weight: 600;
    padding: 0 15px;
    font-family: 'Poppins', sans-serif;
}

.store-locator-divider::before, 
.store-locator-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 30px;
    background: #dfdfdf;
}

.store-locator-divider::before { top: -40px; }
.store-locator-divider::after { bottom: -40px; }

.store-locator-input-group {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.store-locator-input-group input {
    flex: 1;
    margin-bottom: 0;
    border-radius: 4px 0 0 4px;
    height: 45px;
}

.store-locator-input-group .btn {
    border-radius: 0 4px 4px 0;
    margin-bottom: 0;
    height: 45px;
    padding: 0 25px;
}

.store-locator-status {
    text-align: center;
    padding: 12px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.store-locator-status.error { background: #fee2e2; color: #b91c1c; }
.store-locator-status.info { background: #e0f2fe; color: #006eb7; }
.store-locator-status.success { background: #ecfdf5; color: #047857; }
.store-locator-status.hidden { display: none; }

.store-locator-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    height: 600px;
}

.store-locator-results-panel {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dfdfdf;
}

.store-locator-results-header {
    padding: 20px;
    border-bottom: 1px solid #dfdfdf;
    background: #fcfcfc;
}

.store-locator-results-header h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #232323;
}

.store-locator-results-header span {
    font-size: 0.85rem;
    color: #828282;
}

.store-locator-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.store-locator-card {
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #dfdfdf;
    margin-bottom: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.store-locator-card:hover {
    border-color: #006eb7;
    transform: translateX(5px);
}

.store-locator-card.active {
    border-color: #006eb7;
    background: #f0f7fb;
    box-shadow: 0 0 0 1px #006eb7;
}

.store-locator-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #232323;
    font-weight: 600;
}

.store-locator-card p {
    font-size: 0.85rem;
    color: #828282;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-locator-distance {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #006eb7;
}

.store-locator-card-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #dfdfdf;
    font-size: 0.75rem;
    color: #006eb7;
    font-weight: 600;
}

.store-locator-map-panel {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #dfdfdf;
    background: #f1f5f9;
}

#store-locator-map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.store-locator-empty {
    text-align: center;
    padding: 60px 20px;
    color: #828282;
}

/* Routing Panel Overrides */
.leaflet-routing-container {
    background: white !important;
    border: 1px solid #dfdfdf !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    max-height: 200px;
    overflow-y: auto;
    width: 280px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
}

@media (max-width: 991px) {
    .store-locator-search-box {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    .store-locator-divider::before, 
    .store-locator-divider::after {
        width: 40px;
        height: 1px;
        left: auto;
    }
    .store-locator-divider::before { left: -50px; top: 12px; }
    .store-locator-divider::after { right: -50px; bottom: 12px; }

    .store-locator-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .store-locator-map-panel {
        order: -1;
        height: 350px;
    }

    .store-locator-results-list {
        max-height: 400px;
    }
}
