/* ===== Store Locator - frontend (redesign 21/10/2026) ===== */
.sl-locator {
    font-family: "Segoe UI", system-ui, sans-serif;
    max-width: 1240px;
    margin: 0 auto;
    color: #1a1a1a;
    --sl-green: #008848;
    --sl-green-dark: #006f3b;
    --sl-green-light: #e6f4ea;
    --sl-blue: #1976d2;
    --sl-text: #1a1a1a;
    --sl-muted: #6b7280;
    --sl-border: #e5e7eb;
    --sl-bg: #f8f9fa;
    --sl-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    --sl-shadow-hover: 0 4px 16px rgba(0, 0, 0, .1);
    --sl-radius: 12px;
}

/* ===== Thanh tìm kiếm ===== */
.sl-filters {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 24px;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border: 1px solid #f0f0f0;
}

.sl-filters input[type="search"] {
    flex: 3;
    min-width: 0;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14.5px;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 14px center no-repeat;
    transition: all .2s ease;
    color: #1f2937;
}

.sl-filters input[type="search"]::placeholder {
    color: #9ca3af;
}

.sl-filters input[type="search"]:focus {
    outline: none;
    border-color: var(--sl-green);
    box-shadow: 0 0 0 4px rgba(0, 136, 72, .08);
    background-color: #fff;
}

.sl-filters select {
    flex: 2;
    min-width: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: #fafbfc;
    color: #1f2937;
    cursor: pointer;
    transition: all .2s ease;
}

.sl-filters select:focus {
    outline: none;
    border-color: var(--sl-green);
    box-shadow: 0 0 0 4px rgba(0, 136, 72, .08);
    background-color: #fff;
}

.sl-filters button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: var(--sl-green);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(0, 136, 72, .2);
}

.sl-filters button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 72, .25);
}

.sl-filters button:active {
    transform: translateY(0);
}

.sl-filters button.sl-nearby {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .2);
}

.sl-filters button.sl-nearby:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

.sl-filters button:hover { background: var(--sl-green-dark); }
.sl-filters button:active { transform: scale(.98); }
#sl-nearby-btn { background: var(--sl-blue); }
#sl-nearby-btn:hover { background: #125ea8; }

/* ===== Bố cục chính ===== */
.sl-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sl-list-wrap {
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

.sl-count {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--sl-text);
    font-size: 15px;
}

.sl-count strong { color: var(--sl-green); }

.sl-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 600px;
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sl-list::-webkit-scrollbar { width: 6px; }
.sl-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ===== Thẻ cửa hàng ===== */
.sl-card {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 16px;
    background: #fff;
    cursor: pointer;
    transition: box-shadow .2s, border-color .2s, transform .15s;
    position: relative;
}

.sl-card:hover {
    border-color: var(--sl-green);
    box-shadow: var(--sl-shadow-hover);
    transform: translateY(-1px);
}

.sl-card.active {
    border-color: var(--sl-green);
    box-shadow: 0 0 0 3px rgba(0, 136, 72, .12);
}

.sl-card-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sl-thumb { flex-shrink: 0; }

.sl-thumb img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.sl-card-main { flex: 1; min-width: 0; }

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

.sl-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--sl-text);
    line-height: 1.4;
}

.sl-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.sl-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.sl-status-open { background: var(--sl-green-light); color: var(--sl-green-dark); }
.sl-status-coming { background: #fef3c7; color: #92400e; }
.sl-status-closed { background: #fee2e2; color: #991b1b; }

.sl-dist {
    font-size: 12px;
    font-weight: 700;
    color: var(--sl-green);
    background: var(--sl-green-light);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sl-addr, .sl-phone, .sl-hours {
    font-size: 14px;
    color: var(--sl-muted);
    margin-top: 6px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.sl-addr { color: #374151; }

.sl-old-addr {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    margin-top: 4px;
    padding-left: 22px;
}

.sl-phone a {
    color: var(--sl-blue);
    text-decoration: none;
    font-weight: 500;
}

.sl-phone a:hover { text-decoration: underline; }

.sl-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
}

.sl-btn-detail {
    background: #fff;
    border-color: var(--sl-border);
    color: var(--sl-text);
}

.sl-btn-detail:hover {
    border-color: var(--sl-green);
    color: var(--sl-green);
    background: var(--sl-green-light);
}

.sl-btn-dir {
    background: var(--sl-green);
    color: #fff;
    flex: 1;
    justify-content: center;
}

.sl-btn-dir:hover { background: var(--sl-green-dark); color: #fff; }

/* ===== Bản đồ ===== */
.sl-map-wrap {
    flex: 1.4;
    min-width: 0;
    position: sticky;
    top: 16px;
}

#sl-map {
    height: 600px;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: var(--sl-shadow);
    z-index: 1;
    overflow: hidden;
}

/* ===== Phân trang ===== */
.sl-pager {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.sl-pager button {
    padding: 10px 20px;
    border: 1px solid var(--sl-border);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .15s;
}

.sl-pager button:hover:not(:disabled) {
    border-color: var(--sl-green);
    color: var(--sl-green);
}

.sl-pager span {
    font-size: 14px;
    color: var(--sl-muted);
    font-weight: 500;
}

.sl-loading, .sl-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--sl-muted);
    background: #fff;
    border-radius: var(--sl-radius);
    border: 1px dashed var(--sl-border);
}

.sl-empty { font-size: 15px; }

/* ===== Trang chi tiết ===== */
.sl-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    font-family: "Segoe UI", system-ui, sans-serif;
    --sl-green: #008848;
    --sl-green-dark: #006f3b;
    --sl-green-light: #e6f4ea;
    --sl-blue: #1976d2;
    --sl-border: #e5e7eb;
    --sl-radius: 12px;
}

.sl-breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.sl-breadcrumb a { color: var(--sl-blue); text-decoration: none; }
.sl-breadcrumb a:hover { text-decoration: underline; }

.sl-single-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sl-single-head h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.sl-hero { margin-bottom: 24px; }

.sl-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--sl-radius);
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.sl-single-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.sl-single-info {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 24px;
}

.sl-info-row {
    font-size: 16px;
    color: #333;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}

.sl-info-row:last-child { margin-bottom: 0; }
.sl-info-row a { color: var(--sl-blue); text-decoration: none; font-weight: 500; }
.sl-info-row a:hover { text-decoration: underline; }

.sl-single-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sl-single-map { flex: 1.2; min-width: 0; }

#sl-single-map {
    height: 420px;
    border-radius: var(--sl-radius);
    border: 1px solid var(--sl-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    z-index: 1;
    overflow: hidden;
}

.sl-nearby-title {
    margin: 40px 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.sl-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.sl-nearby-card {
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    padding: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}

.sl-nearby-card:hover {
    border-color: var(--sl-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.sl-nearby-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .sl-body { flex-direction: column; }
    .sl-list-wrap { max-width: none; width: 100%; }
    .sl-map-wrap { width: 100%; position: static; }
    #sl-map { height: 380px; }
    .sl-list { max-height: 460px; }
    .sl-single-body { flex-direction: column; }
    .sl-single-map { width: 100%; }
    #sl-single-map { height: 320px; }
    .sl-filters { padding: 12px; }
}

@media (max-width: 600px) {
    .sl-filters { flex-wrap: wrap; }
    .sl-filters input[type="search"] { flex: 1 1 100%; min-width: 0; }
    .sl-filters select { flex: 1 1 100%; min-width: 0; max-width: none; }
    .sl-filters button { flex: 1 1 auto; }
    .sl-card-inner { gap: 12px; }
    .sl-thumb img { width: 72px; height: 72px; }
    .sl-actions { flex-wrap: wrap; }
    .sl-btn { flex: 1; justify-content: center; }
}

/* Badge trạng thái đóng/mở cửa theo giờ */
.sl-open-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}
.sl-open-badge.sl-open {
    background: #dcfce7;
    color: #166534;
}
.sl-open-badge.sl-closed {
    background: #fee2e2;
    color: #991b1b;
}

.sl-open-badge.sl-opening {
    background: #fef9c3;
    color: #854d0e;
}
.sl-open-badge.sl-closing {
    background: #ffedd5;
    color: #9a3412;
}
