/* =============================================
   Store Locator Plugin — Frontend CSS
   V-Mart / CityKart style look
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

.sl-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #222;
    font-size: 14px;
}

.sl-wrapper a {
    text-decoration: none;
}

.sl-wrapper a:hover {
    text-decoration: none;
}

.sl-search-panel {
    background: #f6f6f6;
    border: 1px solid #dfdfdf;
    padding: 18px 18px 20px;
    margin-bottom: 28px;
}

.sl-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sl-panel-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #151515;
    margin: 0;
}

.sl-map-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 4px;
    background: #ef2020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, background .2s ease;
}

.sl-map-icon:hover {
    background: #db1515;
    transform: translateY(-1px);
}

.sl-keyword-row {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #d6d6d6;
    background: #fff;
    margin-bottom: 14px;
    border-radius: 4px;
}

.sl-keyword-row .sl-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 16px;
    color: #5a5a5a;
    min-width: 0;
}

.sl-search-icon-btn {
    width: 72px;
    border: 0;
    background: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.sl-search-icon-btn:hover {
    background: #333;
}

.sl-geo-error {
    color: #ef2020;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 10px;
    padding: 0 2px;
}

.sl-geo-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #ef2020;
    letter-spacing: .3px;
    cursor: pointer;
    margin-bottom: 14px;
}

.sl-geo-btn:hover {
    background: #fff7f7;
}

.sl-geo-btn.sl-geo-active {
    color: #27ae60;
    border-color: #27ae60;
}

.sl-divider {
    text-align: center;
    margin: 6px 0 16px;
    color: #222;
    font-weight: 700;
    font-size: 16px;
}

.sl-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin-bottom: 16px;
}

.sl-select {
    width: 100%;
    border: 1px solid #cfd5de;
    border-radius: 4px;
    background: #fff;
    color: #3e4d5c;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    appearance: auto;
}

.sl-select:disabled {
    background: #f5f5f5;
    color: #a0a0a0;
    cursor: not-allowed;
}

.sl-select:focus {
    border-color: #ef2020;
}

.sl-btn-search {
    width: 100%;
    border: 0;
    background: #ef2020;
    color: #fff;
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.sl-btn-search:hover {
    background: #db1515;
    transform: translateY(-1px);
}

.sl-results-wrapper {
    margin-top: 0;
}

.sl-results-header {
    background: #1f1f1f;
    padding: 13px 18px;
    margin-bottom: 22px;
}

.sl-results-title {
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.sl-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1024px) {
    .sl-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sl-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .sl-results-grid {
        grid-template-columns: 1fr;
    }

    .sl-search-panel {
        padding: 14px;
    }

    .sl-panel-title {
        font-size: 22px;
    }

    .sl-search-icon-btn {
        width: 64px;
    }
}

.sl-store-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.sl-card-top {
    background: #f8f8f8;
    padding: 16px 16px 12px;
}

.sl-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sl-store-header-left {
    flex: 1;
    min-width: 0;
}

.sl-store-name {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #ef2020;
    margin: 0 0 8px;
}

.sl-store-location {
    font-size: 15px;
    line-height: 1.5;
    color: #1f1f1f;
    margin: 0;
}

.sl-share-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ef2020;
    cursor: pointer;
    flex-shrink: 0;
}

.sl-card-rating-link {
    display: block;
    margin-top: 18px;
}

.sl-card-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sl-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1f1f1f;
    text-decoration: none;
}

.sl-rating-text {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f1f1f;
}

.sl-write-review {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1a0dab;
    text-decoration: none;
}

.sl-write-review:hover {
    text-decoration: none;
    opacity: .85;
}

.sl-stars {
    display: flex;
    gap: 1px;
    margin-top: 6px;
}

.sl-star {
    font-size: 20px;
    line-height: 1;
}

.sl-star-full,
.sl-star-half {
    color: #ef2020;
}

.sl-star-half {
    opacity: .65;
}

.sl-star-empty {
    color: #e1e1e1;
}

.sl-card-bottom {
    background: #fff;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sl-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.sl-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 1.55;
    color: #1f1f1f;
}

.sl-icon {
    flex: 0 0 auto;
    display: inline-flex;
    padding-top: 3px;
}

.sl-address-link {
    color: #1f1f1f;
    text-decoration: none;
}

.sl-address-link:hover {
    text-decoration: none;
    color: #ef2020;
}

.sl-distance-row {
    color: #1f1f1f;
    font-weight: 600;
}

.sl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.sl-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
    text-decoration: none;
}

.sl-footer-link:hover {
    text-decoration: none;
}

.sl-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 800;
}

.sl-open {
    color: #27ae60;
}

.sl-closed {
    color: #e74c3c;
}

.sl-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.sl-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f1f1f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
}

.sl-action-link:hover {
    text-decoration: none;
    opacity: .84;
}

.sl-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    font-size: 14px;
    color: #666;
}

.sl-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #eee;
    border-top-color: #ef2020;
    border-radius: 50%;
    animation: sl-spin .7s linear infinite;
}

@keyframes sl-spin {
    to { transform: rotate(360deg); }
}

.sl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 15px;
}

.sl-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1f1f1f;
    color: #fff;
    padding: 11px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: all .3s ease;
    z-index: 9999;
    pointer-events: none;
}

.sl-toast.sl-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* AJAX pagination + skeleton loader */
.sl-load-more-btn {
    display: block;
    margin: 28px auto 0;
    padding: 13px 26px;
    border: 0;
    border-radius: 4px;
    background: #ef2020;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.sl-load-more-btn:hover {
    background: #db1515;
    transform: translateY(-1px);
}
.sl-load-more-loader {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.sl-skeleton-card {
    min-height: 230px;
    border: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    padding: 18px;
    overflow: hidden;
    position: relative;
}
.sl-skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -160px;
    width: 160px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: slSkeletonMove 1.15s infinite;
}
.sl-skeleton-head,
.sl-skeleton-line {
    background: #eeeeee;
    border-radius: 4px;
}
.sl-skeleton-head {
    height: 28px;
    width: 72%;
    margin-bottom: 22px;
}
.sl-skeleton-line {
    height: 14px;
    width: 100%;
    margin-bottom: 13px;
}
.sl-skeleton-line-lg { width: 88%; }
.sl-skeleton-line-sm { width: 52%; }
@keyframes slSkeletonMove {
    100% { left: 100%; }
}
@media (max-width: 1024px) {
    .sl-load-more-loader { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sl-load-more-loader { grid-template-columns: 1fr; }
}
