/* WPSL Modern UI v2 */
.wpsl-modern-wrap {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    width: 100%;
    min-height: 400px;
}

/* Sidebar */
.wpsl-modern-sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8e8e8;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.wpsl-modern-search {
    padding: 14px;
    border-bottom: 1px solid #efefef;
    width: 100%;
    box-sizing: border-box;
}

.wpsl-search-wrap {
    position: relative;
    width: 100%;
}

.wpsl-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.wpsl-modern-search input {
    width: 100%;
    padding: 9px 32px 9px 34px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #f8f8f8;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    display: block;
    min-width: 0;
}

.wpsl-modern-search input:focus {
    border-color: #378ADD;
    background: #fff;
}

.wpsl-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpsl-clear-btn:hover { color: #555; }

.wpsl-modern-count {
    padding: 10px 14px 6px;
    font-size: 12px;
    color: #999;
    min-height: 28px;
    display: flex;
    align-items: center;
}

.wpsl-spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 12px;
}

.wpsl-spin {
    animation: wpsl-spin 0.8s linear infinite;
}

@keyframes wpsl-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.wpsl-modern-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px 4px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.wpsl-modern-list::-webkit-scrollbar { width: 4px; }
.wpsl-modern-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* Cards */
.wpsl-store-card {
    padding: 13px 12px;
    border-radius: 8px;
    border: 1px solid #eeeeee;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
}

.wpsl-store-card:hover { border-color: #ccc; background: #fafafa; }
.wpsl-store-card.wpsl-active { border-color: #378ADD; background: #EBF4FD; }

.wpsl-store-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.wpsl-store-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eeeeee;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-right: 7px;
    flex-shrink: 0;
    margin-top: 1px;
}

.wpsl-store-card.wpsl-active .wpsl-store-card-num { background: #378ADD; color: #fff; }

.wpsl-store-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.wpsl-store-card.wpsl-active .wpsl-store-card-name { color: #185FA5; }

.wpsl-store-card-addr {
    font-size: 12px;
    color: #777;
    line-height: 1.45;
    margin-bottom: 10px;
    padding-left: 27px;
}

.wpsl-store-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 27px;
}

.wpsl-btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid #378ADD;
    color: #185FA5;
    background: #EBF4FD;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.wpsl-btn-directions:hover { background: #d0e8f8; color: #185FA5; text-decoration: none; }

.wpsl-store-phone {
    font-size: 11px;
    color: #aaa;
    margin-left: auto;
    white-space: nowrap;
}

/* Load more */
.wpsl-pagination {
    padding: 10px 12px 12px;
    border-top: 1px solid #efefef;
}

.wpsl-load-more {
    width: 100%;
    padding: 9px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f8f8;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.wpsl-load-more:hover { background: #efefef; border-color: #ccc; }
.wpsl-load-more:disabled { opacity: 0.5; cursor: default; }

/* Empty state */
.wpsl-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 13px;
}

.wpsl-empty svg { display: block; margin: 0 auto 10px; opacity: 0.35; }

/* Map */
.wpsl-modern-map {
    flex: 1;
    position: relative;
    background: #eef0f3;
    min-width: 0;
}

/* Responsive */
@media (max-width: 680px) {
    .wpsl-modern-wrap { flex-direction: column; height: auto !important; }
    .wpsl-modern-sidebar { width: 100%; max-height: 360px; }
    .wpsl-modern-map { height: 320px; }
}
