.sl-wrapper,
.sl-wrapper * {
    box-sizing: border-box;
    line-height: 1.5 !important;
}

.sl-wrapper {
    display: flex;
    margin: 0 20px;
    height: 560px;
    font-family: 'Be Vietnam Pro', sans-serif;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

/* ---------- Sidebar ---------- */
.sl-sidebar {
    width: 460px;
    max-width: 100%;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.sl-header {
    background: #1a1a1a !important;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 16px 12px;
    font-size: 13px;
    flex-shrink: 0;
}

.sl-field-label {
    font-size: 14px;
    color: #777;
    padding: 16px 16px 8px;
    flex-shrink: 0;
}

#sl-province {
    margin: 0 16px 14px;
    width: calc(100% - 32px);
    height: auto !important;
    line-height: 1.5 !important;
    padding: 11px 34px 11px 14px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff !important;
    flex-shrink: 0;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='3.5'><path d='M0 0l3 3.5 3-3.5z' fill='%23999'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 8px 5px !important;
}

/* ---------- Store list ---------- */
#sl-store-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 120px;
    background: #f0f0f0 !important;
    margin: 4px 16px 0 !important;
    border-radius: 0 !important;
    padding: 6px 0;
}

.sl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 12px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sl-item:hover {
    background: #e6e6e6 !important;
}

.sl-item.active {
    background: #e6e6e6 !important;
}

.sl-item-info {
    min-width: 0;
    padding-left: 4px; /* thụt lề nhẹ phần thông tin so với viền khung */
}

.sl-item-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.sl-item-info p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #6b6b6b;
}

.sl-item-info p b {
    font-weight: 700;
    color: #333;
}

.sl-directions-btn {
    flex-shrink: 0;
    background: #DDDDDD !important;
    border: none !important;
    color: #333 !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    text-transform: none !important;
    transition: background 0.15s ease;
}

.sl-directions-btn:hover {
    background: #bfbfbf !important;
    color: #1a1a1a !important;
}

/* Nút "Tìm kiếm" đã được xoá khỏi HTML — chọn tỉnh trong dropdown tự lọc
   và tự cuộn xuống bản đồ trên mobile, không cần nút riêng nữa. */

/* ---------- Map ---------- */
.sl-map-col {
    flex: 1;
    scroll-margin-top: 90px; /* trừ hao chiều cao header sticky khi scrollIntoView trên mobile */
}

#sl-map-frame {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sl-wrapper {
        flex-direction: column;
        border-radius: 6px;
        margin: 0 16px;
        height: auto;
    }
    .sl-sidebar {
        width: 100%;
        min-width: 0;
        padding-bottom: 26px;
    }
    #sl-store-list {
        max-height: 340px;
    }
    .sl-item {
        padding: 14px 12px;
    }
    .sl-header {
        padding: 14px 12px;
    }
    .sl-field-label {
        padding: 12px 14px 6px;
    }
    #sl-province {
        margin: 0 16px 22px;
        width: calc(100% - 32px);
        padding: 9px 30px 9px 12px !important;
    }
    .sl-map-col {
        min-height: 60vh;
    }
    #sl-map-frame {
        min-height: 60vh;
        height: 60vh;
    }
}
